MAL-2026-3771
Vulnerability from ossf_malicious_packages
Published
2026-05-14 19:25
Modified
2026-05-14 19:25
Summary
Malicious code in request-logger-canary (npm)
Details

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

Source: amazon-inspector (cf0d566d7abb400988aea74b00099a6db4c5ea928f32e7d44648193e21a36035)

request-logger-canary@1.0.0 ships a preinstall.js that, when npm install runs, opens a TCP socket to 52.74.242.200:8851 and pipes an interactive /bin/sh to the remote endpoint (stdin/stdout/stderr all bridged to the socket). The code executes unconditionally at install time via scripts.preinstall — there is no guard, no if (false), no environment check. The README falsely claims the reverse shell is dead code wrapped in if (false) and located in postinstall.js; the live payload is actually in preinstall.js with no guard. This misdirection is itself evidence of deliberate supply-chain attack intent. Any machine running npm install request-logger-canary hands a root-of-user interactive shell to the operator of 52.74.242.200.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits
Amazon Inspector actran@amazon.com

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "preinstall.js",
              "sha256": "17268959e805d34e252d226171a791ebce45546db77a0803108e7744d6a7f843",
              "tlsh": "20e0d8dc0bf5a238b6f60cf0e9b055372623c2103343e2e5859d48a156c39ca4e23ef2"
            },
            {
              "path": "README.md",
              "sha256": "170a50fd96bdda7a4338c3340844a5d2fae917eaea34d1579972910303cba251",
              "tlsh": "463126e5d80153a7395682bdd093d058e9e960348b20a879c9f58078a12739ec21fd77"
            }
          ],
          "package_integrity": [
            {
              "filename": "request-logger-canary-1.0.0.tgz",
              "hashes": {
                "sha1": "4b76c8104a294ac2c7cac6787163795ed52a7885",
                "sha512_sri": "sha512-qkTCj7DAIjUmY+Deb4ohssmG4BWuzSYMCJHA0XWmdcnugvwI8eP/t+1XH+BhbdpyPzUlAqQ5jVVrcJHeaDyPVw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "request-logger-canary"
      },
      "versions": [
        "1.0.0"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-002731",
        "import_time": "2026-05-15T07:37:18.417685682Z",
        "modified_time": "2026-05-14T19:25:32Z",
        "sha256": "cf0d566d7abb400988aea74b00099a6db4c5ea928f32e7d44648193e21a36035",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cf0d566d7abb400988aea74b00099a6db4c5ea928f32e7d44648193e21a36035)\nrequest-logger-canary@1.0.0 ships a preinstall.js that, when `npm install` runs, opens a TCP socket to 52.74.242.200:8851 and pipes an interactive `/bin/sh` to the remote endpoint (stdin/stdout/stderr all bridged to the socket). The code executes unconditionally at install time via scripts.preinstall \u2014 there is no guard, no `if (false)`, no environment check. The README falsely claims the reverse shell is dead code wrapped in `if (false)` and located in postinstall.js; the live payload is actually in preinstall.js with no guard. This misdirection is itself evidence of deliberate supply-chain attack intent. Any machine running `npm install request-logger-canary` hands a root-of-user interactive shell to the operator of 52.74.242.200.\n",
  "id": "MAL-2026-3771",
  "modified": "2026-05-14T19:25:32Z",
  "published": "2026-05-14T19:25:32Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/request-logger-canary/v/1.0.0"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in request-logger-canary (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…