Tainted flow: 'req' from os.environ.get (line 137, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python API_URL, data=body, method="POST", headers={"Content-Type": "application/json", "x-api-key": key, "anthropic-version": "2023-06-01"}) with urllib.request.urlopen(req, timeout=120) as resp: data = json.loads(resp.read()) return "".join(b.get("text", "") for b in data.get("content", []) if b.get("type") == "text")
