Microsoft · Vendor blog

Typosquatted npm packages used to steal cloud and CI/CD secrets

Published · Source: Microsoft

5 entities2 ATT&CK behaviors14 indicators8 claims

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

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