nerd-context
Pass
Audited by Gen Agent Trust Hub on Sep 25, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes external data provided by the agent to store as context records, creating an ingestion surface. This is mitigated by strict record size limits (4KB), content validation that rejects strings containing known secret markers or executable tags, and a mandatory "untrusted_context" label on all retrieved data.
- Ingestion points: The
context_capturetool defined inscripts/mcp_server.pyand implemented inscripts/context.pyallows the agent to store external strings. - Boundary markers: The skill instructions in
SKILL.mdandreferences/context-contract.mdmandate the use of a specific serialization envelope and theauthority=untrusted_contextlabel. - Capability inventory: The skill is limited to local file operations (SQLite) and self-contained CLI script execution.
- Sanitization: The
_contains_dangerousfunction inscripts/context.pyperforms a blacklist check against common API key prefixes (e.g., AKIA, ghp_) and HTML/script markers (e.g., <script, #!). - [COMMAND_EXECUTION]: The skill instructions define a CLI fallback that executes the local
scripts/context.pyscript. This execution is Confined to the skill's own internal logic for managing the context database and does not involve arbitrary command execution, shell piping, or the use of user-supplied arguments in a shell context. - [DATA_EXFILTRATION]: While the skill manages a local database located at
~/.codex/nerd-context/context.sqlite3, it does not perform any network operations. It employs security best practices to protect this data, including file permission hardening (0600), directory restriction (0700), and symlink checks in_reject_symlinkto prevent path traversal or unauthorized file access.
Audit Metadata