Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(security): audit shared agent skills
Benyamin4722155d2d95
diff --git a/scripts/security-install.sh b/scripts/security-install.shindex b9e2d4e3b..291d8d7f4 100755--- a/scripts/security-install.sh+++ b/scripts/security-install.sh@@ -49,6 +49,7 @@ find "$HOME" -type f > "$TMPDIR/created_files.txt" 2>/dev/null || true# Expected path patterns (relative to HOME):# .config/*/mcp.json (or .mcp.json variants)# .claude/skills/*+# .agents/skills/*# .claude/settings.json# .continue/config.yaml# .codeium/config.json@@ -56,6 +57,7 @@ find "$HOME" -type f > "$TMPDIR/created_files.txt" 2>/dev/null || true# Various agent config dirsEXPECTED_PATTERNS=(+ ".agents/"".claude/"".cursor/"".config/"@@ -121,10 +123,18 @@ fiecho ""echo "--- Auditing skill file content ---"-SKILLS_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills"-if [[ -d "$SKILLS_DIR" ]]; then- SKILL_ISSUES=0+SKILL_DIRS=(+ "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills"+ "$HOME/.agents/skills"+)+SKILL_ISSUES=0+SKILL_DIRS_FOUND=0+for SKILLS_DIR in "${SKILL_DIRS[@]}"; do+ if [[ ! -d "$SKILLS_DIR" ]]; then+ continue+ fi+ SKILL_DIRS_FOUND=1while IFS= read -r skill_file; dobasename=$(basename "$skill_file")@@ -138,11 +148,11 @@ if [[ -d "$SKILLS_DIR" ]]; thendone# Check for unexpected URLs- if grep -oE 'https?://[^\s"'"'"']+' "$skill_file" 2>/dev/null | grep -v 'github.com/DeusData' | grep -v 'localhost' | grep -v '127.0.0.1' > /tmp/sec_skill_urls 2>/dev/null; then+ if grep -oE 'https?://[^\s"'"'"']+' "$skill_file" 2>/dev/null | grep -v 'github.com/DeusData' | grep -v 'localhost' | grep -v '127.0.0.1' > "$TMPDIR/sec_skill_urls" 2>/dev/null; thenwhile IFS= read -r url; doecho "REVIEW: Skill '$basename' contains URL: $url"- done < /tmp/sec_skill_urls- rm -f /tmp/sec_skill_urls+ done < "$TMPDIR/sec_skill_urls"+ rm -f "$TMPDIR/sec_skill_urls"fi# Check for encoded strings (base64-like blocks > 50 chars)@@ -150,12 +160,14 @@ if [[ -d "$SKILLS_DIR" ]]; thenecho "REVIEW: Skill '$basename' contains potential encoded content"fidone < <(find "$SKILLS_DIR" -type f -name '*.md')+done+if [[ $SKILL_DIRS_FOUND -eq 0 ]]; then+ echo "SKIP: No skills directory created."+elseif [[ $SKILL_ISSUES -eq 0 ]]; thenecho "OK: Skill files contain no dangerous patterns."fi-else- echo "SKIP: No skills directory created."fi# ── Summary ──────────────────────────────────────────────────────