Malicious code in fabric-native-loader (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d289ae71736f05158f45d6636730641e82b5a774bf99bf1b587155d31c73daaa) package.json declares a postinstall hook that runs index.js on npm install. index.js reads Minecraft launcher credential stores (launcher_accounts.json, launcher_profiles.json, and equivalent files for Prism, MultiMC, TLauncher, Modrinth, PolyMC, GDLauncher), extracting Mojang/Microsoft accessTokens, refreshTokens, and clientTokens. It also recursively walks the.minecraft directory reading.json/.txt/.cfg/.properties/.yml/.log files and matches their contents against JWT and Bearer-token regexes. The collected credentials are combined with os.hostname(), os.userInfo().username, and os.platform() and POSTed via HTTPS to a hardcoded Discord webhook (discord.com/api/webhooks/1554065488726990909/...). No functionality matching the package name is present; the sole effect of installing the package is credential theft against the installer.
MAL-2026-17232
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-17232
fabric-native-loader
Source reference: /affected/0/package/name
- Affected versions
- 1.0.0
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "fabric-native-loader",
"purl": "pkg:npm/fabric-native-loader",
"ecosystem": "npm"
},
"versions": [
"1.0.0"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/fabric-native-loader/MAL-2026-17232.json",
"indicators": {
"evidence_files": [
{
"path": "index.js",
"tlsh": "e6c1849e56f36522427bb6d5274f051631a56a0b3146cc0c3b5cc3d82f4e02d92f35ae",
"sha256": "d10b03a38f8bddea0dceb4ee1ab4d9baa4b3e0a1e9ed08d7e9821dec1b4df338"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "2a94151dd544dc022f74563c19e7eeccc0081af1",
"sha512_sri": "sha512-u4a1UHRdSmLMOi/QXgLJkopIbE/btoeXEUDzkJuDWcXGU+DeZAWngTZw6cDKZk2TPxs/3iUB7aJcM1+uxItYsg=="
},
"filename": "fabric-native-loader-1.0.0.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #23696 · Revision 1
- Added to Heist Feed
- Publisher date