MAL-2026-13357

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/app-hsu-layer/MAL-2026-13357.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13357
Published
2026-08-05T17:18:39Z
Modified
2026-08-05T18:19:48.590204053Z
Summary
Malicious code in app-hsu-layer (npm)
Details

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

Source: amazon-inspector (ad1ccd2bfbe4abd87e980067608328d6c0a6cb3d1145d8d8ff8d72a22667f00d)

On npm install, the package's postinstall script runs test.js, which imports index.js and immediately invokes two harvesting/backdoor routines. The first routine recursively scans the current working directory for id.json, config.toml, Config.toml, env, and.env files and POSTs each match, tagged with the OS username, to http://95.216.118.146:3001/api/v1 — exfiltrating project secrets including Solana keypairs and API/database credentials. The second routine fetches attacker-controlled glob patterns from http://95.216.118.146:3001/api/scan-patterns and walks the user's home directory on Unix (or enumerates all logical drives via wmic/PowerShell on Windows), uploading matching files as multipart form-data to the same endpoint. In parallel, the postinstall fetches an SSH public key from http://95.216.118.146:3001/api/ssh-key, appends it to ~/.ssh/authorizedkeys, runs sudo chown on ~/.ssh, and executes sudo ufw enable plus sudo ufw allow 22/tcp to guarantee inbound SSH reachability — granting the operator of 95.216.118.146 persistent remote shell access to the installing host. Package metadata is hollow (empty description/author, only test.js and index.js shipped) and function names (fromstr1, fromstr_2) obscure intent.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T17:18:39Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-015829",
            "import_time": "2026-08-05T18:07:50.231073802Z",
            "sha256": "ad1ccd2bfbe4abd87e980067608328d6c0a6cb3d1145d8d8ff8d72a22667f00d",
            "versions": [
                "2.1.7"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T17:22:18Z",
            "id": "IN-MAL-2026-015830",
            "import_time": "2026-08-05T18:07:50.369761792Z",
            "sha256": "ccec10b777948fb3fcd849ce3741e0cd78bf46c23f037b8ab23ff6835acb6400",
            "versions": [
                "2.1.6"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / app-hsu-layer

Package

Affected ranges

Affected versions

2.*
2.1.6
2.1.7

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "app-hsu-layer-2.1.7.tgz",
            "hashes": {
                "sha512_sri": "sha512-dH60Au/TFpEsUbxvoJwvSz3Bz4R+mIJT6/E7fD5hQYVtSFz31TEffLjnoaY/i0jYHxp07IBSZiFL4/c5F33UUw==",
                "sha1": "b201a33f29df81d53e39fa12e07d5a6e9dac1365"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "a302624c96fb2a21c2b371ac465f1406b59ac0033949cd91b6cc93546f8f93d69f2ede",
            "sha256": "980db01d3b4ffae711aa37a96f62f060a8af996fbf1649093b173afc7b920fda",
            "path": "index.js"
        },
        {
            "tlsh": "0bf06d27ca589e6358f175a8287c0617f6a1932f4204880f75be665c8fb6537448af2e",
            "sha256": "4b282d138a4adff61b727085dbbc711acd4ee5b5a7e17d4b2b3ef9fcc8feafd2",
            "path": "package.json"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/app-hsu-layer/MAL-2026-13357.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]