perception-tune-detection
БесплатноБез исполняемых скриптовНе проверенHuman-in-the-loop tuning of custom-detection proposals from a Microsoft Perception session (Detection Authoring Agent). Decodes the report's "Open in Wizard"…
от SCStelz★ 256 звёзд на GitHubОб этом скилле
Perception — Tune a Proposed Detection
Purpose
Perception's Detection Authoring Agent measures each proposed rule against tenant history and flags those that are noisy or whose volume could not be measured as requires tuning. This skill closes the loop: a human and Copilot review the KQL, use Triage (Advanced Hunting) and Data Lake tools with a longer lookback to tune it, then produce a revised wizard link in the same encoded format Perception uses.
Read first: .github/skills/perception-shared/REFERENCE.md. KQL work follows the repo's KQL pre-flight checklist (Steps 0–6) — in particular Step 0 (lookback → tool), Step 1 (check queries/** and the manifest first), Step 5 (sanity-check zero results) and Step 6 (execute before sharing).
Deterministic helper (use it; don't hand-roll the encoding): wizard_link.py (lives in the core detection-authoring skill, which also uses it to hand analysts a prefilled wizard link for repo-authored rules).
python .github/skills/detection-authoring/wizard_link.py list-report <detection_report.md|saved read_output file> [--out-dir DIR]
python .github/skills/detection-authoring/wizard_link.py decode <url|token|file> [--out rule.json] [--query-out rule.kql]
python .github/skills/detection-authoring/wizard_link.py encode --base <original url|token|file> --query-file tuned.kql \
[--name "..."] [--description "..."] --tid <tenant_id> [--out link.txt]
python .github/skills/detection-authoring/wizard_link.py insert <report.md> --link-file <link.txt> [--placeholder "{{WIZARD_LINK}}"] [--text "..."]
python .github/skills/detection-authoring/wizard_link.py verify <report.md|file> --link-file <link.txt> [--query-file tuned.kql]
python .github/skills/detection-authoring/wizard_link.py selftest
encode preserves every field Perception set; only name, queryText, ruleDescription may change; round-trip verified; fails loudly if the link format changes.
🔴 Never type, retype or paste a wizard token yourself. The links are 2–3 KB of base64; a single dropped or altered character silently breaks the link (the wizard just won't open it). The only way a token reaches a report is: encode … --out <link.txt> → write the report with the literal placeholder {{WIZARD_LINK}} → insert fills the exact link from the file → verify confirms every link in the report decodes and equals the saved file (exit code 0 required). If verify fails, fix by re-running insert on a fresh placeholder — never by editing the token.
Entity: a Perception session ID (preferred) or an article (internal ID/title or URL). For an article, resolve it to a finished session that produced a detection report (proactive-protection / Protect against a threat, or detect-emerging-threats / Detect emerging threats, which can only be started in the portal but whose sessions are readable here) via REFERENCE §3 (page with continuationToken to the boundary or cap; match tags/inputs, status: succeeded, real detection_report.md in list_outputs; state the scan depth reached). Never start a run from this skill: if none matches, say so (with the scan depth reached) and offer perception-protect-against-threat; if several match, list them (status, createdAt, initiator) and let the user choose rather than silently taking the newest; skip sessions with no detection report (failed, stub, or Detection Authoring never ran) and say why. URL input: if the exact URL match finds no usable session, apply the title fallback (REFERENCE §3.6) — fetch the page title, offer title-matched sessions as probable same article and ask the user to confirm before tuning anything.
Nothing is deployed. The analyst opens the link in the Defender portal, reviews, and clicks Save. (This skill's output is read-only analysis + a prefilled wizard link.)
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 yo
Установить perception-tune-detection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл perception-tune-detection?
Human-in-the-loop tuning of custom-detection proposals from a Microsoft Perception session (Detection Authoring Agent). Decodes the report's "Open in Wizard" link to get the exact KQL and rule metadata, replays it against tenant history with Advanced Hunting (up to 30 days) or Sentinel Data Lake (longer lookbacks), slices the hits to find the noise, proposes and (with the analyst's approval) applies tuning, proves the tuned rule (longer lookback, indicator sweep, synthetic positive/negative check), and re-encodes a verified Detection Wizard link with the tuned query. Never deploys; the analyst opens the link and saves the rule. Works on any finished Perception detection report, typically those marked requires-tuning. Trigger keywords: "tune perception detection", "tune the proposed detection", "perception detection noisy", "requires tuning", "re-encode wizard link", "tune custom detection from perception".
Как установить скилл perception-tune-detection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл perception-tune-detection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic