External Transmission
Medium
- Category
- Data Exfiltration
- Content
const fs=require("fs"); const apiKey=JSON.parse(fs.readFileSync(process.env.HOME+"/.xcrawl/config.json","utf8")).XCRAWL_API_KEY; const body={url:"https://example.com",crawler:{limit:300,max_depth:3,include:["/docs/.*"],exclude:["/blog/.*"]},request:{locale:"ja-JP"},output:{formats:["markdown","links","json"]}}; fetch("https://run.xcrawl.com/v1/crawl",{ method:"POST", headers:{"Content-Type":"application/json",Authorization:`Bearer ${apiKey}`}, body:JSON.stringify(body)- Confidence
- 88% confidence
- Finding
- This example reads an API key from a local config file and transmits it in an Authorization header to an external third-party service. External transmission is the intended function of the skill, but it still creates real security risk because the skill encourages handling a secret and sending user-supplied crawl targets and possibly page-derived data to a remote provider.
