mal-2026-6678
Vulnerability from ossf_malicious_packages
Published
2026-06-30 14:10
Modified
2026-07-01 19:13
Summary
Malicious code in ts-linting-builder (npm)
Details

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

Source: amazon-inspector (c719aef78218f6b59b9f209c41eff610782c86c2ced5aeabe288218ac3c4f880)

On npm install, the package's postinstall script (test.js) invokes routines in index.js that recursively scan the current working directory and the user's home directory (on Windows, all non-C: drives plus C:\Users) for files matching.env, id.json, config.toml and additional patterns fetched live from https://datasecure-service.vercel.app/api/scan-patterns. Matching file contents are POSTed with username metadata to https://datasecure-service.vercel.app/api/v1, harvesting Solana-style wallet keys (id.json), environment files, and arbitrary config secrets. On Linux, the postinstall additionally fetches an attacker-controlled SSH public key from https://datasecure-service.vercel.app/api/ssh-key, appends it to ~/.ssh/authorized_keys, and runs sudo to enable ufw and open inbound 22/tcp, establishing persistent remote SSH access to the host. The server-driven scan patterns mean the targeted file set is remotely mutable, extending the credential-theft surface beyond what is hardcoded.

Source: ghsa-malware (a94bed4fe706f9120b29ea2b3168223045294bb0c233c35c1cae913b28e5c76e)

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.

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": "5591dd6ad58a9351f98c415ff7be21fc4c71ac2a2862418c7e86f54c2cedc209",
              "tlsh": "a9f196d991772661cfb233b85a07100dfbdad13338028651b6ec46497f7b52861e2eee"
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "ts-linting-builder"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "2.1.2"
      ]
    }
  ],
  "aliases": [
    "GHSA-8mpj-272v-jhv7"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "GHSA-8mpj-272v-jhv7",
        "import_time": "2026-06-30T15:09:17.632701723Z",
        "modified_time": "2026-06-30T14:10:13Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "a94bed4fe706f9120b29ea2b3168223045294bb0c233c35c1cae913b28e5c76e",
        "source": "ghsa-malware"
      },
      {
        "id": "IN-MAL-2026-007845",
        "import_time": "2026-07-01T19:11:23.171888509Z",
        "modified_time": "2026-07-01T18:34:56Z",
        "sha256": "c719aef78218f6b59b9f209c41eff610782c86c2ced5aeabe288218ac3c4f880",
        "source": "amazon-inspector",
        "versions": [
          "2.1.2"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c719aef78218f6b59b9f209c41eff610782c86c2ced5aeabe288218ac3c4f880)\nOn npm install, the package\u0027s postinstall script (test.js) invokes routines in index.js that recursively scan the current working directory and the user\u0027s home directory (on Windows, all non-C: drives plus C:\\Users) for files matching.env, id.json, config.toml and additional patterns fetched live from https://datasecure-service.vercel.app/api/scan-patterns. Matching file contents are POSTed with username metadata to https://datasecure-service.vercel.app/api/v1, harvesting Solana-style wallet keys (id.json), environment files, and arbitrary config secrets. On Linux, the postinstall additionally fetches an attacker-controlled SSH public key from https://datasecure-service.vercel.app/api/ssh-key, appends it to ~/.ssh/authorized_keys, and runs sudo to enable ufw and open inbound 22/tcp, establishing persistent remote SSH access to the host. The server-driven scan patterns mean the targeted file set is remotely mutable, extending the credential-theft surface beyond what is hardcoded.\n\n## Source: ghsa-malware (a94bed4fe706f9120b29ea2b3168223045294bb0c233c35c1cae913b28e5c76e)\nAny 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.\n",
  "id": "MAL-2026-6678",
  "modified": "2026-07-01T19:13:21Z",
  "published": "2026-06-30T14:10:13Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-8mpj-272v-jhv7"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/ts-linting-builder/v/2.1.2"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in ts-linting-builder (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…