Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› Cryptography audit
Governance, Ownership & Risk

Cryptography audit

← Back to Glossary
By NHI Mgmt Group Updated October 30, 2026 Domain: Governance, Ownership & Risk

An independent review of cryptographic design, implementation, and protocol behaviour. In practice, it is used to validate claims, uncover edge cases, and confirm whether security findings were fixed, accepted, or left open.

What cryptography audits examine

A cryptography audit is not just a check that encryption exists. It examines whether the chosen primitives, modes, key handling, protocol flows, and implementation details actually deliver the intended security property, and whether the design matches the risk it is meant to reduce.

That usually means reviewing how data is protected at rest and in transit, whether keys are generated and protected correctly, whether cryptographic choices are current and defensible, and whether the system still behaves securely when assumptions fail or edge cases are exercised.

Because cryptography often sits underneath other controls, audit findings can expose gaps that are otherwise invisible, such as a secure algorithm wrapped around weak key rotation, unsafe defaults, or protocol behaviour that undermines the design goal.

Design and implementation review

The design review looks at whether the cryptographic architecture is appropriate for the use case. That includes algorithm selection, trust boundaries, certificate and key hierarchy decisions, and whether the design separates duties cleanly enough to prevent a single failure from collapsing trust.

The implementation review is where small mistakes become security defects. Misused libraries, incorrect randomness, hard-coded secrets, bad nonce handling, weak padding choices, and protocol downgrade paths can all invalidate an otherwise sound design. A cryptography audit therefore tests both the intended model and the actual code path.

For authenticated systems, the review may also touch the surrounding access model because cryptographic material often controls who or what can sign, decrypt, establish sessions, or prove trust. That is why secure key handling is often as important as the cipher itself.

Protocol behaviour and edge cases

Auditing protocol behaviour means checking what happens during negotiation, fallback, error handling, renegotiation, and failure states. Many cryptographic weaknesses are not in the core primitive but in the way systems negotiate versions, accept legacy paths, or recover from partial failure.

Edge cases matter because attackers look for them. An audit may examine certificate validation logic, replay resistance, downgrade protection, state synchronisation, and whether security assumptions remain true under unusual timing or malformed inputs. The goal is to confirm that the protocol protects the relationship it claims to protect, not just the happy path.

This is also where audits confirm whether a reported issue is truly fixed. A change may remove one weakness but leave another reachable variant, so verification has to test the corrected behaviour rather than trust the change record alone.

Evidence, validation, and post-fix assurance

A useful cryptography audit produces evidence, not just opinion. It should show whether a finding was confirmed, rejected, remediated, or accepted with an explicit residual risk decision. That makes the audit valuable for engineering, governance, and future incident review.

When a cryptographic issue has been patched or reworked, the audit should validate the fix in context. That may include retesting the original weakness, checking adjacent code paths, and confirming that the new control does not introduce a different failure mode.

In practice, this assurance step is often what separates a code review from an audit. The latter asks whether the security property now holds in the real system, under realistic assumptions, with the deployed configuration and operational behaviour included.

Risk and Threat Considerations

Cryptographic failures are dangerous because they can create a false sense of protection. A system may appear encrypted or “secure” while key material, protocol handling, or implementation defects still allow decryption, impersonation, replay, or silent downgrade.

Failure mechanism: Weak key management, protocol downgrade, improper validation, or misuse of cryptographic APIs can turn strong algorithms into ineffective controls, especially when the flaw is systematic across many services or integrations.

Impact: The consequence can be exposure of confidential data, compromised session integrity, forged trust decisions, or persistent inability to prove that a finding was actually fixed.

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, NIST SP 800-53 Rev 5 and OWASP ASVS set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-57Key Management RecommendationsCovers cryptographic key lifecycle decisions central to this audit.
Recommendation — Apply key lifecycle rules to generate, protect, rotate, and retire cryptographic keys.
NIST SP 800-53 Rev 5SC-13 — Cryptographic ProtectionDefines using cryptography to protect information and communications.
IA-5 — Authenticator ManagementCryptographic audits often examine secret and key handling that underpins authentication.
Recommendation — Use SC-13 to require approved cryptographic protection for sensitive data and traffic. Apply IA-5 to manage authenticators, secrets, and their lifecycle securely.
ISO/IEC 27001:2022A.8.24 — Use of cryptographyAnnex A explicitly addresses cryptographic controls and their governance.
Recommendation — Establish and review cryptographic controls under A.8.24 for suitability and strength.
OWASP ASVSV11 — CryptographyASVS V11 directly maps to application cryptography requirements and review.
Recommendation — Verify that applications use approved cryptographic mechanisms and safe key handling.

Practitioner Guidance

Why practitioners should care: A cryptography audit should be treated as a control assurance activity, not a box-ticking exercise. The main question is whether the deployed system still protects the assets and trust relationships it was designed to secure.

What to watch for: Pay close attention to legacy algorithms, inconsistent certificate validation, weak randomness, long-lived keys, undocumented exceptions, and any situation where the audited system behaves differently from the documented cryptographic design.

Practitioner takeaway: The best audits connect design intent, implementation reality, and operational behaviour, because cryptography only works when all three line up.

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 October 30, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org