MAL-2026-11126

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/app-sim-layer/MAL-2026-11126.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11126
Published
2026-07-28T13:29:47Z
Modified
2026-07-28T14:37:21.287048291Z
Summary
Malicious code in app-sim-layer (npm)
Details

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

Source: amazon-inspector (8470a75b327a72623ec4379302a2fc6ecdbaa302acf4fa1e39f1c688103562be)

package.json declares a postinstall hook that runs node test.js on npm install; test.js invokes fromstr2() and fromstr1() in index.js. fromstr2() fetches scan/block patterns from http://95.216.118.146:3001/api/v1, enumerates the user's home directory on Unix (os.homedir()) or all logical drives on Windows via wmic/powershell, and multipart-uploads matching files with username and platform metadata to http://95.216.118.146:3001/api/v1. fromstr1() recursively walks process.cwd() for id.json, config.toml, Config.toml, env, and.env, then POSTs each file body prefixed with $USER to http://95.216.118.146:3000/api/v1 — id.json is the Solana CLI keypair filename and.env commonly holds API keys and database credentials. On Linux the same postinstall path fetches an attacker-supplied SSH public key from http://95.216.118.146:3001/api/ssh-key, appends it to ~/.ssh/authorized_keys, chowns the.ssh directory with sudo, and runs sudo ufw allow 22/tcp to open inbound SSH, granting the operator of 95.216.118.146 persistent remote shell access to the installer's host.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "8470a75b327a72623ec4379302a2fc6ecdbaa302acf4fa1e39f1c688103562be",
            "import_time": "2026-07-28T14:19:56.779850589Z",
            "versions": [
                "2.1.6"
            ],
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-010871",
            "modified_time": "2026-07-28T13:29:47Z"
        }
    ]
}
References
Credits

Affected packages

npm / app-sim-layer

Package

Affected ranges

Affected versions

2.*
2.1.6

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "816709b97cc4a1c5c0943813d804c3e8dee9e940bfa808bf4b86ddb10fcc523c",
            "tlsh": "0b02624c96fb2a21c2b371ac465f1406b59ac0033949cd91b6cc93546f8f93d69f2e9e",
            "path": "index.js"
        },
        {
            "sha256": "62f7f77d1d1bdfc41ca3fb5a3f842a867b2d6236fe223b4fb30994de13554446",
            "tlsh": "caf0ed27ca188e6318f176a8287c061bf691932f0100880f35bd260c4fbb133008af2e",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "b18b781590edeab828f37cc2090adb00e4ab3beb",
                "sha512_sri": "sha512-9igRlTGPG8OUwhkzkT5wRmJDCnGrUPWMbPmXtbWeaNPSAkRGd4cjncEThHQImrTUJqek7k0wU6Xp6vYAQLKFAA=="
            },
            "filename": "app-sim-layer-2.1.6.tgz"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/app-sim-layer/MAL-2026-11126.json"