MAL-2026-6092

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/fmt-helpers-794b/MAL-2026-6092.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6092
Aliases
  • GHSA-4wmf-8x9r-34cc
Published
2026-06-18T03:27:53Z
Modified
2026-06-18T06:01:51.227413109Z
Summary
Malicious code in fmt-helpers-794b (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (19b05306978ff506805f118049f81c74c5da1503bb34fd14a2a57d4e6faac52c)

Package declares a postinstall lifecycle hook ("postinstall": "node run.js" in package.json) that runs run.js automatically on npm install. run.js imports os, fs, http, https, and child_process and reads host identification fields (os.hostname(), os.platform()), performs filesystem reads (fs.readFileSync, fs.existsSync), and issues multiple outbound POST calls (run.js lines 131, 134, 345, 352). The combination of automatic install-time execution, host/filesystem reconnaissance, and outbound HTTP POSTs is the canonical install-time exfiltration shape with no legitimate library purpose presented in the package. Installing this package causes immediate execution of code that collects installer host data and ships it off-host.

Source: ghsa-malware (3aca1041e88b5f01d4d06b372aebdd36015952d30d7ea18f9dc9c7a7f33df351)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-006962",
            "sha256": "19b05306978ff506805f118049f81c74c5da1503bb34fd14a2a57d4e6faac52c",
            "modified_time": "2026-06-18T03:56:13Z",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "import_time": "2026-06-18T05:42:04.605890445Z"
        },
        {
            "id": "GHSA-4wmf-8x9r-34cc",
            "sha256": "3aca1041e88b5f01d4d06b372aebdd36015952d30d7ea18f9dc9c7a7f33df351",
            "modified_time": "2026-06-18T03:28:04Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware",
            "import_time": "2026-06-18T05:54:18.940065655Z"
        }
    ]
}
References
Credits

Affected packages

npm / fmt-helpers-794b

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "fmt-helpers-794b-1.0.0.tgz",
            "hashes": {
                "sha1": "d44ad8e01322dc1aa5e920cc747f5829e0ea7b44",
                "sha512_sri": "sha512-33EbE7K+39mTtkYXVqDKr+9i3vQq6yWncUXqvWwZTe32sGxAmqbketMjJIdARtYkcO+jWA613MlUGAc4PI1rQw=="
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "eae061189c24393375d41ae80c559257b7304f1b21147d2d52b72829419bb79747b10d",
            "sha256": "8a7e9a6d1a8cb6994d1f303bde5da812c4e6cd735e3e3614b5c9f423ec26699e",
            "path": "package.json"
        },
        {
            "tlsh": "0b82f87219b7461479a3e6adeb2fa4015433f1077a51eda0f28c72610fcf668d172af8",
            "sha256": "07130470dbf4d1252105e86325a3a354dd299a74aba0d98c78d76a4d5ab6e1bc",
            "path": "run.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/fmt-helpers-794b/MAL-2026-6092.json"