Repository navigation
Supply Chain
Design stage. Nothing here is implemented.
Every mod is arbitrary code, downloaded from a third party, executed with the server's privileges. Around 900 such artifacts across three versions. That is the largest attack surface in this system by a wide margin, and it is worth designing for rather than hoping about.
This is not hypothetical. In June 2023 the fractureiser malware spread through mods hosted on CurseForge and CraftBukkit, injected into JARs of existing, previously trustworthy projects. Accounts were compromised and new files published under established project names. Anyone auto-updating to "the latest version" pulled it.
Resolution pins an exact file and its SHA-256. Automatic updates are the mechanism fractureiser relied on; a pinned set does not move because someone else published something.
Updating becomes a deliberate act with a plan attached, which is the point.
Cheap and high-value: when re-resolving a mod whose version has not changed, check whether upstream still serves the same bytes.
A published release is immutable by convention. If create-6.0.4.jar hashed to one value last month and a different one today, exactly one of these is true:
- the author quietly re-uploaded a fix under the same version — sloppy, worth knowing
- the file was replaced by someone who should not have been able to replace it
Neither should be accepted silently. The system keeps the pinned file, refuses the new one, and raises it for a human. A hash mismatch on an unchanged version is the single strongest signal available that something is wrong upstream, and it costs one HTTP request to notice.
Once a jar is in /var/minecraft/shared/store/<sha256>.jar, it is yours. That matters more often than the security case:
- Mods get deleted from Modrinth and CurseForge by their authors.
- Old versions get pruned when a new Minecraft release lands.
- Providers have outages, change APIs, and introduce rate limits.
- CurseForge requires an API key and its terms restrict redistribution.
A validated modset must remain deployable years later regardless of any of that. Never delete a store blob referenced by a retained modset, even long after that mod is gone from the internet. Disk is cheaper than a set you can no longer reproduce.
For every resolved file: the provider, the project and version identifiers, the exact URL, the SHA-256, the timestamp, and which scan resolved it.
When something does go wrong upstream, the question is always "which of our sets contain the affected file, and when did we take it?" That is a query against recorded facts or it is an afternoon of guessing.
No malware scanning. Signature scanning of JARs produces false confidence far more reliably than it produces detections, and fractureiser evaded it by design. Pinning, re-verification and archival are honest controls. A scanner that says "clean" about a novel payload is worse than no scanner, because it is believed.
No mirroring or redistribution. The store is a local archive for this deployment, not a public mirror. CurseForge's terms restrict redistribution, and respecting that is both correct and simpler.
Worth stating plainly, because it is easy to imagine the system provides more assurance than it does:
- We verify that the file we run is the file we pinned. That is strong.
- We verify that it is the file the provider served at pin time. That is also strong.
- We do not verify that the file was not already malicious when we pinned it.
Closing that last gap requires trusting the provider's own review, which is exactly what failed in 2023. The mitigation is not technical: prefer established projects, do not pin a release the day it lands, and treat the update plan as a moment to look rather than a formality.
Design stage — not implemented
Design
Validation
Trust
Interfaces
Operations
Project
Reference