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 "t.McpClient = C\n" "sys.exit(t.main(['search-tours', '--input', '{{}}']))\n" ).format(scripts=str(SCRIPTS), endpoint=self.server.endpoint) env = dict(os.environ, PYTHONIOENCODING="cp1252") proc = subprocess.run( [sys.executable, "-c", script], capture_output=True, env=env, timeout=30 )
