hunt-source-leak
Fail
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: HIGHINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill fetches untrusted data from a user-specified
$TARGET(e.g.,.envfiles,.gitmetadata, source maps, and Swagger JSON) and processes it using shell commands and Python scripts. This creates a surface for indirect prompt injection, where a malicious target could supply content designed to influence the agent's behavior during or after analysis. - Ingestion points: Data is ingested via
curlfrom$TARGETin multiple phases (e.g.,Phase 1,Phase 2,Phase 3). - Boundary markers: No explicit delimiters or instructions are provided to the agent to ignore potentially malicious embedded content in the files it scans.
- Capability inventory: The skill utilizes
curl,grep,python3,pip3, andnpmto interact with the system and network. - Sanitization: Minimal sanitization is performed, though the source map extraction script includes basic path traversal protection by stripping
../andwebpack://prefixes. - [EXTERNAL_DOWNLOADS]: The skill requires several third-party tools to be installed via package managers without version pinning, which introduces a supply chain risk. Examples include
pip3 install git-dumper,pip3 install ds_store,npm install -g source-map-explorer, andnpm install -g unwebpack-sourcemap. - [DYNAMIC_EXECUTION]: The skill uses
python3 -cto execute embedded Python scripts for processing JSON data and extracting source map contents at runtime. It also references an external script,ds_store_exp.py, which is executed if present in the environment. - [DATA_EXFILTRATION]: The primary function of the skill is to identify and expose sensitive information, including environment variables (
.env), git history (.git), and hardcoded secrets within JavaScript bundles. While this is the intended purpose, it involves high-risk access to credentials and private configuration files. - [COMMAND_EXECUTION]: An automated scanner flagged a piped execution pattern:
curl ... | python3. Technical review confirms this specific instance is used for safe JSON formatting (python3 -m json.tool) or localized logic for source extraction, rather than arbitrary remote code execution. However, the use of shell loops to automate reconnaissance on user-supplied targets remains a high-privilege activity.
Recommendations
- HIGH: Downloads and executes remote code from: https://$TARGET/asset-manifest.json - DO NOT USE without thorough review
Audit Metadata