Microsoft · Vendor blog

Malicious npm packages abuse dependency confusion to profile developer environments

Published · Source: Microsoft

4 entities3 ATT&CK behaviors20 indicators11 claims

Entities & attribution

  • Tool

    Cobalt Strike

    “…he package tarball was extracted to disk, preventing the C2 beacon to oob.moika[.]tech and blocking the platform-specific seco…”

    Page 1 · Paragraph 160

  • Artifact

    node.exe

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

    Page 1 · Paragraph 186

  • Artifact

    npm.exe

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

    Page 1 · Paragraph 186

  • Artifact

    npx.exe

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

    Page 1 · Paragraph 186

MITRE ATT&CK behaviors

  • T1071.001 · Web Protocols

    Command and Control · C2 over HTTPS

    “…ce payload from an attacker-controlled command-and-control (C2) server.”

    Page 1 · Paragraph 9

  • T1055 · Process Injection

    Privilege Escalation · Process injection

    “Dead code injection : Anti-analysis noise makes manual review prohibitively …”

    Page 1 · Paragraph 41

  • T1566.001 · Spearphishing Attachment

    Initial Access · Spearphishing attachment

    “Phishing Triage agent”

    Page 1 · Paragraph 176

Indicators of compromise

  • domain

    yandex[.]ru
    “…ng under three maintainer aliases mr.4nd3r50n ( mr.4nd3r50n@yandex[.]ru ), ce-rwb ( ogvanta@yandex[.]ru ), and t-in-one ( t-in-on…”

    Page 1 · Paragraph 9

  • domain

    obfuscator[.]io
    “…gn include automatic execution through npm lifecycle hooks, obfuscator.io-style anti-analysis techniques, platform-specific payload d…”

    Page 1 · Paragraph 11

  • url

    hxxps://github.cloudplatform-single-spa.io/platform/svp-baas[.]git
    “Repository: git+https://github[.]cloudplatform-single-spa[.]io/platform/svp-baas.git”

    Page 1 · Paragraph 25

  • url

    hxxps://docs.cloudplatform-single-spa[.]io/platform/svp-baas
    “Homepage: https://docs[.]cloudplatform-single-spa[.]io/platform/svp-baas”

    Page 1 · Paragraph 26

  • url

    hxxps://jira.cloudplatform-single-spa[.]io/projects/PLATFORM
    “Bugs: https://jira[.]cloudplatform-single-spa[.]io/projects/PLATFORM”

    Page 1 · Paragraph 27

  • url

    hxxps://oob.moika[.]tech/payload/
    “…download : An HTTPS GET request is made to the C2 server at https://oob.moika[.]tech/payload/ with a 30-second timeout. The response is a binary payloa…”

    Page 1 · Paragraph 51

  • url

    hxxps://oob.moika[.]tech/payload
    “…oth accounts’ payloads connect to the exact same C2 server: https://oob.moika[.]tech/payload . Sharing offensive infrastructure across “separate” pers…”

    Page 1 · Paragraph 68

  • url

    hxxps://github
    “Repository: git+https://github. .io/platform/ .git”

    Page 1 · Paragraph 74

  • url

    hxxps://docs
    “Documentation: https://docs. .io/platform/”

    Page 1 · Paragraph 75

  • url

    hxxps://jira
    “Issue tracker: https://jira. .io/projects/PLATFORM”

    Page 1 · Paragraph 76

  • domain

    npm.t-in-one[.]io
    “…that points developers at a fabricated internal registry at npm.t-in-one[.]io with matching docs.t-in-one[.]io and jira.t-in-one[.]io r…”

    Page 1 · Paragraph 78

  • domain

    docs.t-in-one[.]io
    “…icated internal registry at npm.t-in-one[.]io with matching docs.t-in-one[.]io and jira.t-in-one[.]io references — indicates a single au…”

    Page 1 · Paragraph 78

  • domain

    jira.t-in-one[.]io
    “…y at npm.t-in-one[.]io with matching docs.t-in-one[.]io and jira.t-in-one[.]io references — indicates a single automated package generat…”

    Page 1 · Paragraph 78

  • url

    hxxps://security.microsoft[.]com/threatanalytics3
    “…eport for this campaign in the Microsoft Defender portal at https://security.microsoft.com/threatanalytics3 for the latest indicators, recommended actions, and mitigat…”

    Page 1 · Paragraph 181

  • url

    hxxps://oob.moika[.]tech/payload/win`
    “`https://oob.moika[.]tech/payload/win` URL Windows payload endpoint”

    Page 1 · Paragraph 218

  • url

    hxxps://oob.moika[.]tech/payload/mac`
    “`https://oob.moika[.]tech/payload/mac` URL macOS payload endpoint”

    Page 1 · Paragraph 219

  • url

    hxxps://oob.moika[.]tech/payload/linux`
    “`https://oob.moika[.]tech/payload/linux` URL Linux payload endpoint”

    Page 1 · Paragraph 220

  • url

    hxxps://www.npmjs.com/~mr[.]4nd3r50n
    “https://www.npmjs.com/~mr.4nd3r50n — npm maintainer profile (26 packages)”

    Page 1 · Paragraph 237

  • url

    hxxps://www.npmjs[.]com/~ce-rwb
    “https://www.npmjs.com/~ce-rwb — npm maintainer profile (7 packages)”

    Page 1 · Paragraph 238

  • url

    hxxps://www.npmjs[.]com/~t-in-one
    “https://www.npmjs.com/~t-in-one — npm maintainer profile (12 packages across @t-in-one, @ca…”

    Page 1 · Paragraph 239

Claims & evidence

  • Reported Claim

    Malicious npm packages abuse dependency confusion to profile developer environments exhibits C2 over HTTPS (T1071.001)

    “…ce payload from an attacker-controlled command-and-control (C2) server.”

    Page 1 · Paragraph 9

  • Reported Claim

    Malicious npm packages abuse dependency confusion to profile developer environments exhibits Process injection (T1055)

    “Dead code injection : Anti-analysis noise makes manual review prohibitively …”

    Page 1 · Paragraph 41

  • Reported Claim

    Malicious npm packages abuse dependency confusion to profile developer environments exhibits Spearphishing attachment (T1566.001)

    “Phishing Triage agent”

    Page 1 · Paragraph 176

  • Inferred Relationship

    C2 over HTTPS precedes Process injection

    “Dead code injection : Anti-analysis noise makes manual review prohibitively …”

    Page 1 · Paragraph 41

  • Inferred Relationship

    Process injection precedes Spearphishing attachment

    “Phishing Triage agent”

    Page 1 · Paragraph 176

  • Reported Claim

    yandex.ru used as network infrastructure

    “…ng under three maintainer aliases mr.4nd3r50n ( mr.4nd3r50n@yandex[.]ru ), ce-rwb ( ogvanta@yandex[.]ru ), and t-in-one ( t-in-on…”

    Page 1 · Paragraph 9

  • Reported Claim

    obfuscator.io used as network infrastructure

    “…gn include automatic execution through npm lifecycle hooks, obfuscator.io-style anti-analysis techniques, platform-specific payload d…”

    Page 1 · Paragraph 11

  • Reported Claim

    npm.t-in-one.io used as network infrastructure

    “…that points developers at a fabricated internal registry at npm.t-in-one[.]io with matching docs.t-in-one[.]io and jira.t-in-one[.]io r…”

    Page 1 · Paragraph 78

  • Reported Claim

    docs.t-in-one.io used as network infrastructure

    “…icated internal registry at npm.t-in-one[.]io with matching docs.t-in-one[.]io and jira.t-in-one[.]io references — indicates a single au…”

    Page 1 · Paragraph 78

  • Reported Claim

    jira.t-in-one.io used as network infrastructure

    “…y at npm.t-in-one[.]io with matching docs.t-in-one[.]io and jira.t-in-one[.]io references — indicates a single automated package generat…”

    Page 1 · Paragraph 78

  • Lore Hypothesis

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

    “…ce payload from an attacker-controlled command-and-control (C2) server.”

    Page 1 · Paragraph 9