codex-history-recovery
Pass
Audited by Gen Agent Trust Hub on Jun 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The included Python script executes the
pgrepcommand to detect if the Codex application is running. This is used to implement a safety lock that prevents the skill from modifying files while the application is active, minimizing the risk of data corruption. - [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface as it ingests and processes data from local application files.
- Ingestion points: The
scripts/codex_history_repair.pyscript reads thread data from~/.codex/state_5.sqliteand session metadata fromrollout-*.jsonlfiles. - Boundary markers: Data retrieved from these files is presented to the agent in reports (e.g., in
statusordry-runcommands) without explicit delimiters or warnings to ignore instructions embedded within the metadata. - Capability inventory: The skill provides the agent with the ability to modify SQLite records, rewrite JSONL files, and delete/move files (via the
delete-archivedandsynccommands in the provided Python script). - Sanitization: While the script uses standard parsing libraries, it does not perform sanitization or filtering on the metadata strings (such as
cwdorprovidernames) before they are displayed to the agent.
Audit Metadata