Aqua Trivy VS Code Extension: attack mapped to SITF techniques
Incident10 SITF techniques
This page maps the Aqua Trivy VS Code Extension attack to the SDLC Infrastructure Threat Framework (SITF), step by step, from initial access to impact.
Entry points
- Malicious Fork PR
Attack path
- SITF T-C003: PWN Request / Poisoned Pipeline Execution — hackerbot-claw AI agent exploits pull_request_target · in Trivy GitHub Actions
- SITF T-C005: Secret Exfiltration from Workflow — PAT stolen from workflow secrets · in Trivy GitHub Actions
- SITF T-V009: Mass Deletion of Repositories — All releases deleted, repository wiped · in GitHub - aquasecurity/trivy
- SITF T-C011: Stealing Registry Tokens — OpenVSX publishing token stolen · in Trivy GitHub Actions
- SITF T-R001: Abuse Credentials for Registry Access — Stolen OpenVSX token used · in OpenVSX Marketplace
- SITF T-R006: Publishing Malicious IDE/Browser Extension — Versions 1.8.12, 1.8.13 with AI payload · in OpenVSX Marketplace
- SITF T-E001: Malicious Execution on Endpoint — Trivy extension executes on install · in Developer Workstations
- SITF T-E009: Abuse Local AI Tools — Claude, Codex, Gemini, Copilot CLI, Kiro invoked in permissive mode · in Developer Workstations
- SITF T-E003: Harvest Local Secrets / Credentials from Endpoint — AI scans for tokens, credentials, financial records · in Developer Workstations
- SITF T-E007: Abuse Local VCS Access from Endpoint — gh CLI used to push REPORT.MD to posture-report-trivy · in Developer Workstations
Outcomes
- Credential Exfiltration via GitHub
- 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-C005 Secret Exfiltration from Workflow | OIDC setup in workflows; Minimal workflow permissions; Log sanitization |
| 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-E007 Abuse Local VCS Access from Endpoint | Credential manager enforcement; Fine-grained PATs with expiration; Mandatory MFA for VCS |
| 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-R001 Abuse Credentials for Registry Access | Mandatory MFA; IDP / SSO setup; CSPM/CNAPP |
| T-R006 Publishing Malicious IDE/Browser Extension | Extension signing requirements; Extension review process; MFA for publisher account |
| T-V009 Mass Deletion of Repositories | Minimal VCS user permissions; Regular repository backups; Repository deletion approval workflow |
Source flow: flows/incidents/aqua-trivy-vscode.json. Load it in the SITF flow builder to view the diagram.