Microsoft · Vendor blog
Typosquatted npm packages used to steal cloud and CI/CD secrets
Published · Source: Microsoft
Entities & attribution
Tool
Cobalt Strike
“Gen-1 stager: HTTP C2 beacon and payload drop”
Page 1 · Paragraph 4
Artifact
node.exe
“…er XDR – Suspicious file creation in temporary directory by node.exe – Suspicious Bun execution from Node.js process”
Page 1 · Paragraph 76
Artifact
npm.exe
“…o(7d) | where FileName in~ ("node.exe", "node", "npm.cmd", "npm.exe", "npx.cmd", "npx.exe") | where ProcessCommandLine has_any …”
Page 1 · Paragraph 84
Artifact
npx.exe
“… in~ ("node.exe", "node", "npm.cmd", "npm.exe", "npx.cmd", "npx.exe") | where ProcessCommandLine has_any ("preinstall", "postin…”
Page 1 · Paragraph 84
Artifact
bun.exe
“…| where InitiatingProcessFileName in~ ("node.exe", "node", "bun.exe", "bun") | where RemoteIP in ("169.254.169.254", "169.254.1…”
Page 1 · Paragraph 94
MITRE ATT&CK behaviors
T1071.001 · Web Protocols
Command and Control · C2 over HTTPS
“Gen-1 stager: HTTP C2 beacon and payload drop”
Page 1 · Paragraph 4
T1059.001 · PowerShell
Execution · PowerShell execution
“…rm64, Windows x64/arm64); (c) extracts the ZIP using unzip, PowerShell Expand-Archive, or a hand-rolled ZIP parser; and (d) execut…”
Page 1 · Paragraph 39
Indicators of compromise
domain
gmail[.]com“…under the newly created maintainer alias vpmdhaj (a39155771@gmail[.]com) published 14 malicious packages within a four-hour windo…”
Page 1 · Paragraph 14
domain
github[.]com“…son homepage, repository, and bugs fields to the legitimate github.com/opensearch-project/opensearch-js project. Third, inflated v…”
Page 1 · Paragraph 26
ipv4
169.254.169[.]254“AWS: queries EC2 Instance Metadata Service v2 (169.254.169[.]254), Elastic Container Service task metadata (169.254.170[.]…”
Page 1 · Paragraph 44
ipv4
169.254.170[.]2“…69.254.169[.]254), Elastic Container Service task metadata (169.254.170[.]2), reads AWS env credentials, calls STS GetCallerIdentity …”
Page 1 · Paragraph 44
domain
aab.sportsontheweb[.]net“Block egress to aab.sportsontheweb[.]net at proxy, firewall, and DNS layers. Alert on any HTTP req…”
Page 1 · Paragraph 61
sha256
638788AFC4F1B5860A328312CAF5895ABD5F5632D28A4F2A85B09076E270D15D“638788AFC4F1B5860A328312CAF5895ABD5F5632D28A4F2A85B09076E270D15D SHA-256 preinstall.js (Gen-1 stager)”
Page 1 · Paragraph 121
sha256
77D92EFE7AF3547F71FD41D4A884872D66B1BE9499EAA637E91EAC866911694D“77D92EFE7AF3547F71FD41D4A884872D66B1BE9499EAA637E91EAC866911694D SHA-256 setup.mjs (Gen-2 stager)”
Page 1 · Paragraph 122
sha256
BFA149694EC6411C23936311A999163ADE54D6F38E2F4B0E3CFB8CB67BD7CFAA“BFA149694EC6411C23936311A999163ADE54D6F38E2F4B0E3CFB8CB67BD7CFAA SHA-256 payload.gz (gzipped Bun stage-2)”
Page 1 · Paragraph 123
url
hxxps://www.npmjs[.]com/~vpmdhaj“https://www.npmjs.com/~vpmdhaj – npm maintainer profile (all 14 packages)”
Page 1 · Paragraph 129
url
hxxps://www.npmjs[.]com/package/@vpmdhaj/elastic-helper“https://www.npmjs.com/package/@vpmdhaj/elastic-helper”
Page 1 · Paragraph 130
url
hxxps://www.npmjs[.]com/package/@vpmdhaj/devops-tools“https://www.npmjs.com/package/@vpmdhaj/devops-tools”
Page 1 · Paragraph 131
url
hxxps://docs.npmjs[.]com/cli/v10/using-npm/scripts“https://docs.npmjs.com/cli/v10/using-npm/scripts – npm lifecycle scripts documentation”
Page 1 · Paragraph 132
url
hxxps://bun[.]sh“https://bun.sh – Bun runtime (abused by Gen-2 stager as a loader)”
Page 1 · Paragraph 133
url
hxxps://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-use-IMDSv2[.]html“https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-use-IMDSv2.html – IMDSv2 hardening guidance”
Page 1 · Paragraph 134
Claims & evidence
Reported Claim
Typosquatted npm packages used to steal cloud and CI/CD secrets exhibits C2 over HTTPS (T1071.001)
“Gen-1 stager: HTTP C2 beacon and payload drop”
Page 1 · Paragraph 4
Reported Claim
Typosquatted npm packages used to steal cloud and CI/CD secrets exhibits PowerShell execution (T1059.001)
“…rm64, Windows x64/arm64); (c) extracts the ZIP using unzip, PowerShell Expand-Archive, or a hand-rolled ZIP parser; and (d) execut…”
Page 1 · Paragraph 39
Inferred Relationship
C2 over HTTPS precedes PowerShell execution
“…rm64, Windows x64/arm64); (c) extracts the ZIP using unzip, PowerShell Expand-Archive, or a hand-rolled ZIP parser; and (d) execut…”
Page 1 · Paragraph 39
Reported Claim
gmail.com used as network infrastructure
“…under the newly created maintainer alias vpmdhaj (a39155771@gmail[.]com) published 14 malicious packages within a four-hour windo…”
Page 1 · Paragraph 14
Reported Claim
github.com used as network infrastructure
“…son homepage, repository, and bugs fields to the legitimate github.com/opensearch-project/opensearch-js project. Third, inflated v…”
Page 1 · Paragraph 26
Reported Claim
169.254.169.254 used as network infrastructure
“AWS: queries EC2 Instance Metadata Service v2 (169.254.169[.]254), Elastic Container Service task metadata (169.254.170[.]…”
Page 1 · Paragraph 44
Reported Claim
169.254.170.2 used as network infrastructure
“…69.254.169[.]254), Elastic Container Service task metadata (169.254.170[.]2), reads AWS env credentials, calls STS GetCallerIdentity …”
Page 1 · Paragraph 44
Reported Claim
aab.sportsontheweb.net used as network infrastructure
“Block egress to aab.sportsontheweb[.]net at proxy, firewall, and DNS layers. Alert on any HTTP req…”
Page 1 · Paragraph 61