2026-08-10NOTABLEOpenCode and OpenAI Codex write prompt history, per-session logs and plaintext API keys to predictable per-user paths
OpenAI Codex CLI
product · product:openai-codex-cli single-source
Coverage
2
first 2026-07-11 → last 2026-08-10
Latest activity
2026-08-10
OpenCode and OpenAI Codex write prompt history, per-session logs and plaintext API keys to predictable…
Peak priority
notable
2 notable
Targets
public-sector
sectors: public-sector, technology · regions: europe
Sources cited
4
3 hosts
Action items (3)
Do-now tasks recorded on the entries about OpenAI Codex CLI, newest first. Check the date before acting on an older one.
- Do not point an agentic coding assistant with command-execution ability (Claude Code auto-mode, Codex auto-review, or equivalents) at untrusted third-party or open-source code, including automated dependency-update review in CI/CD, treat the reviewed repository as attacker-controlled input, not trusted data.2026-07-11AI Now Institute PoC turns an untrusted library's…
- Where such agents are used, run them in isolated, credential-minimised environments and do not treat sandboxing as sufficient: the researchers show an in-sandbox RCE can be chained to escape (citing CVE-2026-39861 and CVE-2026-25725 against Claude Code's own sandbox).2026-07-11AI Now Institute PoC turns an untrusted library's…
- Hunt on developer/CI hosts for coding-agent processes spawning a Unix shell or executing a repository-supplied binary/script (e.g. a2026-07-11AI Now Institute PoC turns an untrusted library's…
security.shor similar) during a review task, and for outbound network or credential access from such child processes.
Defender insights
What each entry about OpenAI Codex CLI tells a defender to do, newest first.
Triage
Story timeline
- 2026-08-10CERT Intrinsec maps where autonomous coding agents leave evidence on disk; the same session databases and token files an investigator needs are a credential-collection target
- 2026-07-11'Friendly Fire': prompt injection hijacks AI coding agents' defensive auto-review into remote code execution
ATT&CK techniques (4 across 3 tactics)
4 techniques observed across 2 entries about this entity, derived from entry metadata and body evidence, never asserted without a published entry behind it · pinned to MITRE ATT&CK v20.0 · compare on the matrix · Navigator layer (JSON)
- Initial AccessSupply Chain Compromise: Compromise Software Dependencies and Development Tools
- ExecutionCommand and Scripting Interpreter: Unix Shell · User Execution: Malicious File
- Credential AccessUnsecured Credentials: Credentials In Files
Initial Access TA0001
T1195.001Supply Chain Compromise: Compromise Software Dependencies and Development Tools×1
Adversaries may manipulate software dependencies and development tools prior to receipt by a final consumer for the purpose of data or system compromise. Applications often depend on external software to function properly. Popular open source projects that are used as dependencies in many applications, such as pip and NPM packages, may be targeted as a means to add malicious code to users of the dependency. This may also include abandoned packages, which in some cases could be re-registered by threat actors after being removed by adversaries. Adversaries may also employ "typosquatting" or name-confusion by choosing names similar to existing popular libraries or packages in order to deceive a user.
Evidence: 2026-07-11/friendly-fire-prompt-injection-rce-defensive-ai-agents · ATT&CK page ↗
Execution TA0002
T1059.004Command and Scripting Interpreter: Unix Shell×1
Adversaries may abuse Unix shell commands and scripts for execution. Unix shells are the primary command prompt on Linux, macOS, and ESXi systems, though many variations of the Unix shell exist (e.g. sh, ash, bash, zsh, etc.) depending on the specific OS or distribution. Unix shells can control every aspect of a system, with certain commands requiring elevated privileges.
Evidence: 2026-07-11/friendly-fire-prompt-injection-rce-defensive-ai-agents · ATT&CK page ↗
T1204.002User Execution: Malicious File×1
An adversary may rely upon a user opening a malicious file in order to gain execution. Users may be subjected to social engineering to get them to open a file that will lead to code execution. This user action will typically be observed as follow-on behavior from Spearphishing Attachment. Adversaries may use several types of files that require a user to execute them, including .doc, .pdf, .xls, .rtf, .scr, .exe, .lnk, .pif, .cpl, .reg, and .iso.
Evidence: 2026-07-11/friendly-fire-prompt-injection-rce-defensive-ai-agents · ATT&CK page ↗
Credential Access TA0006
T1552.001Unsecured Credentials: Credentials In Files×1
Adversaries may search local file systems and remote file shares for files containing insecurely stored credentials. These can be files created by users to store their own credentials, shared credential stores for a group of individuals, configuration files containing passwords for a system or service, or source code/binary files containing embedded passwords.
Evidence: 2026-08-10/coding-agent-forensic-artefacts-opencode-codex-credentials · ATT&CK page ↗
Entries about OpenAI Codex CLI (2)
Co-occurring entities
Derived: referenced by the same focused operational entries (weekly summaries and report roundups don't count); ×N counts the shared entries.
- Anthropic Claude Code CLI×1
- Friendly Fire (AI Now Institute exploit)×1
- GhostApproval×1
- Intrinsec AI Agents X Digital Forensics series×1
- OpenCode×1
Where this entity is cited
Source distribution
- intrinsec.com2 (50%)
- ainowinstitute.org1 (25%)
- infosecurity-magazine.com1 (25%)
All cited sources (4)
- ainowinstitute.orgAI Now Institutehttps://ainowinstitute.org/publications/friendly-fire-exploit-brief
- infosecurity-magazine.comInfosecurity Magazinehttps://www.infosecurity-magazine.com/news/anthropic-openai-report-exploit/
- intrinsec.comCERT Intrinsechttps://www.intrinsec.com/en/ai-agents-digital-forensics-openai-codex-artifacts/
- intrinsec.comCERT Intrinsechttps://www.intrinsec.com/en/opencode-forensics/