Logo vun Auditing The Lethal Trifecta

Auditing The Lethal Trifecta

Organisatioun
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.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-the-lethal-trifecta
Stären
27
Forks
8
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum UnboundCompute op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing The Lethal Trifecta an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-the-lethal-trifecta
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing The Lethal Trifecta an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing The Lethal Trifecta automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing The Lethal Trifecta net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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).

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Auditing The Lethal Trifecta op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing The Lethal Trifecta besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing The Lethal Trifecta an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-the-lethal-trifecta an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing The Lethal Trifecta benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing The Lethal Trifecta benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing The Lethal Trifecta domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing The Lethal Trifecta gratis?

Jo. De Skill gëtt vum UnboundCompute ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇