Software and Data Integrity Failures is one of three new categories in the 2021 Top 10, and it reflects the rise of supply-chain attacks. It covers one failure that takes many forms: assuming integrity without verifying it, trusting an update, a dependency, a serialised object, or a CI/CD pipeline that was never checked for tampering. It absorbed the older "Insecure Deserialization" category as one instance of the broader theme.
OWASP has since published a 2025 edition of the Top 10. This article covers the 2021 edition.
Integrity means being able to prove that code or data is what it claims to be and has not been altered by an unauthorised party. These failures occur when an application makes decisions based on unverified sources: it pulls a library from a repository without checking a signature, applies an auto-update without validating it, or deserialises attacker-controlled data into live objects. In each case the system trusts something it has no basis to trust.
The supply-chain dimension
The most consequential form is the compromised build or update pipeline. If an attacker can insert malicious code into a component before it is signed and distributed, every downstream consumer receives it as legitimate, signed software. The SolarWinds compromise disclosed in December 2020 was the archetype: attackers subverted the build process so that a trojanised update shipped through the vendor's own trusted channel; OWASP's page on this category says it reached more than 18,000 organizations. The lesson OWASP drew is that trust in a pipeline is only as strong as the integrity checks around it.
Insecure deserialization
The narrower, older failure is insecure deserialization: turning attacker-controlled bytes back into objects without validation. Depending on the language and libraries, a crafted serialised payload can manipulate application logic, escalate privileges, or achieve remote code execution during the deserialization itself, before your code ever inspects the result.
# crafted payload runs code during reconstruction, before any validation
Verifying before you trust
- Verify signatures on code and updates. Use digital signatures to confirm libraries and updates come from the expected source and are unaltered before they run.
- Pin and verify dependencies. Lock versions, check hashes, and pull only from trusted repositories to prevent silent substitution.
- Secure the CI/CD pipeline as a production system. Restrict who can change build steps, protect signing keys, and review pipeline configuration like the sensitive code it is.
- Avoid deserialising untrusted data. Where you must, use formats without code-execution semantics, enforce strict type allow-lists, and validate before acting.
- Protect data integrity in transit and storage with signatures or authenticated encryption so tampering is detectable.
This category asks an uncomfortable question of every automated trust relationship: how do you know? Modern software runs on a web of implicit trust, in registries, mirrors, pipelines, and vendors, and each link is a place an attacker would rather compromise than confront your defenses head-on. Mapping those trust relationships, and knowing which you have actually verified, is the discovery work A08 forces into the open.
Primary source. A08:2021 : Software and Data Integrity Failures, OWASP.