Credential Access
High
- Category
- Privilege Escalation
- Confidence
- 70% confidence
- Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
- Content
md - Set `M365_MCP_READ_ONLY=true` for an enforced least-privilege mode. It requests read-only OAuth scopes, omits mutating tools from discovery, and rejects direct calls to them. - Refresh and access tokens are stored as plaintext JSON under `~/.m365-mcp/auth/` (or `M365_MCP_AUTH_DIR`), protected with directory mode `0700` and file mode `0600` where supported. Protect that directory and revoke the app's Microsoft account consent if a token or device is compromised.
