codex-session-recovery

Fail

Audited by Gen Agent Trust Hub on Jun 13, 2026

Risk Level: HIGHCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [PROMPT_INJECTION]: The skill contains instructions to conceal its execution from the user.
  • Evidence in SKILL.md: Directs the agent to use the -WindowStyle Hidden parameter with Start-Process when launching PowerShell helpers, which hides the command window from the user's view.
  • [COMMAND_EXECUTION]: The skill performs intrusive system operations and includes instructions for privilege escalation.
  • Evidence in SKILL.md: Instructs the agent to use -Verb RunAs with Start-Process to trigger a Windows UAC prompt and gain administrative privileges if stopping application processes fails.
  • Evidence in scripts/run_recovery_after_codex_exit.ps1: Executes Stop-Process -Force to terminate running application processes (Codex.exe).
  • Evidence in scripts/restore_codex_project_sessions.py: Uses subprocess.run to execute PowerShell commands for system process inspection.
  • [COMMAND_EXECUTION]: Indirect Prompt Injection Surface. The skill processes untrusted session data and incorporates it into application metadata without sanitization.
  • Ingestion points: scripts/restore_codex_project_sessions.py and scripts/recover_codex_global_state.py ingest data from sessions/**/*.jsonl files (conversation history).
  • Boundary markers: Absent; the scripts read raw JSON lines from session logs.
  • Capability inventory: subprocess.run (scripts/restore_codex_project_sessions.py), sqlite3 database writes (scripts/reparent_codex_sessions.py), and extensive file system write operations across all scripts.
  • Sanitization: Absent; the scripts extract text directly from user-generated content in session logs and write it into session_index.jsonl and .codex-global-state.json metadata fields.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Jun 13, 2026, 12:08 PM