Env Variable Harvesting
- Category
- Data Exfiltration
- Confidence
- 60% confidence
- Finding
Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.
- Content
python def _env(repo_root: Path) -> dict[str, str]: env = os.environ.copy() existing = env.get("PYTHONPATH", "") env["PYTHONPATH"] = str(repo_root) if not existing else f"{repo_root}:{existing}" return env
