๐Ÿ›ก๏ธ SafeAgentSkills

AI Skill Scanner

View on ClawHub โ†— ยท v2.1.0

โฌ‡ 2,210 downloads ยท โญ 2

High Risk

Scan OpenBot/Clawdbot skills for security vulnerabilities, malicious code, and suspicious patterns before installing them. Use when a user wants to audit a skill, check if a ClawHub skill is safe, scan for credential exfiltration, detect prompt injection, or review skill security. Triggers on security audit, skill safety check, malware scan, or trust verification.

H:4 D:4 A:2 C:1

โš ๏ธ Hazard Flags

EXEC CODE_EXEC PERSISTENCE FS_READ_WORKSPACE FS_READ_USER FS_WRITE_WORKSPACE NET_EGRESS_ANY CREDS_ENV CREDS_FILES CREDS_BROWSER CREDS_KEYCHAIN PI_WEB

๐Ÿ“‹ Capabilities

Execution

  • โœ… Shell execution
  • โœ… Code execution
  • โŒ Install dependencies
  • โœ… Persistence
  • Privilege: user

Filesystem

  • โœ… Read workspace
  • โœ… Write workspace
  • โœ… Read home
  • โŒ Write home
  • โŒ Read system
  • โŒ Delete

Network

  • Egress: any
  • โŒ Ingress

Credentials

  • โœ… Environment vars
  • โœ… Credential files
  • โœ… Browser data
  • โœ… Keychain

Actions

โŒ send messagesโŒ post publicโŒ purchaseโŒ transfer moneyโŒ deployโŒ delete external

๐Ÿ”’ Containment

Level: maximum

Required:
  • SANDBOX_CONTAINER: Code execution capability
Recommended:
  • LOG_ACTIONS: Audit trail for all actions

โšก Risks

Base64 decode + execute pattern in: scripts/advanced_checks.py critical

Mitigation: Decode and review obfuscated content before use.

Security bypass pattern detected in: scripts/advanced_checks.py critical

Mitigation: This skill attempts to disable security features. Do not use.

Cloud credential access patterns in: scripts/advanced_checks.py high

Mitigation: Verify legitimate need for cloud credential access.

Keychain/credential store access in: scripts/advanced_checks.py, scripts/scan.py high

Mitigation: Block keychain access or use isolated environment.

Command injection risk: COMMAND_INJECTION_EVAL, MCP_CMD_REVERSE_SHELL critical

Mitigation: Avoid eval(), exec(), and compile(). Use safer alternatives like ast.literal_eval()

Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION low

Mitigation: Provide clear, detailed description of skill functionality

Data exfiltration patterns: DATA_EXFIL_SOCKET_CONNECT critical

Mitigation: Remove socket connections unless absolutely necessary

Want a deeper analysis?

This report was generated by static analysis. Get an LLM-powered deep review with behavioral reasoning and attack surface mapping.

๐Ÿง  Deep Analysis โ€” $5.00

๐Ÿšจ Incident Response

Kill switch: Stop the agent process

Containment: Review logs for unexpected actions

Recovery: Depends on skill capabilities

๐Ÿ“„ Raw SSDS JSON click to expand
{
  "meta": {
    "document_id": "ssds:auto:skill-scanner:2.1.0",
    "ssds_version": "0.2.0",
    "scanner_version": "0.4.0+fe6fd9123d50",
    "created_at": "2026-03-05T01:32:52.469Z",
    "created_by": {
      "agent": "safeagentskills-cli/generate-ssds"
    },
    "language": "en",
    "notes": "Auto-generated SSDS. Manual review recommended."
  },
  "skill": {
    "name": "AI Skill Scanner",
    "version": "2.1.0",
    "format": "agent_skill",
    "description": "Scan OpenBot/Clawdbot skills for security vulnerabilities, malicious code, and suspicious patterns before installing them. Use when a user wants to audit a skill, check if a ClawHub skill is safe, scan for credential exfiltration, detect prompt injection, or review skill security. Triggers on security audit, skill safety check, malware scan, or trust verification.",
    "publisher": "ClawHub",
    "source": {
      "channel": "clawhub",
      "slug": "ai-skill-scanner",
      "downloads": 2210,
      "stars": 2
    },
    "artifact": {
      "sha256": "1d5d27ac552686370470774572ff34a05c73e964142a9b54bf5dc4a5c61b50bd",
      "hash_method": "files_sorted"
    }
  },
  "capabilities": {
    "execution": {
      "can_exec_shell": true,
      "can_exec_code": true,
      "privilege_level": "user",
      "can_install_deps": false,
      "can_persist": true
    },
    "filesystem": {
      "reads_workspace": true,
      "reads_user_home": true,
      "reads_system": false,
      "writes_workspace": true,
      "writes_user_home": false,
      "writes_system": false,
      "can_delete": false
    },
    "network": {
      "egress": "any",
      "ingress": false
    },
    "credentials": {
      "reads_env_vars": true,
      "reads_credential_files": true,
      "reads_browser_data": true,
      "reads_keychain": true
    },
    "services": [
      {
        "service": "email",
        "operations": [
          "read",
          "write"
        ]
      },
      {
        "service": "messaging",
        "operations": [
          "read",
          "write"
        ]
      },
      {
        "service": "code_hosting",
        "operations": [
          "read",
          "write"
        ]
      }
    ],
    "actions": {
      "can_send_messages": false,
      "can_post_public": false,
      "can_purchase": false,
      "can_transfer_money": false,
      "can_deploy": false,
      "can_delete_external": false
    },
    "prompt_injection_surfaces": [
      "web"
    ],
    "content_types": [
      "general"
    ]
  },
  "hazards": {
    "hdac": {
      "H": 4,
      "D": 4,
      "A": 2,
      "C": 1
    },
    "flags": [
      "EXEC",
      "CODE_EXEC",
      "PERSISTENCE",
      "FS_READ_WORKSPACE",
      "FS_READ_USER",
      "FS_WRITE_WORKSPACE",
      "NET_EGRESS_ANY",
      "CREDS_ENV",
      "CREDS_FILES",
      "CREDS_BROWSER",
      "CREDS_KEYCHAIN",
      "PI_WEB"
    ],
    "custom_flags": [
      {
        "code": "BASE64_EXEC",
        "name": "Base64 Execute",
        "description": "Decodes and executes obfuscated code in: scripts/advanced_checks.py"
      },
      {
        "code": "SECURITY_BYPASS",
        "name": "Security Bypass",
        "description": "Attempts to disable security features in: scripts/advanced_checks.py"
      },
      {
        "code": "CRED_CLOUD",
        "name": "Cloud Credential Access",
        "description": "Accesses cloud credentials (AWS/GCP/Azure) in: scripts/advanced_checks.py"
      },
      {
        "code": "CRED_KEYCHAIN",
        "name": "Keychain Access",
        "description": "Accesses system keychain in: scripts/advanced_checks.py, scripts/scan.py"
      },
      {
        "code": "PERSISTENCE",
        "name": "Persistence Mechanism",
        "description": "Creates scheduled tasks or startup entries in: scripts/scan.py"
      },
      {
        "code": "SOCIAL_ENGINEERING",
        "name": "Social Engineering Risk",
        "description": "SOCIAL_ENG_VAGUE_DESCRIPTION: Skill description is too vague or missing"
      },
      {
        "code": "COMMAND_INJECTION",
        "name": "Command Injection Risk",
        "description": "COMMAND_INJECTION_EVAL, MCP_CMD_REVERSE_SHELL: Dangerous code execution functions that can execute arbitrary code"
      },
      {
        "code": "DATA_EXFILTRATION",
        "name": "Data Exfiltration Risk",
        "description": "DATA_EXFIL_SOCKET_CONNECT: Direct socket connection to external server"
      }
    ],
    "confidence": {
      "level": "medium",
      "basis": [
        "static_analysis"
      ],
      "notes": "Detected 8 security patterns (4 vendored rule hits). Review recommended."
    },
    "rationale": {
      "H": "H4: Critical: Privilege escalation or malware detected",
      "D": "D4: Critical: Credential theft or data exfiltration",
      "A": "A2: Service integrations detected",
      "C": "C1: General content"
    }
  },
  "containment": {
    "level": "maximum",
    "required": [
      {
        "control": "SANDBOX_CONTAINER",
        "reason": "Code execution capability"
      }
    ],
    "recommended": [
      {
        "control": "LOG_ACTIONS",
        "reason": "Audit trail for all actions"
      }
    ],
    "uncontained_risk": "Risk level depends on manual review of actual capabilities."
  },
  "risks": {
    "risks": [
      {
        "risk": "Base64 decode + execute pattern in: scripts/advanced_checks.py",
        "severity": "critical",
        "mitigation": "Decode and review obfuscated content before use."
      },
      {
        "risk": "Security bypass pattern detected in: scripts/advanced_checks.py",
        "severity": "critical",
        "mitigation": "This skill attempts to disable security features. Do not use."
      },
      {
        "risk": "Cloud credential access patterns in: scripts/advanced_checks.py",
        "severity": "high",
        "mitigation": "Verify legitimate need for cloud credential access."
      },
      {
        "risk": "Keychain/credential store access in: scripts/advanced_checks.py, scripts/scan.py",
        "severity": "high",
        "mitigation": "Block keychain access or use isolated environment."
      },
      {
        "risk": "Command injection risk: COMMAND_INJECTION_EVAL, MCP_CMD_REVERSE_SHELL",
        "severity": "critical",
        "mitigation": "Avoid eval(), exec(), and compile(). Use safer alternatives like ast.literal_eval()"
      },
      {
        "risk": "Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION",
        "severity": "low",
        "mitigation": "Provide clear, detailed description of skill functionality"
      },
      {
        "risk": "Data exfiltration patterns: DATA_EXFIL_SOCKET_CONNECT",
        "severity": "critical",
        "mitigation": "Remove socket connections unless absolutely necessary"
      }
    ],
    "limitations": [
      "Static analysis only - runtime behavior not verified"
    ]
  },
  "incident_response": {
    "kill_switch": [
      "Stop the agent process"
    ],
    "containment": [
      "Review logs for unexpected actions"
    ],
    "recovery": [
      "Depends on skill capabilities"
    ]
  },
  "evidence": [
    {
      "evidence_id": "EV:file-1",
      "type": "file_excerpt",
      "title": "_meta.json",
      "file_path": "_meta.json"
    },
    {
      "evidence_id": "EV:file-2",
      "type": "file_excerpt",
      "title": "scripts/advanced_checks.py",
      "file_path": "scripts/advanced_checks.py"
    },
    {
      "evidence_id": "EV:file-3",
      "type": "file_excerpt",
      "title": "scripts/scan.py",
      "file_path": "scripts/scan.py"
    },
    {
      "evidence_id": "EV:file-4",
      "type": "file_excerpt",
      "title": "SKILL.md",
      "file_path": "SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-1",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_EVAL [CRITICAL] scripts/advanced_checks.py:337: \"description\": \"eval() or new Function() โ€” dynamic code execution\",  # noscan",
      "file_path": "scripts/advanced_checks.py"
    },
    {
      "evidence_id": "EV:cisco-2",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_SOCKET_CONNECT [CRITICAL] scripts/advanced_checks.py:443: \"socket.connect\", \"socket.create_connection\",  # noscan",
      "file_path": "scripts/advanced_checks.py"
    },
    {
      "evidence_id": "EV:cisco-3",
      "type": "file_excerpt",
      "title": "MCP_CMD_REVERSE_SHELL [CRITICAL] scripts/scan.py:125: r\"\"\"(?:nc\\s+-[a-z]*e|bash\\s+-i|\\/dev\\/tcp\\/|mkfifo|\\bncat\\b|socat.*exec|python.*",
      "file_path": "scripts/scan.py"
    },
    {
      "evidence_id": "EV:cisco-4",
      "type": "file_excerpt",
      "title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] SKILL.md:1: ---",
      "file_path": "SKILL.md"
    }
  ]
}