Join our Newsletter — 33% off our NHI Course
Foundations & NHI Taxonomy

AES-CFB8

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

AES-CFB8 is AES in cipher feedback mode with an 8-bit feedback size. It turns the block cipher into a stream-like mode for byte-by-byte encryption, but it still depends on a unique initialisation vector and correct integrity protection to avoid malleability.

What AES-CFB8 means in practice

AES-CFB8 is not a different cipher, but a different mode of using AES. The 8-bit feedback setting makes encryption behave more like a stream, which is useful when software needs byte-oriented processing rather than whole-block operations.

That convenience comes with a security trade-off: the mode is only safe when the initialisation vector is unique and the ciphertext is protected against tampering. Without that, CFB8 can still produce valid-looking output even after an attacker changes it.

How AES-CFB8 handles data flow

CFB8 feeds previous cipher output back into the next step one byte at a time, so the mode can start producing output before an entire block of plaintext has been collected. This is why it often appears in protocols, legacy systems, and incremental processing paths.

Because the mode is self-synchronising only to a limited degree, a small corruption or deliberate bit-flip can affect the current byte and the next bytes until the stream re-aligns. That property is part of the mode design, not a bug, but it matters when integrity is not enforced separately.

For a broader comparison of AES modes and where stream-like operation fits among other encryption choices, the Symmetric vs Asymmetric Encryption Guide is a useful reference.

Security properties AES-CFB8 does and does not provide

AES-CFB8 provides confidentiality when it is implemented correctly, but it does not provide authenticity by itself. That means a receiver may be able to decrypt altered ciphertext without any built-in signal that the message was modified.

The mode is also sensitive to IV handling. Reusing an IV with the same key can leak relationships between plaintexts, and predictable IVs can weaken the protection that the mode is meant to provide.

In practice, the important question is not whether AES-CFB8 is “strong,” but whether the surrounding design treats encryption and integrity as separate requirements. Modern designs usually pair encryption with a separate authentication mechanism, or choose an AEAD mode instead of relying on confidentiality alone.

Where AES-CFB8 still appears

AES-CFB8 is most often encountered in older protocols, interoperability layers, constrained environments, or implementations that were designed around byte-at-a-time processing. It remains a legitimate cryptographic mode, but it is not the default choice for new systems that need both confidentiality and tamper detection.

When you see it in a system, the operational question is whether the mode choice is inherited from a standard or legacy dependency, and whether the surrounding controls compensate for its lack of integrity protection. If they do not, the encryption may be correct while the overall design is still unsafe.

For readers who want the surrounding cryptographic context, NIST’s guidance on key handling and mode selection is helpful, especially when AES is part of a longer-lived security design. The NIST SP 800-57 Key Management guidance is relevant to how encryption keys should be managed over their lifecycle.

Risk and Threat Considerations

AES-CFB8 can become risky when teams treat encryption as if it also guarantees integrity. In tamper-prone channels, an attacker may be able to modify ciphertext and induce controlled changes in the decrypted plaintext, especially if the implementation does not add a separate authenticity check.

Failure mechanism: IV reuse, weak message integrity, or misuse of the mode lets an attacker exploit malleability or relationship leakage instead of breaking AES itself.

Impact: The result can be altered commands, corrupted records, replay-style abuse, or silent data modification that looks legitimate to the receiving system.

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

FrameworkControl / ReferenceRelevance
NIST SP 800-57Recommendation for Key Management Part 1AES-CFB8 depends on key and IV handling across the encryption lifecycle.
Recommendation — Manage AES keys and IV/nonce practices so reuse and weak lifecycle handling do not undermine encryption.
NIST SP 800-53 Rev 5SC-13 — Cryptographic ProtectionAES-CFB8 is a cryptographic protection mechanism whose safe use depends on correct configuration and companion integrity controls.
Recommendation — Apply cryptographic protection controls and pair encryption with integrity safeguards where the mode is malleable.
ISO/IEC 27001:2022A.8.24 — Use of cryptographyAES-CFB8 is a cryptographic method governed by organisational rules for cryptography use and implementation.
Recommendation — Define approved cryptographic use cases and require secure implementation rules for AES-based modes.

Practitioner Guidance

Why practitioners should care: AES-CFB8 should be treated as a compatibility choice, not a modern default. If you inherit it, confirm why byte-oriented feedback is needed and whether the system also enforces message authentication.

What to watch for: Review IV generation, key reuse, and any design that relies on ciphertext confidentiality alone. If the implementation processes attacker-controlled data, assume tampering is part of the threat model.

Practitioner takeaway: Use AES-CFB8 only when its operational fit is clear, and pair it with integrity protection that makes ciphertext modification detectable.

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