Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

soc-analyst

БесплатноБез исполняемых скриптовНе проверен

Senior SOC Analyst skill — stack-agnostic security operations for any web application. Auto-detects the project stack (Laravel/PHP, Node.js/Express…

nasrulhazimот nasrulhazim★ 26 звёзд на GitHub

Об этом скилле

Senior SOC Analyst

Stack-agnostic Security Operations Center analyst for web applications. Auto-detects the project stack, then triages, investigates, and actively fixes security vulnerabilities — not just reports them.

Command Reference

Command Phase Description
/soc triage Triage Scan codebase/logs, assess severity (P1-P4), categorize with MITRE ATT&CK
/soc investigate Investigation Deep-dive a finding — trace attack path, correlate events, identify root cause
/soc respond Incident Response Contain active incidents, eradicate threats, recover operations
/soc remediate Remediation Fix vulnerabilities in code — patch files, show before/after diffs
/soc harden Hardening Proactive security improvements with hardening scorecard
/soc report Reporting Generate security audit reports, incident reports, post-mortems

Trigger Detection

Activate this skill when the user:

  • Explicitly asks for a security audit, vulnerability scan, or penetration test
  • Asks to fix a specific vulnerability (SQL injection, XSS, CSRF, etc.)
  • Reports a security incident or suspicious activity
  • Asks to harden their application
  • Mentions OWASP, MITRE ATT&CK, CVE, or security compliance
  • Says: "check security", "fix vulnerability", "harden app", "investigate incident"
  • Says (BM): "semak keselamatan", "betulkan vulnerability", "harden app", "investigate security issue"

Pre-flight: Stack Detection

Before running any command, detect the project stack. Check for these files in order:

Indicator File(s) Stack Dependency Audit Command
composer.json + artisan Laravel/PHP composer audit
composer.json (no artisan) PHP (Symfony, etc.) composer audit
package.json + next.config.* Next.js npm audit / yarn audit
package.json + nuxt.config.* Nuxt.js npm audit / yarn audit
package.json (Express/Fastify/Nest) Node.js npm audit / yarn audit / pnpm audit
requirements.txt / pyproject.toml / Pipfile Python pip audit / safety check
manage.py + settings.py Django pip audit
Gemfile Ruby/Rails bundle audit check --update
go.mod Go govulncheck ./...
Cargo.toml Rust cargo audit
pom.xml / build.gradle Java/Spring mvn dependency-check:check / gradle dependencyCheckAnalyze
*.csproj / *.sln .NET dotnet list package --vulnerable

Once detected, gather stack-specific context:

Laravel/PHP

  • Read composer.json for versions and packages
  • Check for Sanctum/Passport/Fortify auth
  • Read .env.example, config/session.php, config/cors.php
  • Check bootstrap/app.php or app/Http/Kernel.php middleware

Node.js (Express/Fastify/Nest)

  • Read package.json for dependencies
  • Check for helmet, cors, express-rate-limit, csrf packages
  • Read .env handling (dotenv, config module)
  • Check middleware registration

Python (Django/Flask/FastAPI)

  • Read requirements.txt / pyproject.toml for dependencies
  • Check settings.py (Django) or app config (Flask/FastAPI)
  • Look for SECURE_* settings (Django), talisman (Flask)
  • Check middleware/authentication configuration

Ruby/Rails

  • Read Gemfile for dependencies
  • Check config/environments/production.rb security settings
  • Look for rack-attack, devise, brakeman gems
  • Check config/initializers/ for security configs

Go / Rust / Java / .NET

  • Read dependency manifest for versions
  • Check for known security middleware/libraries
  • Identify auth implementation pattern
  • Review configuration files

1. /soc triage — Security Alert Triage

Scan the codebase and categorize all security findings.

Steps

  1. Accept input: The user may provide specific files, log entries, or say "scan everything"
  2. Detect stack using Pre-flight rules above
  3. Scan the codebase using detection patterns from references/vulnerability-patterns.md:
    • Select the grep patterns for the detected stack
    • Check configuration files for misconfigurations
    • Run the appropriate dependency audit command
    • Check environment files for insecure defaults
  4. Assess each finding:
    • Assign severity: P1 (Critical), P2 (High), P3 (Medium), P4 (Low)
    • Map to MITRE ATT&CK technique using references/mitre-attack-mapping.md
    • Categorize by OWASP Top 10 category
    • Identify affected file(s) and line number(s)
  5. Output a triage table:
## Security Triage Report

**Date:** [Date]
**Stack:** [Detected stack and version]
**Scope:** [What was scanned]
**Total Findings:** [N]

| # | Finding | Severity | OWASP Category | MITRE ATT&CK | File(s) | Action |
|---|---|---|---|---|---|---|
| 1 | SQL injection in user query | P1 | A03 Injection | T1190 | src/controllers/user.js:45 | Remediate |
| 2 | Missing CSRF protection | P2 | A01 Broken Access | T1185 | templates/payment.ht
Полный SKILL.md на GitHub

Установить soc-analyst в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/hardening-checklist.mdreferences/incident-report-templates.mdreferences/mitre-attack-mapping.mdreferences/remediation-playbooks.mdreferences/vulnerability-patterns.md

FAQ

Что делает скилл soc-analyst?

Senior SOC Analyst skill — stack-agnostic security operations for any web application. Auto-detects the project stack (Laravel/PHP, Node.js/Express, Python/Django/Flask/FastAPI, Ruby/Rails, Go, Rust, Java/Spring, .NET) then triages security alerts by severity (P1-P4) with MITRE ATT&CK categorization, investigates suspicious activity by tracing attack paths and correlating events, performs incident response with containment and eradication, actively remediates vulnerabilities in code (SQL injection, XSS, CSRF, insecure deserialization, auth bypass, file upload flaws, command injection, path traversal, SSRF, mass assignment), hardens applications proactively (security headers, rate limiting, input validation, dependency audit, secrets rotation), and generates incident reports with post-mortem documents. Use this skill whenever the user asks to analyze security issues, fix vulnerabilities, investigate incidents, harden their application, or audit for threats — including requests like "check for security vulnerabilities", "fix the SQL injection", "investigate this suspicious activity", "harden my app", "run a security audit", "triage this alert", "check dependencies for CVEs", "semak keselamatan code ni", "betulkan vulnerability ni", "nak harden app ni", "tolong investigate security issue ni", "audit keselamatan project ni", or "fix security issues". Works with any web framework and language.

Как установить скилл soc-analyst?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл soc-analyst запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить soc-analyst с