T09 · Insecure Skill Coding Practices
- Location
scripts/main.py:153- Finding
Detected secrets may be disclosed through terminal and CI output
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
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.
scripts/main.py:153Detected secrets may be disclosed through terminal and CI output
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
Scanned: 45 files
Secrets found: 1
🔴 .env (line 3):
AWS_SECRET_ACCESS_KEY = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
Type: AWS Secret Access Key
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.
| Path traversal | 🔴 Critical | CWE-22 |
| Insecure crypto | 🟡 Medium | CWE-327 |
| Weak random | 🟡 Medium | CWE-338 |
| Debug mode enabled | 🟡 Medium | CWE-489 |
### 密钥模式
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.
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):
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.
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',
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
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'),
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.
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.
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.
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.