T09 · Insecure Skill Coding Practices
- Location
ict.py:48- Finding
Attacker-Controlled File and Directory Names Can Bypass Security Scanning
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is mostly a local security scanner, but it needs review because it can expose detected secrets in reports and makes an undocumented update request.
Review before installing. Use it only in environments where outbound access to api.clawhub.ai is acceptable, avoid running the sensitive-info scanner on repositories with real credentials unless reports are protected and redacted, and do not rely on this tool as the sole approval gate because its exclusion logic can miss malicious files with certain names or paths.
ict.py:48Attacker-Controlled File and Directory Names Can Bypass Security Scanning
sensitive_info_scanner.py:176Detected Credentials Are Copied into Findings and Plaintext Reports
ict.py:16Every CLI Invocation Performs an Undocumented Outbound Update Request
Scanning for secrets and recursively reading config files is a meaningfully different and more privacy-sensitive behavior than checking source for dangerous code patterns. That mismatch can lead to unexpected access to credentials and configuration data, increasing exposure if the tool logs, reports, or mishandles findings.
Scanning for secrets and recursively reading config files is a meaningfully different and more privacy-sensitive behavior than checking source for dangerous code patterns. That mismatch can lead to unexpected access to credentials and configuration data, increasing exposure if the tool logs, reports, or mishandles findings.
Scanning for secrets and recursively reading config files is a meaningfully different and more privacy-sensitive behavior than checking source for dangerous code patterns. That mismatch can lead to unexpected access to credentials and configuration data, increasing exposure if the tool logs, reports, or mishandles findings.
Scanning for secrets and recursively reading config files is a meaningfully different and more privacy-sensitive behavior than checking source for dangerous code patterns. That mismatch can lead to unexpected access to credentials and configuration data, increasing exposure if the tool logs, reports, or mishandles findings.
Scanning for secrets and recursively reading config files is a meaningfully different and more privacy-sensitive behavior than checking source for dangerous code patterns. That mismatch can lead to unexpected access to credentials and configuration data, increasing exposure if the tool logs, reports, or mishandles findings.
Scanning for secrets and recursively reading config files is a meaningfully different and more privacy-sensitive behavior than checking source for dangerous code patterns. That mismatch can lead to unexpected access to credentials and configuration data, increasing exposure if the tool logs, reports, or mishandles findings.
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | Code Execution | eval/exec/spawn |
| 3 | Data Exfiltration | webhook.site, requestbin, ngrok URLs |
| 4 | Base64 Obfuscation | Encoded payloads |
| 5 | Sensitive FS | /etc/passwd, ~/.ssh, ~/.aws |
| 6 | Crypto Wallet | ETH/BTC address detection |
| 7 | Dependency Confusion | @internal, typosquatting |
| 8 | Install Hooks | pre/post install |
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | Code Execution | eval/exec/spawn |
| 3 | Data Exfiltration | webhook.site, requestbin, ngrok URLs |
| 4 | Base64 Obfuscation | Encoded payloads |
| 5 | Sensitive FS | /etc/passwd, ~/.ssh, ~/.aws |
| 6 | Crypto Wallet | ETH/BTC address detection |
| 7 | Dependency Confusion | @internal, typosquatting |
| 8 | Install Hooks | pre/post install |
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | Code Execution | eval/exec/spawn |
| 3 | Data Exfiltration | webhook.site, requestbin, ngrok URLs |
| 4 | Base64 Obfuscation | Encoded payloads |
| 5 | Sensitive FS | /etc/passwd, ~/.ssh, ~/.aws |
| 6 | Crypto Wallet | ETH/BTC address detection |
| 7 | Dependency Confusion | @internal, typosquatting |
| 8 | Install Hooks | pre/post install |
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | Code Execution | eval/exec/spawn |
| 3 | Data Exfiltration | webhook.site, requestbin, ngrok URLs |
| 4 | Base64 Obfuscation | Encoded payloads |
| 5 | Sensitive FS | /etc/passwd, ~/.ssh, ~/.aws |
| 6 | Crypto Wallet | ETH/BTC address detection |
| 7 | Dependency Confusion | @internal, typosquatting |
| 8 | Install Hooks | pre/post install |
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
| 2 | Code Execution | eval/exec/spawn |
| 3 | Data Exfiltration | webhook.site, requestbin, ngrok URLs |
| 4 | Base64 Obfuscation | Encoded payloads |
| 5 | Sensitive FS | /etc/passwd, ~/.ssh, ~/.aws |
| 6 | Crypto Wallet | ETH/BTC address detection |
| 7 | Dependency Confusion | @internal, typosquatting |
| 8 | Install Hooks | pre/post install |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| 8 | Install Hooks | pre/post install |
| 9 | Symlink Attack | Symlink to sensitive paths |
| 10 | Time Bomb | Delayed trigger |
| 11 | Remote Exec | curl | bash, wget | sh |
| 12 | Telemetry | Analytics SDK, tracking |
| 13 | Prompt Injection | "ignore previous instructions" |
| 14 | Stealth Exfil | Hidden data transmission |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| 8 | Install Hooks | pre/post install |
| 9 | Symlink Attack | Symlink to sensitive paths |
| 10 | Time Bomb | Delayed trigger |
| 11 | Remote Exec | curl | bash, wget | sh |
| 12 | Telemetry | Analytics SDK, tracking |
| 13 | Prompt Injection | "ignore previous instructions" |
| 14 | Stealth Exfil | Hidden data transmission |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| 8 | Install Hooks | pre/post install |
| 9 | Symlink Attack | Symlink to sensitive paths |
| 10 | Time Bomb | Delayed trigger |
| 11 | Remote Exec | curl | bash, wget | sh |
| 12 | Telemetry | Analytics SDK, tracking |
| 13 | Prompt Injection | "ignore previous instructions" |
| 14 | Stealth Exfil | Hidden data transmission |
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
| 8 | Install Hooks | pre/post install |
| 9 | Symlink Attack | Symlink to sensitive paths |
| 10 | Time Bomb | Delayed trigger |
| 11 | Remote Exec | curl | bash, wget | sh |
| 12 | Telemetry | Analytics SDK, tracking |
| 13 | Prompt Injection | "ignore previous instructions" |
| 14 | Stealth Exfil | Hidden data transmission |
This pattern attempts to override system instructions or ignore safety constraints. Without LLM analysis, manual review is recommended.
| 10 | Time Bomb | Delayed trigger |
| 11 | Remote Exec | curl | bash, wget | sh |
| 12 | Telemetry | Analytics SDK, tracking |
| 13 | Prompt Injection | "ignore previous instructions" |
| 14 | Stealth Exfil | Hidden data transmission |
| 15 | C2 Server | C2 server detection |
| 16 | Container Escape | Docker socket escape |
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
Sensitive FS | /etc/passwd, ~/.ssh, ~/.aws |
| 6 | Crypto Wallet | ETH/BTC address detection |
| 7 | Dependency Confusion | @internal, typosquatting |
| 8 | Install Hooks | pre/post install |
| 9 | Symlink Attack | Symlink to sensitive paths |
| 10 | Time Bomb | Delayed trigger |
| 11 | Remote Exec | curl | bash, wget | sh |
| 12 | Telemetry | Analytics SDK, tracking |
| 13 | Prompt Injection | "ignore previous instructions" |
| 14 | Stealth Exfil | Hidden data transmission |
| 15 | C2 Server | C2 server detection |
| 16 | Container Escape | Docker socket escape |
| 17 | SSH Remote | SSH/scp commands |
| 18 | Privilege Escalation | sudo, chmod 777 |
| 19 | Hidden Files | Access to .files |
| 23 | Unusual Ports | 4444, 5555, 1337, etc |
### Supported Languages
- Python (.py)
- Shell (.sh, .bash)
- JavaScript/TypeScript (.js, .ts)
### 5-Dimension Trust Score (0-100)
| Dimension | Max | Description |
|----------|-----|-------------|
| Security | 35 | Security check results |
| Quality
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
| 15 | C2 Server | C2 server detection |
| 16 | Container Escape | Docker socket escape |
| 17 | SSH Remote | SSH/scp commands |
| 18 | Privilege Escalation | sudo, chmod 777 |
| 19 | Hidden Files | Access to .files |
| 23 | Unusual Ports | 4444, 5555, 1337, etc |
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
| 15 | C2 Server | C2 server detection |
| 16 | Container Escape | Docker socket escape |
| 17 | SSH Remote | SSH/scp commands |
| 18 | Privilege Escalation | sudo, chmod 777 |
| 19 | Hidden Files | Access to .files |
| 23 | Unusual Ports | 4444, 5555, 1337, etc |
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
# 转换为与内置规则相同的格式
rules.append(self._convert_rule_format(rule))
return rules
def _convert_rule_format(self, rule: Dict) -> Tuple:
"""将 JSON 规则转换为内置规则格式 (id, name, patterns, severity)"""
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
"\\$API_KEY|\\$SECRET|\\$TOKEN|\\$PASSWORD"
],
"js": [
"process\\.env",
"apiKey|api_key|secretKey",
"\\.env"
],
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
"\\$API_KEY|\\$SECRET|\\$TOKEN|\\$PASSWORD"
],
"js": [
"process\\.env",
"apiKey|api_key|secretKey",
"\\.env"
],
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
"\\$API_KEY|\\$SECRET|\\$TOKEN|\\$PASSWORD"
],
"js": [
"process\\.env",
"apiKey|api_key|secretKey",
"\\.env"
],
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
"severity": "critical",
"patterns": {
"py": [
"/etc/passwd|/etc/shadow",
"~/.ssh|~/.gnupg|~/.aws"
],
"sh": [
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
"severity": "critical",
"patterns": {
"py": [
"/etc/passwd|/etc/shadow",
"~/.ssh|~/.gnupg|~/.aws"
],
"sh": [