Auditing The Lethal Trifecta logo

Auditing The Lethal Trifecta

Organization
UnboundCompute
auditing-the-lethal-trifecta

Find where an AI agent becomes dangerous: the trust context in which access to private data, exposure to untrusted content, and an ability to send data out all coexist. Any two legs are usually safe; all three let planted content make the agent read secrets and exfiltrate them. Use when designing or reviewing a tool-using LLM agent, before granting it a new tool or data scope, or to judge whether a prompt injection is actually exploitable. Covers capability inventory, the three legs, kill-chain construction, and which leg to cut.

Overview

PublisherUnboundCompute
Repositorysecurity-agent-skills
Skill nameauditing-the-lethal-trifecta
Stars
27
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by UnboundCompute on GitHub. Read the source before you install it.

Installation

Install the Auditing The Lethal Trifecta AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-the-lethal-trifecta
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-the-lethal-trifecta .claude/skills/auditing-the-lethal-trifecta
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Auditing The Lethal Trifecta in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Auditing The Lethal Trifecta on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Auditing The Lethal Trifecta is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Auditing the lethal trifecta: the agent exposure condition

An AI agent turns dangerous when three capabilities share one trust context:

  • Private data. It can read secrets, user data, internal systems.
  • Untrusted content. It ingests text an attacker can influence.
  • Exfiltration. It can send data somewhere the attacker can observe.

Any two of these are usually safe. All three together mean an attacker who plants content can make the agent read the private data and route it out, no account takeover required. The trifecta is a structural property of the agent's wiring, which is why it survives prompt-level defenses that a specific payload would slip.

When to use

  • You are designing or reviewing a tool-using agent, assistant, or automation.
  • Before granting the agent a new tool, data scope, or network capability.
  • You found a prompt injection and need to know if it can cause real damage.
  • You are writing or reviewing an agent's permission and egress posture.

Scope check

Audit agents and systems you own or are authorized to test. Do not plant content in or exfiltrate from systems you do not control. If you can't name the authorization, stop.

The loop

  1. Fix the trust context. A context is one session, task, or conversation where content and capabilities mix, sharing the same model instance and memory. The trifecta must co-occur within a single context to bite; audit context by context, not tool by tool.

  2. Inventory capabilities. List everything the agent can read and everything it can do in this context: data stores, credentials, files, internal APIs, network calls, message/PR/email sends, tool invocations, memory writes.

  3. Label each against the three legs. Mark every capability as private-data (leg A), untrusted-content intake (leg B), or exfiltration/egress (leg C). Be honest about indirect legs: a tool that writes to a shared doc an attacker can read is egress; a "read-only" web fetch is untrusted-content intake.

  4. Find the overlap. A context carrying all three legs is a live exposure. Two legs is a latent risk to watch (one added tool completes it). Record which legs each context has.

  5. Build the kill chain. For each trifecta context, write the concrete path: attacker plants content in leg B, the agent ingests it, the injected instruction drives a leg-A read, the result leaves through leg C. If you can trace that chain, the exposure is confirmed; if a leg is missing or isolated, it is killed.

  6. Cut the cheapest leg and record. The fix is to remove one leg from the context: isolate untrusted content behind a data-only boundary, drop or gate egress, scope down data access, or require human approval on the sensitive action. Recommend the leg that costs the least function. Record confirmed exposures and killed contexts (naming the absent leg) in the schema.

Reading the legs honestly

  • Egress hides in benign tools. Posting a comment, opening a PR, writing a file to a synced folder, a "helpful" outbound webhook, even a rendered image URL the agent controls, are all channels an attacker can read. Enumerate them.
  • Reading is enough. Leg A does not require write access. Read plus egress is the whole breach.
  • Untrusted content is broader than "the web." Retrieved documents, tickets, emails, filenames, tool outputs, and other agents' messages are all leg B.
  • Two legs is a design smell. If a context has two, treat the third as one PR away and design the boundary now.

Worked example (a confirm and a kill)

Confirm. A coding agent has repo and .env access (A), reads issues and PR comments from a public repo (B), and can make outbound network requests and open PRs (C). An attacker files an issue containing an injection; the agent ingests it, reads .env, and includes the secret in an outbound request. All three legs in one context, chain traced. Confirmed, critical, remediation = remove egress from the issue-triage context or gate outbound calls behind approval.

Kill. A summarizer agent fetches untrusted web pages (B) but has no access to private data (no A) and only returns text to the user in-band (no external C). Killed, kill_reason = "two legs absent; injection can mislead the summary but cannot read secrets or exfiltrate."

Rationalizations to reject

  • "We have a prompt-injection filter." → Filters are payload-level and bypassable. The trifecta is structural; cut a leg.
  • "The data access is read-only." → Read plus egress is the breach. Read-only does not remove leg A.
  • "Each tool is safe on its own." → True and irrelevant. The exposure is the combination in one context.
  • "No one would plant content there." → Leg B means someone can. That is the definition.

Executing this in practice

You need the agent's real capability set for the context under review: its tool manifest, the data and credentials it can reach, every content source that feeds its context, and its full egress posture (network, writes, messages). Map those to the three legs; the overlap is the finding. The tooling only enumerates capabilities, the trifecta judgment and the kill chain are yours.

Related

  • testing-agents-for-indirect-prompt-injection - the mechanism that drives the kill chain through leg B.
  • auditing-mcp-tool-integrations - where token passthrough and tool egress add leg C, and tool metadata adds leg B.
  • FINDING-SCHEMA.md - the shape every confirmed and killed context takes (source = untrusted channel, sink = the egress action).

Frequently asked questions

What does the Auditing The Lethal Trifecta AI skill do?

Find where an AI agent becomes dangerous: the trust context in which access to private data, exposure to untrusted content, and an ability to send data out all coexist. Any two legs are usually safe; all three let planted content make the agent read secrets and exfiltrate them. Use when designing or reviewing a tool-using LLM agent, before granting it a new tool or data scope, or to judge whether a prompt injection is actually exploitable. Covers capability inventory, the three legs, kill-chain construction, and which leg to cut.

Why use Auditing The Lethal Trifecta on TypingMind?

Because you install it once and use it with any model. Auditing The Lethal Trifecta is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Auditing The Lethal Trifecta in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-the-lethal-trifecta. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Auditing The Lethal Trifecta?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Auditing The Lethal Trifecta?

As many as you like. As long as a model supports skills, you can use Auditing The Lethal Trifecta with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Auditing The Lethal Trifecta AI skill free?

Yes. It is published on GitHub by UnboundCompute under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇