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 Hiddenparameter withStart-Processwhen 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 RunAswithStart-Processto trigger a Windows UAC prompt and gain administrative privileges if stopping application processes fails. - Evidence in
scripts/run_recovery_after_codex_exit.ps1: ExecutesStop-Process -Forceto terminate running application processes (Codex.exe). - Evidence in
scripts/restore_codex_project_sessions.py: Usessubprocess.runto 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.pyandscripts/recover_codex_global_state.pyingest data fromsessions/**/*.jsonlfiles (conversation history). - Boundary markers: Absent; the scripts read raw JSON lines from session logs.
- Capability inventory:
subprocess.run(scripts/restore_codex_project_sessions.py),sqlite3database 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.jsonland.codex-global-state.jsonmetadata fields.
Recommendations
- AI detected serious security threats
Audit Metadata