code-hardcode-audit
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Multiple Python scripts, including
audit_hardcodes.py,run_bandit.py,run_gitleaks.py, andrun_ruff_plr.py, utilizesubprocess.runto execute external security auditing tools. These calls are implemented using list-based arguments rather than shell strings, which effectively prevents shell injection vulnerabilities. The orchestrator also manages timeouts and parallel execution through standard Python libraries. - [EXTERNAL_DOWNLOADS]: The skill uses
npxto run thejscpdtool for copy-paste detection.npxis a well-known service that may fetch packages from the official npm registry if they are not already installed locally. The skill also references installation procedures via trusted package managers such asbrew,cargo, anduv. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and analyze local source code to identify hardcoded values and potential secrets. While it processes untrusted user data, it performs static analysis using structured methods like Abstract Syntax Trees (AST) and predefined patterns (Semgrep/ast-grep), rather than executing or dynamically evaluating the analyzed code.
Audit Metadata