Context-Inappropriate Capability
High
- Confidence
- 99% confidence
- Finding
- `getAuthHeaders()` calls `writeLog()` with `keyenv: process.env.DATAPILOT_API_KEY`, which records the full environment API key to `dataagent_cli.log`. This creates a local credential disclosure risk because anyone with access to the log file can reuse the bearer token/API key to access the DataPilot service, and the surrounding code misleadingly suggests secrets are sanitized.
