Skip to content

Security Review Before You Deploy

LLM applications fail in ways conventional applications do not. The model follows instructions from anywhere in its context, including inside documents it retrieves, which turns your own content into a potential attack surface. This is the pre-deployment list.

Work through before go-live. The permission and prompt-injection sections cause the most real-world incidents, so start there if you are short of time.

Pre-Deployment Security Checklist

Permissions and injection first — they cause the most real incidents.

0 of 30 complete0%

Your ticks are saved in this browser, so you can work through the list over several sessions.

01Permission enforcement

0/6

The most common serious flaw in enterprise retrieval.

02Prompt injection resistance

0/6

Assume it will sometimes succeed. Limit the blast radius.

03Output handling

0/4

Model output is untrusted input to everything downstream.

04Secrets and tool access

0/5

What an attacker gains by influencing the model.

05Logging and monitoring

0/5

Logs often reproduce the documents they retrieved.

06Abuse and cost controls

0/4

Extraction, enumeration and cost exhaustion.

A practical pre-deployment prompt list covering LLM-specific failure modes. It is not exhaustive and does not replace formal security assessment, threat modelling or any obligations under a sector framework.

Why LLM Security Is Different

Three properties make these systems behave unlike conventional applications, and each one invalidates a defensive assumption that normally holds.

Instructions and data are indistinguishable

The model cannot reliably tell the difference between your system prompt and text inside a retrieved document. A malicious instruction hidden in a PDF is, from the model’s perspective, simply more context to follow. There is no equivalent of parameterised queries here.

Retrieval makes access control a security boundary

A retrieval system that ignores document permissions becomes a highly effective tool for surfacing information people should never see. Access control must be enforced at retrieval time, not applied afterwards to results already generated.

Output is untrusted input to everything downstream

Model output rendered into a page, executed as code, or passed to another system is untrusted data. Treating it as trusted because it came from your own application is how prompt injection turns into a conventional vulnerability.

The Six Review Areas

Ordered roughly by how frequently each causes a real incident in production deployments.

1

Permission enforcement

Whether retrieval respects existing entitlements, evaluated per user per query rather than assumed at index time.

2

Prompt injection resistance

What happens when instructions appear inside retrieved documents or user input, and what the blast radius is.

3

Output handling

How model output is treated by whatever consumes it — rendering, execution, or onward transmission.

4

Secrets and tool access

What credentials and capabilities the application holds, and what an attacker gains by influencing it.

5

Logging and monitoring

Whether you would detect misuse, and whether the logs themselves create a new exposure.

6

Abuse and rate controls

Protection against extraction, enumeration and simple cost-exhaustion attacks.

The Four Failure Modes Worth Understanding

Each of these has caused real incidents in production systems. Understanding the mechanism makes the checklist items make sense.

Indirect prompt injection

An attacker places instructions inside a document they can get into your corpus — an emailed invoice, an uploaded CV, a shared file, a web page you index. When the model retrieves that document, it may follow those instructions. The user never typed anything malicious.

  • Assume any content in your corpus may contain adversarial instructions
  • Limit what the model can do so a successful injection has small blast radius
  • Require human confirmation before any consequential action
  • Control who can add documents to the indexed corpus, and review uploads

Permission bypass through retrieval

The most common serious flaw in enterprise retrieval deployments. If the index is built without permissions and filtering happens after generation — or not at all — a well-phrased question surfaces restricted content. The system works exactly as designed; the design was wrong.

  • Filter by user entitlement before retrieval, never after generation
  • Re-evaluate permissions at query time rather than trusting index-time state
  • Ensure permission changes propagate promptly to the index
  • Test explicitly with a low-privilege account asking for restricted content

Over-privileged tool access

Applications given the ability to send email, write to systems or execute code inherit the risk of every instruction the model follows. If a prompt injection can trigger those capabilities, an attacker has effectively acquired them, and they did so by uploading a document.

  • Grant the minimum capability the application genuinely needs
  • Require explicit human confirmation for anything irreversible
  • Scope credentials narrowly and rotate them on a schedule
  • Log every tool invocation with the input that triggered it

Sensitive data in logs and prompts

LLM applications log prompts and responses for debugging, which means logs frequently contain everything the model saw — including retrieved confidential documents. Those logs are often stored with far weaker controls than the source documents they reproduce.

  • Decide deliberately whether full prompts and context are logged
  • Apply the source system’s access controls to the logs as well
  • Set retention on logs consistent with the underlying data classification
  • Consider redaction before logging for high-sensitivity deployments

Next Steps

AI Data Sovereignty Checklist

Where the data goes is a separate question from how it is secured.

Open the checklist

LLM Security and Data Privacy

The longer written guide to securing private LLM deployments.

Read the guide

Private LLM Readiness Assessment

Check the organisational foundations before building anything.

Assess readiness

Frequently Asked Questions

Want This Reviewed Properly?

We review LLM deployments for Australian organisations before they go live, including the permission and injection testing that conventional application testing misses.