atlantic automation
Cybersecurity

Red-teaming the LLM stack you just deployed.

Your agents can read data, call tools, and act. A practical framework for adversarial testing of LLM systems: prompt injection, tool abuse, retrieval poisoning, and the controls that actually hold.

June 17, 20267 min readBy Atlantic Automation

Somewhere in your company right now, an LLM system has access to customer data, an internal API, and the authority to act. It got there through a product review instead of a security review. It shipped as a feature, and features don't get threat models.

That's the uncomfortable position security teams inherited this year: a new class of system, deployed at feature speed, with an attack surface that doesn't map to the OWASP muscle memory the team already has. LLM systems fail differently. They can be talked into things.

The attack surface in four layers

The layers compound. An indirect injection (layer two) that triggers a tool call (layer three) against over-permissioned data access (layer four) is the canonical modern incident, and no single-layer test catches it.

  • The model layer: jailbreaks and instruction override, which get the system to ignore its policy and follow the attacker's.
  • The context layer: indirect prompt injection, meaning hostile instructions planted in the emails, documents, tickets, and web pages your system reads as 'data.'
  • The tool layer: abuse of what the agent can do, including exfiltration through legitimate tool calls, privilege escalation through chained actions, and side effects the designer never enumerated.
  • The retrieval layer: poisoning and leakage, which means corrupting what the system knows or extracting documents the requesting user was never entitled to see.

How to actually red-team it

Start from crown jewels, not from prompts. What data can this system reach, what actions can it take, and what's the worst credible combination? That inventory (every tool, every data scope, every downstream effect) is half the value of the exercise, because it routinely surfaces access nobody remembers granting.

Then attack in the system's operating reality. Feed hostile content through the same channels production uses: an email the assistant summarizes, a document the RAG pipeline ingests, a ticket the support agent triages. Single-shot prompt testing against a chat window tells you almost nothing about an agent embedded in workflows.

Chain, persist, and measure. Real adversaries go past 'the model said something bad.' They establish a foothold in retrieved context and work the tool layer across sessions. Score findings by consequence (what was exposed or done), not by whether the transcript looks embarrassing.

Controls that hold up

  • Least-privilege tools: narrow scopes, allowlists, and human approval gates on irreversible or high-value actions.
  • Trust boundaries in context: treat retrieved and user-supplied content as untrusted input, structurally separated from instructions.
  • Egress discipline: constrain where data can flow out (URLs, recipients, payload sizes), because exfiltration is what real attackers are after.
  • Continuous adversarial evals: your red-team corpus becomes a regression suite that runs on every prompt, model, and tool change.
  • Full-fidelity logging of tool calls and context, so incident response can reconstruct what the system saw and did.

One test is a snapshot; the stack underneath it changes monthly. The teams in good shape treat LLM red-teaming the way they treat pen testing: a standing program with regression suites and an owner, not an annual event. It's a core practice of ours as a cybersecurity partner, born of building these systems as well as breaking them. If you'd like your stack tested by people who do both, you know where to find us.

Related serviceCybersecurity
Let's build

Tell us the outcome you need.

Building something ambitious, holding a portfolio company that needs to move, or ready to give your team its time back? A partner replies within one business day.