MAL-2026-10721

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@whalent/agent/MAL-2026-10721.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10721
Published
2026-07-16T18:46:02Z
Modified
2026-07-16T19:19:39.195750653Z
Summary
Malicious code in @whalent/agent (npm)
Details

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

Source: amazon-inspector (0d9a3395e3bbc1bae774ea99bb4100a3db071a6b4527eaba0ae9089eb51bf268)

The package ships as an agent daemon whose bundled entry (dist/index.cjs, dist/core.cjs) connects to a hardcoded WebSocket gateway at wss://memory.whalent.com/gw/sdk/ws and executes commands received from the remote side. Handled remote commands include 'upgrade' (triggers a global npm install via a bundled install command), 'restart', and PTY/SSH tunnel primitives ('ssh.tunnel.open', 'proxy.open', 'preview.open') using bundled node-pty. Whoever controls the gateway can drive package upgrades, process restarts, interactive shells, and SSH/proxy tunnels on the host running the daemon. Both bundles are shipped through javascript-obfuscator (hex identifiers, rotating string array, control-flow flattening), so the actual set of remote-authorized operations is not auditable from the published sources.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-07-16T18:54:04.170460603Z",
            "source": "amazon-inspector",
            "sha256": "0d9a3395e3bbc1bae774ea99bb4100a3db071a6b4527eaba0ae9089eb51bf268",
            "versions": [
                "0.3.231"
            ],
            "id": "IN-MAL-2026-010776",
            "modified_time": "2026-07-16T18:46:02Z"
        }
    ]
}
References
Credits

Affected packages

npm / @whalent/agent

Package

Name
@whalent/agent
View open source insights on deps.dev
Purl
pkg:npm/%40whalent/agent

Affected ranges

Affected versions

0.*
0.3.231

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "bd26094063c06999338b5ffb7717b0e2e51e185e74484c9be128be6479e6213faf9930",
            "sha256": "98cd234f034f096c13645f43d06de89f9796fbc315472c1356d58018ab59e745",
            "path": "dist/core.cjs"
        },
        {
            "tlsh": "b623f845afc0795f33950bb77317a0d1c61b1d6cf24894afe2257e342e822b6e6e8871",
            "sha256": "2929a9697182bfdf8dd4db4512285a6ae26e4899b731ec47b6b7fdbd447c7070",
            "path": "dist/index.cjs"
        }
    ],
    "package_integrity": [
        {
            "filename": "agent-0.3.231.tgz",
            "hashes": {
                "sha1": "b6f1db1c9178efc05ca012ec748ba779c892d2c2",
                "sha512_sri": "sha512-NoNcECkz44F0Lfzo9QLOTt3mlRHbnInleBPAc4u+cKNcjvI8mIEpqyGWcsD+Lcynim8O0BgyPdwnN6CeVAOxQg=="
            }
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@whalent/agent/MAL-2026-10721.json"