Back to skill

Security audit

OpenClaw Security Scanner

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent local security scanner, but its secret-scanning output can disclose real credentials into terminal or CI logs.

Review before installing or using in CI. Use it only on directories you intend to scan, avoid running secrets --dir . on workspaces with real credentials, and do not publish or retain its output until secret redaction is fixed. Treat any credentials printed by this version as exposed and rotate them.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/main.py:153
Finding

Detected secrets may be disclosed through terminal and CI output

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (9)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 120)May include surrounding context.

md
Scanned: 45 files
Secrets found: 1

🔴 .env (line 3):
   AWS_SECRET_ACCESS_KEY = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
   
   Type: AWS Secret Access Key

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
75% confidence
Finding

Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.

Content

Scanner excerpt · SKILL.md (reported line 143)May include surrounding context.

md
| Path traversal | 🔴 Critical | CWE-22 |
| Insecure crypto | 🟡 Medium | CWE-327 |
| Weak random | 🟡 Medium | CWE-338 |
| Debug mode enabled | 🟡 Medium | CWE-489 |

### 密钥模式

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
75% confidence
Finding

Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.

Content

Scanner excerpt · scripts/main.py (reported line 119)May include surrounding context.

python
return issues

    def _check_debug_mode(self, tree: ast.AST, lines: list, filepath: Path) -> list:
        """Check for debug mode enabled"""
        issues = []

        for node in ast.walk(tree):

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
75% confidence
Finding

Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.

Content

Scanner excerpt · scripts/main.py (reported line 129)May include surrounding context.

python
if isinstance(node.value, ast.Constant) and node.value.value == True:
                            issues.append({
                                'line': node.lineno,
                                'message': 'DEBUG mode enabled',
                                'severity': 'medium',
                                'type': 'debug-mode',
                                'cwe': 'CWE-489',

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/main.py (reported line 155)May include surrounding context.

python
PATTERNS = [
        (r'AKIA[0-9A-Z]{16}', 'AWS Access Key ID'),
        (r'aws_secret_access_key\s*=\s*["\']?[A-Za-z0-9/+=]{40}["\']?', 'AWS Secret Key'),
        (r'ghp_[A-Za-z0-9]{36}', 'GitHub Personal Access Token'),
        (r'sk-[A-Za-z0-9]{20,}', 'OpenAI/Stripe API Key'),
        (r'private[_-]?key\s*[=:]\s*["\']?-----BEGIN', 'Private Key'),
        (r'database[_-]?url\s*[=:]\s*["\']?\w+://[^:]+:[^@]+@', 'Database URL with credentials'),

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill documentation advertises command execution and file scanning capabilities via python3 scripts/main.py and directory/file inputs, but it does not declare any explicit tool scope such as allowed tools or permissions. In an agent setting, missing scope declarations can lead to overbroad access assumptions and unsafe invocation of shell or file-read capabilities beyond what users expect.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill body and feature descriptions are presented in Chinese, while the file does not state that the tool is region-specific or give users a language/locale option. This creates a natural-language policy concern because it effectively constrains the skill to a specific language without user opt-in.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest says the skill 'checks dependencies' and provides vulnerability detection, but the deps command only reads a requirements file, counts packages, and prints advice to use external tools. It does not actually analyze dependency vulnerabilities or perform dependency security checks itself, creating a mismatch between the described capability and implemented behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The command-line interface suggests support for '--package-json' in the deps command, but the implementation only handles '--requirements' and otherwise prints a generic hint. This overstates actual behavior and can mislead users about what dependency checking the skill performs.

Content

No source excerpt is available for this finding.