Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› Algorithm Allowlist
Authentication, Authorisation & Trust

Algorithm Allowlist

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Authentication, Authorisation & Trust

A configured list of permitted cryptographic or signing algorithms that a system will accept, rejecting all others. It blocks downgrade attacks and token tricks such as the JWT "none" algorithm or switching from asymmetric to symmetric verification. Set the list explicitly on the verifier, not from the token header, and remove weak algorithms such as MD5 and SHA-1 signatures.

What an algorithm allowlist does

An algorithm allowlist is a verifier-side control that accepts only approved cryptographic or signing algorithms and rejects everything else. Its job is to make the algorithm choice explicit and predictable, so the system does not trust attacker-controlled input for security-critical verification decisions.

This matters because many signature and token abuses begin with algorithm confusion or downgrade attempts. If the verifier treats the token as the source of truth for which algorithm to use, an attacker may be able to steer validation toward a weaker or unintended path.

Why algorithm allowlists exist

Allowlisting is most useful where the protocol or token format permits multiple algorithms, but the application should only support a narrow subset. That is common in JWT and other signed-token flows, where the security boundary depends on the verifier enforcing its own policy rather than reflecting back the token header.

The control also reduces legacy exposure. Weak algorithms such as MD5 or SHA-1 signatures should be excluded when they are no longer acceptable for trust decisions, and the allowlist should be reviewed whenever a product adds new signing options or changes its crypto library defaults.

How allowlists differ from general algorithm support

Supporting an algorithm and allowing it are not the same thing. A library may be capable of verifying several algorithms, but the application should still pin the exact set it will accept for a given context, such as a specific issuer, token type, or trust relationship.

That distinction is especially important for asymmetric and symmetric verification. A verifier that accepts both without a deliberate policy can create key confusion or downgrade exposure, because the security properties of each mode are very different and the attacker may try to move the system onto the weaker interpretation.

Where the control belongs in the verification flow

The allowlist belongs on the verifier, not in the token or message being checked. The application should decide which algorithms are valid before parsing the untrusted payload for trust decisions, and it should fail closed when the presented algorithm is outside policy.

For teams testing authentication and token handling, Authentication Protocol Security Testing is the most direct way to validate negative cases such as algorithm downgrade, alg: none, and JWT key-confusion paths. As a design reference, NIST SP 800-57 Key Management is useful for understanding how algorithm choice, key lifecycle, and cryptoperiod decisions fit together.

Risk and Threat Considerations

Algorithm allowlists are a defensive control against a class of verification failures that can silently turn a signed token into an unsigned or weakly signed one. The main risk is not just broken integrity, but a trust decision that appears valid while relying on the wrong verification rule.

Failure mechanism: An attacker supplies a token or signed object that exploits algorithm confusion, downgrade behavior, or acceptance of deprecated algorithms, causing the verifier to validate something it should have rejected.

Impact: Successful exploitation can lead to forged assertions, unauthorized access, signature bypass, or long-lived trust in tokens and messages that should never have been accepted.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-57, OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-57Key ManagementAlgorithm selection and key lifecycle are tightly coupled in signed-token verification.
Recommendation — Align approved algorithms with key lifecycle policy and retire weak combinations promptly.
OWASP ASVSV10 — OAuth and OIDCJWT and OIDC verification depend on strict handling of allowed algorithms and token metadata.
Recommendation — Enforce verifier-side algorithm restrictions and reject token-controlled algorithm switching.
NIST SP 800-53 Rev 5SC-13 — Cryptographic ProtectionThe term is about enforcing approved cryptographic protections for verification integrity.
Recommendation — Require approved cryptographic mechanisms and prohibit deprecated algorithms in trust decisions.

Practitioner Guidance

Why practitioners should care: Treat the allowlist as a security policy, not a compatibility hint. If product teams leave it implicit, library defaults or token-controlled algorithm selection can become the real policy, which is exactly what attackers try to abuse.

What to watch for: Review any code path that accepts user-supplied algorithm metadata, permits multiple verification modes, or inherits crypto defaults from a framework. Those are the places where downgrade and key-confusion bugs tend to appear first.

Practitioner takeaway: Keep the accepted algorithm set small, explicit, and verifier-owned, then test negative cases whenever the token format, issuer, or crypto library changes.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org