Skip to content

Security: box-community/box-remote-mcp-proxy

Security

SECURITY.md

Security Configuration

The Box MCP Proxy supports multiple token storage methods for enhanced security.

Storage Options

Set the TOKEN_STORAGE_TYPE environment variable to choose your storage method:

1. Keyring Storage (Recommended)

export TOKEN_STORAGE_TYPE="keyring"
  • Stores tokens in OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service)
  • Tokens are encrypted by the OS and require authentication to access
  • Most secure option for persistent storage
  • Requires keyring package: pip install keyring

2. Memory Only Storage

export TOKEN_STORAGE_TYPE="memory"
  • Stores tokens only in memory during runtime
  • Maximum security - no persistent storage
  • Requires re-authentication on every restart
  • Ideal for high-security environments

3. Encrypted File Storage

export TOKEN_STORAGE_TYPE="encrypted"
  • Encrypts tokens using system-derived key before storing to file
  • Better than plaintext but key derivation is visible to local users
  • Requires cryptography package: pip install cryptography
  • File stored at location specified by TOKEN_FILE

4. Plaintext Storage (Not Recommended)

export TOKEN_STORAGE_TYPE="plaintext"
  • Stores tokens in plain JSON file
  • Only recommended for development/testing
  • File permissions set to 600 (owner read/write only)

Security Best Practices

  1. Use keyring storage for production deployments
  2. Set restrictive environment variable permissions
  3. Regularly rotate Box app credentials
  4. Monitor access logs for unauthorized usage
  5. Use memory storage for maximum security in sensitive environments

Migration

To migrate between storage types:

  1. Set new TOKEN_STORAGE_TYPE
  2. Restart the proxy (will require re-authentication)
  3. Delete old token files if switching from file-based storage

There aren’t any published security advisories