MAL-2026-16008

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/b2b-frontend-external-library/MAL-2026-16008.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16008
Published
2026-09-07T00:00:00Z
Modified
2026-09-08T20:30:09Z
Summary
Malicious code in b2b-frontend-external-library (npm)
Details

This package is malicious. It is not a real library. An attacker put it on the public npm registry. The package name is a copy of a private, internal package name. This is a dependency confusion attack. A build that gets the name from public npm installs this package in place of the real one.

The package.json has a preinstall script. npm runs this script during install. The script file is preinstall.js. It runs before a person can read the code.

The script collects data about the host. It reads the host name, the user name, the current directory, the install directory, the package name, the package version, the operating system, the Node.js version, and the npm user-agent text.

The script sends this data to remote servers. It uses three ways. First, it makes a DNS request to a subdomain of oast.online. It writes the token, the package name, the host name, and the user name into the DNS name as hex text. Second, it sends an HTTPS POST with the data as JSON to the same oast.online host. If HTTPS fails, it uses plain HTTP. Third, it sends an HTTP POST with the same JSON to a fixed IP address, 5.189.159.252. The beacon uses a fixed token, swisscom-oce-3b9f1c7a2e.

The index.js file does nothing. It is a placeholder. The code comments say this is authorized bug-bounty research. The behavior is still an unwanted install-time beacon. It sends host data to attacker-controlled servers without consent. All versions are malicious. Treat every host that installed this package as exposed. Remove the package. Look for DNS and HTTP traffic to the listed servers.


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

Source: amazon-inspector (09cca48cfb31563fd1eefa7c1d56c69ba1c8459a5089592884538d7b2cb7252b)

package.json declares a preinstall lifecycle script (preinstall.js) that runs on npm install. The script collects hostname, username, cwd, install path, platform/OS release, Node version, npm user-agent, and the resolved package name+version, then sends the data via a DNS lookup and two HTTP(S) POSTs to three hardcoded destinations: an OAST collector at dae7n4pijsh1ahi9684gu8get3kaiefc9.oast.online, a bare-IP HTTP endpoint at 5.189.159.252, and a URL under hackerone.com. The package name (b2b-frontend-external-library) and behavior match the dependency-confusion beacon pattern: any environment that resolves this public name during install unconditionally transmits identifying host and user information to third-party endpoints. Whether framed as bug-bounty research or not, the traced code performs unsolicited install-time collection and exfiltration of installer identifiers.

Database specific
{
    "iocs":  {
        "domains":  [
            "dae7n4pijsh1ahi9684gu8get3kaiefc9.oast.online"
        ],
        "files":  [
            {
                "digests":  {
                    "sha256":  "8f962a246826aaa6f7bd9db43ad0f13a51488058b451c82768f69913191ebfcb"
                },
                "note":  "Preinstall beacon. It collects host data and sends it to attacker servers over DNS and HTTP(S).",
                "paths":  [
                    "preinstall.js"
                ],
                "source":  "PACKAGE_ARCHIVE"
            }
        ],
        "ips":  [
            "5.189.159.252"
        ],
        "urls":  [
            "https://dae7n4pijsh1ahi9684gu8get3kaiefc9.oast.online/beacon/swisscom-oce-3b9f1c7a2e",
            "http://5.189.159.252/beacon/swisscom-oce-3b9f1c7a2e"
        ]
    },
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-019707",
            "import_time":  "2026-09-08T20:17:34.850098628Z",
            "modified_time":  "2026-09-08T19:51:39Z",
            "sha256":  "09cca48cfb31563fd1eefa7c1d56c69ba1c8459a5089592884538d7b2cb7252b",
            "source":  "amazon-inspector",
            "versions":  [
                "0.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-019706",
            "import_time":  "2026-09-08T20:17:34.756268218Z",
            "modified_time":  "2026-09-08T19:51:31Z",
            "sha256":  "53034a77ec110235e678b7bcac2e302305aa8d18adba5f1b3957c8544dd60a77",
            "source":  "amazon-inspector",
            "versions":  [
                "9999.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / b2b-frontend-external-library

Package

Name
b2b-frontend-external-library
View open source insights on deps.dev
Purl
pkg:npm/b2b-frontend-external-library

Affected ranges

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

Affected versions

0.*
0.0.1
9999.*
9999.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":  "preinstall.js",
            "sha256":  "8f962a246826aaa6f7bd9db43ad0f13a51488058b451c82768f69913191ebfcb",
            "tlsh":  "dd6194ae0daa50212272f7a4960f528dd6f3f1272506fa94b0ae82145fa443d137fcfd"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "b2b-frontend-external-library-0.0.1.tgz",
            "hashes":  {
                "sha1":  "6d32105650fe6d0efb805c7df0af5b23801daf12",
                "sha512_sri":  "sha512-QY7MPlo66cWfaL7r7N6PpQKUPTSN3kO9c5cVtviLrluvwLJVgbE5ux+RLjz7Vz898Qn9F0euvSCNDj+Mq8SsPw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/b2b-frontend-external-library/MAL-2026-16008.json"