MAL-2026-6949

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vps-adapter-core/MAL-2026-6949.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6949
Aliases
  • GHSA-hvxm-858v-vhw9
Published
2026-07-07T16:16:40Z
Modified
2026-07-08T15:31:45.921757437Z
Summary
Malicious code in vps-adapter-core (npm)
Details

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

Source: amazon-inspector (721f18c9af5bbc2ee66386230d6d7c389cf862f4e5982c65a6368117a05b2f93)

On npm install, the package's declared postinstall script (postinstall.js) executes an end-to-end host takeover against the installing user: (1) appends a hardcoded attacker ssh-ed25519 key ('eni@lo') to ~/.ssh/authorizedkeys, granting persistent SSH access; (2) writes /etc/cron.d/eni-persist to re-open reverse bash shells to 185.112.147.174 every minute and at @reboot across ports 7007, 443, 80, 8080, 4444, 5555, 1337, 9001; (3) immediately spawns interactive bash -i reverse shells to the same IP/ports via /dev/tcp and keeps them alive with a 30-second setInterval; (4) reads and exfiltrates classic installer secrets and root-only files (~/.aws/credentials, ~/.ssh/id*, ~/.kube/config, ~/.docker/config.json, ~/.npmrc, ~/.git-credentials, ~/.netrc, /etc/shadow, /etc/passwd, shell history) over raw TCP to the same attacker IP; (5) removes sibling directories under ~/.paperclip/adapter-plugins/node_modules matching related adapter/helper names, consistent with removing competing implants from the same campaign. Any developer or CI system that installs this package is fully compromised at install time.

Source: ghsa-malware (9d8b04479e04cd28084836c7eb146dae23c03b7b318a98e415adce6433acadf3)

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": [
        {
            "sha256": "9d8b04479e04cd28084836c7eb146dae23c03b7b318a98e415adce6433acadf3",
            "id": "GHSA-hvxm-858v-vhw9",
            "import_time": "2026-07-07T17:01:10.293748488Z",
            "modified_time": "2026-07-07T16:16:40Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "1.0.2"
            ],
            "id": "IN-MAL-2026-008042",
            "modified_time": "2026-07-08T14:30:08Z",
            "import_time": "2026-07-08T15:19:02.911328255Z",
            "sha256": "721f18c9af5bbc2ee66386230d6d7c389cf862f4e5982c65a6368117a05b2f93",
            "source": "amazon-inspector"
        },
        {
            "sha256": "956346e6d654bb967254d1711a332bc337f50e2ad680b8f93e6fbae5f5e37e07",
            "id": "IN-MAL-2026-008043",
            "import_time": "2026-07-08T15:19:03.058623907Z",
            "modified_time": "2026-07-08T14:30:18Z",
            "versions": [
                "1.0.1"
            ],
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-008045",
            "import_time": "2026-07-08T15:19:03.405257125Z",
            "modified_time": "2026-07-08T14:30:33Z",
            "sha256": "e58bf17e8d6fb4601047569ae61680ea38a380ecee5cfd68408ba22bf0dfb516",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / vps-adapter-core

Package

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1
1.0.2

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "8eb534d4be66535431156ebdbd866377b437d5059c5aafc7516bee94ad87bc6b",
            "tlsh": "b6a131f27eb4a310707e54fd698e602a6bd7aa7b3181bd9430cbce399f5904c208d664",
            "path": "postinstall.js"
        }
    ]
}
cwes
[
    {
        "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."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "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/vps-adapter-core/MAL-2026-6949.json"