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.state = os.path.join(self.tmp, "state") os.makedirs(self.state) os.environ["SUBSCRIPTION_AUDITOR_STATE_DIR"] = self.state self.env = os.environ.copy() def tearDown(self): shutil.rmtree(self.tmp, ignore_errors=True)
