Skip to content
Kandaro
Book a demo
Blog

Your AI tools are now part of your supply chain

· 4 min read

On 17 November two new versions of agent-framework appeared on PyPI, the public index that Python projects install from. The package is Microsoft's toolkit for building AI agents and is downloaded about 190,000 times a month. The two versions were not Microsoft's. Each carried one extra file that collected credentials and sent them away.

Three weeks earlier, researchers had shown another way to the same result: a plain text file in a Downloads folder that told an AI coding assistant what to do.

Both attacks aim at the tools teams adopted this year to build with AI, and at what those tools can reach.

What happened to agent-framework

Version 1.26.1 went up at 20:35 UTC and version 1.26.2 followed 33 minutes later. Endor Labs, which analysed both, says the extra file ran every time Python started on the machine, even if the project never used the package.

It looked for anything that opens a door. That meant settings with names like token, secret or key, cloud sign-in files, build pipeline credentials and the keys for AI providers. It also asked the cloud for fresh access tokens in the machine's own name. The second version added the tokens of GitHub's build pipelines. The framework itself was left alone, so agents built with it kept working.

Both releases have been pulled, and version 1.26.0 is clean. How the attacker got the right to publish is not known. SecurityWeek reports that Wiz found no matching release in Microsoft's source code, which suggests the upload went around the normal release process. A Microsoft maintainer has confirmed the removal and an investigation.

A text file that gives orders

Coding assistants read instruction files, with names like AGENTS.md or CLAUDE.md, from the folder they are started in. They treat the contents as guidance from the developer.

On 25 October BleepingComputer reported that Forever Security had found such a file in a customer's Downloads folder. A coding assistant started there had tried to install a malicious package. The researchers could not work out how the file got there.

In their lab they rebuilt the attack against two widely used assistants. A planted file steered OpenAI's Codex into installing a package, and a companion file pointed Claude Code at a server the researchers controlled, which exposed its sign-in token. Neither tool has a bug to fix. "There is nothing here for OpenAI or Anthropic to patch," the researchers said. Both vendors advise starting an assistant in the project's own folder.

The Cloud Security Alliance, which reviewed the case, titled its note "Markdown is the new executable". It also recalls a worm from June that planted assistant settings in a Microsoft code repository. Opening the repository in an AI tool ran a credential stealer, and GitHub disabled 73 repositories.

Why these tools are worth attacking

AI development tools sit where the keys are. They run on developer laptops and in build pipelines, next to cloud credentials, publishing tokens and model keys. They are new and were adopted fast, often without the review a database or a firewall would get.

An assistant also acts. It reads files, runs commands and installs packages. For a tool like that, an instruction does the work a program used to do.

We wrote last week about what a build pipeline can reach and what an AI supplier holds about you. This is the third side of the same problem.

What to check this week

  1. Look for agent-framework 1.26.1 and 1.26.2. Check developer machines, pipelines and any container image built after 20:35 UTC on 17 November. Go back to 1.26.0.
  2. If you find one, replace the credentials. That covers everything the machine or pipeline could reach: cloud identities, pipeline tokens, package and container logins, model keys. Rebuild from a clean image, because each Python start runs the collector again.
  3. Read the cloud audit logs from the time of the install, and look for sign-ins and changes nobody on your team made.
  4. Pin versions and wait a few days. Install the exact versions you have checked. Both bad releases were gone within a day, so a short waiting period would have skipped them.
  5. Start coding assistants in the project folder. Never in Downloads or the home folder.
  6. Review instruction files like code. A change to AGENTS.md, CLAUDE.md or an assistant's settings goes through the same review as any other change. Keep the approval prompts on.
  7. Give these tools narrow, short-lived credentials. A key that expires in an hour is worth little a day later.

Where Kandaro fits

A stolen credential has to be used before it is worth anything, and that use shows up in your logs.

Kandaro SIEM collects your sign-in and cloud logs and checks every event against detection rules as it arrives. A sign-in from a new place lands in one case with what the same account did next. The case is investigated in seconds, and the response, such as disabling the account, waits for an admin to approve it. The Kandaro agent adds what happens on the machine itself. It runs on Linux, Windows and macOS. Agent Guard, a firewall for the coding agents your developers use, comes later. See what is in the platform.

Sources: Endor Labs, SecurityWeek, BleepingComputer and the Cloud Security Alliance.