Explainer AI & ML 6 min read

What five official documents on prompt injection agree on

Prompt injection is when a document an AI model reads carries instructions the model then obeys. We compared what OWASP, the UK NCSC, the 2023 joint secure AI guidelines, Singapore's CSA and NIST advise against it, and none of them says it can be prevented.

Kenji Tanaka
Developer Tools & Cloud Analyst
Published 22 Nov 2026, 9:48 AM (SGT)
Share:
Lines of programming code in coloured syntax highlighting on a dark editor screen
Photo by JohnsonMartin on Pixabay
Advertisement

Prompt injection happens when text an AI model is asked to read, such as a supplier's email or an invoice, carries instructions that the model then follows as if its owner had given them. On 21 November 2026 we read five official or standards documents on it side by side. None of the five says it can be prevented. Two say plainly that no current method fully stops it, and OWASP says it is unclear whether a fool-proof one exists. The advice most widely shared works outside the prompt, while wrapping a document in tags as data is hedged by every document that gives it.

How the documents line up on each measure

They are OWASP's 2025 LLM risk entries LLM01 and LLM07; the UK NCSC post "Prompt injection is not SQL injection (it may be worse)", 8 December 2025; the Guidelines for secure AI system development, 27 November 2023, from the NCSC, the US CISA and partners; Singapore CSA's Guidelines and Companion Guide on Securing AI Systems, 15 October 2024; and NIST AI 100-2 E2025, March 2025.

The marks are ours. "Partly" means a narrower version, "differs" a different framing, and "silent" that a text search found nothing. The five are not independent. The NCSC wrote the blog and co-published the 2023 guidelines, and CSA, one of their partners, has a logging sentence that closely follows theirs.

MeasureOWASPNCSC blogJoint 2023CSANISTYes, of 5
Tag untrusted contentyesyessilentpartlyyes3
Say it is datapartlypartlysilentsilentyes1
Limit the modelyesyesyespartlyyes4
Human approvalyessilentpartlyyessilent2
Check inputs, outputsyespartlyyesyesyes4
Loggingsilentyesyesyesyes4
Prompt is no controlyessilentsilentsilentdiffers1
No full preventionpartlyyessilentsilentyes2

OWASP text is quoted under its site's CC BY-SA 4.0 licence. NCSC text contains public sector information licensed under the Open Government Licence v3.0.

Prevention is claimed by none of the five

NIST says "current mitigations do not offer full protection against all attacker techniques". The NCSC warns that such attacks "may never be totally mitigated in the way that SQL injection attacks can be", because current models "simply do not enforce a security boundary between instructions and data inside a prompt". OWASP is more guarded, writing that "it is unclear if there are fool-proof methods of prevention for prompt injection". Our guide to AI vocabulary follows the NCSC's structural point into tool results.

Advertisement

The 2023 guidelines and CSA leave the question alone; CSA's worked example speaks of residual risk instead. To buyers, the NCSC says "Beware any that claim they can 'stop' prompt injection".

Limiting what the model may do has the widest support

OWASP asks builders to "handle these functions in code rather than providing them to the model"; for an assistant reading supplier invoices, paying one would stay in code the model cannot reach. The NCSC wants "deterministic (non-LLM) safeguards that constrain the actions of the system" and says, crediting a public discussion, that a model reading a party's text should hold only that party's privileges. Where AI components trigger actions, the 2023 guidelines ask for "appropriate restrictions to the possible actions". NIST describes giving separate models different permissions. CSA applies least privilege to development and deployment environments, hence "partly".

Input and output checks come with an NCSC warning

The 2023 guidelines call for "checks and sanitisation of data and inputs", and CSA for guardrails or input validation. NIST says detectors built on language models "may provide supplementary assurance" yet are "also vulnerable to attacks". OWASP, most concretely, says to define the expected output format and "use deterministic code to validate adherence".

The NCSC is wary of approaches like "deny-listing" or blocking "known bad in content". Checking in code that an invoice total is a well-formed amount differs from banning phrases, so both positions can hold.

Tagging a document as data is advised with hedges

OWASP says to "Separate and clearly denote untrusted content to limit its influence". The NCSC writes that "even strategies like including externally-supplied content within XML tags can help". NIST describes wrapping input in XML tags as "attempting to clearly separate system instructions from user prompts". CSA, going its own way, suggests wrapping the instructions in salted tags.

Telling the model outright to disregard instructions in untrusted data is a method NIST describes. OWASP's nearest measure is broader. The NCSC doubts that family of ideas, which overlay "a concept of 'instruction' and 'data'" on a technology that does not draw the line. A March 2024 Microsoft paper on spotlighting reported attack success falling from above 50% to below 2% on GPT-family models in its experiments; none of the five treats that research as a guarantee.

Our system prompt builder was revised on 21 November 2026 to add an optional untrusted-content section, saying that documents will arrive between tags and that text inside them is data to read. The "Load an example: invoice reader" button switches the section on, using the default tag "document". Its note says this lowers the chance an injected instruction is obeyed and does not stop prompt injection. Before the revision the builder had no such section, and its page said an explicit "do not" list was what made an assistant "safe to ship".

Only OWASP says the system prompt is no security control

LLM07 says the system prompt "should not be considered a secret" and should not "be used as a security control". It also asks that credentials and connection strings be kept out of it.

NIST, writing from the attacker's side, says system prompts "can therefore be regarded as commercial secrets" and lists detecting prompt theft as a mitigation, while noting such defences "have yet to be proven rigorous".

Logging and human sign-off split the documents

Logging is close to common ground, though with CSA's sentence following the 2023 text, three of the four mentions are independent. The NCSC suggests "logging enough information to identify suspicious activity", including, potentially, the model's full input and output. NIST says monitoring may let deployers "identify and respond" to attacks. OWASP's LLM01 entry never mentions logging.

Human approval is thinner. OWASP says "Require human approval for high-risk actions", and CSA's Companion Guide, at control 4.2.2, asks for human oversight of the model's decisions in critical systems. The 2023 guidelines ask only that users confirm before sensitive data is sent out. The NCSC blog and NIST do not raise it.

Practical limits for an invoice-reading assistant

For an accounts team connecting a model to its inbox, each step has a source among the five.

  1. Give the assistant only the functions the task needs, enforced in your own code (OWASP, the NCSC, the 2023 guidelines).
  2. Check its output against the expected format in ordinary code (OWASP).
  3. Log inputs, outputs and tool use (the NCSC).
  4. Have a person approve payments and other high-risk actions (OWASP and CSA).
  5. Keep passwords, API keys and connection strings out of the system prompt (OWASP LLM07).
Advertisement
Kenji Tanaka
Developer Tools & Cloud Analyst

Kenji Tanaka covers developer tools, cloud platforms, DevOps, CI/CD, and software supply-chain topics for RECATOOLS.

View author profile → · Editorial policy

About this byline Kenji Tanaka is a RECATOOLS editorial persona for developer tools, cloud, DevOps, and software supply-chain coverage. Articles are produced and reviewed under RECATOOLS editorial supervision.

Corrections policy

Go further

Relevant tools

More from AI & ML

Advertisement
Advertisement