StoicBuilder
Later missionMission 47: A poisoned updateYou can practise it now. It counts once you reach mission 47, after “Taking access back”.Back to HQ
Exit lesson
A poisoned dependencyProLesson 42 of 45, about 8 min
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
0 XP

The app: Sentinel, a security console

SentinelHarbor / Dependenciesincident, Dec 3
Sentinel alert, Dec 3, 14:02

Deploy job #1193 on main sent a POST to collect.moneta-metrics.example. Harbor has never talked to that host before.

Merged into main this week

PRChangeChecksMerged
#482Bump moneta-fmt from 2.3.1 to 2.4.0 (dependabot)passedDec 3, 13:55
#479Bump invoice-pdf-kit from 5.1.0 to 5.1.2 (dependabot)passedDec 2, 09:12
#477Invoice page: show the tax numberpassedDec 1, 16:40

The pull request’s checks ran without Harbor’s secrets. The deploy job after the merge had all of them.

Lockfile, package code, pipeline and logs

PR #482: Bump moneta-fmt from 2.3.1 to 2.4.0 files changed: package.json, package-lock.jsonminor
@@ package-lock.json, PR #482 @@
"node_modules/moneta-fmt": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/moneta-fmt/-/moneta-fmt-2.3.1.tgz",
- "integrity": "sha512-7Hq2…",
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/moneta-fmt/-/moneta-fmt-2.4.0.tgz",
+ "integrity": "sha512-Wd9x…",
+ "dependencies": { "moneta-metrics": "^0.1.2" }
},
+ : {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/moneta-metrics/-/moneta-metrics-0.1.2.tgz",
+ "integrity": "sha512-pL4k…",
+
+ },

The MagisterSentinel flagged Harbor’s deploy job sending data to a host nobody knows. The only change that day was PR #482, a minor bump of moneta-fmt, a small package that formats money on invoices. Checks passed, Kofi merged it. Read the lockfile diff on the right.

Step 1 of 7Read the lockfile, not the title
  • Tap the package the update brought in
  • Tap what it does when it’s installed

You’re not signed in, so this lesson won’t be saved to your path. Sign in free to keep your XP.