bounty-hunter
Warn
Audited by Gen Agent Trust Hub on May 13, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
scripts/scan.shscript executesnpm installandpip3 install -r requirements.txtwithin a directory containing code cloned from a user-provided repository URL. This enables an attacker-controlled repository to execute arbitrary code on the host machine throughpreinstallorpostinstallscripts inpackage.json, or via malicious packages inrequirements.txt. - [COMMAND_EXECUTION]: Several scripts are vulnerable to command injection. In
scripts/scan.shandscripts/triage.sh, Python commands are constructed using string interpolation of variables like$REPO_NAMEor$JSON_FILE(e.g.,python3 -c "... open('$OUTPUT_DIR/${REPO_NAME}-slither.json') ..."). If these variables contain single quotes or other shell metacharacters derived from a malicious repository name or file path, it can lead to arbitrary code execution within the Python process. - [EXTERNAL_DOWNLOADS]: The skill performs
git cloneon arbitrary URLs provided by the user. It then proceeds to install dependencies found within those repositories usingnpmandpip3without validation of the source or the packages themselves. - [PROMPT_INJECTION]: The skill is vulnerable to Indirect Prompt Injection in
scripts/triage.sh. - Ingestion points: Data is ingested by cloning an external repository in
scripts/scan.shand reading the resulting Slither JSON output inscripts/triage.sh. - Boundary markers: None are present in the prompt construction used for local LLM triage.
- Capability inventory: The skill has capabilities for shell execution (
bash,git,npm,pip), local file system access, and local network communication viacurlto a local Ollama instance. - Sanitization: There is no sanitization or escaping of the finding descriptions extracted from the untrusted source code before they are interpolated into the prompt sent to the LLM. An attacker could embed malicious instructions in a smart contract comment that Slither includes in its report, potentially manipulating the triage results.
Audit Metadata