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 process.exit(1); }}); """ env = os.environ.copy() if node_modules: existing = env.get("NODE_PATH", "") env["NODE_PATH"] = node_modules if not existing else node_modules + os.pathsep + existing
