Credential Access
High
- Category
- Privilege Escalation
- Content
- 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.
- Confidence
- 95% confidence
- Finding
- access tokens
