Join our Newsletter — 33% off our NHI Course
Home› Glossary› Foundations & NHI Taxonomy› Counter with CBC-MAC (CCM)
Foundations & NHI Taxonomy

Counter with CBC-MAC (CCM)

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Foundations & NHI Taxonomy

Counter with CBC-MAC (CCM) is an authenticated encryption mode for block ciphers such as AES, defined in NIST SP 800-38C. It encrypts data with counter mode and authenticates it with a CBC-MAC, so it gives both confidentiality and integrity. CCM is used in Wi-Fi WPA2 (as CCMP) and some TLS cipher suites. Like other counter-based modes, it fails badly if a nonce is reused with the same key.

What CCM Is and Why It Matters

Counter with CBC-MAC, or CCM, combines encryption and authentication in one mode, which makes it useful when systems need both confidentiality and integrity without layering separate primitives. That design is attractive in embedded, wireless, and protocol settings, but it also means the construction must be used exactly as specified.

CCM is best understood as an authenticated encryption mode, not as a standalone checksum or encryption wrapper. Its security depends on the block cipher, the nonce discipline, and correct parameter handling. When those assumptions hold, it gives a clean way to protect data in transit or at rest with one integrated construction.

How CCM Works

CCM pairs counter mode for encryption with CBC-MAC for authentication. Counter mode turns the block cipher into a stream-like encryptor, while the MAC binds the message and associated data so tampering can be detected. The combination is efficient, but the two parts are tightly coupled and must use the same key and nonce model consistently.

The structure is what makes CCM practical, but it also constrains implementation choices. Messages must be formatted correctly, nonces must be unique per key, and the system must treat authenticated data as part of the protected context. If any of those pieces are mishandled, the security guarantee degrades quickly.

Where CCM Is Used

CCM is commonly associated with standards and protocols that need authenticated encryption in constrained or high-volume environments. A well-known example is Wi-Fi, where CCMP uses CCM to protect traffic at the link layer. It also appears in some TLS cipher suites and other protocol designs that want a compact, standardised AEAD construction.

That broad deployment is one reason CCM remains important to security engineers. It is not just a cryptographic theory exercise, it is a real protocol building block whose correct use affects interoperability, performance, and the trustworthiness of protected sessions. For the official mode definition, use NIST SP 800-38C rather than relying on secondary summaries.

CCM Failure Modes and Operational Considerations

CCM’s best-known weakness is nonce reuse with the same key. If that happens, the confidentiality of counter mode can collapse and the authentication guarantees can also be undermined. This is why CCM is often described as safe only when nonce generation, key reuse boundaries, and message processing are engineered carefully.

In practice, the main security question is not whether CCM is sound in the abstract, but whether the protocol or product using it can enforce unique nonces reliably across restarts, retries, distributed nodes, and long-lived keys. That operational discipline matters just as much as the cryptographic primitive itself.

Risk and Threat Considerations

CCM creates a clear security dependency on nonce uniqueness. If an implementation repeats a nonce under the same key, an attacker may be able to infer plaintext relationships, tamper with traffic, or exploit the resulting loss of AEAD guarantees. That makes nonce management a direct security control, not a minor implementation detail.

Failure mechanism: Reusing a nonce with the same key breaks the assumptions that keep counter mode and CBC-MAC safe together, which can expose both encrypted content and message integrity.

Impact: The result can be confidentiality loss, message forgery risk, protocol compromise, and wider exposure of sessions or data protected by the affected key.

Standards & Framework Alignment

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

NIST SP 800-53 Rev 5 and NIST SP 800-57 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SC-13 — Cryptographic ProtectionCCM is a cryptographic protection mode for confidentiality and integrity.
IA-5 — Authenticator ManagementCCM nonce and key handling depend on disciplined lifecycle management of cryptographic material.
SC-12 — Cryptographic Key Establishment and ManagementCCM relies on sound cryptographic key establishment and protection to preserve AEAD assurances.
Recommendation — Use SC-13 to require approved authenticated encryption for protected data flows. Apply IA-5 to manage key and secret lifecycles so nonce misuse does not weaken protection. Use SC-12 to establish and protect keys used with CCM.
NIST SP 800-57Key ManagementCCM security depends on correct key generation, separation, and reuse discipline.
Recommendation — Enforce key lifecycle rules that prevent unsafe reuse across CCM-protected sessions.
ISO/IEC 27001:2022A.8.24 — Use of cryptographyCCM is a cryptographic mode governed by cryptography use controls.
Recommendation — Define approved authenticated-encryption use cases and implementation rules for CCM.

Practitioner Guidance

What to watch for: Treat CCM as a protocol constraint as much as a cipher mode choice. Engineers should validate that every implementation has a reliable nonce strategy, especially in distributed systems, embedded devices, and code paths that may retry or restore state after failure.

Practitioner takeaway: If the system cannot guarantee unique nonces for a given key, CCM should not be assumed safe by default, because the construction is only as strong as its nonce discipline.

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