CTIPilot
AI-generated · no human review · verify critical claims against the linked source. how it works →

OpenCode

product · product:opencode single-source

Coverage
1
first 2026-08-10 → 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
1 notable
Targets
public-sector
sectors: public-sector, technology · regions: europe
Sources cited
2
1 hosts

Defender insights

What each entry about OpenCode tells a defender to do, newest first.

2026-08-10NOTABLEOpenCode and OpenAI Codex write prompt history, per-session logs and plaintext API keys to predictable per-user paths

Story timeline

  1. 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
    researchOpenCode and OpenAI Codex write prompt history, per-session logs and plaintext API keys to predictable per-user paths

Hunting pivots

Releases covered
OpenCode
ATT&CK techniques (1 across 1 tactic)

1 technique observed across 1 entry 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)

  • Credential AccessUnsecured Credentials: Credentials In Files

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 OpenCode (1)

2026-08-10 · view entry permalink →

NOTABLENATOB2

CERT 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

Autonomous coding agents now run shells, install helpers and reach networks on developer and build endpoints, and this pipeline has already covered a case of one standing up a reverse tunnel and installing persistence on a real macOS developer machine. CERT Intrinsec's contribution is the responder-side counterpart: where these tools actually leave evidence (CERT Intrinsec, 2026-07-27, CERT Intrinsec, 2026-07-31).

For OpenCode, an open-source agent shipped as a CLI, desktop application and IDE extension, configuration lives in a per-user opencode directory whose opencode.json records how the agent was set up. The artefact that matters most is a SQLite database, Intrinsec calls opencode.db "the most valuable artifact", "a SQLite database storing sessions, messages, projects, workspaces, etc." Its message table distinguishes model responses from user prompts by whether a timing field is present alongside the text, so an investigator can reconstruct both halves of a conversation and bound each response in time. A separate file in the same tree holds authentication material: "This file contains authentication information such as API keys."

For OpenAI's Codex CLI the shape is the same with different names. Everything sits under a per-user .codex directory; auth.json carries authentication information including API keys and access tokens; history.jsonl carries the list of user prompts; and per-session rollout logs record the session itself, including token-usage events that report input, cached-input, output and reasoning-token counts for the session and for the most recent response, plus the model's context window. That last detail is more useful than it first appears, it lets a responder estimate how much material an agent session actually processed without having to reconstruct the content.

The dual reading is the point. For incident response this is a map of where to look when a coding agent is implicated in an intrusion, and the prompt history is unusually valuable evidence because it records operator intent directly rather than by inference. For threat modelling it is an inventory: an attacker who reaches a developer workstation or a CI runner with any code execution finds provider credentials in cleartext JSON at a predictable per-user path, together with a transcript of what the organisation has been building. Neither file requires privilege escalation to read if the attacker already has the user's context.

The most valuable artifact is the opencode.db which is a SQLite database storing sessions, messages, projects, workspaces, etc.

This file contains authentication information such as API keys.

CERT Intrinsec 2026-07-27
research10 Aug 04:48Zsingle-sourceOpen finding →

Co-occurring entities

Derived: referenced by the same focused operational entries (weekly summaries and report roundups don't count); ×N counts the shared entries.

Where this entity is cited

  • Research1

Source distribution

  • intrinsec.com2 (100%)