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 config,inv=inventory(root) if action=='cli-status': binary=shutil.which('openclaw');require(binary,'OpenClaw CLI is not installed on this host') env={**os.environ,'OPENCLAW_STATE_DIR':str(root),'OPENCLAW_CONFIG_PATH':str(root/'openclaw.json')};rows=[] # Only read-only CLI commands. No model calls, repair, update, restart or sends. for args in [['--version'],['gateway','status','--json'],['agents','list','--json']]: try:
