MAL-2025-47222

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@things-factory/env/MAL-2025-47222.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-47222
Aliases
  • GHSA-4339-7288-v23r
Published
2025-09-16T09:31:31Z
Modified
2025-09-18T04:14:26Z
Summary
Malicious code in @things-factory/env (npm)
Details

Suspicious postinstall script executing bundle.js and YARA rule match on bundle.js indicate potential malicious behavior.


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

Source: ghsa-malware (88b8463d9fb16ac5faed1cd122997c683cc79534786bcf816139cefc13897168)

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.

Source: google-open-source-security (7ac4a7bc3b978a3dc49b3ba8cd61aea233f10c0adeb62d2d337cd29a49479f72)

This package was compromised by the Shai-Hulud NPM worm. The malicious payload steals tokens and credentials and publishes them to GitHub before propogating itself to NPM packages the user owns.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "88b8463d9fb16ac5faed1cd122997c683cc79534786bcf816139cefc13897168",
            "source": "ghsa-malware",
            "modified_time": "2025-09-16T22:11:33Z",
            "id": "GHSA-4339-7288-v23r",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "9.0.42"
                        },
                        {
                            "last_affected": "9.0.45"
                        }
                    ]
                }
            ],
            "import_time": "2025-09-17T00:07:09.220955818Z"
        },
        {
            "sha256": "bf5ee76b8a53a8349d0c0521c97f5d4a88a721bb333c8c6c94deedb64a064dd9",
            "source": "ghsa-malware",
            "modified_time": "2025-09-16T22:11:33Z",
            "id": "GHSA-4339-7288-v23r",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "9.0.42"
                        },
                        {
                            "last_affected": "9.0.45"
                        }
                    ]
                }
            ],
            "import_time": "2025-09-17T00:34:59.040983604Z"
        },
        {
            "sha256": "7ac4a7bc3b978a3dc49b3ba8cd61aea233f10c0adeb62d2d337cd29a49479f72",
            "source": "google-open-source-security",
            "modified_time": "2025-09-17T05:58:45Z",
            "versions": [
                "9.0.45",
                "9.0.44",
                "9.0.43",
                "9.0.42"
            ],
            "import_time": "2025-09-17T05:59:33.953826Z"
        },
        {
            "sha256": "df6f7082249a1ca880de179b1634fbfa8857b90e3b002e941cb6f0c4406d4ac9",
            "source": "ghsa-malware",
            "modified_time": "2025-09-16T22:11:33Z",
            "id": "GHSA-4339-7288-v23r",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "9.0.42"
                        },
                        {
                            "last_affected": "9.0.45"
                        }
                    ]
                }
            ],
            "import_time": "2025-09-18T04:13:59.056767846Z"
        }
    ]
}
References
Credits

Affected packages

npm / @things-factory/env

Package

Name
@things-factory/env
View open source insights on deps.dev
Purl
pkg:npm/%40things-factory/env

Affected ranges

Type
SEMVER
Events
Introduced
9.0.42
Last affected
9.0.45

Affected versions

9.*
9.0.42
9.0.43
9.0.44
9.0.45

Database specific

cwes
[
    {
        "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.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@things-factory/env/MAL-2025-47222.json"