10.3.3 · Skill in Maintenance

Dependency updates

Keeping libraries and frameworks current and secure.

Outdated dependencies collect security vulnerabilities and make upgrades harder later. Small, frequent, automated updates are much cheaper than rare big ones. Fewer dependencies means less to maintain.

Your status · Dependency updates

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

Why it matters for a product engineer

Most of the code in a modern product comes from dependencies. Each one gets bug fixes and security patches, and each update you skip makes the next one bigger and riskier. When a serious vulnerability appears, the team that updates every week patches in hours. The team that is two major versions behind needs a project first. Product engineers choose the dependencies, so they also choose this cost.

How to do it

  1. Keep an inventory of what runs where, including the version, for every service and server.
  2. Automate update pull requests with a tool such as Renovate or Dependabot, and merge small updates often.
  3. Let tests decide: good tests make it safe to merge minor updates automatically.
  4. Subscribe to security advisories for your stack, and set a deadline for critical patches.
  5. Remove dependencies you barely use. Each one is code you must keep up to date.

Common mistakes

  • Updating only when something breaks.
  • Pinned versions that nobody revisits for years.
  • Security notices sent to a list that the responsible people are not on.
  • Large libraries added for one small function.

Example

In March 2017, the US Computer Emergency Readiness Team announced a vulnerability in the Apache Struts web framework. Equifax sent the notice to its system administrators, but the list was out of date, so the people responsible for one online dispute portal never received it. Two days after the announcement, outsiders scanning Equifax’s systems found that portal. A scan by Equifax a week later did not. From 13 May, attackers used the portal for about 76 days and accessed personal data of at least 145.5 million people in the US.

Timeline

From a public vulnerability notice to the Equifax breach, 2017

  1. 8 MarStruts vulnerability announcedBy US-CERT
  2. MarchNotice sent to an old listProblemThe portal’s owners never got it
  3. 10 MarOutsiders find the portalProblemBy scanning for the vulnerability
  4. A week laterEquifax scan misses itProblemThe vulnerable version stays
  5. 13 MayAttackers get inThrough the online dispute portal
  6. 29 JulBreach discoveredAbout 76 days later
  7. 7 SepBreach announcedResultAt least 145.5 million people

Equifax was already installing patches in March. What failed was knowing where the old version ran.

ReportedUS GAO, GAO-18-559, August 2018

Sources: Data protection: actions taken by Equifax and federal agencies in response to the 2017 breach (GAO-18-559) ↗ · Technical debt quadrant (Martin Fowler) ↗

Resources

2
Overview for Maintenance

Tools

1