MAL-2026-17259

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hrmony/component-library/MAL-2026-17259.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17259
Aliases
  • GHSA-cjfr-hq8x-q26q
Published
2026-09-29T16:32:05Z
Modified
2026-09-29T17:30:14Z
Summary
Malicious code in @hrmony/component-library (npm)
Details

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

Source: amazon-inspector (a93efe09ed89a9899669e54f614f80d91a80c59d77e0c2a2f673f92590488804)

index.js (declared as the package main) runs top-level async code on require/import that performs three exfiltration actions against a hardcoded attacker endpoint https://hrnmn.dd.h4x.tv/. First, it POSTs a fixed beacon identifying the package to /save_instance_info_from_pkge_hrmony_component-library. Second, it queries the AWS EC2 Instance Metadata Service at 169.254.169.254 using IMDSv2, enumerates IAM roles, and reads iam/security-credentials/{role} to collect temporary AWS access keys along with the identity document and user-data, then POSTs the collected object to the same host. Third, it iterates every entry of process.env and recursively reads all files under /var/run/secrets/ (Kubernetes service-account tokens and mounted secrets) and POSTs them to the same host. The package ships no component-library code; the exfiltration payload is its only behavior. The scope name @hrmony (missing the 'a' from @harmony) and the abnormally high 28.99.0 version are consistent with typosquat and dependency-confusion targeting.

Source: ghsa-malware (43173bc756c5c7bb307d748364b7436b5691bd972fa14c3ab6f51a4a510aeafd)

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":  [
        {
            "id":  "IN-MAL-2026-020651",
            "import_time":  "2026-09-29T16:45:37.672929041Z",
            "modified_time":  "2026-09-29T16:32:05Z",
            "sha256":  "a93efe09ed89a9899669e54f614f80d91a80c59d77e0c2a2f673f92590488804",
            "source":  "amazon-inspector",
            "versions":  [
                "28.99.0"
            ]
        },
        {
            "id":  "GHSA-cjfr-hq8x-q26q",
            "import_time":  "2026-09-29T17:25:03.738161918Z",
            "modified_time":  "2026-09-29T17:22:03Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "43173bc756c5c7bb307d748364b7436b5691bd972fa14c3ab6f51a4a510aeafd",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / @hrmony/component-library

Package

Name
@hrmony/component-library
View open source insights on deps.dev
Purl
pkg:npm/%40hrmony/component-library

Affected ranges

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

Affected versions

28.*
28.99.0

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":  "22b64d0c2884f2cfffd5c09b925a0c5da24d737aec0380616adbd56cef6d19bc",
            "tlsh":  "adb1968642fb0421159f75ab8bbba0079036d1473949addc3f9c63842f4e4edea61bcd"
        },
        {
            "path":  "package.json",
            "sha256":  "6936d7183bdc358984c1d028fc5ac16a6acdd5927e1150d8afd1b134d2e69b42",
            "tlsh":  "bee020148530947355d561d21c6d8457b7624f5b840c3c0873db141c835f9b314fd7a9"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "component-library-28.99.0.tgz",
            "hashes":  {
                "sha1":  "146410c73ee614767481790760218feec8a8975d",
                "sha512_sri":  "sha512-o1Ft2wtiCwUZa/mLmTbTtLvThzlD+++Q1ny959O9px569kgxArMf6+5mQPwIpTzcRc8nDFCFSzvoMAEMOMjY1Q=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hrmony/component-library/MAL-2026-17259.json"