s1ngularity: attack mapped to SITF techniques
Incident12 SITF techniques
This page maps the s1ngularity attack to the SDLC Infrastructure Threat Framework (SITF), step by step, from initial access to impact.
Entry points
- Vulnerability Exploit
Attack path
- SITF T-C003: PWN Request / Poisoned Pipeline Execution — Bash injection via unsanitized PR title · in nrwl/nx GitHub Actions
- SITF T-C004: Workflow Script Injection — Triggering publish.yml to exfiltrate npm token · in nrwl/nx GitHub Actions
- SITF T-C011: Stealing Registry Tokens — npm token exfiltrated via webhook · in nrwl/nx GitHub Actions
- SITF T-R004: Publishing Malicious Package — 8 malicious Nx versions (20.9.0-21.8.0) · in npm Registry
- SITF T-E001: Malicious Execution on Endpoint — telemetry.js post-install hook executes · in Developer Workstations (macOS/Linux)
- SITF T-E003: Harvest Local Secrets / Credentials from Endpoint — GitHub tokens, npm tokens, SSH keys, crypto wallets · in Developer Workstations (macOS/Linux)
- SITF T-V001: Abuse Credentials for VCS Access — Second wave - using leaked GitHub tokens · in Victim GitHub Accounts
- SITF T-V003: Secret Exfiltration from Repo — s1ngularity-repository repos for stolen data (triple base64) · in Victim GitHub Accounts
- SITF T-E009: Abuse Local AI Tools — Claude, Gemini, Q prompted with --dangerously-skip-permissions · in Developer Workstations (macOS/Linux)
- SITF T-V006: Turn Private Repos Public — 5,500+ repos exposed across 400+ orgs · in Victim GitHub Accounts
- SITF T-E004: Harvest Local Data from Endpoint — /tmp/inventory.txt file catalog · in Developer Workstations (macOS/Linux)
- SITF T-E010: Endpoint Infrastructure Destruction — sudo shutdown -h 0 injected in .bashrc/.zshrc · in Developer Workstations (macOS/Linux)
Outcomes
- Future Breach
- Destruction
Techniques and controls
| Technique | Key protective controls |
|---|---|
| T-C003 PWN Request / Poisoned Pipeline Execution | Branch protection rules (VCS); Private repo (VCS); Require explicit approval/ disallow workflows from forks (VCS) |
| T-C004 Workflow Script Injection | Branch protection rules (VCS); Private repo (VCS); Minimal workflow permissions |
| T-C011 Stealing Registry Tokens | OIDC setup in workflows; Trusted publishing (registry) |
| T-E001 Malicious Execution on Endpoint | Local registry proxy with filtering; IDE sandboxing; Mandating signed extensions |
| T-E003 Harvest Local Secrets / Credentials from Endpoint | Credential manager enforcement; No production credentials on endpoints; Encrypted credential storage |
| T-E004 Harvest Local Data from Endpoint | Data classification and handling policies; Encryption at rest |
| T-E009 Abuse Local AI Tools | Acceptable use policy against unapproved AI tools; Approved AI tools with data protection; Code review for AI-generated code |
| T-E010 Endpoint Infrastructure Destruction | Regular endpoint backups; Minimal local user privileges; Offline backup storage |
| T-R004 Publishing Malicious Package | Trusted publishing; Provenance attestation; MFA for registry account |
| T-V001 Abuse Credentials for VCS Access | Mandatory MFA; IDP / SSO setup; Enforcing fine-grained PATs |
| T-V003 Secret Exfiltration from Repo | Private repo visibility; Webhook security review; Branch protection rules |
| T-V006 Turn Private Repos Public | Minimal VCS permissions; Approval workflow for visibility changes; CSPM/CNAPP |
Source flow: flows/incidents/s1ngularity.json. Load it in the SITF flow builder to view the diagram.