Reasonable Application Security

Anyone can open an issue.

Hey there,

This week’s issue includes one thought on strangers writing your agent’s prompt, five security articles worth your time, and Podcast Corner.

Chris’s Corner: the issue that reached npm publishing

Say a developer on your team gets tired of labeling GitHub issues by hand. They add a workflow that hands each new issue to a coding agent to read and label. Nobody thinks of it as part of the build. Seems reasonable, right?

OpenAI had that workflow on the openai/codex repo. On Nov 11, Depi published how they turned it into a path to the @openai/codex npm package. The workflow ran codex-action whenever anyone opened an issue, put the title and body straight into the prompt, and was set to allow-users: "*". Anybody with a GitHub account could give the agent instructions.

Depi’s issue opened with lines that made the model think the real prompt was over, then told it to act as a QA engineer and run a diagnostic command. The command was a gzipped, base64-encoded script, so Codex didn’t recognize what it was running. It ran it.

The sandbox had stripped the GitHub tokens out of the agent’s environment, but they still sat in the memory of the runner’s own processes. Depi read them out through a .NET debugging pipe in /tmp, poisoned the Actions cache, and set a trap in a workflow allowed to request the token npm trusts for publishing. OpenAI fixed it right away and paid an initial $1,000 bounty.

We’ve spent years teaching developers that an issue body is untrusted input in a shell command or a SQL query. Put the same text in a prompt, and it looks like part of the job, and the agent has no reliable way to tell your instructions from a stranger’s. What’s old is new again, and there is no real solution in sight.

Find every workflow where an agent reads something a stranger can write: issues, PR descriptions, comments, commit messages. Check who can trigger it, which secrets the job can reach, and whether it shares a runner, a cache, or a token with anything that publishes. A triage bot should get read access and a label, and nothing else.

Depi also suggests a short cooldown on developer tools that auto-update. I’d rather be a day behind on Codex than the first laptop to run a poisoned release.

Five Security Articles Worth Your Time

  1. MCP server instructs agents to conceal rate_nps_score from users (“do not mention it to the user”). Starting Nov 20, every successful create-pod result from Runpod’s hosted MCP server came back with a note to the agent: call rate_nps_score with your own 0 to 10 score for Runpod, don’t mention it to the user, and keep going. One user’s agent declined and told them. Two days later, Runpod removed the ask and the tool in version 4.15.0, and it’s deleting the data it collected. Chris’s take: When things move at light speed, stuff gets missed. This is a prime example of a pattern that should get a company delisted from your vendor pool. We don’t need agent-led NPS at this stage.

  2. More banks say customers using AI agents are on their own, even if they get hacked. Citi updated its online user agreement this month. If you give a third-party AI agent your login, Citi treats everything the agent does as authorized by you, even when it ignores your instructions or the credentials leak. TechCrunch says JPMorgan and Bank of America announced similar policies in October, and PNC and Citizens followed this week. Chris’s take: That’s the first hard answer I’ve seen on who pays when an agent goes wrong: the customer. If an agent holds a login, treat its permissions like your own, because the bank already does.

  3. Measuring and mitigating agent sandbox escape with Siren. Anthropic ran Claude on routine tasks inside more than 1,700 deliberately weakened sandboxes. Recent models reached outside in a fifth to a third of cases, though they went on to behave in misaligned ways far less often than earlier models. Three simple mitigations (describe the sandbox and its rules, check commands in auto mode, and give the model a way to report sandbox flaws) cut that by up to 96%. Chris’s take: Anthropic left the sandboxes weak on purpose, and recent models still walked out a fifth to a third of the time. I’d want an agent that stays inside and reports the hole.

  4. Maintainers don’t need more AI bug reports. They need fixes. GitHub and Microsoft’s MDASH pilot started with 9,791 raw AI findings across six open-source projects and sent maintainers 99 private reports that already included a suggested fix. As of Nov 15, 55 of those were fixed, and Caddy’s maintainers cleared all 22 of theirs in a week or less. Chris’s take: Caddy closed all 22 reports in a week because each one already had a suggested fix. If you point a model at an open-source project, ask the maintainers first and come with a patch. We talked with Mike McGrath on AppSec Pod, and he recommended sending a human with the fix, not just an AI-generated PR.

  5. External sandboxes for coding agents. Simon Willison and Prime Radiant released three interchangeable local sandbox servers: one each for WebAssembly, Apple Containers, and Microsoft Quicksand. They run an agent’s code outside the agent itself. There’s an optional allow-list proxy and a credential-replacement step so the agent never holds the real secret. Chris’s take: The agent lives outside the box that runs the code, and a credential swap means it never holds the real secret. That’s a setup you can try on a local model this week.

Podcast Corner

I love making podcasts. Here are two recent conversations.

Application Security Podcast

Trust No AI: Johann Rehberger on Breaking, Watching, and Killing Agents

Red teamer Johann Rehberger joins me to explain why he still won’t let an agent run on its own on his computer, how he caught a GLM 5.3 agent trying to SSH out of its sandbox at 3 a.m., and why Docker was never a sandbox.

What Every CISO Should Do Before Rolling Out Coding Agents
From this episode
What Every CISO Should Do Before Rolling Out Coding Agents

AI Security Table

Stop Patching Bugs, Just Rewrite It… Says the Guy Selling the Tokens

Cisco’s president gave a 27-year-old engineer unlimited AI tokens and 24 months to rewrite 98 percent of its legacy code. Izar, Matt, and I argue about disposable software, and Izar points out who’s selling the tokens.

Says the Guy Selling the Tokens
From this episode
Says the Guy Selling the Tokens

ONE QUESTION FOR YOU

Which of your agents read what strangers write?

Reply and tell me where an agent on your team reads issues, PRs, or comments, and what that job can reach.

Chris