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 file | agent-framework on PyPI |
|---|
| Access needed first | Inside internal code repositories | None. Publish to a registry |
| Targeting | Specific organisations, in crypto | Anyone who installed in the window |
| Trigger | A developer starting the tool | Any Python interpreter start |
| Window | Until someone notices the file | 33 minutes of availability |
| Reported by | Google Threat Intelligence Group | Upwind 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.