warden-dev
Fail
Audited by Gen Agent Trust Hub on Sep 26, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/calculate-version.jsis vulnerable to command injection. It uses thechild_process.execSyncfunction to run agit logcommand where the arguments are derived directly from the output ofgit describewithout any validation or escaping. A malicious actor with the ability to influence git tags (e.g., in a shared repository or local environment) could execute arbitrary shell commands on the host system. - Evidence: In
scripts/calculate-version.js, the variablelastTagis populated fromexecSync('git describe --tags --abbrev=0 2>/dev/null')and then interpolated intologCmd = \git log ${lastTag}..HEAD --format=%B`, which is subsequently executed viaexecSync(logCmd)`. - [DYNAMIC_EXECUTION]: The skill performs dynamic shell command execution via Node.js in
scripts/calculate-version.js. The use ofexecSyncon strings constructed at runtime from environment data (git tags and logs) is a high-risk pattern for local exploitation. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data in the form of git commit messages and tag names within
scripts/calculate-version.jsand through environment configuration files. - Ingestion points: Git history and tag metadata are read into
scripts/calculate-version.jsviaexecSynccalls; project.envfiles are used to drive environment configuration. - Boundary markers: None are present to distinguish between legitimate system metadata and malicious payloads embedded in git history or configuration.
- Capability inventory: The skill has the capability to execute shell commands (
execSyncin Node,warden env execin CLI), perform database imports/exports, and access project configuration files. - Sanitization: No sanitization or input validation is performed on the data retrieved from the git environment before it is used in further command execution.
Recommendations
- AI detected serious security threats
Audit Metadata