cli-self-check
Fail
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scan.mjsscript contains a command injection vulnerability. The--sincecommand-line argument is extracted and directly interpolated into a shell command string passed toexecSyncwithout any validation or escaping. A malicious string provided as an argument could execute arbitrary shell commands in the environment where the skill is run. - Evidence: The interpolation of the
${SINCE}variable into thegit diffcommand string withinscan.mjs. - [REMOTE_CODE_EXECUTION]: The script
scan.mjsexecutes shell commands viaexecSyncusing user-controllable input from CLI arguments, which constitutes a code execution risk if parameters are manipulated. - Evidence:
execSync(git diff --name-only ${SINCE}...HEAD -- ..., ...)inscan.mjs. - [DYNAMIC_EXECUTION]: The
release-gate.mjsscript uses dynamicimport()to load check modules from a computed file path, which is a form of dynamic code loading from local paths. - Evidence:
const mod = await import(pathToFileURL(modPath).href);inrelease-gate.mjs. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from the repository's source code and documentation, creating an attack surface where malicious content could influence the scanner's output.
- Ingestion points:
scan.mjsreads source code (.ts) and markdown (.md) files throughout the repository usingfs.readFileSyncand custom directory traversal. - Boundary markers: Absent. The script does not use delimiters or instructions to ignore potential injection content within the files it scans.
- Capability inventory:
execSync(inscan.mjsfor executing git commands),fs.readFileSync(multiple files),fs.lstatSync(inchecks/skill-internal-distribution.mjs). - Sanitization: Absent. The ingested content is processed using regular expressions without escaping or sanitization of the data before it is used to generate findings.
Recommendations
- AI detected serious security threats
Audit Metadata