zappz

All topics

dependency security

1 article

Dependency security is the practice of making sure the outside code a program relies on is free of known flaws and has not been tampered with. Modern software is mostly assembled from libraries and packages written by other people, so its safety depends on theirs.

A project lists the packages it uses directly, and each of those pulls in packages of its own. These indirect, or transitive, dependencies can run many layers deep, and most developers have never looked at them. Two risks follow. One is the honest mistake: a library contains a flaw, the flaw becomes public, and every program still using the old version is exposed. The other is deliberate. An attacker may take over a maintainer's account, slip harmful code into a popular package, or publish a package whose name is one typing slip away from a real one.

The defences are mostly habits. Teams keep a full inventory of what they ship, often called a software bill of materials. Scanning tools compare that inventory against databases of known flaws. Lock files pin exact versions so a build does not silently pick up something new, and checksums or signatures confirm that a downloaded package is the one its author published. Many teams also cut down the number of dependencies they take on and look at how well a package is maintained before adopting it.

The subject matters because a single compromised or flawed package can reach every application built on it at once. Users of those applications have no way to see the problem, so the duty of care falls on the people who choose and update the parts.

  1. software supply chainWhat Is a Software Supply Chain Attack? Risks and DefensesA software supply chain attack plants bad code in a package, build step or update you trust, so it reaches every app downstream. How it works and how to defend. · 8 min read

Related topics

All topics