MAL-2026-10230

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/enbd-react-lib/MAL-2026-10230.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10230
Aliases
  • GHSA-8g7r-j4vg-8w9q
Published
2026-07-06T00:00:00Z
Modified
2026-07-14T03:31:57Z
Summary
Malicious code in enbd-react-lib (npm)
Details

The enbd-react-lib package was published to the npm registry by user 'click2ai' (maintainer email privatek3m@protonmail.com) as part of a dependency-confusion / reconnaissance campaign. The package name mimics the internal/private package naming convention of a target organization (an 'enbd' internal namespace (Emirates NBD-style naming)) so that a misconfigured resolver installs this public lookalike instead of the intended private dependency.

The package declares a preinstall hook ("npm install @sentry/node && node examples/verify.js") that executes automatically at npm install time, before any application code runs. The bundled examples/verify.js initializes the @sentry/node client against a hardcoded, attacker-controlled Sentry DSN with sendDefaultPii enabled, resolves the installing host's public egress IP address by requesting Cloudflare's /cdn-cgi/trace endpoint (using a spoofed desktop-browser User-Agent to bypass bot challenges), then deliberately triggers a runtime exception and captures it. Flushing the event beacons the collected host telemetry (public IP plus Sentry default PII such as hostname, OS username and runtime/environment metadata) to the attacker's Sentry ingest endpoint at o4510485815754752.ingest.us.sentry.io.

Each impersonated namespace in the campaign beacons to a distinct Sentry project ID, letting the operator attribute successful installs to specific victim organizations — behaviour consistent with a dependency-confusion reconnaissance beacon rather than legitimate error monitoring. The install-time payload is byte-for-byte identical across all packages published by this account, differing only in the package name and the target DSN. This package's beacon targets Sentry project 4511675212038149.


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

Source: amazon-inspector (2ec45d22887d4ddcc03726e5614da388502600168d59bfa7a12453a90c22fc00)

Package enbd-react-lib@8.0.0 declares a preinstall script that runs node examples/verify.js. That script initializes Sentry with sendDefaultPii: true against a hardcoded DSN pointing at o4510485815754752.ingest.us.sentry.io/4511675212038149 (author-controlled Sentry project), resolves the installer's public IP via cloudflare.com/cdn-cgi/trace, attaches it via setUser({ip_address}), triggers a synthetic exception, and flushes the event. As a result, every npm install causes the installer's public IP and host/error context to be sent to the author's Sentry project without any opt-in. Additionally, src/index.js (the package main) hardcodes the same DSN as DEFAULT_DSN and is used whenever a downstream caller invokes init() without supplying their own dsn or SENTRY_DSN, silently relaying consumer application exceptions, user data, and IPs to the same author-controlled Sentry ingest endpoint rather than the caller's own project. The package name (enbd-react-lib) evokes an internal Emirates NBD React library, but the shipped code is a generic Sentry wrapper with no ENBD- or React-related functionality — consistent with a lure targeting Emirates NBD developers or CI systems.

Source: ghsa-malware (31506f3d65a861ed973ae79cdab47073aacaffa68511fe9e9d94813b4712c986)

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-009876",
            "import_time": "2026-07-13T09:10:57.082552301Z",
            "modified_time": "2026-07-13T08:19:35Z",
            "sha256": "2ec45d22887d4ddcc03726e5614da388502600168d59bfa7a12453a90c22fc00",
            "source": "amazon-inspector",
            "versions": [
                "8.0.0"
            ]
        },
        {
            "id": "GHSA-8g7r-j4vg-8w9q",
            "import_time": "2026-07-14T03:21:41.924045627Z",
            "modified_time": "2026-07-14T01:04:58Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "31506f3d65a861ed973ae79cdab47073aacaffa68511fe9e9d94813b4712c986",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / enbd-react-lib

Package

Name
enbd-react-lib
View open source insights on deps.dev
Purl
pkg:npm/enbd-react-lib

Affected ranges

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

Affected versions

8.*
8.0.0

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
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "f65cf9ebf2025307b2ea7ba06ffb7e827e50d55b95792aa75907e01f0740c418",
            "tlsh": "4af078508d342f2324d4b7656c790086a3648e4b46ac7d097bcf522d4b4c36f24ff1ad"
        },
        {
            "path": "src/index.js",
            "sha256": "2ad727526ab423c937815911e4d0801ece22efa70e9cffbf77f7df752b8aeaac",
            "tlsh": "6a12959a34f6232311e650f0025f90d97365d67a3339a9e0714d8be92fc90b8d6b3ed9"
        }
    ],
    "package_integrity": [
        {
            "filename": "enbd-react-lib-8.0.0.tgz",
            "hashes": {
                "sha1": "0e009d78f982367d849cb23ee1831aa498b7e8b3",
                "sha512_sri": "sha512-ubqkWKppHiUiG8B0SgOgi8a73LOx88STN7byl6t5g9lGkMSkdHOdCsTxWA5pSbzmaIHJfjLu3J82z8hbOuWwOg=="
            }
        }
    ]
}
iocs
{
    "domains": [
        "o4510485815754752.ingest.us.sentry.io"
    ],
    "urls": [
        "https://abbfc11111e117a3556e36aa8f778f4b@o4510485815754752.ingest.us.sentry.io/4511675212038149"
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/enbd-react-lib/MAL-2026-10230.json"