o365chk
Small Python script that asks Microsoft whether a domain has an Office 365 tenant and whether it is managed or federated.
Python CLI · Open source · Infrastructure and domains · github.com
- Takes
- Domain
- Pricing
- Free, open source
- Footprint
- Passive · no contact with target
- Account
- Not needed
- API
- No public API
- Last verified
- Dec 3, 2026
Small Python script that asks Microsoft whether a domain has an Office 365 tenant and whether it is managed or federated. It takes domain. Read the cons before you build a workflow on it.
What it does
o365chk is a short Python script by Nixintel that checks whether a domain is linked to an Office 365 (Microsoft 365) instance. It reports one of three states: no instance found, managed directly by Microsoft, or federated, and prints the JSON that Microsoft's login service returns, which can include the organisation's brand name and the URL of its own sign-in server.
Investigators use it to learn whether an organisation runs its email and identity on Microsoft 365 and, for federated domains, which identity provider sits in front of it. A shell script runs it over a list of domains. The script is small and has not changed since 2021.
Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.
- +Free with no API key
- +Does not contact the target's own servers
- +Simple to run and read
- −Untouched since 2021
- −Answers one narrow question
When to use it
- 01Use it when you need to know whether an organisation's domain is on Microsoft 365.
- 02Use it when you want the name and sign-in server a federated organisation shows Microsoft.
Next steps from this result
Suggested from the inputs o365chk takes- Found a resultConfirm it with a second, independent source before you record itDepends
- Found a new identifierPivot on it only if your scope covers the new targetDepends
Quick start
git clone https://github.com/nixintel/o365chk && cd o365chk pip install -r requirements.txt python3 o365chk.py -d example.com
Technical details
Listing verified by an editor on Dec 3, 2026- API
- No public API
- Account
- Not needed
- Footprint
- Passive · no contact with target
- Pricing
- Free, open source
- Platforms
- Python CLI
- Repository
- nixintel/o365chk 52 stars
- Language
- Python
- Licence
- MIT
- Last commit
- Dec 2021 (dormant)
- Listed
- Dec 3
Reviews
No reviews yet
Written by signed-in members. Each review appears here after an editor has read it.
Used o365chk? Sign in to say what you used it for and how it went.
Sign in to reviewDiscussion
Tips, questions and updates about o365chk from the community.
No posts about o365chk yet. Ask a question or share how you use it.
Alternatives to o365chk
Listed tools that take the same inputs, closest match first.
- OWASP AmassOpen source · DependsWhat it does
OWASP command-line tool for subdomain enumeration and attack surface mapping using passive sources and DNS.
DomainNo ratings yetVerified 11d ago - SubfinderOpen source · DependsWhat it does
Fast ProjectDiscovery CLI that finds subdomains from passive online sources.
DomainNo ratings yetVerified 11d ago - OneForAllOpen source · DependsWhat it does
Python subdomain collector that combines certificate logs, DNS datasets, search engines, brute force and takeover checks.
DomainNo ratings yetVerified 11d ago