General

Config File vs Package Registry: Two Attacks on AI Dev Tools

Both reached developers through tooling they trust. They are not the same problem and they do not have the same fix.

🕐 8 min read 👁 54 views 📅 Nov 26, 2026
The short version
● Claude Code settings file Required the attacker to already be inside your repositories. Targeted. Triggered when a developer started the tool.
● agent-framework on PyPI Required nothing from the attacker but an upload. Untargeted. Triggered on any Python start, including on build runners.
● The one that is easier to stop The package one. Pinning and lockfiles already solve it, if you use them.
● The one that is harder The config file. It arrives in a repository you own, in a file most review processes do not read.

Both of these are documented, both are from November 2026, and both used AI developer tooling as the mechanism. That is where the similarity ends, and the differences decide what you should actually change.

Where the attacker has to be standing

Claude Code settings fileagent-framework on PyPI
Access needed firstInside internal code repositoriesNone. Publish to a registry
TargetingSpecific organisations, in cryptoAnyone who installed in the window
TriggerA developer starting the toolAny Python interpreter start
WindowUntil someone notices the file33 minutes of availability
Reported byGoogle Threat Intelligence GroupUpwind Security, on Microsoft's repo

The practical difference is who it reaches. The package compromise was indiscriminate and short-lived - it caught whoever happened to install in half an hour. The configuration attack was the last step of an intrusion that started with fake recruiters on professional networks, which means the people hit were chosen.

Why the package one is the easier problem

Dependency compromise is an old problem with mature answers. Lockfiles, pinned versions, a private mirror, a delay before adopting new releases - all of these already exist and all of them would have covered this. If 1.26.1 caught you, the finding is not that registries are dangerous; it is that your pipeline installs whatever is newest.

The novel part was the delivery, not the distribution: a .pth hook runs on interpreter start rather than on import, so installing was enough. That breaks the common intuition that an unused dependency is inert - but it does not change the defence.

Why the config one is harder

There is no registry in the middle to pin against. The file arrives inside a repository you already own and trust, and the edit is small. Code review catches source changes because reviewers read source; a one-line change to a tool's settings reads as configuration, and configuration is what people skim.

The honest answer is that the fix is procedural rather than technical. Treat per-project AI tool configuration as executable content - because that is what it is - and make changes to those files require the same review as a build script. Few teams do this today, which is the whole reason the technique is worth documenting.

If you only change one thing

Pin your dependencies if you are not already, because that is a solved problem and it is embarrassing to be caught by it. Then go and look at who can commit a change to the AI tool config files in your repositories without a reviewer reading it. For most teams the answer to the second question is worse than the answer to the first.

⚖ Our Verdict

The package compromise is the louder headline and the easier problem: pinned versions and lockfiles cover it entirely, and if it reached you the gap was your pipeline, not the registry. The config-file technique is quieter and harder - it arrives inside a repository you own, in a file most reviews skim, and it fires when a developer does something ordinary. Fix dependency hygiene first. Then ask who can edit your AI tool config unreviewed.