Tainted flow: 'req' from os.environ.get (line 291, 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 return _LLM_STATS["available"] try: req = urllib.request.Request("http://localhost:11434/api/tags") with urllib.request.urlopen(req, timeout=5) as resp: data = json.loads(resp.read().decode("utf-8")) names = {m.get("name", "") for m in data.get("models", [])} _LLM_STATS["available"] = OLLAMA_MODEL in names
