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 if gcc is None: return None, None bindir = os.path.dirname(os.path.abspath(gcc)) env = dict(os.environ) # 关键一步:cc1.exe 靠 PATH 找同目录 DLL env["PATH"] = bindir + os.pathsep + env.get("PATH", "") return gcc, env
