Env Variable Harvesting
High
- Category
- Data Exfiltration
- Content
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- 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.
