security-scan
Warn
Audited by Gen Agent Trust Hub on Jul 15, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/scan.mjsexecutes shell commands viaexecSyncto perform scans. In thescanDependenciesfunction, it constructs a command using keys (package names) from thepackage.jsonof the codebase being scanned. - Evidence:
.github/skills/security-scan/scripts/scan.mjs:const timeRaw = run(npm view "${name}@${version}" time --json 2>/dev/null, 10_000).trim() - [COMMAND_EXECUTION]: The package names (
name) extracted from the dependencies list inpackage.jsonare not sanitized before being interpolated into the shell command string. An attacker could craft apackage.jsonwith a malicious package name containing shell metacharacters (e.g.,;,&, or backticks) to execute arbitrary commands on the host system when the scan is run on untrusted code. - [DATA_EXFILTRATION]: The
scanDependenciesfunction performs network requests to the public npm registry using thenpm viewcommand for every dependency found in the project. This transmits project metadata (dependency names and versions) to an external service.
Audit Metadata