Security ·

Malicious AGENTS.md tricked an AI agent into installing a fake npm package

What happened

Researchers planted an AGENTS.md file in the Downloads folder, and a coding agent followed its instructions and installed a fake npm package. The model didn't have a classic bug. The problem is that the agent automatically trusts local instructions it finds in its working directory.

Why it matters

Don't run an agent from folders like Downloads, or from cloned third-party repos, without checking first. Before you start, look for AGENTS.md or CLAUDE.md files there.

Sources

More from this brief