Armando identified a malicious version of the NativeScript Material Design core component @nativescript-community/ui-material-core published to npm on September 15, 2025. Version 7.2.72 is the first in a wave of five consecutive malicious releases and carries the highest impact of any individual package in this batch: 583,712 downloads and 23 direct dependents. A worm payload in bundle.js fires automatically via the postinstall lifecycle hook, harvesting cloud credentials and propagating through the npm registry.
Key Findings
- Malicious version: v7.2.72, published 2025-09-15T09:16:49Z; v7.2.71 is clean
- Entry point: postinstall lifecycle hook fires automatically on npm install
- Targets: All platforms -- installs a worm payload that harvests AWS, GCP, and Azure credentials and propagates to the npm registry
- Detection: Script-JS.Worm.SupplyChain, Text.Worm.SupplyChain, Archive-GZIP.Worm.SupplyChain, Archive-TAR.Worm.SupplyChain
Package Background
@nativescript-community/ui-material-core is the foundational component of the nativescript-community Material UI suite, providing Material Design styling and shared utilities used across the broader collection of Material components. First published July 28, 2020, it has accumulated 583,712 total downloads with 23 direct dependents -- the widest dependency footprint of any package in this malicious wave. Its central role in the Material component ecosystem means that any developer updating Material UI components in a project would likely pull in this package. Five malicious versions were published on September 15, 2025: v7.2.72 through v7.2.76.
Attack Analysis
Armando's analysis shows that v7.2.72 introduced two file changes relative to the clean baseline v7.2.71: bundle.js was added and package.json was modified to register a postinstall hook pointing to bundle.js.
The worm payload inside bundle.js incorporates the AWS SDK for JavaScript, the Octokit GitHub API client, and credential-theft and propagation logic. It probes cloud provider metadata services -- AWS IMDS at 169.254.169.254, ECS task metadata at 169.254.170.2, and GCP metadata at metadata.google.internal -- and reads AWS credential environment variables. All collected data is exfiltrated to https://webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7. The worm then authenticates with https://registry.npmjs.org using the victim's npm token and republishes infected versions to other packages.
Malicious Files
bundle.js is the worm payload added in v7.2.72. It collects cloud credentials from metadata services and environment variables, exfiltrates them to the attacker's OAST endpoint, and propagates the infection via the victim's npm token.
package.json was modified to add the postinstall hook entry pointing to bundle.js.
Recommendations
Developers and security teams should take the following steps:
- Identify exposure: Check whether @nativescript-community/ui-material-core v7.2.72 through v7.2.76 appears in your dependency tree, including transitive dependencies. Given its 23 direct dependents, exposure through transitive dependencies is likely. Any pipeline that ran npm install while these versions were current should be considered potentially affected.
- Update immediately: Upgrade to v7.2.71 or the latest clean release.
- Rotate credentials: Rotate all AWS, GCP, and Azure credentials and the npm token from the affected environment.
- Audit npm publish activity: Review your npm organization's publish history for unauthorized releases.
- Scan your software supply chain: Use Spectra Assure Community (https://secure.software/npm/packages/@nativescript-community/ui-material-core) to check whether packages in your environment have been flagged.
Indicators of Compromise
Malicious Files
| Filename | SHA256 | Detection |
|---|
| bundle.js | dc67467a39b70d1cd4c1f7f7a459b35058163592f4a9e8fb4dffcbba98ef210c | Script-JS.Worm.SupplyChain |
| package.json | 2ff9e2ae13c0f08ea65ed01bfa209baa5625a1d083e937af57d93ac6ab5a4d68 | Text.Worm.SupplyChain |
Network IOCs
| URL / IP | Purpose |
|---|
| 169.254.170.2 | AWS ECS task metadata endpoint; queried to harvest container credentials |
| http://169.254.169.254 | AWS/cloud instance metadata service (IMDS); queried for instance credentials |
| http://github.test | Development endpoint from bundled Octokit library |
| http://metadata.google.internal | GCP metadata service; queried to harvest Google Cloud credentials |
| https://a.co/74kJMmI | Amazon short link in bundled AWS SDK documentation |
| https://aws.amazon.com/javascript/ | AWS SDK for JavaScript documentation reference |
| https://cognito-identity-fips.us-east-1.amazonaws.com | AWS Cognito Identity FIPS endpoint |
| https://cognito-identity-fips.us-east-2.amazonaws.com | AWS Cognito Identity FIPS endpoint |
| https://cognito-identity-fips.us-west-1.amazonaws.com | AWS Cognito Identity FIPS endpoint |
| https://cognito-identity-fips.us-west-2.amazonaws.com | AWS Cognito Identity FIPS endpoint |
| https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html | AWS SSO configuration documentation reference |
| https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html | AWS SDK documentation reference |
| https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html | AWS static credentials documentation reference |
| https://grpc.io/ | gRPC documentation; referenced in bundled transport library |
| https://octokit.github.io/rest.js/#throttling | Octokit REST library documentation reference |
| https://portal.sso | AWS IAM Identity Center SSO portal endpoint |
| https://portal.sso-fips | AWS IAM Identity Center FIPS SSO portal endpoint |
| https://react-native.canny.io/feature-requests/p/fetch-streaming-body | React Native feature request link in bundled fetch library |
| https://registry.npmjs.org | npm registry; used by the worm to republish malicious versions |
| https://sts.amazonaws.com | AWS Security Token Service; called to assume roles using stolen credentials |
| https://webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7 | Attacker-controlled OAST endpoint; receives exfiltrated credentials and environment data |
| https://www.githubstatus.com | GitHub status API in bundled Octokit library |
| https://www.gstatic.com/iap/verify/public_key | Google IAP public key endpoint in bundled Google auth library |
Archive Hashes
| File | SHA256 |
|---|
| ui-material-core-7.2.72.tgz | e71d3b7fbf92b78ace979f68c77140869eed21117b6b8a708826060566e3256f |
| ui-material-core-7.2.72.tar | 7fac6399ee9bf5dc1b316f463535b8aca52a6fb674db40deaeb605a12cfb9152 |
Verified by Spectra Assure Community: https://secure.software/npm/packages/@nativescript-community/ui-material-core