API Authentication Strength Calculator
Score API authentication on mechanism, credential entropy, rotation, replay protection, secret storage, MFA and lockout.
Inputs
Weight 12
Weight 10
Weight 12
Weight 10
Weight 8
Authentication Score
71/ 100
Authentication Grade
C — Fair
Credential Entropy
Strong — guessing is not a practical path
Weakest Link
Replay protection — add a signed nonce and timestamp
Residual Exposure
29%
Replay Exposure
Exposed — any captured request can be replayed verbatim
Step by step
Values used
Authentication mechanism = HMAC-signed requests — 22; Credential entropy = 128 bits; Nonce and timestamp replay protection = No; Credential rotation interval = 90 days; Least-privilege scopes per credential = Yes; Secrets held in a KMS or vault, never in source = Yes; MFA on the human path that issues credentials = Yes; Failed-attempt throttling or lockout = No
API Authentication Strength
Authentication score = mechanism (28 mTLS … 0 none) + entropy score (10 at ≥256 bits … 0 below 32) + rotation score (10 at ≤30 days … 0 above a year) + 12 replay protection + 12 secret storage + 10 scoping + 10 MFA on issuance + 8 lockout = 100.
Authentication Score
= 71 / 100
Authentication Grade
= C — Fair
Credential Entropy
= Strong — guessing is not a practical path
Weakest Link
= Replay protection — add a signed nonce and timestamp
Residual Exposure
= 29
Replay Exposure
= Exposed — any captured request can be replayed verbatim
How it works
The mechanism carries the largest weight because it decides what an attacker needs to steal: a private key that never leaves the client, a short-lived token, or a static string that works forever. Entropy, rotation and storage then determine how likely that credential is to leak and how long a leak stays useful. Most API breaches are not exploits but credentials — a key committed to a repository, a token in a log, a shared secret that has not rotated since the integration went live.
Formula
API Authentication Strength
Authentication score = mechanism (28 mTLS … 0 none) + entropy score (10 at ≥256 bits … 0 below 32) + rotation score (10 at ≤30 days … 0 above a year) + 12 replay protection + 12 secret storage + 10 scoping + 10 MFA on issuance + 8 lockout = 100.
- mechanism
- How the caller proves identity
- entropy score
- Credential length in bits, scored
- rotation score
- How often credentials are replaced
Frequently Asked Questions
How is API Authentication Strength calculated?
Authentication score = mechanism (28 mTLS … 0 none) + entropy score (10 at ≥256 bits … 0 below 32) + rotation score (10 at ≤30 days … 0 above a year) + 12 replay protection + 12 secret storage + 10 scoping + 10 MFA on issuance + 8 lockout = 100. The mechanism carries the largest weight because it decides what an attacker needs to steal: a private key that never leaves the client, a short-lived token, or a static string that works forever. Entropy, rotation and storage then determine how likely that credential is to leak and how long a leak stays useful.
Why does API Authentication Strength matter?
Most API breaches are not exploits but credentials — a key committed to a repository, a token in a log, a shared secret that has not rotated since the integration went live.
What values do I need to enter?
This calculator takes 8 inputs: Authentication mechanism, Credential entropy, Nonce and timestamp replay protection, Credential rotation interval, Least-privilege scopes per credential, Secrets held in a KMS or vault, never in source, MFA on the human path that issues credentials, Failed-attempt throttling or lockout. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Is HMAC request signing better than a bearer token?
For server-to-server calls, usually yes. The signing key never travels, so a captured request cannot be replayed against another endpoint, and adding a nonce and timestamp to the signed payload blocks replay entirely. Bearer tokens are simpler and fine when they are short-lived and sent only over TLS.
You might also need
- API Gateway Security CalculatorCommonly used together
- API Security Score CalculatorCommonly used together
- JWT Security CalculatorCommonly used together
- Webhook Verification CalculatorCommonly used together
- Session Fixation Risk CalculatorCommonly used together
- OWASP Risk CalculatorAlso in Web & API Security