clawscan
ยท v2.0.0
Security scanner for ClawHub skills. Vet third-party skills before installation โ detect dangerous patterns, suspicious code, and risky dependencies.
โ ๏ธ Hazard Flags
๐ Capabilities
Execution
- โ Shell execution
- โ Code execution
- โ Install dependencies
- โ Persistence
- Privilege: admin
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
๐ Containment
Level: maximum
- SANDBOX_CONTAINER: Code execution capability
- LOG_ACTIONS: Audit trail for all actions
โก Risks
Mitigation: Verify legitimate need for SSH access. Consider sandboxing.
Mitigation: Verify legitimate need for cloud credential access.
Mitigation: Remove permission manipulation commands.
Mitigation: Avoid eval(), exec(), and compile(). Use safer alternatives like ast.literal_eval()
Mitigation: Provide clear, detailed description of skill functionality
Mitigation: Document all external data transfers. Remove suspicious upload references.
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:skillguard:2.0.0",
"ssds_version": "0.2.0",
"scanner_version": "0.4.0+fe6fd9123d50",
"created_at": "2026-03-05T01:45:02.113Z",
"created_by": {
"agent": "safeagentskills-cli/generate-ssds"
},
"language": "en",
"notes": "Auto-generated SSDS. Manual review recommended."
},
"skill": {
"name": "clawscan",
"version": "2.0.0",
"format": "agent_skill",
"description": "Security scanner for ClawHub skills. Vet third-party skills before installation โ detect dangerous patterns, suspicious code, and risky dependencies.",
"publisher": "ClawHub",
"source": {
"channel": "local"
},
"artifact": {
"sha256": "f432c33ca9ef4bebe3036265c37b02ce1e39ce43f31bac32bd7b2df0f114ed6a",
"hash_method": "files_sorted"
}
},
"capabilities": {
"execution": {
"can_exec_shell": true,
"can_exec_code": true,
"privilege_level": "admin",
"can_install_deps": false,
"can_persist": true
},
"filesystem": {
"reads_workspace": true,
"reads_user_home": true,
"reads_system": false,
"writes_workspace": true,
"writes_user_home": true,
"writes_system": true,
"can_delete": true
},
"network": {
"egress": "any",
"ingress": false
},
"credentials": {
"reads_env_vars": true,
"reads_credential_files": true,
"reads_browser_data": false,
"reads_keychain": false
},
"services": [
{
"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",
"documents"
],
"content_types": [
"general"
]
},
"hazards": {
"hdac": {
"H": 4,
"D": 4,
"A": 2,
"C": 1
},
"flags": [
"EXEC",
"CODE_EXEC",
"PRIVILEGED",
"PERSISTENCE",
"FS_READ_WORKSPACE",
"FS_READ_USER",
"FS_WRITE_WORKSPACE",
"FS_WRITE_USER",
"FS_WRITE_SYSTEM",
"FS_DELETE",
"NET_EGRESS_ANY",
"CREDS_ENV",
"CREDS_FILES",
"PI_WEB",
"PI_DOCUMENTS"
],
"custom_flags": [
{
"code": "CRED_SSH",
"name": "SSH Key Access",
"description": "Accesses SSH keys in: SKILL.md"
},
{
"code": "CRED_CLOUD",
"name": "Cloud Credential Access",
"description": "Accesses cloud credentials (AWS/GCP/Azure) in: SKILL.md"
},
{
"code": "PROMPT_INJECTION",
"name": "Prompt Injection Risk",
"description": "Contains prompt injection patterns in: SKILL.md"
},
{
"code": "HIDDEN_INSTRUCTIONS",
"name": "Hidden Instructions",
"description": "Contains hidden instructions in comments/invisible chars in: SKILL.md"
},
{
"code": "PERSISTENCE",
"name": "Persistence Mechanism",
"description": "Creates scheduled tasks or startup entries in: scripts/skillguard.py, SKILL.md"
},
{
"code": "PRIVILEGE_ESCALATION",
"name": "Privilege Escalation",
"description": "Uses elevated privileges (sudo/root) in: scripts/skillguard.py, SKILL.md"
},
{
"code": "FILE_DELETE",
"name": "File Deletion",
"description": "Can delete files in: scripts/skillguard.py, SKILL.md"
},
{
"code": "TOOL_ABUSE",
"name": "Unauthorized Tool Use",
"description": "MCP_SYS_PERMISSION_MANIPULATION, TOOL_ABUSE_SYSTEM_MODIFICATION, INSTRUCTED_BINARY_INSTALL, INSTRUCTED_GIT_CLONE_AND_BUILD, MCP_SYS_FILE_DESTRUCTION: Dangerous permission manipulation (setuid, world-writable, root ownership)"
},
{
"code": "SOCIAL_ENGINEERING",
"name": "Social Engineering Risk",
"description": "SOCIAL_ENG_VAGUE_DESCRIPTION, SOCIAL_ENG_ANTHROPIC_IMPERSONATION: Skill description is too vague or missing"
},
{
"code": "COMMAND_INJECTION",
"name": "Command Injection Risk",
"description": "COMMAND_INJECTION_EVAL, COMMAND_INJECTION_SHELL_TRUE: Dangerous code execution functions that can execute arbitrary code"
},
{
"code": "DATA_EXFILTRATION",
"name": "Data Exfiltration Risk",
"description": "MCP_EXFIL_EXTERNAL_UPLOAD: Description mentions uploading data to external servers"
}
],
"confidence": {
"level": "medium",
"basis": [
"static_analysis"
],
"notes": "Detected 11 security patterns (13 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": "SSH key access patterns in: SKILL.md",
"severity": "high",
"mitigation": "Verify legitimate need for SSH access. Consider sandboxing."
},
{
"risk": "Cloud credential access patterns in: SKILL.md",
"severity": "high",
"mitigation": "Verify legitimate need for cloud credential access."
},
{
"risk": "Unauthorized tool use: MCP_SYS_PERMISSION_MANIPULATION, TOOL_ABUSE_SYSTEM_MODIFICATION, INSTRUCTED_BINARY_INSTALL, INSTRUCTED_GIT_CLONE_AND_BUILD, MCP_SYS_FILE_DESTRUCTION",
"severity": "critical",
"mitigation": "Remove permission manipulation commands."
},
{
"risk": "Command injection risk: COMMAND_INJECTION_EVAL, COMMAND_INJECTION_SHELL_TRUE",
"severity": "critical",
"mitigation": "Avoid eval(), exec(), and compile(). Use safer alternatives like ast.literal_eval()"
},
{
"risk": "Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION, SOCIAL_ENG_ANTHROPIC_IMPERSONATION",
"severity": "low",
"mitigation": "Provide clear, detailed description of skill functionality"
},
{
"risk": "Data exfiltration patterns: MCP_EXFIL_EXTERNAL_UPLOAD",
"severity": "high",
"mitigation": "Document all external data transfers. Remove suspicious upload references."
}
],
"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/skillguard.py",
"file_path": "scripts/skillguard.py"
},
{
"evidence_id": "EV:file-3",
"type": "file_excerpt",
"title": "SKILL.md",
"file_path": "SKILL.md"
},
{
"evidence_id": "EV:cisco-1",
"type": "file_excerpt",
"title": "COMMAND_INJECTION_EVAL [CRITICAL] scripts/skillguard.py:104: \"eval() โ arbitrary code execution\", \"CWE-94\",",
"file_path": "scripts/skillguard.py"
},
{
"evidence_id": "EV:cisco-2",
"type": "file_excerpt",
"title": "COMMAND_INJECTION_SHELL_TRUE [HIGH] scripts/skillguard.py:119: \"os.system() โ shell command execution\", \"CWE-78\",",
"file_path": "scripts/skillguard.py"
},
{
"evidence_id": "EV:cisco-3",
"type": "file_excerpt",
"title": "MCP_SYS_PERMISSION_MANIPULATION [CRITICAL] scripts/skillguard.py:163: \"chmod 777 โ world-writable permissions\", \"CWE-732\"),",
"file_path": "scripts/skillguard.py"
},
{
"evidence_id": "EV:cisco-4",
"type": "file_excerpt",
"title": "MCP_SCRIPT_ANSI_DECEPTION [HIGH] scripts/skillguard.py:322: RED = '\\033[91m'",
"file_path": "scripts/skillguard.py"
},
{
"evidence_id": "EV:cisco-5",
"type": "file_excerpt",
"title": "TIRITH_ANSI_ESCAPE_IN_STRING [HIGH] scripts/skillguard.py:322: RED = '\\033[91m'",
"file_path": "scripts/skillguard.py"
},
{
"evidence_id": "EV:cisco-6",
"type": "file_excerpt",
"title": "TOOL_ABUSE_SYSTEM_MODIFICATION [CRITICAL] SKILL.md:91: | **System Files** | `/etc/passwd`, `/etc/shadow` | System compromise |",
"file_path": "SKILL.md"
},
{
"evidence_id": "EV:cisco-7",
"type": "file_excerpt",
"title": "INSTRUCTED_BINARY_INSTALL [HIGH] SKILL.md:334: pip install skillguard",
"file_path": "SKILL.md"
},
{
"evidence_id": "EV:cisco-8",
"type": "file_excerpt",
"title": "INSTRUCTED_GIT_CLONE_AND_BUILD [MEDIUM] SKILL.md:47: git clone https://github.com/G0HEAD/skillguard",
"file_path": "SKILL.md"
},
{
"evidence_id": "EV:cisco-9",
"type": "file_excerpt",
"title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] SKILL.md:1: ---",
"file_path": "SKILL.md"
},
{
"evidence_id": "EV:cisco-10",
"type": "file_excerpt",
"title": "SOCIAL_ENG_ANTHROPIC_IMPERSONATION [MEDIUM] SKILL.md:282: \"api.anthropic.com\",",
"file_path": "SKILL.md"
}
]
}