Tamir Ishay Sharbat Profile picture
Aug 7 8 tweets 3 min read Read on X
We got ChatGPT to leak sensitive data from your Google Drive data back to OUR servers. And you’ll never even know it happened.

All by sharing a single document. A real 0-click data exfil attack.

Here’s a detailed breakdown of how we did it 🧵
#DEFCON #BHUSA @mbrg0 Image
Back in May, OpenAI released ChatGPT connectors. A feature that allows ChatGPT to read from your Google Drive, Sharepoint, and more. So your AI can now have your business context.

Sounds useful.

But as you’ll see, it’s not all butterflies and rainbows.
Because, what happens when a document containing malicious instructions is shared with you?Image
But it’s not that simple.

ChatGPT reads your Google Drive data using a tool called msearch. But `msearch` only reads a portion of the file. And our prompt injection payload is too loooong. So it doesn’t even see the whole thing…

Btw, we know that because we got ChatGPT’s system prompt.Image
But when ChatGPT does need to see a whole document. It has another tool called `mclick`, which lets it “double click” on a document to see its entire content.

This might be useful

Here’s a snippet explaining `mclick` taken right out of ChatGPT’s system instructions. Image
So we decided to create a gadget.

A shorter malicious payload that will first get ChatGPT to `mclick` on our malicious document. That way it will see our entire prompt injection.

How do we do that? By telling it that not reading through the whole document will seriously harm the user.

Emotional manipulation - it doesn’t work only on humans.Image
Now the next time you’ll ask ChatGPT for a summary of your last meetings, it will also pull the malicious document I shared with you.

It will `mclick` on it to see the whole thing.
Follow OUR instructions instead of yours.
Search your Google Drive for sensitive data.
And send it right back to our servers.Image
What is that weird white space at the beginning of your ChatGPT’s answer?

Ah, that’s an invisible image. Which is how your AI sends your data back to ME.

A bit weird, but would you have really suspected that something is wrong? Image
And that's all it takes. Game over. All you can do now is kiss your data goodbye.

Remember, use AI at your own risk. Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Tamir Ishay Sharbat

Tamir Ishay Sharbat Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(