microsoft-security-agent-toolkit
CLAUDE.md2 starsChanged 5 months agoMITView on GitHub
Always read HANDOFF.md at the repo root before making any change. It is the source of truth for design decisions, conventions, tool surface, and open work prioritization. sentinel.run_kql, sentinel.list_incidents, sentinel.get_incident, sentinel.update_incident (write) · defender_xdr.list_alerts, defender_xdr.get_incident, defender_xdr.run_advanced_hunting, defender_xdr.update_incident (write), defender_xdr.isolate_device (write) · graph.signins, graph.risky_users, graph.directory_audit, graph.revoke_sessions (write), graph.disable_user (write) · purview_audit.search, purview_audit.export Pick the topmost unchecked item from "Open work" in HANDOFF.md. Phase 1 (sentinel-mcp end-to-end implementation) is the current priority.
- Reads credentials
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 13
Never log or commit a tenant secret.
- Very specific: line 14
Every write tool (mutates tenant state) must take confirm: true and use the separate write-app registration.
- Distinctive: line 16
No offensive (red-team) tooling — defensive and governance only.
- Distinctive: line 17
No live-tenant calls in tests, demos, or samples — synthetic data only.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code instructions for microsoft-security-agent-toolkit
Always read HANDOFF.md at the repo root before making any change. It is the source of truth for design decisions, conventions, tool surface, and open work prioritization.
Quick context
- Repo role: action layer (MCP servers, KQL snippets, Logic Apps templates, demos) for AI agents working on Microsoft Security.
- Pairs with:
microsoft-security-skills(the knowledge layer, 88 skills, v0.2.0). - Status: preview — scaffold complete, MCP implementations pending.
Hard rules (do not violate)
- Never log or commit a tenant secret.
.envstays gitignored. - Every write tool (mutates tenant state) must take
confirm: trueand use the separate write-app registration. Seedocs/permissions-required.md. - Skills only declare
tools_required— they never bundle this toolkit. The host routes. - No offensive (red-team) tooling — defensive and governance only.
- No live-tenant calls in tests, demos, or samples — synthetic data only.
Conventions
- Conventional-commit-ish (
scaffold:,feat(sentinel-mcp):,docs:,kql:). Always addCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>when AI-assisted. - Branch off
main. PR intomain. One server / one snippet pack / one demo per PR. - KQL files use the header documented in
kql-snippets/README.md.
Tool IDs (do not rename without cross-repo update)
sentinel.run_kql, sentinel.list_incidents, sentinel.get_incident, sentinel.update_incident (write) ·
defender_xdr.list_alerts, defender_xdr.get_incident, defender_xdr.run_advanced_hunting, defender_xdr.update_incident (write), defender_xdr.isolate_device (write) ·
graph.signins, graph.risky_users, graph.directory_audit, graph.revoke_sessions (write), graph.disable_user (write) ·
purview_audit.search, purview_audit.export
When stuck
Pick the topmost unchecked item from "Open work" in HANDOFF.md. Phase 1 (sentinel-mcp end-to-end implementation) is the current priority.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

