Prompt injection is an old hack with a new victim
Nov 25, 2026
Prompt injection hides instructions inside content an AI agent reads, such as an email, a repo's documentation, or a ticket reply. Attackers have abused systems that mix instructions and data for decades, from phone tones to SQL queries, and the usual fix was to separate the two. A language model reads both as plain text, so no clean separation exists and no filter catches every attempt. On an endpoint where the agent runs with admin rights, one missed injection can install software and start moving data out.
Is prompt injection new? Admins who've watched attackers tamper with code for their whole careers tend to ask this question, usually with a raised eyebrow, and I get it. Hackers were slipping bad instructions into places meant for harmless data long before anyone had an AI agent.
I'd say yes and no. The technique is old. The new part is who gets fooled and what that attacker is allowed to do on your network, and that's where LLM security teams should spend their time.
What is prompt injection?
The phone network makes the cleanest example I know. In the early days, the tones that told the switches what to do traveled on the same line as your voice, so control and conversation shared one channel. Then somebody noticed that a toy whistle packed in boxes of Cap'n Crunch produced 2600 hertz, the tone the network used to a line for a long-distance call as idle, enabling a free-of-charge connection. A kid with a cereal prize could suddenly speak the phone system's own language. The fix took years and it was structural: move the signaling out of the voice channel so nothing a caller said could ever be mistaken for an order.
The same story keeps replaying with different parts. In 1988 the Morris worm fed an oversized string to a service that expected a short name, and the overflow ran as code. In 1999 Melissa rode into inboxes inside a Word document, because documents were allowed to carry macros. In the late 1990s, SQL injection let whatever someone typed into a web form rewrite the database query behind it. Each time, data got treated as instructions, and each time the lasting fix was to pull the two apart again. Parameterized queries are the best-known example: the database receives the command and the user's text separately, so the text can never be read as a command.
Prompt injection is that mistake made by a language model, which takes one stream of natural language and has to guess which words are the boss and which just arrived in an email. Parametrized queries, however, are not applicable to LLM prompts which rely on natural languages for input.
My position is that with no way to separate the channels, you assume an injection will eventually work and decide ahead of time what the agent can touch when it does. Large language model hacking risks grow with whatever the model is allowed to do, so the permissions deserve your attention.
Indirect prompt injection
Direct injection is the easy one to picture. Somebody types "ignore your instructions" into a chat box, and the guardrails either catch it or they don't. Indirect prompt injection is nastier, because the attacker never touches the chat window. They leave text where the agent will read it, such as a web page, a retrieved document, a ticket reply, or a comment in someone's code. A human doesn't have to be able to see it. White text on a white background works, and so does text hidden in a file's metadata or inside an image.
Think of an intern who follows any sticky note found on the desk, even one that showed up overnight, and who holds your login. The desk is your inbox and your help desk queue, and anyone can leave a note on it, which is AI prompt injection in a sentence.
Prompt injection examples
An email assistant summarizes the inbox over coffee. One message carries white text on a white background telling it to download a file and run it in PowerShell. The assistant runs as the signed-in user, who happens to be a local admin, so the file installs with admin rights. The summary arrives looking perfectly normal.
A coding agent opens a repository to fix a bug and reads the docs first. A comment in the documentation says to run a setup script in the terminal before continuing, so it does. Nobody typed a malicious prompt, and the repo looked like every other repo.
Prompt injection attack
A desktop or command-line agent normally runs as the signed-in user and holds that user's rights. With local admin, that's super admin powers on the box, and a successful prompt injection attack can install software and tamper with security settings. With a standard account, the injected instruction runs into a wall.
The tooling around agents makes this more pressing. Many agents now write and run code to call their tools, and an agent without an MCP connector for a task often falls back to the command line. Either way, the work ends up as a process on your endpoint using a person's rights. Regulated industries moving to open weight models trained on their own data aren't exempt, because the weakness lives in how language models read text, and hosting the model yourself doesn't change that.
Admins have heard "remove local admin rights" for a long time, and our own research puts a number on ignoring it. In the Netwrix 2026 Data and Identity Security Report, 41% of organizations already run agentic AI in production, and breach rates climbed another 14 points where overprovisioning was widespread and another 7 where standing privileged access was the norm.
Prompt injection prevention: Why I wouldn't bet on filters
Run them, by all means. But attackers answer a pattern matcher by changing the pattern, with new phrasing, another language, an encoded payload, or text hidden in an image. Guardrails live inside the same decision loop the attacker is targeting, so a prompt that gets through arrives at an agent that already holds real permissions. Grounding the model in your own documents or fine-tuning it on your data doesn't cure the problem, and every retrieved document is one more place to hide a note.
I'd rather put the weight on the part you control. Role-based access control on the agent's account limits what it can reach in applications and data. The endpoint sets a second limit, and that one decides whether an injected command runs at all. Logs tell you how far each attempt got.
Take away the keys: Least privilege on the endpoint
Netwrix PolicyPak does this job on the endpoint through Group Policy, MDM such as Intune, or PolicyPak Cloud, so it works the same on-prem, off-prem, or hybrid.
Least Privilege Manager comes first. It lets you remove local admin rights and then give specific applications the rights they need, using rules based on path, hash, signature, or file, so people and agents keep working without a standing admin account. Admin Approval handles the one-off exception, and audit events show which applications will need rules before you take anything away. When you remove local admin rights, try to do it in stages and make sure to notify the affected users in advance. Think hard before letting a privileged app pass its rights to child processes, because a child that inherits those rights is an escape hatch.
SecureRun is my favorite for this problem, because it ignores what a file claims and what the agent says. It looks at who owns the file. Anything a user downloads or copies is owned by that user, and since users aren't on the SecureRun Members list, the executable, MSI, script, or Java JAR is blocked. Most script types are covered, including PowerShell, BAT, CMD, and JS. Back to the email assistant: it writes the downloaded file as the signed-in user, so the file is untrusted and the run stops cold. The repo's setup script should hit the same wall: the user who owns the local copy of the repo is blocked from running the script aga.inst it because of not being on the SecureRun Members list
You can also shut tools off outright. A deny rule on the computer side blocks PowerShell or PsExec for user processes and system processes alike, with exceptions for specific signed scripts when something needs them. Enhanced SecureRun extends the untrusted-file check to processes running as LOCAL SYSTEM, which matters when an injected command climbs the ladder.
Turn on auditing before you enforce anything. The auditing settings write events for applications that need elevation and for applications SecureRun would block. Event 6210 flags an untrusted application, so you can write allow rules for known software and then switch enforcement on. Forward those events to a central location such as Netwrix Auditor and you have a record of what your agents tried to run.
Prompt injection defenses compared
Defense layer | What it does | Where it falls short | Netwrix PolicyPak role |
|---|---|---|---|
|
Input filtering and prompt guardrails |
Flags known injection patterns |
New phrasing, encodings, hidden text, and images get through |
Works alongside, covers what filters miss |
|
Model hardening |
Trains the model to resist instructions in data |
Varies by model, no guarantee |
Works alongside |
|
Output validation |
Checks the action before it runs |
Depends on rules written in advance |
Works alongside |
|
Role-based access control |
Limits what the agent's account can reach in apps and data |
Doesn't limit what runs on the device |
Endpoint controls cover the device |
|
Human approval |
A person confirms risky actions |
Slows work and invites approval fatigue |
Elevation rules reduce how many approvals are needed |
|
Least privilege on the endpoint |
Limits what any process can do |
Doesn't detect the injection |
Least Privilege Manager removes local admin and sets secure elevation |
|
Application and script allowlisting |
Blocks untrusted apps and scripts |
Needs policy up front |
SecureRun checks file ownership and blocks untrusted files |
Five things to do this week
- List which AI agents run on which endpoints, and which accounts they run as.
- Find which of those accounts have local admin rights, and remove them in stages.
- Turn on audit events for applications requiring elevation and for untrusted applications, then review what the policy would block.
- Enable SecureRun and write allow rules for the software you know.
- Deny PowerShell and PsExec where nothing needs them, and allow signed scripts where something does.
See least privilege and SecureRun on your own endpoints with Netwrix PolicyPak. Try free.
Prompt injection FAQs
Share on
Learn More
About the author
Jarosław Bogalecki
Product Manager
Jarosław Bogalecki is a Product Manager at Netwrix, responsible for PolicyPak and Password Policy Enforcer. He has worked in technical roles since 2019, with a passion for product strategy, AI, and building solutions around real customer problems. Prior to Product Management, he worked in Application Engineering and Technical Consulting.
Learn more on this subject
MCP vs CLI: What happens when your AI agent can’t find the connector
Endpoint DLP as a compliance response: What regulators ask
Endpoint Protector picks up 8 G2 badges for Fall 2026
Your AI policy is just paper without endpoint enforcement
Active Directory isn't going away. Your group policy setup might be as brittle as COBOL