Skip to content
Heist/ feed
Unrated

Malicious code in @hrmony/lohndateien (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (743e2b2a4a3cf2758e6eb457dbc47857751d31379b13a48a2da25fc23f8e9701) index.js executes on module load and performs three attacker-beneficial actions against a hardcoded remote endpoint at https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_lohndateien. First, an unconditional POST beacon ({"c53":"hello"}) signals a successful install/import. Second, the module queries the AWS instance metadata service at 169.254.169.254 using IMDSv2 (PUT /latest/api/token) to enumerate instance identity, user-data, and IAM role security credentials from /latest/meta-data/iam/security-credentials/, then POSTs the collected object to the same host. Third, local_get() iterates process.env into a dictionary and recursively reads /var/run/secrets/ (Kubernetes service-account tokens and mounted secret files), POSTing both structures to the same endpoint. The destination host is unrelated to any declared publisher infrastructure and the URL path embeds the package name, consistent with a targeted dependency-confusion or supply-chain attack. Installing and loading this package on an EC2 host or in a Kubernetes workload yields the attacker full AWS role credentials, all environment variables (including secrets and tokens), and any mounted Kubernetes secrets. ## Source: ghsa-malware (b4d72aaf224d02f991bc113168187540eae0db2345f5bad0f24f82ea76433906) Any computer that has this package installed or running should

Announced Source revision 1
Original source ↗

MAL-2026-17267

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17267

@hrmony/lohndateien

Source reference: /affected/0/package/name

Affected versions
3.99.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "@hrmony/lohndateien",
      "purl": "pkg:npm/%40hrmony/lohndateien",
      "ecosystem": "npm"
    },
    "versions": [
      "3.99.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "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."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hrmony/lohndateien/MAL-2026-17267.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "52b1968642fb0421159f75ab8bbba0079036d1473848addc3f9c63842f4e4edea61bcd",
            "sha256": "a60b8538c789936909478735f9116de10b76f13a082957d7cde95731ac2d9bcf"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "e8d9444dc384d0398f5f61a58d013ec8c1be3f0d",
              "sha512_sri": "sha512-9kIgPvad1nkZjs8wv4RCqMMMthMSImlrgI04dlGBBvtA4R5cHr7aF68wJHhXlCATsCUZRRzoEdXTAcmtvi0gUQ=="
            },
            "filename": "lohndateien-3.99.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#29722 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement