mal-2026-4255
Vulnerability from ossf_malicious_packages
Published
2026-05-22 11:45
Modified
2026-05-26 05:55
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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "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.",
            "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.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "domains": [
            "3nrgzlqwix6erldow0s0kttsojuai36s.oastify.com"
          ],
          "evidence_files": [
            {
              "path": "index.js",
              "sha256": "55864aa6619522f14d2d2add969cb9b1e96499659ee657c48bcf9c649a26e52a",
              "tlsh": "7e414f9065f9963476f36c80f54355236b23f6023806f6e0badc038a17c9be41172ab9"
            }
          ],
          "package_integrity": [
            {
              "filename": "cdk-sagemaker-notebook-workflow-1.0.1.tgz",
              "hashes": {
                "sha1": "af3573f0c5cef33754701a396a96cb5a38d72823",
                "sha512_sri": "sha512-ptM9yvYk0hwKtTCYb10zPi2BVJmvf+zgrDpK7sUUO3VWwX2RrwYnFhYbqJTyCrrQWEEAA7qx/9sPSk0/MO4PTw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "cdk-sagemaker-notebook-workflow"
      },
      "versions": [
        "1.0.0",
        "2.0.5",
        "1.0.1",
        "1.0.2",
        "2.0.4",
        "1.0.3"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    },
    {
      "contact": [
        "https://github.com/ossf/package-analysis",
        "https://openssf.slack.com/channels/package_analysis"
      ],
      "name": "OpenSSF: Package Analysis",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "import_time": "2026-05-22T13:04:11.115789607Z",
        "modified_time": "2026-05-22T12:00:39Z",
        "sha256": "536cb79da290dd24ddd8ec1dd5fefbd6313bf5b622bbad6a9933fb3fb81bcb44",
        "source": "ossf-package-analysis",
        "versions": [
          "1.0.0"
        ]
      },
      {
        "import_time": "2026-05-24T12:30:15.409697413Z",
        "modified_time": "2026-05-24T12:01:45Z",
        "sha256": "2f835f9a0447616b7070857544dcd2d34d3d287d213eb359769be5cc80daf3e8",
        "source": "ossf-package-analysis",
        "versions": [
          "2.0.5"
        ]
      },
      {
        "id": "IN-MAL-2026-004197",
        "import_time": "2026-05-26T05:52:07.528819488Z",
        "modified_time": "2026-05-22T11:45:44Z",
        "sha256": "0c452e5366df84fc79334f47faecad07d7cb21fdbcca62d5f5630ad13f6debb8",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      },
      {
        "id": "IN-MAL-2026-004201",
        "import_time": "2026-05-26T05:52:07.997105313Z",
        "modified_time": "2026-05-22T13:10:22Z",
        "sha256": "0d957bae73cd17cd27ed3b594cb5063797d8c18a9dda018887a32ff8e85a3617",
        "source": "amazon-inspector",
        "versions": [
          "1.0.1"
        ]
      },
      {
        "id": "IN-MAL-2026-004504",
        "import_time": "2026-05-26T05:52:43.885733761Z",
        "modified_time": "2026-05-24T11:57:33Z",
        "sha256": "2a051645ba8b7a584175d7063a7d4829e70025b9e2636ba6963e6ce9501cc452",
        "source": "amazon-inspector",
        "versions": [
          "2.0.5"
        ]
      },
      {
        "id": "IN-MAL-2026-004503",
        "import_time": "2026-05-26T05:52:43.753952575Z",
        "modified_time": "2026-05-24T11:57:33Z",
        "sha256": "b81bb9433f48fe99e6eb4536ed122730a0e04b662606555519076decfc8938f4",
        "source": "amazon-inspector",
        "versions": [
          "2.0.5"
        ]
      },
      {
        "id": "IN-MAL-2026-004204",
        "import_time": "2026-05-26T05:52:08.363167972Z",
        "modified_time": "2026-05-22T13:22:20Z",
        "sha256": "e6729c63b068cdba53c2f09a9f38f7020fefc8bb3c0fa820307feb4e8445fd9d",
        "source": "amazon-inspector",
        "versions": [
          "1.0.2"
        ]
      },
      {
        "id": "IN-MAL-2026-004501",
        "import_time": "2026-05-26T05:52:43.430131324Z",
        "modified_time": "2026-05-24T11:49:29Z",
        "sha256": "04cfadbc867fc5da65c0084089a8c21982b7b086d0798c0c86d30b1cb22c2bb9",
        "source": "amazon-inspector",
        "versions": [
          "2.0.4"
        ]
      },
      {
        "id": "IN-MAL-2026-004196",
        "import_time": "2026-05-26T05:52:07.419447356Z",
        "modified_time": "2026-05-22T11:45:44Z",
        "sha256": "6cc9c1db01ca14b294be21438478ec14dc6549a4b7b9ec5cf73dd7aa227f7ad8",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      },
      {
        "id": "IN-MAL-2026-004225",
        "import_time": "2026-05-26T05:52:11.400984503Z",
        "modified_time": "2026-05-22T15:24:41Z",
        "sha256": "c5dbd0c88e9755ed081f0b8c96bc09e0e380eea1394b1fb3e61050ff1d67552e",
        "source": "amazon-inspector",
        "versions": [
          "1.0.3"
        ]
      },
      {
        "id": "IN-MAL-2026-004502",
        "import_time": "2026-05-26T05:52:43.550244482Z",
        "modified_time": "2026-05-24T11:49:29Z",
        "sha256": "ff7c0a5d540e5ff3b2798858685b3bb07b0e24c9faccccd526d9331d71ad08f7",
        "source": "amazon-inspector",
        "versions": [
          "2.0.4"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6cc9c1db01ca14b294be21438478ec14dc6549a4b7b9ec5cf73dd7aa227f7ad8)\nThe 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(\u0027/etc/passwd\u0027, \u0027utf8\u0027)`), 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/\u003cexecId\u003e` \u2014 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.\n\n## Source: ossf-package-analysis (2f835f9a0447616b7070857544dcd2d34d3d287d213eb359769be5cc80daf3e8)\nThe OpenSSF Package Analysis project identified \u0027cdk-sagemaker-notebook-workflow\u0027 @ 2.0.5 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n",
  "id": "MAL-2026-4255",
  "modified": "2026-05-26T05:55:01Z",
  "published": "2026-05-22T11:45:44Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/cdk-sagemaker-notebook-workflow/v/1.0.1"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/cdk-sagemaker-notebook-workflow/v/2.0.5"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/cdk-sagemaker-notebook-workflow/v/1.0.2"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/cdk-sagemaker-notebook-workflow/v/2.0.4"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/cdk-sagemaker-notebook-workflow/v/1.0.0"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/cdk-sagemaker-notebook-workflow/v/1.0.3"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in cdk-sagemaker-notebook-workflow (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…