Command Palette

Search for a command to run...

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

perception-investigate-attack

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

Investigate a Defender/Sentinel incident with Microsoft Perception (Attack Investigation Agent via the Perception MCP). Checks whether a Perception…

SCStelzот SCStelz★ 256 звёзд на GitHub

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

Perception — Investigate Attack

Purpose

Use Microsoft Perception's Attack Investigation Agent as an independent, agentic second opinion on an incident. It complements incident-investigation — it never replaces it. Perception is fast and broad; this repo is evidence-gated. Together you get speed plus provenance.

Read first: .github/skills/perception-shared/REFERENCE.md — preconditions, input shapes, session lookup, polling, validation, evidence tags, output paths, remediation policy. This skill does not repeat those rules; it applies them.

Entity: an incident number (Defender XDR incident ID, i.e. ProviderIncidentId). If the user gives a Sentinel IncidentNumber, translate it to ProviderIncidentId first (Sentinel ↔ Defender ID mapping rule).


Workflow

Phase 0 — Preconditions

🔴 MCP GATE — do this before reading the session index, saved reports, reports/, or Mission Control findings. Check that perception-mcp-* tools are available (use the tool search tool; they are deferred). If they are not: your reply MUST begin with the setup guidance — "The Perception MCP isn't configured in this session. Add an HTTP MCP server for https://perception.microsoft.com/mcp (e.g. .mcp.json: \"perception-mcp\": { \"type\": \"http\", \"url\": \"https://perception.microsoft.com/mcp\" }), sign in, reload MCP servers and retry. Needs Perception enabled in the tenant and Security Reader or higher. (Docs: https://learn.microsoft.com/en-us/security/agentic-security/agentic-security-mcp — it lists https://perception.microsoft.com/mcp; the sentinel.microsoft.com URL above also responds.)" After the guidance you may offer a saved result for the same input, labeled "saved result, not re-validated — Perception MCP unavailable" [asserted]. In this offline mode you must NOT write or edit any report, post a Mission Control finding, update temp/perception_sessions.json, run new analysis queries, or suggest follow-ups that need fresh Perception data. A saved index entry or report is never a reason to skip the guidance. Full rules: REFERENCE §1.1. Then state the active tenant.

Phase 1 — Incident facts (read-only)

GetIncidentById (includeAlertsData: false) for the incident: title, severity, status, createdDateTime, assignee, comments. Show the Defender portal link with ?tid=.

  • Age gate: if the incident is > 30 days old, warn that the Attack Investigation Agent cannot access it (REFERENCE §5) and ask whether to continue or use a newer seed alert.
  • Note if the alerts are Purview DLP / app-governance / Sentinel-workspace sourced (extra agent grants needed).
  • Repo investigation lookup (mandatory, cheap — do it now, before Phase 2): glob reports/incidents/Incident_<id>_Investigation_*.md and grep .mission-control/findings.json for skill = incident-investigation mentioning the incident; also check this conversation. Remember the result (source, filename/date, its verdict) — Phase 6 must report it and Phase 7 uses it. Do not skip this because a saved Perception report or index entry already exists.

Phase 2 — Lookup before running

Follow REFERENCE §3: scan list_sessions — page through with continuationToken until a page's oldest createdAt is older than the incident's createdDateTime (or the 10-page cap); one page is never enough — matching tags playbookId=investigate-incident and input:incident=<id> exactly (no title parsing):

  1. Local index → 2. list_sessions scan to the boundary.
  2. Discard unusable sessions (not succeeded, or no real report.md). If one or more usable sessions exist, show them (status, createdAt, initiatedBy) and offer reuse (fastest) or a fresh run.
  3. State the scan depth you actually reached (pages, sessions, oldest createdAt, stop reason) in the output — REFERENCE §3.5.
  4. State plainly that the incident itself carries no trace of Perception sessions (verified: no comment, tag or summary is written back), so the index/scan is the only way to find prior runs.

Phase 3 — Start (only if no reusable session, or user wants a fresh run)

Confirm (REFERENCE §1.3): "Start Perception investigate-incident for incident ? Async, typically 15–50 minutes, est. Perception cost ≈ $2.69–$18.82 (billed separately from Copilot credits; REFERENCE §1.3), runs under the agent's identity." Then follow REFERENCE §2 (list_playbooks → GUID playbookId; inputs array):

perception-mcp-start_session
  playbookId: <GUID of investigate-incident from list_playbooks>
  inputs: [{"key":"incidentOrAlert","type":"defenderIncidentId","values":["<id>"]}]

Record {kind:"incident", key:"<id>", sessionId, playbook, startedAt} in temp/perception_sessions.json. Tell the user it is running in the background and that they can keep working.

Phase 4 — Poll

REFERENCE §4 (get_session status; list_agent_runs for the Attack Investigation Agent's s

Полный SKILL.md на GitHub

Установить perception-investigate-attack в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл perception-investigate-attack?

Investigate a Defender/Sentinel incident with Microsoft Perception (Attack Investigation Agent via the Perception MCP). Checks whether a Perception investigation already exists and reuses it, otherwise (after confirmation) starts the investigate-incident playbook asynchronously, polls it, validates the result, and presents the verdict, timeline, entities and visibility limits tagged as Perception output. Optionally compares against this repo's own incident-investigation verdict and shows only the deltas. Requires the Perception MCP; stops politely if it is not configured. Trigger keywords: "perception investigate incident", "perception incident investigation", "ask perception about incident", "did perception already investigate", "perception session for incident".

Как установить скилл perception-investigate-attack?

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

Скилл perception-investigate-attack запускает скрипты?

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

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

Сравнить perception-investigate-attack с