Supply Chain Attack Analyst
БесплатноБез исполняемых скриптовНе проверенAnalyze software supply chain attacks across package registries (npm, PyPI, RubyGems), CI/CD pipelines (GitHub Actions, GitLab CI), and container ecosystems…
от MHaggis★ 531 звезда на GitHubОб этом скилле
Supply Chain Attack Analyst Skill
Configuration
$SIEM_PLATFORM- Target SIEM for detection output:splunk,sentinel,elastic,sigma$SECURITY_CONTENT_PATH- Path to detection content repository
Overview
Software supply chain attacks compromise the tools, dependencies, and pipelines that developers trust. This skill covers analysis and detection across the major attack surfaces: package registries, CI/CD systems, container images, and code repositories.
Attack Surface Taxonomy
1. Package Registry Attacks
| Vector | Description | Examples |
|---|---|---|
| Typosquatting | Packages with names similar to popular ones | colourama vs colorama, noblox.js-proxy |
| Dependency confusion | Public package name matches private internal name | Alex Birsan's 2021 research |
| Account takeover | Compromised maintainer credentials | ua-parser-js, coa, rc (2021) |
| Malicious update | Legitimate package ships malicious version | event-stream (2018), colors.js (2022) |
| Install script abuse | preinstall/postinstall hooks run arbitrary code |
Common npm attack vector |
| Starjacking | Fake GitHub stars/URLs to build false trust | Ongoing across npm/PyPI |
2. CI/CD Pipeline Attacks
| Vector | Description | Examples |
|---|---|---|
| Poisoned GitHub Action | Malicious or compromised Action in workflow | tj-actions/changed-files (2025) |
| Workflow injection | Untrusted input in run: blocks |
${{ github.event.issue.title }} |
| Secret exfiltration | CI job leaks secrets to attacker | Via compromised deps or Actions |
| Build artifact tampering | Modify artifacts between build and publish | SolarWinds SUNBURST pattern |
| Self-hosted runner abuse | Compromise persistent CI runners | Shared runners, credential theft |
3. Container & Image Attacks
| Vector | Description | Examples |
|---|---|---|
| Malicious base image | Trojanized images on Docker Hub | Cryptomining images |
| Image tag mutation | Tag latest or v1 points to new malicious image |
Tag vs digest trust |
| Build layer injection | Malicious layer added during multi-stage build | Dockerfile manipulation |
| Registry compromise | Container registry itself is compromised | CodeCov breach (2021) |
Real-World Campaign Analysis Framework
When analyzing a supply chain incident, follow this structure:
Phase 1: Initial Triage
- What was compromised? — Package name, version range, registry
- What was the payload? — Data exfiltration, backdoor, cryptominer, ransomware
- What was the delivery mechanism? — Install script, import hook, build step
- What was the blast radius? — Download count, dependent packages, time window
Phase 2: Technical Analysis
- Payload extraction — Deobfuscate and analyze malicious code
- C2 identification — Network indicators (domains, IPs, protocols)
- Persistence mechanisms — Does the payload survive package removal?
- Lateral movement — Does it spread to other packages, repos, or systems?
Phase 3: Detection Opportunities
Map findings to detectable behaviors:
| Behavior | Data Source | Detection Approach |
|---|---|---|
| Unexpected network calls from package install | DNS / proxy logs | Alert on install-time DNS to uncommon domains |
| Environment variable harvesting | Process telemetry | Monitor env / printenv in CI context |
| File writes outside package directory | File integrity monitoring | Sysmon EventID 11 / auditd |
| Encoded/obfuscated payloads | Static analysis | Entropy analysis, known obfuscation patterns |
| Git credential access | Audit logs | Monitor .git-credentials, ~/.ssh/ access |
Detection Engineering Framework
npm / Node.js
Install script monitoring:
title: Suspicious npm Install Script Execution
logsource:
category: process_creation
product: linux
detection:
selection:
ParentCommandLine|contains:
- 'npm install'
- 'npm ci'
- 'yarn install'
CommandLine|contains:
- 'curl '
- 'wget '
- '/dev/tcp/'
- 'base64 -d'
- 'python -c'
condition: selection
level: high
Key indicators:
preinstall/postinstallscripts spawning network toolseval()orFunction()constructors in package code- Dynamic
require()with encoded strings - Access to
process.envcollecting CI secrets - DNS lookups during
npm installto non-registry domains
PyPI / Python
Key indicators:
setup.pywithcmdclassoverrides executing code at install time__init__.pywith obfuscated imports- Use of
exec(),eval(),compile()with encoded payloads subprocess.Popenoros.systemcalls in library code- Typosquat names close to popular packages (e.g.,
reqeusts)
**Detectio
Установить Supply Chain Attack Analyst в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Supply Chain Attack Analyst?
Analyze software supply chain attacks across package registries (npm, PyPI, RubyGems), CI/CD pipelines (GitHub Actions, GitLab CI), and container ecosystems. Includes detection engineering patterns for Splunk, Sentinel, Elastic, and Sigma.
Как установить скилл Supply Chain Attack Analyst?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Supply Chain Attack Analyst запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub