Cybersecurity in the modern age has always adapted alongside the threat landscape. From protecting perimeter firewalls to securing cloud workloads, defenders have continuously adapted to the tactics of the adversary. The rapid adoption of LLMs (large language models) and AI agents has given rise to a new frontier: how prompts are constructed and secured.

Prompts, expressed as natural-language instructions, often contains highly sensitive information or even a backdoor into the system itself. Ignoring this new attack vector is no longer possible since adversaries have started to exploit it.

The Rise of Prompt‑Based AI and Data Risks

Generative AI removes boundaries to insight. Executives can perform complicated queries and automate workflows without writing any code at all. There is a price to pay for this democratization of AI. In a survey conducted by Deloitte among almost 1,850 professionals, three-quarters placed data privacy among their top ethical concerns regarding generative AI. According to Sachin Kulkarni, who works as a managing director for risk and brand protection at Deloitte, generative AI “collapses the ‘expertise barrier’”, although at the same time it creates “the potential for data leakage”.

When employees put customer information, trade secrets or credentials into an LLM, it becomes part of the model’s context and might be saved and possibly used for retraining of the system, if appropriate safeguards are not in place. Several high-profile cases, such as Samsung’s temporary ban on employees using public chatbots following the leakage of confidential code, illustrate the potential danger of prompts.

Understanding Prompt Injection and Data Leakage

LLM-related privacy issues result from the lack of distinction between commands and inputs. In a notable case, a Stanford student was able to extract a system prompt from Microsoft’s Bing Chat by commanding the model to disregard all prior instructions. Security experts refer to such attacks on AI models as “prompt injection,” which occurs because carefully crafted instructions can alter an LLM’s behavior.

After successful prompt injection, the model can reveal secret prompts or execute unexpected commands or actions. This is similar to cross-site scripting attacks, in which prompts can become dangerous weapons, as malicious JavaScript code embedded in a website gets executed through the AI agent’s visit.

Prompts can even be inserted into documents and websites for later execution by the AI system. Since LLMs treat text as one sequential chain, they cannot discern instructions from other inputs. Sanitizing input and filtering outputs help reduce risk, though security researchers admit that filtering alone does not solve the problem.

Expert Perspectives on Emerging Threats

Several emerging prompt privacy risks deserve attention. According to Corey Nachreiner from WatchGuard, the main threat of an attack comes from the LLMs themselves, as the systems follow the command provided in natural language and “cause unintended consequences or leak sensitive information”.

Jeramy Kopacko, associate field CISO at Sophos, points out that a direct prompt injection takes place when the attacker interacts with the AI, while an indirect prompt injection means the usage of instructions included in websites or files which the model will ingest.

He notes that, for instance, through such manipulation the model may give away the admin credentials or execute commands. According to Cristian Rodriguez, field CTO for CrowdStrike, if the attacker succeeds, he will gain control over the agent itself and may have the opportunity to steal important files or even authorize transactions.

AI Agents and Browsers: the New Endpoint

Cybersecurity frameworks usually pay attention to endpoints, for example, laptops, mobile phones and servers. It is now necessary to add AI agents and browsers to this list. According to FedScoop, new AI-enabled browsers, such as Comet from Perplexity and Atlas by OpenAI, open up users to indirect prompt injections and scams.

Unlike regular browsers, AI browsers increasingly employ autonomous agents to collect information and conduct various tasks and are therefore prone to vulnerabilities like hallucination, misalignment and data leakage. Autonomous agents operate under their own identities with access to tools and SSO sessions; therefore, malicious instructions incorporated into the website could prompt an agent to perform unintended tasks and leak sensitive sessions.

Since conventional endpoint security solutions are designed to stop malware and network attacks, they cannot handle the nuances of intent and identity in agentic AI. In the absence of adequate prompt privacy controls, an AI agent becomes an uncontrolled endpoint within the enterprise network.

Governance and Regulatory Pressure

There is also an evolution happening in the policy environment. In terms of generative AI security risks, A10 Networks has reported that regulators globally have increased their interest in AI systems, and organizations will be at risk of non-compliance should any of the generative AI tools leak personal data or generate a discriminatory output.

Unauthorized use of generative AI by workers using publicly available models outside controlled environments is also considered a source of data leakage. Stanford HAI’s privacy scholars consider the demand for data in AI systems to worsen existing privacy challenges such that it becomes “impossible for people … to escape systematic digital surveillance”. They further highlight that the ability of AI to remember personal data might help hackers to carry out spear phishing and identity theft attacks.

Strategies for Protecting Prompt Privacy

Prompts have to be considered sensitive input, just like code or queries, and be handled under the same controls as these assets. Security starts with input validation and output sanitization. According to Nachreiner, it is important to use threat intelligence for blocking known jailbreak patterns and removing sensitive information before the inputs get to the models. The outputs have to be sanitized too since the models are nondeterministic.

Least privilege for AI agents makes sure that no matter how compromised the model is, it will not be able to do something harmful. It is also crucial to outline which cases of AI usage are permitted, restricting models to process personal or customer data without consent. Monitoring and auditing all interactions of agents, including logging prompts and responses, make sure that any deviation is visible.

Conclusion

The concept of prompt privacy stands right where data security, application security, and AI governance meet. On the one hand, natural language interfaces that provide access to generative AI models open a door for attacks from malicious actors, and the fact that it is already happening is a reminder from experts that the instruction-following capabilities of LLMs can be used against them by hackers, who would control compromised AI agents and act using the privileges of their users.

Given that regulations are tightening when it comes to security and privacy of AI, and that experts are calling for better protection of personal data within the scope of generative models, it is time for cybersecurity specialists to adapt long-standing data security principles to prompt privacy.

Recent Articles By Author