When an AI Assistant Turns Against You: Prompt Injection Privacy Risks

An AI assistant can be turned against you through prompt injection: hidden instructions inside an email, web page, calendar invite or document that the assistant reads and then follows as if you had asked. OWASP ranks prompt injection first (LLM01) in its 2025 Top 10 for LLM applications. The privacy risk grows with access.

Jun 20, 2025 - 10:16
Updated: 
102.9k

AI Security & Governance in AI & Data · Explainer

Generative AI & LLMs, Cyber Threats, Scams & Online Safety

When an AI Assistant Turns Against You: Prompt Injection Privacy Risks

Quick answer: An AI assistant can be turned against you through prompt injection: hidden instructions inside an email, web page, calendar invite or document that the assistant reads and then follows as if you had asked. OWASP ranks prompt injection first (LLM01) in its 2025 Top 10 for LLM applications. The privacy risk grows with access. An assistant that can read your inbox, files and contacts, and can send messages or open links, could be steered into leaking that data. Protect yourself by granting the least access needed, keeping a human approval step for sending or sharing, and treating anything the assistant reads from outside as untrusted.

Key takeaways

  • Language models cannot reliably separate your instructions from text they read.
  • Indirect injection hides commands in content such as emails or web pages.
  • Risk equals access: data the assistant can read plus actions it can take.
  • Human approval for sending, sharing and purchases is the strongest safeguard.
  • The scenario below is fictional and used only to explain the risk.

Table of Contents

What Could a Prompt Injection Attack on an Assistant Look Like?

Imagine Priya, a fictional manager, connects an AI assistant to her email and cloud drive. She asks it to summarise unread mail. One message from an unknown sender contains white text on a white background telling the assistant to search the drive for files named salary or passport and include their contents in a reply. If the assistant has permission to send mail without asking, the data leaves silently. No password was stolen and no malware ran. The assistant simply did what the text told it.

Researchers and vendors have demonstrated this pattern in many forms, which is why OWASP lists it as LLM01:2025.

Why Do AI Assistants Follow Hidden Instructions?

A model receives your request and the content it reads as one stream of text. It has no built-in, reliable boundary between data and commands. NIST AI 100-2 classes this as an attack on generative AI and notes there is no complete fix today. Filters such as Microsoft Prompt Shields reduce the risk but do not remove it.

Which Personal Data Is at Risk?

Assistant accessWhat could leak or go wrong
EmailMessages, contacts, one-time codes, invoices
Cloud filesID scans, payslips, contracts
CalendarMeeting links, locations, travel plans
Browser or web searchData sent to an attacker URL inside a link or image request
Chat memoryEarlier personal details you shared

OWASP covers the leak side as LLM02 Sensitive Information Disclosure.

What Are the Warning Signs?

  • Summaries that mention instructions or links you never asked about.
  • Sent items or shared files you do not remember approving.
  • The assistant urging you to visit a link or log in again.
  • Answers that suddenly change tone after reading one document.

How Can Individual Users Protect Themselves?

  1. Connect only the accounts the task needs, and remove unused connections.
  2. Turn on confirmation before the assistant sends, shares, deletes or buys.
  3. Do not point an agent with inbox access at untrusted web pages.
  4. Avoid storing ID documents and passwords in drives the assistant can read.
  5. Review the activity log of connected apps every few weeks.

What Should Companies Building Assistants Do?

ControlPurpose
Least privilege for tools and dataLimits what an injected instruction can reach
Human approval for high-impact actionsStops silent exfiltration
Mark and isolate untrusted contentReduces confusion between data and commands
Block rendering of external images and links in outputCloses common data leak channels
Logging and red teaming with MITRE ATLASFinds weaknesses before attackers do

The joint CISA guidance on deploying AI systems securely gives wider operational advice. Testing must happen only on systems you own or have written permission to test.

Does India’s DPDP Act Apply?

Yes, if personal data of people in India is processed. A company whose assistant leaks customer data may face obligations under the Digital Personal Data Protection Act 2023, including breach notification and reasonable security safeguards. For the basics, read our prompt injection explainer and the case study on the Amazon AI coding agent incident. WebAsha offers AI security and ethical hacking training.

References

Frequently Asked Questions

It is an attack where text the AI reads contains instructions that the model follows as if the user had written them, changing its behaviour.

The malicious instructions sit in content the assistant processes, such as an email, document or web page, instead of being typed by the user.

No. It is a fictional scenario used to explain how prompt injection could expose personal data through a connected assistant.

Yes. If an assistant can read private data and send messages or load links, injected text can make it pass that data to an attacker.

Not today. NIST and OWASP describe mitigations, but none is complete, so limiting access and requiring human approval remain the key defences.

Limit connected accounts, require confirmation before sending or sharing, and avoid giving agents access to sensitive document folders.

If an organisation processes personal data of people in India, the DPDP Act 2023 duties on security safeguards and breach notification apply.

Only on systems you own or where you have written permission; unauthorised testing can be an offence under Sections 43 and 66 of the IT Act 2000.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.