nirikshak

nirikshak

MCP server for passive domain reconnaissance and attack surface monitoring. It scans subdomains, security headers, TLS certs, and tech stack, detects subdomain takeovers, and reports changes since the last scan.

Category
访问服务器

README

nirikshak

निरीक्षक — someone who watches, observes, keeps an eye on something over time. That's basically what this does, just for your domain's attack surface instead of a person.

So: nirikshak. It runs the standard passive recon checks, but it remembers the last scan and tells you what changed, and it's built MCP-native from the start so Claude (or any MCP client) can drive it directly, not just as a CLI you wrap.

what it actually does

  • Checks security headers (HSTS, CSP, X-Frame-Options, etc) against a real page fetch, not a hardcoded list
  • Pulls the TLS cert and flags anything expiring soon or running an old protocol version
  • Passive subdomain enumeration off certificate transparency logs (crt.sh) — doesn't touch the target at all for this
  • WHOIS/RDAP lookup for registration + expiry info
  • Basic tech stack fingerprinting (CMS, framework, CDN)
  • Subdomain takeover detection — resolves CNAMEs on discovered subdomains and checks if they point at an unclaimed cloud resource (dangling GitHub Pages, S3 bucket, Heroku app, Azure, Netlify, etc). This is the classic "forgot to delete the DNS record after decommissioning the service" bug and it's a real bounty-worthy finding
  • Snapshot + diff engine — every scan is saved locally (~/.nirikshak/snapshots/), and the next scan tells you exactly what's new, what disappeared, what regressed. New subdomain shows up → flagged. Header that was there last week is gone now → flagged. Cert crossed the 30-day mark → flagged.
  • A 0-100 exposure score with a letter grade so you don't have to read the whole report to know if things are fine or not
  • One active tool (port_scan, nmap-backed) that's opt-in only and requires you to actually confirm you're authorized to scan the target

Everything except port_scan is 100% passive — it either does what a browser would do (fetch a page, do a TLS handshake) or queries a public third-party dataset (crt.sh, RDAP). Nothing here brute-forces, exploits, or attacks anything.

example output

$ python cli.py scan github.com

nirikshak — surface report for github.com
Score: 81/100  (grade B)

Findings:
  -  4  Missing security header: Permissions-Policy
  - 15  TLS certificate expires in 28 days

Since last scan:
  [WARNING] Security header(s) that were present before are now missing: Content-Security-Policy.
  [INFO] 1 new subdomain(s) appeared since last scan — worth confirming these are yours.

Attack surface:
  Subdomains found: 3
  Tech stack: react

(that's a real run against github.com's public headers, not a mockup — the diff part was simulated for the demo but the scoring/header/TLS numbers are actually pulled live)

install

git clone https://github.com/ewwhardik/nirikshak.git
cd nirikshak
pip install -r requirements.txt

run it from the terminal

python cli.py scan example.com
python cli.py scan example.com --json     # raw output if you want to pipe it somewhere
python cli.py scan example.com --no-takeover

or hook it up to Claude / any MCP client

{
  "mcpServers": {
    "nirikshak": {
      "command": "python",
      "args": ["/absolute/path/to/nirikshak/mcp_server.py"]
    }
  }
}

There's also a Claude Skill in skill/SKILL.md — drop it in your skills folder and Claude will know to run full_surface_scan and write the report in plain English instead of dumping raw JSON at you.

how this compares to what's already out there

Not trying to pretend this replaces Amass or SpiderFoot, those are way more mature and have way more data sources. Being honest about where this fits:

Amass / theHarvester / Recon-ng SpiderFoot nirikshak
Passive recon (subs, headers, whois, tech) yes yes, way more sources yes, smaller source list
Remembers previous scans & tells you what changed no no yes
Subdomain takeover detection some forks have it no yes
Usable as an MCP tool by an AI agent out of the box no no yes
Setup CLI, some config needs a server/DB for the full experience pip install, done

If you need deep OSINT with 200 data sources, use SpiderFoot. If you want something lightweight that tells you what actually changed since last Tuesday and that an AI agent can run for you without you touching a terminal, that's this.

roadmap / stuff I haven't gotten to yet

  • [ ] Scheduled scans (cron wrapper, so it actually monitors instead of you remembering to run it)
  • [ ] Email notification / webhook when a new critical finding shows up
  • [ ] More takeover fingerprints (the list right now covers the common ones, not exhaustive)
  • [ ] Basic web dashboard instead of just CLI/JSON output
  • [ ] IPv6 support in the port scanner

PRs welcome if you want to knock any of these out.

⚠️ before you scan anything

Only run this against domains you own or have explicit permission to test. port_scan especially — that one's active, everything else just reads public data.

license

MIT, see LICENSE.

— Hardik

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选