n4nAI

Topic

Prompt Injection & Red-Teaming

13 posts on prompt injection & red-teaming — part of developer tools on the n4n AI blog.

Developer toolsHow-to

Testing for indirect prompt injection via tool outputs

Step-by-step guide to testing indirect prompt injection in tool outputs: build a red-team harness, craft malicious payloads, and verify model compliance.

4 min read
Developer toolsHow-to

Testing for data exfiltration via prompt injection

A practical how-to for testing data exfiltration prompt injection attacks against LLM apps, with runnable code and verification steps for red-teaming.

3 min read
Developer toolsHow-to

System prompt leakage: how to test for exposure

Step-by-step guide to testing for system prompt leakage: build probes, run extraction attacks, detect exposures, and wire automated checks into your CI.

3 min read
Developer toolsGuide

Red-teaming multi-agent systems for cascading failures

A practical guide to red-teaming multi-agent LLM systems: map trust boundaries, simulate injections, and test cascading failures before production.

3 min read
Developer toolsHow-to

Red-teaming agents that browse the web on your behalf

Practical steps to red-team web-browsing LLM agents against prompt injection, from isolated harness to automated attack suites and CI.

3 min read
Developer toolsDefinition

Prompt injection vs jailbreaking: what's the difference

Explains prompt injection vs jailbreaking with code examples: definitions, attack mechanics, real-world impact, and misconceptions for LLM engineers.

4 min read
Developer toolsListicle

Prompt injection testing: a starter checklist

A practical prompt injection testing checklist for engineers shipping LLM features: cover direct injection, indirect, tool use, eval automation, and guardrails.

3 min read
Developer toolsAnalysis

Prompt injection defenses that hold up under testing

Practical analysis of effective prompt injection defenses that survive red-team testing, with code patterns and tradeoffs for engineers building LLM apps.

4 min read
Developer toolsHow-to

How to red-team a customer support agent built on GPT-5

A practical step-by-step guide to red-teaming a GPT-5 customer support agent: discover prompt injection, jailbreaks, and policy bypasses with runnable code.

3 min read
Developer toolsComparison

How Claude Opus 4.5 and GPT-5 handle adversarial prompts

A head-to-head breakdown of Claude Opus 4.5 vs GPT-5 adversarial prompt handling across capabilities, cost, latency, ergonomics, and limits.

4 min read
Developer toolsGuide

Building a red-team test suite for RAG applications

Practical guide to building a red-team test suite for RAG applications: threat modeling, adversarial corpora, automated injection generation, and CI harness.

4 min read
Developer toolsTutorial

Automating prompt injection tests in your CI pipeline

Hands-on tutorial: automating prompt injection tests in CI with pytest and GitHub Actions to catch LLM instruction leaks before they reach production.

3 min read
Developer toolsListicle

A library of prompt injection test cases to start with

A practical prompt injection test case library with concrete red-teaming scenarios, example payloads, and code to bootstrap your LLM security tests.

3 min read