Env Variable Harvesting
High
- Category
- Data Exfiltration
- Content
def run(ctx: Ctx, cmd, check=True, capture=False): env = os.environ.copy() env["DISPLAY"] = ctx.display env["XAUTHORITY"] = ctx.xauthority if capture:- 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.
