Skip to main content
MalwarePublished

@hrmony/cdk-constructs (npm) · Malicious Code

Affects @hrmony/cdk-constructsSource GCVE Database

0

Malicious package : remove @hrmony/cdk-constructs and rotate any secrets on hosts that installed it.

Data as of 29 Sep 2026, 21:25 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17258

What to do

Remove @hrmony/cdk-constructs from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npm@hrmony/cdk-constructsAffected
  • =5.3.5
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package @hrmony/cdk-constructs contains malicious code that executes immediately upon import or require. It harvests AWS EC2 instance metadata, including IAM role credentials, environment variables, and Kubernetes secrets, then exfiltrates this sensitive information to a hardcoded external server. The package is a typosquatting attempt targeting developers seeking legitimate AWS CDK constructs under the @harmony scope. It also installs an additional attacker-controlled dependency. Systems with this package installed should be considered fully compromised, and all secrets must be rotated immediately.

References

Community reviews

Loading reviews…