Confidentiality prevents unauthorized parties from reading information, while integrity ensures the information cannot be changed without detection. Both are needed in banking and digital identity workflows. A system can hide data successfully and still fail if an attacker can alter records, so cryptography must protect both secrecy and correctness of the information.
How confidentiality and integrity differ in cryptographic controls
Confidentiality is about preventing unauthorised disclosure, so encryption, access control around keys, and sound key handling protect secrecy. Integrity is about preventing undetected tampering, so cryptographic checks such as hashes, MACs, or digital signatures prove whether data has been altered. A control can provide one without fully providing the other, so both properties must be designed deliberately.
Cryptographic design starts with the question you are trying to answer about the data. If the main concern is that outsiders should not read the content, the control must keep plaintext hidden from parties without the key. If the concern is that data must not be changed silently, the control must let recipients detect modification, even when the data is visible in transit or at rest.
That distinction matters because a system can be perfectly encrypted and still be unsafe if an attacker can rewrite values, replay messages, or swap records. Likewise, a system can detect tampering but still leak sensitive information if the payload is readable by anyone who can intercept it. Good cryptographic architecture treats secrecy and correctness as separate requirements, then combines the right controls for each.
Confidentiality controls are strongest when the threat is exposure through interception, storage compromise, backup leakage, or overbroad access to secrets. Integrity controls matter most where forged instructions, altered balances, manipulated tokens, or corrupted configuration would cause bad decisions even if no one can read the contents. In practice, banking, identity, and API workflows often need both because confidentiality without integrity can still enable fraud or state corruption.
The two properties also fail differently operationally. Confidentiality is often broken by weak key management, exposed secrets, poor segmentation, or accidental disclosure of ciphertext keys. Integrity is often broken by missing authentication on the data itself, fragile protocol design, unauthorised write paths, or verification that is performed too late in the workflow. That is why practitioners should ask not only “who can see it?” but also “who can alter it, and will we notice?”
Why you need both properties in real systems
Confidentiality and integrity address different attacker goals. One protects information from being learned; the other protects information from being trusted when it should not be. In a transaction flow, for example, hiding an account number does not prevent an attacker from changing the destination account, and detecting tampering does not stop an observer from reading the message content if it is otherwise exposed.
Modern systems commonly layer these controls. Transport encryption protects data in motion, while message authentication or signatures protect the meaning of the message. Storage encryption protects data at rest, while signed records or authenticated logs help preserve trust in what was stored. When the same system handles both human and machine transactions, the need to distinguish secrecy from tamper detection becomes even more important because automation often consumes data at scale.
The practical question is whether the control is providing confidentiality, integrity, or both in the relevant trust boundary. Some mechanisms are confidentiality-first, such as encryption without authentication. Others are integrity-first, such as signatures on configuration or transaction records. A well-designed scheme usually needs both, because otherwise an attacker may still succeed by modifying something rather than reading it.
How to choose the right cryptographic mechanism for each goal
Use confidentiality mechanisms when the risk is disclosure of sensitive content, and make sure the keying material is protected with equal care. Use integrity mechanisms when the risk is unauthorised modification, and make sure the verifier checks the exact object, not just a surrounding channel or session. Where both matter, prefer authenticated encryption or a design that explicitly combines encryption with authentication rather than assuming one property implies the other.
For message-driven systems, integrity should usually be checked before the receiver acts on the data. For stored records, integrity should be tied to the record content and context so that a copied value cannot be reused out of place. For identity and financial workflows, the safest design is one that can answer both questions cleanly: is the data secret from unauthorised readers, and is it demonstrably unchanged since it was issued or stored?
If you want a concise mental model, treat confidentiality as “can they read it?” and integrity as “can they change it without being caught?” That distinction is the reason some controls focus on secrecy, some focus on tamper evidence, and some must be combined to support trustworthy transactions. The CIA Triad Guide is a useful reference for how those properties fit into the broader security model, while the ISO/IEC 27001:2022 Information Security Management standard shows how they are commonly handled within an ISMS.
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 sets the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-8 — Transmission Confidentiality and Integrity | Directly addresses protecting data in transit from disclosure and tampering. |
| SC-12 — Cryptographic Key Establishment and Management | Key handling is central to keeping confidentiality controls effective. | |
| SI-7 — Software, Firmware, and Information Integrity | Integrity controls depend on detecting unauthorised alteration of information. | |
| Recommendation — Apply SC-8 to protect transmitted data against both eavesdropping and modification. Manage cryptographic keys carefully so confidentiality protections remain reliable. Use SI-7 to detect and respond to unauthorised changes in information and software. | ||
| ISO/IEC 27001:2022 | A.8.24 — Use of cryptography | Cryptography is the primary control area for protecting secrecy and integrity. |
| A.5.15 — Access control | Confidentiality depends on restricting who can obtain or use protected information. | |
| Recommendation — Implement cryptography according to the sensitivity and trust needs of the data. Restrict access paths so only authorised parties can reach sensitive information. | ||
Practitioner Guidance
What to verify: Check whether the control protects only the channel, only the data, or both. A TLS session, for example, may protect secrecy in transit, but the application still needs its own integrity checks for signed requests, record validation, or tamper-evident logging.
Decision rule: If unauthorised reading is the main hazard, prioritise confidentiality controls and key protection. If unauthorised modification would create fraud, unsafe automation, or bad state, prioritise integrity controls first, then add confidentiality where exposure would also be harmful.
Common mistake: Treating encryption as a general trust guarantee. Encryption can hide data very well and still leave you vulnerable to replay, substitution, or silent modification unless the design explicitly verifies integrity.
Practitioner takeaway: The right control is the one that matches the failure mode, secrecy controls stop disclosure, integrity controls stop undetected change, and mature designs specify both rather than assuming one covers the other.
Related resources from NHI Mgmt Group
- Why do access controls and logging matter so much for data integrity and confidentiality?
- Why do hard-coded or shared cryptographic keys create outsized risk for confidentiality and integrity?
- How should security teams implement confidentiality controls without slowing work down?
- How should security teams use file integrity monitoring alongside other controls?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org