Module 9 · Dependency Management & Renovate

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 27, 2026
2 min read
Read as

Last updated: April 29, 2026

100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module. 80% of application code is third-party dependencies. Each is a CVE waiting to happen. Manual updates don’t scale; automated bots are non-negotiable in 2026.

Why this module. 80% of application code is third-party dependencies. Each is a CVE waiting to happen. Manual updates don’t scale; automated bots are non-negotiable in 2026.

The two leading bots

  • Dependabot (GitHub) — free, easy, default for GitHub repos. Limited customization.
  • Renovate — open source, very flexible, multi-platform (GitHub, GitLab, Bitbucket). Industry favourite for serious teams.

The Renovate config that doesn’t drive engineers crazy

# renovate.json
{
  "extends": ["config:recommended"],
  "schedule": ["after 9am every weekday"],
  "prConcurrentLimit": 5,
  "packageRules": [
    {
      "matchUpdateTypes": ["minor","patch"],
      "matchCurrentVersion": "!/^0/",
      "automerge": true
    },
    {
      "matchPackagePatterns": ["*"],
      "matchUpdateTypes": ["major"],
      "automerge": false
    }
  ],
  "vulnerabilityAlerts": {
    "automerge": true,
    "schedule": ["at any time"]
  }
}

Translation: minor + patch updates auto-merge if tests pass. Major updates require human review. Vulnerability alerts merge anytime.

The OSV database

Google’s OSV.dev aggregates vulnerability data from all ecosystems (npm, PyPI, Maven, Go, Crates, etc.). Official data, machine-readable. Used by GitHub, Renovate, OSV-Scanner.

# Check current dependencies
osv-scanner --lockfile=package-lock.json
osv-scanner --lockfile=requirements.txt

Lockfile discipline

  • Always commit lockfiles (package-lock.json, poetry.lock, go.sum).
  • Lockfiles pin transitive dependencies — reproducible builds.
  • Without them, your “1.2.3” dependency might pull a different transitive tree on every install.

Dependency confusion prevention

2021 Alex Birsan attack: register a public package with the same name as your private internal one; the package manager pulls the public (typosquatting), which is the attacker’s. AWS, Apple, Tesla, Microsoft were all affected.

Mitigations:

  • Scoped packages for internal: @yourorg/internal-package.
  • Reserved namespace on public registries — claim your org names.
  • Private registry only for internal — Verdaccio / Nexus / Artifactory.
  • Lockfile + checksum verification — npm --ignore-scripts --frozen-lockfile.

Defender’s checklist

  • Renovate or Dependabot on every repo.
  • Auto-merge minor/patch with passing tests.
  • Major updates batched and reviewed weekly.
  • Vulnerability alerts auto-merge.
  • Lockfiles committed; CI verifies.
  • OSV-Scanner in CI as failsafe.
  • Dependency-confusion preventions per ecosystem.
🧠
Check your understanding

Module Quiz · 6 questions

Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.

Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants