During a STRIDE threat modeling session for an API gateway, you identify a risk where an attacker could intercept data in transit. Which design pattern effectively mitigates this?
Trap 1: Implement OAuth 2.0 scopes on the API gateway.
OAuth 2.0 scopes manage authorization, not transit security.
Trap 2: Use a Hardware Security Module (HSM) to store API keys.
HSM protects keys at rest, not data in transit.
Trap 3: Enable request rate limiting on the gateway.
Rate limiting protects against DoS, not interception.
- A
Implement OAuth 2.0 scopes on the API gateway.
Why it fails: OAuth 2.0 scopes manage authorization, not transit security.
- B
Use a Hardware Security Module (HSM) to store API keys.
Why it fails: HSM protects keys at rest, not data in transit.
- C
Implement Mutual TLS (mTLS) for all inter-service communications.
mTLS authenticates both client and server via X.509 certificates and encrypts the channel, so an interceptor cannot read or impersonate traffic. This directly satisfies the STRIDE information-disclosure risk on inter-service calls, unlike token-based schemes that leave the transport itself unauthenticated.
- D
Enable request rate limiting on the gateway.
Why it fails: Rate limiting protects against DoS, not interception.