Course contentsShow
← Software Engineering
Lesson 1049 of 1,93332. Security EngineeringFree lesson

A08: Software and Data Integrity Failures

Risks from insecure CI/CD pipelines, unsigned updates, and untrusted deserialization.

A08: Software and Data Integrity Failures

What you'll learn: How insecure CI/CD pipelines, unsigned updates, and untrusted deserialization threaten the integrity of your software and data.

The Core Problem

Software and data integrity failures occur when code and data can be compromised without detection. This isn't about bugs in your logic—it's about trusting things you shouldn't trust. Think of it like receiving a package at your door with no seal, no signature, and no way to verify it's actually from who you think it is.

Three Critical Vulnerabilities

Insecure CI/CD pipelines allow attackers to inject malicious code during the build and deployment process. If your build server isn't properly secured, an attacker could modify your application before it even reaches production—essentially poisoning the well at the source.

Unsigned updates mean you can't verify that a software update truly came from the legitimate vendor. Without cryptographic signatures, attackers can distribute trojanized versions of your software, and users have no way to detect the tampering.

Untrusted deserialization happens when your application accepts serialized objects from external sources without validation. Since deserialization can execute code embedded in the data structure, accepting untrusted serialized data is like opening an executable email attachment from a stranger.

Real-World Impact

These failures enable supply chain attacks, where compromising one trusted component affects thousands of downstream systems. The SolarWinds breach exemplified this—attackers infiltrated the build system and distributed compromised updates to 18,000 customers.

Prevention Basics

Use digital signatures to verify software artifacts, secure your CI/CD pipeline with proper access controls and monitoring, and avoid deserializing untrusted data whenever possible. When you must deserialize, validate strictly and use safer formats like JSON.

Key Takeaway: Software and data integrity failures let attackers compromise your system by tampering with trusted sources—secure your supply chain, verify everything, and never trust deserialized data from untrusted sources.