Integrity in Cybersecurity: Keeping Data Trustworthy
Imagine opening a supplier's invoice and finding the expected items, price, and due date. Everything looks familiar except the bank account number. Someone has changed where the payment will go. The document is still readable, but trusting it could be costly.
Integrity in cybersecurity means protecting information against improper changes or destruction. It covers the invoice that was altered, the records deleted without permission, and the file damaged by a mistake.
Integrity doesn't mean freezing data forever. Correcting an address or updating a balance can be legitimate work. The question is whether a change was proper and whether the people relying on the information can trust its state.
NIST distinguishes integrity from two other security goals: confidentiality, which limits disclosure, and availability, which concerns reliable access when information is needed. A public timetable needs little secrecy, for example, but an unauthorized change to its departure times could still cause trouble.
The Three Goals Behind All of Security
Start With Who Can Change the Record
An attacker might alter a record to deceive someone or delete files to disrupt work. An employee could also import the wrong data or accidentally overwrite a document.
NIST's work on destructive data events includes malicious software, insiders, and mistakes. The cause matters when investigating an incident, but all can leave an organization using information it shouldn't trust.
Protecting a record doesn't establish that its original contents were true. If someone enters the wrong delivery address and the system preserves it perfectly, the information still points to the wrong place. Checking the facts at entry and protecting later changes solve related but different problems.
An access policy sets who may edit the invoice, and the system needs to enforce that decision.
Least privilege means giving an account only the access its work needs. A person who reads invoices may not need permission to change payment details. Review those permissions as responsibilities change, rather than assuming a past decision remains suitable forever.
Records of activity, called logs, can help investigators examine what changed and when. Integrity monitoring can flag unexpected changes. Separate copies of data, or backups, provide a possible route to recovery. NIST's integrity protection guide brings these kinds of controls together.
- Keep every photo and file on a box you own, and reach them from anywhere.
- Let backups run on their own so one dead laptop doesn't take your files with it.
- Add two drives and a failed disk no longer means lost files.
Tools such as endpoint detection and response, or EDR, can also help teams detect and interrupt destructive activity on monitored computers. Stopping a harmful program doesn't automatically restore the files it already changed.
A Hash Compares the File With a Reference
A cryptographic hash turns data into a compact value called a digest. Software can calculate that value again later and compare the results. A difference reveals that the data has changed.
Suppose a publisher provides a download and a hash for it. After downloading the file, you calculate its hash and compare it with the publisher's value. Using an appropriate hash algorithm, this can help detect a changed or damaged download. NIST's Secure Hash Standard explains the comparison mechanism.
But where did the reference value come from? A bare hash contains no secret. If an attacker can replace both the download and its published hash, the replacement pair can match.
That comparison needs a trustworthy reference. A match doesn't identify who created the file, prove it is harmless, or repair any damage. It answers a narrower question about whether the data agrees with the reference being checked.
Why Do Hashing Algorithms Keep Changing?
When the Check Uses a Key
One way to strengthen a check is a hash-based message authentication code, or HMAC. It combines hashing with a secret key. Parties that share the secret can calculate and verify the check. Someone who lacks the key cannot simply calculate an ordinary replacement hash and pass it off as a valid HMAC.
The HMAC specification describes this use of a shared secret. It doesn't settle which key holder created a message: more than one party knows the same secret.
A digital signature uses a different arrangement. A private signing key creates the signature, and its matching public key lets others verify it. The public key may be shared. A valid check ties the signed data to that key and can detect changes to it.
This still depends on knowing whose public key you're using and protecting the private key from theft. NIST's Digital Signature Standard supports these checks, not a guarantee that every signed statement is true.
Encryption scrambles readable information to protect confidentiality. Someone without the decryption key can still alter or destroy the scrambled data, even if they can't read it.
Authenticated encryption combines privacy with a check for tampering. The IETF's authenticated-encryption specification distinguishes these functions. A system needs the right protection for its task; the word “encrypted” by itself doesn't tell you which integrity checks are present.
- Pull the drive from an old computer and read it on your laptop in a minute or two.
- Build a home practice lab for imaging and file recovery with free tools like Autopsy.
- Swap drives without tools or a reboot, so your time goes to the data and not the hardware.
A Restored File Still Needs to Be Trusted
Return to the altered invoice. Restoring yesterday's backup helps only if yesterday's copy has the correct account number. If the change happened a week earlier, the newer backup may preserve the problem.
Recovery therefore needs a suitable restoration point and checks on the restored information. NIST's integrity recovery guidance focuses on regaining reliable data. Its Cybersecurity Framework also calls for protected, maintained, tested backups.
For the invoice, recovery ends with more than an openable document. Someone has to check that the restored payment details are the ones the business should use. Copying the wrong account number back into place would preserve the very change they were trying to undo.
Data Integrity: How to Keep Records and Their Connections Reliable

Digital Signatures: What a Verified File Actually Tells You

Tampering: An Unauthorized Change Can Still Look Normal

QUOTE:
"Amateurs hack systems, professionals hack people."

