Don’t put secrets into AI prompts. They leak out.

Don’t put secrets into AI prompts. They leak out. By Dan Goodin at Ars Technica.

Researchers planted 2 million digital tripwires in requests sent through a sprawling network of AI services to find out what happened to sensitive information entrusted to them. What they discovered was an ecosystem that leaked highly sensitive data like a sieve.

The test:

Researcher HD Moore assembled a collection of Amazon Web Services access keys, functioning credentials tied to empty AWS accounts, passwords for services such as SSH, and unique URLs, DNS names, and private git repository references. None of the secrets had ever been used before, and he controlled the infrastructure that received any requests using the credentials.

He then seeded each secret into exactly one prompt sent to a single provider. …

The findings:

  • At least three AI providers were compromised by attackers who used their access to siphon prompts they received.
  • Multiple resellers in the inference marketplace … somehow passed them along to people who used the credentials.
  • Multiple cases of AI providers not following end-user privacy settings embedded into flags specifying terms such as Zero Data Retention (ZDR) or “no data collection”.

“We sent nearly two million AI prompts containing unique, trackable secrets to AI providers, then watched where those secrets surfaced,” Moore, the chief research officer of security firm Dragos, wrote Thursday. “What we found revealed security breaches, prompt theft, and widespread failures to protect customer data.” …

Parties tied to the hack of these three providers then tested each key, in some cases within hours of being seeded, to see what kind of resources it gave access to. …

Some of the secrets were stolen by the resellers themselves. To lure prompts to their servers, they offered low prices. Then they turned on request logging and waited….

Conclusions:

Moore said that the most effective means for preventing leakage is to host models using on-premises servers. That option is expensive, though. …

The blockbuster research is the latest indictment exposing the lax privacy and security that’s endemic in much of the AI ecosystem.

Don’t put secrets into AI prompts. They leak out, despite the promises.