Microsoft · Vendor blog

Mini Shai Hulud: Compromised @antv npm packages enable CI/CD credential theft

Published · Source: Microsoft

4 entities2 ATT&CK behaviors9 indicators8 claims

Entities & attribution

  • Artifact

    bun.exe

    “…der XDR Suspicious file creation in temporary directory by Bun.exe binary Suspicious Bun execution from Node.js process”

    Page 1 · Paragraph 93

  • Artifact

    node.exe

    “DeviceProcessEvents | where FileName in~ ("node.exe", "npm.cmd", "npm.exe", "npx.cmd", "npx.exe") | where Proce…”

    Page 1 · Paragraph 110

  • Artifact

    npm.exe

    “…ProcessEvents | where FileName in~ ("node.exe", "npm.cmd", "npm.exe", "npx.cmd", "npx.exe") | where ProcessCommandLine has_any …”

    Page 1 · Paragraph 110

  • Artifact

    npx.exe

    “…FileName in~ ("node.exe", "npm.cmd", "npm.exe", "npx.cmd", "npx.exe") | where ProcessCommandLine has_any ("preinstall", "postin…”

    Page 1 · Paragraph 110

MITRE ATT&CK behaviors

  • T1071.001 · Web Protocols

    Command and Control · C2 over HTTPS

    “Layer 2: Critical strings such as command-and-control (C2) domain and env var names are encrypted with a custom PBKDF…”

    Page 1 · Paragraph 25

  • T1055 · Process Injection

    Privilege Escalation · Process injection

    “Injects sudoers rule through bind mount: echo ‘runner ALL=(ALL) NO…”

    Page 1 · Paragraph 48

Indicators of compromise

Claims & evidence

  • Reported Claim

    Mini Shai Hulud: Compromised @antv npm packages enable CI/CD credential theft exhibits C2 over HTTPS (T1071.001)

    “Layer 2: Critical strings such as command-and-control (C2) domain and env var names are encrypted with a custom PBKDF…”

    Page 1 · Paragraph 25

  • Reported Claim

    Mini Shai Hulud: Compromised @antv npm packages enable CI/CD credential theft exhibits Process injection (T1055)

    “Injects sudoers rule through bind mount: echo ‘runner ALL=(ALL) NO…”

    Page 1 · Paragraph 48

  • Inferred Relationship

    C2 over HTTPS precedes Process injection

    “Injects sudoers rule through bind mount: echo ‘runner ALL=(ALL) NO…”

    Page 1 · Paragraph 48

  • Reported Claim

    169.254.169.254 used as network infrastructure

    “…azon Web Services(AWS) : Queries Instance Metadata Service (169.254.169[.]254), Elastic Container Service metadata (169.254.170[.]2), r…”

    Page 1 · Paragraph 34

  • Reported Claim

    169.254.170.2 used as network infrastructure

    “…ce (169.254.169[.]254), Elastic Container Service metadata (169.254.170[.]2), reads .aws/ files, harvests env vars, and then calls Se…”

    Page 1 · Paragraph 34

  • Reported Claim

    127.0.0.1 used as network infrastructure

    “….vault-token , and others) and connects to a local Vault at 127.0.0[.]1:8200.”

    Page 1 · Paragraph 35

  • Reported Claim

    t.m-kosche.com used as network infrastructure

    “…rkEvents | where Timestamp > ago(2d) | where RemoteUrl has "t.m-kosche.com"”

    Page 1 · Paragraph 124

  • Lore Hypothesis

    Investigation hypothesizes A loader sideloaded via a signed binary stages an in-memory implant

    “Layer 2: Critical strings such as command-and-control (C2) domain and env var names are encrypted with a custom PBKDF…”

    Page 1 · Paragraph 25