block-exfiltration-via-markdown-image-fetch
Use when you render or emit markdown, HTML, or chat messages containing text you did not fully author. Detect and strip remote-image and link fetches that would carry data out in a URL.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- block-exfiltration-via-markdown-image-fetch
- description
- Use when you render or emit markdown, HTML, or chat messages containing text you did not fully author. Detect and strip remote-image and link fetches that would carry data out in a URL.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md369 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Block exfiltration via markdown image fetch
A markdown image whose URL carries a secret leaks it the moment the message renders, because the client fetches it. This skill finds the auto-loading channels and neutralises them before output leaves your hands.
Procedure
-
Search your intended output for any construct that triggers a fetch: markdown images, HTML
<img>, iframes, CSSurl(), and<link rel=preload>.grep -nE '!\[[^]]*\]\([^)]*\)|<img |url\(|src=' draft.md -
Parse each URL and look for data appended to it — query strings, path segments, or fragments carrying anything beyond a static asset name:
grep -oE 'https?://[^) "]+' draft.md | awk -F'[?]' 'NF>1{print $1}' -
Rewrite remote images to plain text references or inline local ones. Emit the alt text plus the domain so a human can decide, rather than a client fetching blindly.
-
In HTML, forbid auto-fetch with a policy: a CSP of
img-src 'self' data:blocks remote pixels when your renderer honours it. -
Decode a suspect URL before trusting the "filename": base64 or hex in the path is the payload.
printf '%s' "$SEG" | base64 -d 2>/dev/null | head -c 200 -
Strip tracking pixels sized
1x1and any image whose host is not on the allowlist of legitimate CDNs your content uses. -
Re-render and re-scan until the output contains no remote fetch, then check the wire once in a test client to confirm no request fires.
Pitfalls
- A safe-looking
?id=can be the secret; the client sends it whether or not the server logs it, and DNS leaks the subdomain. - Pasting into a rich-text editor can re-fetch before your scan runs; sanitise in the data layer first.
- Markdown
[link](url)is click-triggered, but many previewers prefetch it; treat links as fetch-capable too. - Alt text and
srcsetare often overlooked and carry the same payload.
Verification
grep -cE '!\[[^]]*\]\(https?://|<img ' out/rendered.md # must be 0 for non-allowlisted hosts
Report: "scanned <file>; remote-fetch constructs n found, n rewritten; remaining hosts <list> all allowlisted."
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.