MAL-2026-4255

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cdk-sagemaker-notebook-workflow/MAL-2026-4255.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4255
Published
2026-05-22T11:45:44Z
Modified
2026-05-26T06:02:17.631026801Z
Summary
Malicious code in cdk-sagemaker-notebook-workflow (npm)
Details

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

Source: amazon-inspector (6cc9c1db01ca14b294be21438478ec14dc6549a4b7b9ec5cf73dd7aa227f7ad8)

The package declares a preinstall hook (node index.js) in package.json that fires automatically on npm install. The script collects os.hostname(), os.userInfo().username, os.platform(), current working directory, home directory, the contents of /etc/passwd (fs.readFileSync('/etc/passwd', 'utf8')), and the first 30 entries of process.env (Object.entries(process.env).slice(0, 30)), then POSTs the JSON payload to https://3nrgzlqwix6erldow0s0kttsojuai36s.oastify.com/greengrass/<execId> — a Burp Collaborator-style OAST host. Bulk env-var enumeration on CI runners typically captures AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, NPM_TOKEN, and similar credentials. The package name impersonates the AWS CDK construct namespace (cdk-sagemaker-notebook-workflow) and the README contains the string Takeover By l0bo, confirming attacker intent. This is an unambiguous install-time credential and host-data exfiltrator with a typosquat lure on the AWS CDK ecosystem.

Source: ossf-package-analysis (2f835f9a0447616b7070857544dcd2d34d3d287d213eb359769be5cc80daf3e8)

The OpenSSF Package Analysis project identified 'cdk-sagemaker-notebook-workflow' @ 2.0.5 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "536cb79da290dd24ddd8ec1dd5fefbd6313bf5b622bbad6a9933fb3fb81bcb44",
            "import_time": "2026-05-22T13:04:11.115789607Z",
            "source": "ossf-package-analysis",
            "modified_time": "2026-05-22T12:00:39Z",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "sha256": "2f835f9a0447616b7070857544dcd2d34d3d287d213eb359769be5cc80daf3e8",
            "import_time": "2026-05-24T12:30:15.409697413Z",
            "source": "ossf-package-analysis",
            "modified_time": "2026-05-24T12:01:45Z",
            "versions": [
                "2.0.5"
            ]
        },
        {
            "sha256": "0c452e5366df84fc79334f47faecad07d7cb21fdbcca62d5f5630ad13f6debb8",
            "import_time": "2026-05-26T05:52:07.528819488Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-22T11:45:44Z",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-004197"
        },
        {
            "sha256": "0d957bae73cd17cd27ed3b594cb5063797d8c18a9dda018887a32ff8e85a3617",
            "import_time": "2026-05-26T05:52:07.997105313Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-22T13:10:22Z",
            "versions": [
                "1.0.1"
            ],
            "id": "IN-MAL-2026-004201"
        },
        {
            "sha256": "2a051645ba8b7a584175d7063a7d4829e70025b9e2636ba6963e6ce9501cc452",
            "import_time": "2026-05-26T05:52:43.885733761Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-24T11:57:33Z",
            "versions": [
                "2.0.5"
            ],
            "id": "IN-MAL-2026-004504"
        },
        {
            "sha256": "b81bb9433f48fe99e6eb4536ed122730a0e04b662606555519076decfc8938f4",
            "import_time": "2026-05-26T05:52:43.753952575Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-24T11:57:33Z",
            "versions": [
                "2.0.5"
            ],
            "id": "IN-MAL-2026-004503"
        },
        {
            "sha256": "e6729c63b068cdba53c2f09a9f38f7020fefc8bb3c0fa820307feb4e8445fd9d",
            "import_time": "2026-05-26T05:52:08.363167972Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-22T13:22:20Z",
            "versions": [
                "1.0.2"
            ],
            "id": "IN-MAL-2026-004204"
        },
        {
            "sha256": "04cfadbc867fc5da65c0084089a8c21982b7b086d0798c0c86d30b1cb22c2bb9",
            "import_time": "2026-05-26T05:52:43.430131324Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-24T11:49:29Z",
            "versions": [
                "2.0.4"
            ],
            "id": "IN-MAL-2026-004501"
        },
        {
            "sha256": "6cc9c1db01ca14b294be21438478ec14dc6549a4b7b9ec5cf73dd7aa227f7ad8",
            "id": "IN-MAL-2026-004196",
            "source": "amazon-inspector",
            "modified_time": "2026-05-22T11:45:44Z",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2026-05-26T05:52:07.419447356Z"
        },
        {
            "sha256": "c5dbd0c88e9755ed081f0b8c96bc09e0e380eea1394b1fb3e61050ff1d67552e",
            "import_time": "2026-05-26T05:52:11.400984503Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-22T15:24:41Z",
            "versions": [
                "1.0.3"
            ],
            "id": "IN-MAL-2026-004225"
        },
        {
            "sha256": "ff7c0a5d540e5ff3b2798858685b3bb07b0e24c9faccccd526d9331d71ad08f7",
            "import_time": "2026-05-26T05:52:43.550244482Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-24T11:49:29Z",
            "versions": [
                "2.0.4"
            ],
            "id": "IN-MAL-2026-004502"
        }
    ]
}
References
Credits

Affected packages

npm / cdk-sagemaker-notebook-workflow

Package

Name
cdk-sagemaker-notebook-workflow
View open source insights on deps.dev
Purl
pkg:npm/cdk-sagemaker-notebook-workflow

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
2.*
2.0.4
2.0.5

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cdk-sagemaker-notebook-workflow/MAL-2026-4255.json"
cwes
[
    {
        "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.",
        "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.",
        "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.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "domains": [
        "3nrgzlqwix6erldow0s0kttsojuai36s.oastify.com"
    ],
    "evidence_files": [
        {
            "sha256": "55864aa6619522f14d2d2add969cb9b1e96499659ee657c48bcf9c649a26e52a",
            "tlsh": "7e414f9065f9963476f36c80f54355236b23f6023806f6e0badc038a17c9be41172ab9",
            "path": "index.js"
        }
    ],
    "package_integrity": [
        {
            "filename": "cdk-sagemaker-notebook-workflow-1.0.1.tgz",
            "hashes": {
                "sha1": "af3573f0c5cef33754701a396a96cb5a38d72823",
                "sha512_sri": "sha512-ptM9yvYk0hwKtTCYb10zPi2BVJmvf+zgrDpK7sUUO3VWwX2RrwYnFhYbqJTyCrrQWEEAA7qx/9sPSk0/MO4PTw=="
            }
        }
    ]
}