Opening SecureFlowCodex's Command-Safety Check Misread PowerShell: A 'Read-Only' Git Command Could Change Codex's Configuration
Case summary & sources

AIDEFEND SecureFlow / SecureFlow Case Index

OpenAI aidefend-sf0115

Codex's Command-Safety Check Misread PowerShell: A 'Read-Only' Git Command Could Change Codex's Configuration

  • Autonomous Agents
  • Tool Integrations & MCP
  • System Compromise & RCE
  • Model Evasion & Bypass

Codex can run certain commands without asking the developer. OpenAI confirmed that some affected versions could mistake a Git command run through PowerShell for a read-only operation. If the operating system permitted the write, the command could change which tools Codex starts on its next launch. OpenAI fixed the issue in Codex CLI 0.131.0 and corresponding Desktop releases.

Mapped threat techniques

  • AML.T0079 Stage Capabilities
  • AML.T0051.001 Indirect
  • AML.T0107 Exploitation for Defense Evasion
  • AML.T0081 Modify AI Agent Configuration
  • AML.T0142 Event Triggered Execution
  • AML.T0112.000 Local AI Agent

Source