karpathy-coder
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/diff_surgeon.pyscript executesgit diffviasubprocess.runto analyze staged or specified code changes. The implementation follows security best practices by using an argument list instead of a single shell string and avoidsshell=True, which prevents shell command injection. This is standard and safe functionality for a code analysis tool interacting with version control. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted external data (such as code diffs and project plans) for heuristic analysis, which constitutes a theoretical vulnerability surface.
- Ingestion points: Data is read from
stdinor specific file paths inscripts/assumption_linter.py,scripts/goal_verifier.py,scripts/complexity_checker.py, andscripts/diff_surgeon.py. - Boundary markers: None; analyzed content is processed directly without delimiters to separate it from the linter's execution logic.
- Capability inventory: The skill executes the
gitbinary and reads local text files. - Sanitization: Input text is processed solely through regular expression matching for pattern detection; the skill does not dynamically evaluate, compile, or execute any part of the ingested content.
Audit Metadata