phishing-triage
L2 email-content forensics. Header chain, sender authentication state, URL+attachment detonation, BEC pattern detection. Use after L1 dispatches a…
от VigilOSS★ 35 звёзд на GitHub
Установить phishing-triage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Phishing Triage (L2)
L2 email-content forensics — the playbook the investigator loads when
alert-triage dispatches a phishing-class alert. Primary platform is
Microsoft 365 / Exchange Online; the Google Workspace analog lives in
agent/skills/google-workspaces/SKILL.md §Gmail content. Same evidence
shape, MITRE mapping, and disposition vocabulary; only the platform CLIs
differ.
L2 pulls audit data, parses raw .eml, detonates URLs, hashes
attachments, and writes a disposition_recommendation. L2 does NOT
write the final disposition (L3 alert-fp-verification) and does NOT
propose containment (L4 incident-containment). L2's deliverable is a
registered evidence trail and a handoff JSON shaped for the verifier.
When to Activate
- L1
alert-triagedispatches with platform hintm365-emailorgws-gmailand categoryphishing,bec,aitm, oroauth-grant. - Operator pastes a phish report (end-user report, fraud notification,
vendor warning) into
scope.json:alert_metadataand the L1 classifier routes it here. - L2 platform investigator (
google-workspacesorm365-signin-investigation) escalates after surfacing an inbox-rule artifact or attacker-grafted forwarding rule — the email that grafted the rule needs forensic triage before the session-token side of the AiTM compromise can be closed.
Does NOT activate on:
- Generic credential-stuffing without an email artifact — those go to
m365-signin-investigationorgoogle-workspacesdirectly. - DLP exfiltration where the compromise is in the user's outbox —
incident-containmentowns outbound purge. - Quarantined-message release decisions — triage shortcut on the tenant's quarantine console, not a full L2 investigation.
Operating Rules
Load before the first command runs. Do not restate linked content.
agent/rules/triage.md(always-active) — disposition vocabulary (verified | false_positive | downgraded | escalated), severity ↔ MITRE alignment, 30-day look-back, symmetric evidence bar, mechanical-FP citation.agent/rules/ir-evidence.md(always-active) — attribution gates on header forensics. AnAuthentication-Resultsverdict is not evidence-grade without Step 3's live DNS recheck.agent/shared-constraints-blue.md— authorization, read-only by default, chain of custody, UTC, dispatch schema, host-exec audit pipeline.- Tenant ref(s) from
scope.json:tenant_reference_paths[]— documented sender allowlists, mailflow rules, quarantine-release SOPs, known-benign register. Missing tenant ref =blockedhandoff pertriage.mdrule 12.
Tools
| Task | Tool | Why |
|---|---|---|
Pull raw .eml from M365 mailbox |
curl against Graph users/{id}/messages/{id}/$value |
Graph returns the exact RFC 822 bytes the recipient received; preserves chain of custody. Authenticate via Azure AD app with Mail.ReadBasic.All (read) or Mail.Read if body access is required. |
Pull raw .eml from GWS mailbox |
gam user <u> show message <gmail-internal-id> format raw |
GAM with DWD; mirror the pattern in google-workspaces/SKILL.md §3. |
| Parse RFC 5322 headers (Received chain, Auth-Results, Reply-To, From) | eml-parser (pypi) via vigil assess host-exec --tool python3 |
Pure-Python parser; deterministic JSON output; handles multipart MIME, attachments, header folding. |
| Office attachment triage (macros, OLE, embedded URLs) | oletools (oleid, olevba, oledump.py) via host-exec |
Standard malicious-document toolkit; surfaces VBA macros, AutoExec triggers, suspicious URL fragments. |
| PDF action / JS / embedded form triage | pdfid.py + pdf-parser.py (Didier Stevens) via host-exec |
Surfaces /JS, /JavaScript, /OpenAction, /AcroForm, /EmbeddedFile, /Launch — the high-signal phishing-PDF tokens. |
| DNS auth verification (SPF, DKIM selector, DMARC) | dig +short TXT <name> via host-exec |
Re-resolves live DNS at investigation time; compares against the verdicts the receiving MTA stamped into Authentication-Results. |
| Lookalike-domain check (homoglyph, IDN, character swap) | dnstwist <domain> via host-exec |
Generates and resolves permutations of a target domain; flags the ones that resolve and serve mail (--mxcheck). |
| URL sandbox detonation | curl POST https://urlscan.io/api/v1/scan/ then GET https://urlscan.io/api/v1/result/{uuid}/ |
urlscan returns the response chain, screenshot, DOM snapshot, and IOC list. Always submit with "visibility": "private" — public scans leak the customer's lookalike domains and recipient-tailored URLs to the urlscan public feed. |
| File / URL / domain reputation | curl against VirusTotal v3 (/files/{sha256}, /urls/{id}, /domains/{d}) via host-exec |
Auth via x-apikey: $VT_API_KEY. URL IDs are base64url of the URL (see ioc-enrichment/SKILL.md §3). |
| M365 Defender Advanced Hunting (delivery, click-through, post-delivery rules) | curl POST `https://api.security.microsoft.com/api/adv |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл phishing-triage?
L2 email-content forensics. Header chain, sender authentication state, URL+attachment detonation, BEC pattern detection. Use after L1 dispatches a phishing-class alert.
Как установить скилл phishing-triage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл phishing-triage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…