MAL-2026-5376

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/rrweb-sdk/MAL-2026-5376.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5376
Aliases
  • GHSA-j6f2-qf2j-5mh5
Published
2026-06-09T14:17:42Z
Modified
2026-06-09T19:01:30Z
Summary
Malicious code in @doaction/rrweb-sdk (npm)
Details

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

Source: amazon-inspector (6efd52baa69926a32dbac2a3c5eb53c361935e9a3386d2893bf2d7506ab4dfea)

@doaction/rrweb-sdk@9.9.9 is a dependency-confusion / namespace-impersonation package targeting the rrweb session-recording SDK ecosystem. The package's package.json declares "preinstall": "node scripts/postinstall.js", and scripts/postinstall.js does require('@doaction/shared/bin/postinstall.js') unconditionally on npm install. The transitive @doaction/shared dependency collects installer-side environment data and POSTs it to a Datadog endpoint (the package self-describes as Datadog environment telemetry, and src/index.js only re-exports collectEnv / sendToDatadog / reportEnvToDatadog — there is no rrweb session-recording code despite the name and keywords). The 9.9.9 version number is a canonical dependency-confusion marker designed to win semver resolution over a legitimately-named internal rrweb-sdk package. The package therefore exfiltrates the installer's environment variables (commonly containing CI tokens, cloud credentials, and internal hostnames) to a third party before the consumer's code ever runs. A second lifecycle script scripts/preinstall.js ships alongside but is not the one wired into the hook, consistent with templated mass-publication across multiple impersonated SDK names.

Source: ghsa-malware (8ae23ff4baeae18c4ffdd4dbdc04091dc055aa34b13a2d906d7f798e3c0c209b)

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": "GHSA-j6f2-qf2j-5mh5",
            "import_time": "2026-06-09T15:22:39.848953141Z",
            "modified_time": "2026-06-09T14:17:43Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "8ae23ff4baeae18c4ffdd4dbdc04091dc055aa34b13a2d906d7f798e3c0c209b",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-004999",
            "import_time": "2026-06-09T17:45:47.878849483Z",
            "modified_time": "2026-06-09T17:15:04Z",
            "sha256": "74897b5bff3cc06fa0038d19991061a22aa6aea2cb2f0e2f2449f66155f45620",
            "source": "amazon-inspector",
            "versions": [
                "99.99.99"
            ]
        },
        {
            "id": "IN-MAL-2026-005000",
            "import_time": "2026-06-09T17:45:47.920719302Z",
            "modified_time": "2026-06-09T17:15:04Z",
            "sha256": "ec32a2626d0a24526822d8f8f691b25e23ddd21bde3d59ef2f5093202f587000",
            "source": "amazon-inspector",
            "versions": [
                "99.99.99"
            ]
        },
        {
            "id": "IN-MAL-2026-005176",
            "import_time": "2026-06-09T18:50:22.49308867Z",
            "modified_time": "2026-06-09T18:16:29Z",
            "sha256": "60dc3d706440873ae849f19f8221c45725dd16a88359fd5c602047791f084347",
            "source": "amazon-inspector",
            "versions": [
                "9.9.9"
            ]
        },
        {
            "id": "IN-MAL-2026-005175",
            "import_time": "2026-06-09T18:50:22.433196512Z",
            "modified_time": "2026-06-09T18:16:28Z",
            "sha256": "6efd52baa69926a32dbac2a3c5eb53c361935e9a3386d2893bf2d7506ab4dfea",
            "source": "amazon-inspector",
            "versions": [
                "9.9.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @doaction/rrweb-sdk

Package

Name
@doaction/rrweb-sdk
View open source insights on deps.dev
Purl
pkg:npm/%40doaction%2Frrweb-sdk

Affected ranges

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

Affected versions

9.*
9.9.9
99.*
99.99.99

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "domains": [
        "e1gjv2ne5a.execute-api.ap-northeast-1.amazonaws.com"
    ],
    "evidence_files": [
        {
            "path": "scripts/postinstall.js",
            "sha256": "864c1719beacd1efc52ae168aa1ce42cd13451fedbc66b12e44e97eed7205333",
            "tlsh": "7dd0224e7a8db77c3ce0457a2943234a72b181340220b6ac789a03529724284aa1f4e1"
        },
        {
            "path": "package.json",
            "sha256": "a95c0e62f440d0c436ab700ee18a723d7bff82d44c215da33f4c750c3e9d6689",
            "tlsh": "dff097203b128b331dc126a25d37801273b18e2f404079082adf2219875c2bfa6ff22d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/rrweb-sdk/MAL-2026-5376.json"