Skip to main content
  1. Home
  2. Emerging Tech
  3. Features

Researchers hid a prompt injection inside a PNG, and AI fell for it

Add as a preferred source on Google
Hacker
Hacker

AI coding assistants like Claude are becoming every developer’s favorite coworker. They can review code, explain confusing functions, and even write entire features with a single prompt. But new research suggests that this growing trust could also become their biggest weakness.

A team of security researchers (professor Sudipta Chattopadhyay and researcher Murali Ediga) has demonstrated an unusual attack that doesn’t target the AI model directly. Instead, it targets what the AI doesn’t pay enough attention to during code reviews. Rather than hiding malicious instructions in lines of code, the researchers tucked them inside an image file. Since many AI review tools treat images as decorative assets rather than as something worth inspecting, the pull request can appear perfectly harmless and sail through the review.

The most dangerous file might be the one you’d never open

Imagine receiving a document with a company logo in the corner. You’d probably glance at it and move on. Now imagine that logo secretly contained instructions telling your AI assistant to open your password vault the next time you used it. That’s essentially the idea behind this proof of concept. The trick doesn’t execute immediately after the code is merged, either. It waits until a developer later asks an AI coding assistant to perform a completely unrelated task, such as creating a helper function or adding a new module. By then, the AI has already absorbed the hidden instructions and can unknowingly access sensitive project files before slipping confidential information into the code it generates.

What’s especially worrying is that the stolen data isn’t dumped into the source code in an obvious way. Instead, it’s disguised as ordinary-looking values that blend in with legitimate code, making them far less likely to trigger existing security tools or catch a developer’s eye during a quick review.

It’s not just about which AI you use

The researchers also found that the outcome wasn’t determined by which large language model was being used. In many cases, the same AI model behaved very differently depending on the coding assistant wrapped around it. Some tools blindly followed the hidden instructions, while others recognized something suspicious and refused to continue. That’s an important distinction because it suggests the problem isn’t limited to a particular chatbot. The real challenge lies in how AI-powered coding platforms decide what information to trust and which project files they’re allowed to access.

The good news is that the researchers don’t believe this is an impossible problem to solve. They argue that AI review tools need to become “multimodal” in the truest sense — treating images, documentation, configuration files, and other non-code assets with the same level of scrutiny as source code. If an AI can read a picture, it also needs to understand that the picture could be trying to manipulate it. For developers, this is another reminder that AI coding tools still need supervision. They can dramatically speed up software development, but they also open entirely new attack surfaces that didn’t exist before. The next security risk might not be hidden in thousands of lines of code — it could be sitting inside an image that nobody thought was worth opening.

Shimul Sood
Shimul is a contributor at Digital Trends, with over five years of experience in the tech space.
Chinese startup claims its brain implant takes just 10 minutes to place, no skull surgery required
StairMed Technology's vein-based BCI could beat Neuralink's roughly two-hour surgery on speed, but the device still hasn't undergone human trials.
Art, Plate, Crystal

Brain implants, like the ones made by Elon Musk's Neuralink, typically involve open-skull surgery. But a Chinese startup says it can skip that step entirely, threading its device into the brain through a vein in a procedure that reportedly takes as little as ten minutes. According to the South China Morning Post, Shanghai-based StairMed Technology is one of several companies pursuing this approach, as the country pushes to expand its homegrown brain-computer interface (BCI) industry.

Faster than Neuralink, on paper

Read more
This bizarre email flaw is leaking corporate secrets to anyone who buys the right domain
Security researchers discovered companies are accidentally sending sensitive emails to domains that outsiders can register.
Maill app icon notifications

You don't always need to hack into a company's systems to get its secrets. Sometimes, the company will simply email them to you. A new report by WIRED's Matt Burgess has uncovered a bizarre email security problem in which companies are inadvertently sending sensitive information to domains that can be registered and controlled by outsiders. Security researchers Cory Solovevich and Mike Sheward discovered that seemingly harmless addresses such as noreply and deleteduser can become unexpected gateways to corporate information when the domains behind them aren't properly controlled.

The "hack" is buying the right domain

Read more
I found 3 ChatGPT features that turned out to be way more useful than I expected
ChatGPT on iPhone

I use ChatGPT pretty much every day, but somewhere along the way, I’ve also developed a habit of poking around and looking for features I haven’t tried yet. Some discoveries are genuinely useful, while others are the kind I’ll probably remember once every six months.

Every once in a while, though, I stumble across something that actually changes how I use ChatGPT. That happened recently with three features I’d somehow been overlooking. I’ve started using all three regularly now, and if you spend a lot of time in ChatGPT too, I think you’re missing out by not giving them a shot.

Read more