Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hunt-m365

Skill by Encod3d-Sec

Guides a Microsoft 365 and Entra ID security test, covering tenant discovery, OneDrive-based user enumeration, AADSTS error code mapping and capped ROPC password validation. It builds on the shared scope gate and confirmation rules of the hunt-core skill.

  • Score 65
  • 344 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install hunt-m365

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Encod3d-Sec/TORCH /tmp/TORCH && mkdir -p ~/.claude/skills && cp -r /tmp/TORCH/skills/hunt/hunt-m365 ~/.claude/skills/hunt-m365

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hunt-m365 in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an attack assessment of Microsoft 365 and Entra ID tenants. It starts with tenant discovery using msftrecon, then enumerates users through a OneDrive differential check that sends no authentication attempts. It also includes a reference table of AADSTS error codes, notes on Smart Lockout limits, and a way to map Conditional Access policies once a valid credential is found.

Password validation runs last and is capped at one or two attempts per user. A ROPC helper enforces the cap with a per-email attempt file. The skill relies on the hunt-core skill for the scope gate, confirmation rules, and FIND output, and it checks a wiki before acting. The source describes it as a tool for engagement-based work.

Written from the project's SKILL.md and checked against it.

What it can do

  • Tenant discoveryUses msftrecon to read the tenant ID, namespace type and SharePoint presence.
  • User enumerationChecks OneDrive personal site responses to find existing users without any login attempt.
  • AADSTS code referenceLists common AADSTS error codes with their meaning, lockout impact and next action.
  • Smart Lockout mathExplains the default lockout threshold and the hard cap of one or two attempts per user.
  • ROPC validationRuns a single-attempt password check with a per-email attempt file that blocks repeat attempts.
  • Conditional Access mappingDocuments which client IDs and policies apply after a valid credential is found.
  • Confirmation rulesDefines what counts as a confirmed finding and assigns severity levels.
  • Chaining to other skillsHands confirmed access to hunt-cloud, hunt-federation or hunt-auth for follow-up.

What you need

  • hunt-core skill
  • msftrecon
  • Python 3
  • curl
  • wiki-search MCP server

Try asking

  • Run msftrecon on client.example and report the namespace type and tenant ID
  • Enumerate users on the tenant using the OneDrive differential check
  • Explain what AADSTS50126 tells me about a user account

Good to know

  • Depends on the hunt-core skill for the scope gate, confirmation and output rules.
  • Password attempts are capped at one or two per user per engagement.
  • The Smart Lockout counter is shared across ROPC, SAML, IMAP and EWS flows.
  • Requires msftrecon and a wiki-search MCP server to be available.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/hunt/hunt-m365/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to hunt-m365

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

hunt-m365: common questions

Does this skill limit password attempts?

Yes. The source sets a hard cap of one or two password attempts per user per engagement, and the ROPC helper skips users who have reached the cap.

How does it find users without logging in?

It checks OneDrive personal site URLs. A 200 response with a body of about 57KB means the user exists, and a 404 with no body means it does not.

What counts as a confirmed finding?

A returned access token, or a login returning 53003, 50076, 50079, 50158 or 530003, which the source says appear only after the password is checked. An error code alone is not treated as confirmation.

How do I install hunt-m365?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hunt-m365 free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is hunt-m365 safe to use?

It scores 65 of 100. Grades: maintenance C, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hunt-m365?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

hunt-m365 Install

Add to stack

Loading.