MAL-2026-6563

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@thone33/analytics-injector/MAL-2026-6563.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6563
Aliases
  • GHSA-7mg5-m9qh-r4rp
Published
2026-06-29T04:50:56Z
Modified
2026-07-27T10:08:14.870549819Z
Summary
Malicious code in @thone33/analytics-injector (npm)
Details

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

Source: amazon-inspector (dcef0ea3fd19d9b238a097485faaf7db52d5aa4363653fd7fb29f4c0ff251f92)

Package presents itself as an 'analytics injection helper' with a no-op track() export, but its exported activate() function fetches a JavaScript file from https://raw.githubusercontent.com/Dennisfrr/c2-stager/main/the assessment.js (mutable main branch, no integrity check) and passes the response body directly to eval, with fetch errors silently swallowed. Any consumer that imports and invokes activate() executes attacker-controlled JavaScript with full Node process privileges, and the upstream content can change at any time without a package update. The cover-story naming (analytics-injector / track) alongside a remote source repository explicitly named c2-stager indicates deliberate misdirection rather than a legitimate loader pattern.

Source: ghsa-malware (dffa96b1979da8c35802624684971072a7a15da3a35e2daf9d8e9a9f2ec35ce5)

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-29T05:07:08.505593908Z",
            "id": "IN-MAL-2026-007735",
            "sha256": "1926b397e25982fd701d5c1b84b62b63c430b3af2b668c851e5e90d197e34ebb",
            "modified_time": "2026-06-29T04:50:56Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-06-29T05:07:08.606854805Z",
            "id": "IN-MAL-2026-007736",
            "sha256": "dcef0ea3fd19d9b238a097485faaf7db52d5aa4363653fd7fb29f4c0ff251f92",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-06-29T04:51:06Z"
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-07-27T09:43:03.771794422Z",
            "id": "GHSA-7mg5-m9qh-r4rp",
            "sha256": "dffa96b1979da8c35802624684971072a7a15da3a35e2daf9d8e9a9f2ec35ce5",
            "modified_time": "2026-07-27T01:30:46Z",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / @thone33/analytics-injector

Package

Name
@thone33/analytics-injector
View open source insights on deps.dev
Purl
pkg:npm/%40thone33/analytics-injector

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1

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"
    },
    {
        "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": "92f0ec9fa48d34748d37f364b35b4145f4326767aa90e174b15ddb044f70f6124b1d28",
            "sha256": "d4e051824bf47c38ca26eb48d6f7adf2fd4b87b6ec7a46d15d3988cb4fd500fc"
        }
    ],
    "package_integrity": [
        {
            "filename": "analytics-injector-1.0.1.tgz",
            "hashes": {
                "sha1": "c759d9ce7c1cbf3b2c70c45745445e11655b5a48",
                "sha512_sri": "sha512-TDQQao1u0VQkQpzMyGRRprTK003Ma8ezjKeM2JIPyIvjLArI8g6PrlyNdOgtcAc1Fhu9ebLlh312TKmc5LF6TA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@thone33/analytics-injector/MAL-2026-6563.json"