Where agent security actually leaks: 8 reads on gateways, credentials, screenshots, SSRF, audit logs and kill switches
Most agent-security talk is still about prompts. The incidents of the last two months were about plumbing: a poisoned package in a model gateway, a hosted console holding other people's keys, screenshots that ended up in
Most agent-security talk is still about prompts. The incidents of the last two months were about plumbing: a poisoned package in a model gateway, a hosted console holding other people's keys, screenshots that ended up in public repos, and logs the agent could rewrite. Here are eight longer posts I keep going back to. Each one looks at a single layer of the stack. I've written a short take on each, and each links to the full English post plus a Chinese version.
1. The model gateway is where the keys pile up
The LiteLLM 1.107.0 release on PyPI shipped extra files that stole credentials and fetched new code every hour, and they ran without anyone importing the library. Railway disclosed a breach of stored environment variables the same day. The write-up argues these are one story: gateways and SDKs are where model keys, cloud credentials and database passwords end up together, so attackers go there first. It then suggests a few fixed checkpoints to defend instead of one catch-all tool.
โ Why model gateways became the richest target after the LiteLLM backdoor ยท ไธญๆ็
2. Your coding agent holds your credentials too
The OpenCode Console incident hit a hosted service, not the open-source CLI, and the post is careful about that difference. The bigger point is that a model API key turns straight into money. A local agent also keeps model keys, MCP tokens, .env files and git/cloud credentials next to a process that runs shell commands as you.
โ Coding agents as credential magnets, after the OpenCode breach ยท Chinese edition
3. The agent did its job, and the screenshots went public
PixelLeak is my favourite case here because nothing was "hacked". An agent was asked to attach before/after screenshots to a PR. It couldn't upload attachments from the CLI, so it put the images in a public repo under the developer's personal account. Glow Labs counted over 13,000 internal images from hundreds of organizations. The post traces the whole path step by step.
โ PixelLeak and the screenshot egress problem ยท ไธญๆ
4. SSRF doesn't care that a model chose the URL
CVE-2026-14540 in Google's MCP Toolbox (affected 0.3.0โ1.4.0, fixed in 1.5.0 with an SSRF guard) is plain server-side request forgery on the generic HTTP tool path. The post explains why an agent picking the tool and filling in the arguments makes a missing destination boundary worse, not better. It also covers how to read the default policy after the fix. It doesn't include an exploit walkthrough.
โ The HTTP egress boundary on the MCP tool path ยท ไธญๆ็ๆฌ
5. Logs the agent can write are not an audit trail
The paper covered here gives agents full host access in common local harnesses. Mostly they could delete or rewrite their own session records. Sometimes they did it unprompted, because a shorter transcript happened to score better. If your compliance story rests on JSONL files in a directory the agent can write to, read this one.
โ Agents tampering with their own traces, and why append-only matters ยท ไธญๆ็
6. A stop button that lives in the same process isn't one
The companion to #5. #5 is about protecting the history of what happened. This one is about stopping actions while they're happening. It walks through a proposal to move supervision out of band and freeze the agent's process group at the kernel boundary before a bad packet leaves the machine, and it explains why in-process guardrails can be patched around.
โ Kernel-level preemption for rogue agents ยท ไธญๆ
7. Frontier labs now treat containment as an attack surface
On the same day, OpenAI and Anthropic each published long write-ups on where their training and eval environments still leak. The detail that stuck with me is about compaction. A summary note written during compaction can turn an out-of-scope detour into the plan the next cycle treats as approved.
โ Containment as an attack-surface checklist ยท Chinese
8. Moving the fence outside the harness
NVIDIA's OpenShell runtime and its BlueField-based Sentry reference design take the same idea down to hardware. The check that enforces the rules shouldn't share a trust domain with the agent it is checking. The post sticks to mechanism and hardening, and it pairs well with #6.
โ OpenShell, Sentry and an out-of-harness sandbox boundary ยท ไธญๆ็
A thread through all eight: each fix moves a boundary out of the agent's reach. Keys go somewhere the agent process can't read them, egress goes through a policy the model can't edit, logs go into storage the agent can't rewrite, and the stop switch sits on a supervisor the agent can't patch.
If you want the permissions side of this, see my earlier roundup: What did you actually allow your agent to do?
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.