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 self.sentinel = self.base / "outside-sentinel" self.sentinel.write_text("preserve me") self.log = self.base / "calls.jsonl" self.env = dict(os.environ, PATH=str(self.bin) + os.pathsep + os.environ['PATH'], CLAWHUB_WORKDIR=str(self.workspace), CALL_LOG=str(self.log), SENTINEL=str(self.sentinel), SNYK_TOKEN="mock-authentication-only")
