# o365chk

> Small Python script that asks Microsoft whether a domain has an Office 365 tenant and whether it is managed or federated.

Source: https://osinttools.io/tools/o365chk/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Domain
- **Category:** Infrastructure and domains
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/nixintel/o365chk
- **GitHub:** nixintel/o365chk, 52 stars · Python · MIT · last commit 2021-12-11 · dormant (no commit on the default branch in 18 months)
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## 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.

## Features

- Office 365 presence check for a domain
- Managed vs federated result
- Federation brand name and sign-in URL
- Batch mode over a domain list

## Pros

- Free with no API key
- Does not contact the target's own servers
- Simple to run and read

## Cons

- Untouched since 2021
- Answers one narrow question

## When to use it

- Use it when you need to know whether an organisation's domain is on Microsoft 365.
- Use it when you want the name and sign-in server a federated organisation shows Microsoft.

## Quick start

Clone and run:

```
git clone https://github.com/nixintel/o365chk && cd o365chk
pip install -r requirements.txt
python3 o365chk.py -d example.com
```

## Alternatives

- [OWASP Amass](https://osinttools.io/tools/amass/): OWASP command-line tool for subdomain enumeration and attack surface mapping using passive sources and DNS. (Open source · Domain · depends · 15,592 GitHub stars)
- [Subfinder](https://osinttools.io/tools/subfinder/): Fast ProjectDiscovery CLI that finds subdomains from passive online sources. (Open source · Domain · depends · 14,919 GitHub stars)
- [OneForAll](https://osinttools.io/tools/oneforall/): Python subdomain collector that combines certificate logs, DNS datasets, search engines, brute force and takeover checks. (Open source · Domain · depends · 10,176 GitHub stars)
- [reNgine](https://osinttools.io/tools/rengine/): Self-hosted web reconnaissance framework with configurable scan engines, a database-backed UI and reports. (Open source · Domain · active · 8,977 GitHub stars)
- [reconFTW](https://osinttools.io/tools/reconftw/): Automated recon script that chains many tools for subdomain discovery, OSINT and web vulnerability checks on a domain. (Open source · Domain · depends · 8,438 GitHub stars)
- [gau (getallurls)](https://osinttools.io/tools/gau/): Go CLI that pulls every known URL for a domain from the Wayback Machine, Common Crawl, AlienVault OTX and URLScan. (Open source · Domain · passive · 5,198 GitHub stars)

All alternatives to o365chk in one table: https://osinttools.io/tools/o365chk/alternatives/

## Change history

- 2026-12-03: Listed in the directory.

Feed of changes to o365chk: https://osinttools.io/tools/changes/feed.xml?tool=o365chk

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
