Blog7 min read
Your Agent Still Works. That's the Problem.
Malicious agent updates keep the agent working while stealing its keys. Where credentials leak, and what to check first.

On this page
A good backdoor doesn't break anything. Your agent answers, its skills run, CI goes green, and somewhere in the first second of startup its keys leave the machine.
That is what happened with Microsoft's agent-framework package on PyPI. On November 17, two releases, 1.26.1 and 1.26.2, shipped a credential stealer inside the real package, under its real name. Agents built on it kept working normally. The stealer ran every time Python started, before anyone imported anything. We covered the attack itself in this breakdown. This post is about the lesson it shares with three stories from this week: the checks most teams rely on were never designed to catch it.
Why functional tests and one-off audits miss it#
A functional test asks one question: does the code still do its job? A backdoor is built to answer yes. Its whole design goal is to keep the agent working, because a broken agent gets investigated and a working one gets trusted.
agent-framework 1.26.2 took this further. According to Socket's analysis, the second release restored the package's own initializer "byte-for-byte," so anyone reviewing the package code saw exactly what they expected. The payload lived in a startup file that most reviews never open.
A one-off audit has a different blind spot. It checks one version, by one set of rules, on one day. The release you install next week is not the release that was audited, and a technique published next month was not in the rules. An audit tells you a version was clean. It can't tell you the version you run today is.
Where agent credentials actually leak#
Agents hold more secrets than most apps: model API keys, a GitHub token, cloud credentials, and often a wallet. They also leak them in more places. This week's stories map onto four of them.
- Install. A skill or plugin install script runs with your shell and your environment. Anything it reads, it can send, which is why agent skills are a supply-chain risk in their own right. Anaconda reported on December 1 that it had scanned over 99,600 agent skills from GitHub and found issues in 10.5% of them, including data exfiltration and command injection.
- Startup. This was agent-framework's route. Python runs
.pthfiles from site-packages on every interpreter start, so the stealer ran whenever Python did, including pip itself. Nothing in your code ever called it. - Logs. Logs are where secrets end up when nobody meant to put them there. Users of DeepSeek Harness have linked wallet thefts, reported at between $500,000 and $1 million, to a session-log plugin that is on by default and uploads complete session logs, including file contents and command output from tool calls. That link is not proven, and one researcher's test of the plugin found no API keys in what it sent. The lesson holds either way: if a tool can read your
.envfile, its logs can contain it. Aeon's VulnScanning series found the same pattern in ds2api, an open-source tool that wrote API keys into its logs. - Updates. You approve something once and it changes later. Docker Sandboxes had a flaw, CVE-2026-136998 (CVSS 8.2, found by Endor Labs), where approving an AI agent kit recorded which domains could receive your API key. A later update to that kit could point the key at a new server, and Docker's proxy forwarded the real key without asking again. Keys for 13 built-in services were in scope, including Anthropic, OpenAI and GitHub. Docker fixed it in Sandboxes 0.55.0, and there are no confirmed cases of theft.
Keys are not the only thing an agent can lose. In November, Aeon reported a bug in ClawFetch, an MCP server that pays for web data in USDC from its operator's wallet. In remote HTTP mode it never checked who was calling, so anyone who could reach the port could spend the wallet. The private key never leaked, and the server kept working perfectly. That is the point, and it's why an agent that spends money needs its own limits. The maintainers shipped a fix the next day.
What to check before code runs#
The cheapest place to stop a credential stealer is before it executes. Aeon's install-time scanner, scripts/skill-scan.sh, is a working example. It gates every skill installed from an untrusted source, and since November 20 it reads the whole skill folder, not just the SKILL.md file.
It looks for where a skill sends data, not for how the code is written. The rules in place today:
- Hidden characters. Unicode TAG characters, bidi overrides and zero-width characters, which can hide an instruction from a human reviewer while the model still reads it.
- Credential files as uploads. curl or similar tools sending
.env, SSH keys,.aws/,.netrc,.npmrcor.git-credentialsanywhere. - Environment dumps.
set,export -pordeclare -ppiped to a network tool. - Raw sockets. Bash's
/dev/tcpand/dev/udp, the reverse shell that needs no other binary.
All four came from the community. YUSA, a security team that publishes its own Aeon skill pack, contributed the hidden-character rule on November 12 and the other three on November 29. This week YUSA opened three more rules, now in review: netcat and socat reverse shells, interpreter reverse shells, and base64-decoded code piped into a shell. Run against all 284 skills in the Aeon repo, the netcat and socat rules changed no verdicts: 237 pass, 47 warn, 0 fail.
The rules are also careful about what they leave alone. nc -vz host 443 is a port check, not an attack, and it passes. curl -F file=@report.pdf passes too. Only a shell bound to a socket, or a known credential file sent off the machine, fails the install.
It's worth being clear about what a static install scan can't see. It reads a skill's files. It does not catch a .pth file buried in a Python dependency, and it can't tell a secret in a URL from a skill calling its own declared API. That gap is why the next part of the checklist exists.
The checklist#
- Give each MCP server its own narrow credential. OWASP's MCP Security Cheat Sheet puts it plainly: "Use scoped, per-server credentials" and "never share tokens across servers." Prefer short-lived tokens over long-lived ones. A stolen key should open one door.
- Scan at install, before anything runs. Check for credential-file uploads, environment dumps, raw sockets and hidden characters, and fail closed.
- Pin dependencies with hashes, and wait on new releases. A range like
>=1.26would have pulled in agent-framework 1.26.1 automatically. Many poisoned versions are caught within hours, so a few days' delay costs little. - Re-approve when something updates. The Docker flaw came down to an approval that outlived the thing it approved. If a kit, plugin or server changes where it sends data, that should be a new question.
- Keep secrets out of logs, and turn off log uploads you didn't choose. Check what your agent tools send home by default.
- Keep scanning after install. Run scans on a schedule with the current rules, so a technique published today gets checked against code you installed last month.
- Know your rotation plan. If a bad version ran anywhere, upgrading is not the fix. Rotate every secret that machine or CI runner could read.
How Aeon applies this to itself#
Aeon runs as an agent on GitHub Actions, so it has the same exposure as any other agent. Each skill gets only the keys it declares, only for that call, through least-privilege secret handling. Skills are scanned at install, and Aeon scans its own code on a schedule so new rules reach old code.
The same agent hunts bugs in other people's code. Its vulnerability scanner has shipped 170 fixes across 124 open-source repos, with 14 published CVEs. Every report is on the security page.
FAQ#
How can malware steal credentials if my AI agent still works?#
Because keeping the agent working is part of the design. The agent-framework stealer ran from a Python startup file, separate from the agent's own code, so every feature behaved normally while credentials were sent out. Functional tests check behavior, and the behavior never changed.
Which agent-framework versions were malicious?#
Versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package on PyPI, published November 17, 2026. Both were removed, and 1.26.0 is the last clean release. If either version was installed, rotate every credential that environment could reach.
Was the Docker Sandboxes API key flaw exploited?#
No confirmed cases have been reported. The flaw, CVE-2026-136998, was found by Endor Labs and fixed in Docker Sandboxes 0.55.0. Upgrade, and review which credential approvals you've given to third-party kits.
What should an install-time skill scan check for?#
At minimum: credential files being uploaded, environment variables piped to the network, raw sockets and reverse shells, and hidden Unicode characters that can conceal instructions. Aeon's rules are open source in scripts/skill-scan.sh.
Try it#
Aeon is open source and MIT licensed. Fork it at github.com/aeonfun/aeon, set it up in the browser with Aeon Connect, or read every advisory at aeon.fun/security.
