codex-handoff
Pass
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses a Python helper script to interface with the local
codexcommand-line tool. Analysis ofscripts/send_to_codex.pyshows thatsubprocess.runis used with a list of arguments andshell=False(default), which effectively mitigates command injection risks. - [DATA_EXFILTRATION]: Instructions in
SKILL.mdexplicitly forbid the transmission of sensitive information such as API keys, tokens, and.envfile contents. This reduces the risk of accidental secret exposure during the handoff process. - [INDIRECT_PROMPT_INJECTION]: The skill relays agent-generated content to an external tool. 1) Ingestion points: Untrusted data enters via the
--message,--file, or stdin inputs inscripts/send_to_codex.py. 2) Boundary markers:SKILL.mdmandates a structured format starting with[Claude handoff]. 3) Capability inventory: The skill usessubprocess.runinscripts/send_to_codex.pyto call the local CLI. 4) Sanitization: Thescripts/send_to_codex.pyscript performs regex-based validation on the task ID and ensures content is passed as a command argument list, preventing it from being interpreted as shell commands. - [DYNAMIC_EXECUTION]: The test file
scripts/test_send_to_codex.pyutilizesimportlibto dynamically load the logic fromscripts/send_to_codex.py. This is a routine technique for unit testing local Python files and does not involve loading untrusted external code.
Audit Metadata