hardcoded-credential-hunt
Fail
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill extensively uses
curlandpython3to interact with external network services. In Phase 4, the skill takes values extracted from remote targets (thePASSWORDvariable) and interpolates them directly into acurlcommand line. If a malicious target provides a string containing shell metacharacters, it could lead to command injection on the agent's system. - [INDIRECT_PROMPT_INJECTION]: The skill demonstrates an indirect prompt injection surface by processing content from untrusted external sources.
- Ingestion points: HTML, JSON, and JavaScript content fetched from external URLs via
curl(SKILL.md). - Boundary markers: None present; data is processed directly by regex and Python logic.
- Capability inventory: Extensive network access via
curl, local file system access (writing to/tmp/error.html), and subprocess execution capabilities. - Sanitization: The skill uses basic regex patterns (e.g.,
[^"&\s]{4,30}) to filter extracted strings. While these provide some protection against common shell metacharacters, they do not constitute a robust security boundary for handling untrusted data used in shell commands.
Recommendations
- HIGH: Downloads and executes remote code from: https://target.com/PATH, https://target.com/api/config - DO NOT USE without thorough review
Audit Metadata