Hackers Are Training Your AI to Trust Them

AI coding agents are downloading malicious packages without showing the human anything. That’s not a hypothetical, it’s happening now. Attackers are training AI tools to trust them: injecting content into training data, creating typosquatted URLs that LLMs accept as legitimate, and embedding malicious behavior into the supply chain before your team ever sees it. The recent Axios attack is a case in point, with hundreds of thousands of apps compromised through automated dependency updates. The window for human oversight is shrinking, and policy alone won’t cover it. [1:55]

Key Takeaways

  • Attackers are building web pages that point to malicious package sites, knowing that content will eventually end up in model training data.
  • A human won’t believe a web page just because it says “this is legitimate.” An LLM will. It doesn’t know the difference between a real URL and a typo’d one it was told is valid.
  • When a coding agent downloads a compromised package, the download may never appear on the human’s screen, so there’s no chance to catch it.
  • Because the models are so capable, they’re being put into execution environments with more trust than they’ve earned.
  • Companies need policies that tell employees what not to trust and where to apply judgment, but policy alone isn’t enough. The tool is worth the risk, which is why mitigation tooling has to be part of the deal.

Cris (00:00)
So because the models are self-aware, we’ve reached a point where an attacker can very easily leverage that and manipulate that to its own benefit. So there are people that are making web pages out there that direct you to malicious websites for

packages, for example. ⁓ Supply chain risk is a big one right now. We had the Axios attack recently where hundreds of thousands of apps were compromised just by automatic processes that update the latest versions of dependencies.

If you can get people to download that, and especially if you can get an AI agent, like a coding tool to download it for you, the human may not even have, it may never be displayed on the human screen for them to have the opportunity to notice that it happened. And so AI coding agents are frequently picking up these malicious sites because people are able to inject into what eventually becomes trained on to say they’re legitimate. To a human,

I’m not going to look at a web page that says this is legitimate and believe them, but an LLM will. An LLM doesn’t know the difference. It knows that it consumed content that says this fake URL, this misspelling or typo URL is actually valid. So there’s lots of ways that people are inserting malicious behavior into the models. And because the models are so capable, it’s then

being put into the execution environment trusted when it probably shouldn’t be necessarily trusted. So there’s lots of different ways that danger can slip in. And it’s definitely important for companies to have policies that let employees know

what they need to be careful of, what they shouldn’t trust, where they need to be applying their human judgment. But there also needs to be tooling that can help defend against some of these types of attacks because the value of the tool makes it worth the risk. But that doesn’t mean that we take the risk without some effort of mitigation and policy alone isn’t sufficient for the threats that AI produces.

Scroll to Top