MAL-2026-6678

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-linting-builder/MAL-2026-6678.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6678
Aliases
  • GHSA-8mpj-272v-jhv7
Published
2026-06-30T14:10:13Z
Modified
2026-07-01T19:16:49.985130438Z
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.

Database specific
{
    "malicious-packages-origins": [
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-06-30T15:09:17.632701723Z",
            "id": "GHSA-8mpj-272v-jhv7",
            "sha256": "a94bed4fe706f9120b29ea2b3168223045294bb0c233c35c1cae913b28e5c76e",
            "modified_time": "2026-06-30T14:10:13Z",
            "source": "ghsa-malware"
        },
        {
            "import_time": "2026-07-01T19:11:23.171888509Z",
            "id": "IN-MAL-2026-007845",
            "sha256": "c719aef78218f6b59b9f209c41eff610782c86c2ced5aeabe288218ac3c4f880",
            "versions": [
                "2.1.2"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-07-01T18:34:56Z"
        }
    ]
}
References
Credits

Affected packages

npm / ts-linting-builder

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.1.2

Database specific

cwes
[
    {
        "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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "a9f196d991772661cfb233b85a07100dfbdad13338028651b6ec46497f7b52861e2eee",
            "sha256": "5591dd6ad58a9351f98c415ff7be21fc4c71ac2a2862418c7e86f54c2cedc209"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-linting-builder/MAL-2026-6678.json"