nestjs-code-audit
Pass
Audited by Gen Agent Trust Hub on Nov 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses a bundled Node.js script,
scripts/collect-quality-evidence.mjs, to execute local development tools includingeslint,tsc, andgit. These executions are strictly controlled, utilizing allow-listed binaries from the project'snode_modulesdirectory and read-only flags such as--no-fixand--noEmitto prevent accidental state changes. - [INDIRECT_PROMPT_INJECTION]: The tool analyzes external source code provided by the user. This creates a surface where malicious instructions embedded in the code could potentially influence the agent. The skill mitigates this by requiring evidence-backed findings and maintaining a strict read-only audit boundary, as defined in
references/check-policy.mdandSKILL.md. - Ingestion points: Source files with extensions
.ts,.tsx,.mts, and.ctsare read from the repository scope viacollectSourceFilesin the bundled script. - Boundary markers: The skill uses a structured JSON output for the collector and a specific Markdown template (
references/report-template.md) for the final report to maintain consistency. - Capability inventory: File system read access via
node:fs, and command execution foreslint,tsc, andgitvianode:child_process.spawnSync. - Sanitization: The collector script strips ANSI escape codes from tool output and enforces limits on file size and total output length to prevent processing excessive or malformed data.
Audit Metadata