mal-2026-6187
Vulnerability from ossf_malicious_packages
Published
2026-06-19 03:59
Modified
2026-06-19 05:18
Summary
Malicious code in eslint-helper (npm)
Details

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

Source: amazon-inspector (5802f88a31cfb1c54196395aa04377de1c98657cdd78f59e4a595f2913239301)

Package masquerades as an ESLint utility but contains no lint-related code. The exported from_str() recursively walks process.cwd() searching for secret-bearing files (.env, config.toml, Config.toml, config.json, env, id.json) and POSTs each file's contents to a hardcoded, base64-obfuscated endpoint at https://vercel-backend-five-vert.vercel.app/api/v1. A helper _gsh() additionally reads ~/.bash_history, ~/.zsh_history, fish history, and PowerShell PSReadLine ConsoleHost_history.txt, and shells out via execSync("bash -c history") and execSync("zsh -c 'fc -l -1000'") to dump in-memory shell history, then ships each to the same endpoint. All sensitive strings (target filenames, exfil URL, HTTP headers, USER env var name) are base64-obfuscated and decoded at module load via a decodeStr helper, indicating intentional evasion. Any project that requires this package and invokes from_str (or runs the shipped test.js) will leak credentials and shell history to the attacker.

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.
Credits

{
  "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"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "index.js",
              "sha256": "9f0ad4bbcea4f24cf16611e7012fbe4897084a439b62aa203a853656983f3048",
              "tlsh": "80f176a901162126d6f1e7f8eb560406f7ded2137202c742b6ac4ac92f77528e1d2fec"
            }
          ],
          "package_integrity": [
            {
              "filename": "eslint-helper-4.0.1.tgz",
              "hashes": {
                "sha1": "88629446eddfc9db716f5ee9dd7e0da017f74049",
                "sha512_sri": "sha512-Euh8ickmUDF2nZpge0pEuwessMm/lrQ9tGdW72TV7T0IJWvmdHmYqRlQ5h5aij1zQOiSBHwZlHm51vO91KJNWg=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "eslint-helper"
      },
      "versions": [
        "4.0.1",
        "4.0.2"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-007041",
        "import_time": "2026-06-19T05:16:48.127092344Z",
        "modified_time": "2026-06-19T03:59:01Z",
        "sha256": "287d2ce5e8564f37ce829dd1a28c92c7f484637512ac3174628a89181fb6e5b1",
        "source": "amazon-inspector",
        "versions": [
          "4.0.1"
        ]
      },
      {
        "id": "IN-MAL-2026-007044",
        "import_time": "2026-06-19T05:16:48.47697355Z",
        "modified_time": "2026-06-19T03:59:06Z",
        "sha256": "5802f88a31cfb1c54196395aa04377de1c98657cdd78f59e4a595f2913239301",
        "source": "amazon-inspector",
        "versions": [
          "4.0.2"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5802f88a31cfb1c54196395aa04377de1c98657cdd78f59e4a595f2913239301)\nPackage masquerades as an ESLint utility but contains no lint-related code. The exported from_str() recursively walks process.cwd() searching for secret-bearing files (.env, config.toml, Config.toml, config.json, env, id.json) and POSTs each file\u0027s contents to a hardcoded, base64-obfuscated endpoint at https://vercel-backend-five-vert.vercel.app/api/v1. A helper _gsh() additionally reads ~/.bash_history, ~/.zsh_history, fish history, and PowerShell PSReadLine ConsoleHost_history.txt, and shells out via execSync(\"bash -c history\") and execSync(\"zsh -c \u0027fc -l -1000\u0027\") to dump in-memory shell history, then ships each to the same endpoint. All sensitive strings (target filenames, exfil URL, HTTP headers, USER env var name) are base64-obfuscated and decoded at module load via a decodeStr helper, indicating intentional evasion. Any project that requires this package and invokes from_str (or runs the shipped test.js) will leak credentials and shell history to the attacker.\n",
  "id": "MAL-2026-6187",
  "modified": "2026-06-19T05:18:24Z",
  "published": "2026-06-19T03:59:01Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/eslint-helper/v/4.0.1"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/eslint-helper/v/4.0.2"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in eslint-helper (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…