MCPInstall
masriyan avatar

reconnaissance & osint automation

Passive and active reconnaissance, subdomain enumeration, DNS analysis, technology fingerprinting, and OSINT data correlation for authorized security assessments

Installs
145
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/masriyan/claude-code-cybersecurity-skill --skill reconnaissance-&-osint-automation
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads reconnaissance & osint automation automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Reconnaissance & OSINT Automation

Purpose

Enable Claude to conduct comprehensive reconnaissance and open-source intelligence gathering during authorized security assessments. Claude performs passive and active recon using its native analysis capabilities and orchestrates the included scripts for automation at scale.

Authorization Required: Always confirm written authorization for the target scope before proceeding. Unauthorized reconnaissance is illegal in most jurisdictions.


Activation Triggers

This skill activates when the user asks about:

  • Subdomain enumeration or discovery
  • DNS reconnaissance, zone transfers, or DNS record analysis
  • OSINT gathering on a domain, organization, or person
  • Technology fingerprinting or stack identification
  • Port scanning, service detection, or banner grabbing
  • Google dorking or advanced search query generation
  • WHOIS, certificate transparency, or Shodan queries
  • Attack surface mapping or perimeter discovery

Prerequisites

pip install requests dnspython python-whois beautifulsoup4 shodan

Optional enhanced capabilities:

  • nmap — Active port scanning
  • amass — Advanced subdomain enumeration
  • theHarvester — Email and domain harvesting
  • Shodan API key — Internet-wide device search
  • Censys API key — Certificate and host search

Core Capabilities

1. Passive Reconnaissance (No Direct Target Contact)

When the user asks for passive recon or OSINT:

  1. WHOIS Analysis — Query domain registration records for registrant, registrar, nameservers, and dates. Flag privacy-protected registrations and registrar patterns.
  2. Certificate Transparency Logs — Search crt.sh for all certificates issued to the domain and subdomains. Extract SANs (Subject Alternative Names) to discover hidden subdomains.
  3. DNS Records (Passive) — Enumerate A, AAAA, MX, NS, TXT, SOA, SRV, and CNAME records using public resolvers. Analyze SPF, DKIM, and DMARC for email security posture.
  4. Search Engine Dorking — Generate targeted dork queries to discover exposed files, login portals, and configuration leaks:
    • site:target.com filetype:pdf — Exposed documents
    • site:target.com inurl:admin — Admin panels
    • site:target.com ext:env OR ext:config — Config files
    • "@target.com" site:linkedin.com — Employee enumeration
    • "target.com" site:pastebin.com — Credential leaks
  5. Shodan/Censys Queries — Search for internet-exposed services, open ports, banners, and vulnerabilities associated with the target's IP ranges.
  6. Git/Code Repository Search — Search GitHub/GitLab for leaked credentials, API keys, and internal information:
    • org:targetorg api_key
    • filename:.env target.com
    • "target.com" password

2. Subdomain Enumeration

When the user asks to enumerate subdomains:

  1. Certificate Transparency — Extract all SANs from crt.sh/Censys certificates (most effective passive method)
  2. DNS Brute-Force — Run subdomain_enum.py against the common wordlist in resources/
  3. Wildcard Detection — Query random subdomains to detect wildcard DNS responses and filter false positives
  4. Resolution Validation — Resolve all candidates to IP addresses; discard NXDOMAINs
  5. HTTP Probing — Check which subdomains respond on ports 80/443; identify web applications
  6. Infrastructure Grouping — Group discovered subdomains by IP/ASN to map cloud vs. on-prem assets

Output format for subdomain findings:

Target: example.com
Discovery Method: CT Logs + DNS Brute-Force
Discovered: 47 subdomains

LIVE SUBDOMAINS:
  admin.example.com       → 203.0.113.10  [HTTP 200] [nginx/1.18]
  dev.example.com         → 203.0.113.11  [HTTP 302 → /login]
  api.example.com         → 203.0.113.12  [HTTP 200] [cloudflare]
  internal.example.com    → 10.0.0.5      [No public response — internal?]

INFRASTRUCTURE CLUSTERS:
  203.0.113.10-15 → AS12345 (Company Hosting)
  Cloudflare CDN → 7 subdomains proxied

3. Active Port Scanning & Service Detection

When the user asks to scan ports or detect services:

  1. Define scan scope (host, subnet, CIDR range) and confirm authorization
  2. Select scan technique: SYN scan (requires root), connect scan (no root), or stealth options
  3. Run top-1000 ports first, then targeted service ports
  4. Perform service version detection (-sV) on all open ports
  5. Run OS fingerprinting (-O) if authorized
  6. Grab banners from discovered services
  7. Flag services with known vulnerabilities based on version data

Provide Nmap commands ready to run:

# Quick discovery
nmap -sn 203.0.113.0/24

# Top 1000 TCP ports with service detection
nmap -sV -sC --top-ports 1000 -oA scan_results 203.0.113.10

# Full port scan with script engine
nmap -sV -sC -p- -T4 -oA full_scan 203.0.113.10

4. DNS Reconnaissance

When the user asks for DNS analysis:

  1. Enumerate all record types: A, AAAA, MX, NS, TXT, SOA, SRV, CNAME, PTR
  2. Zone Transfer Attempt (AXFR) — Try against all discovered nameservers:
    dig AXFR @ns1.example.com example.com
    
  3. Email Security Analysis:
    • SPF: Check for ~all (softfail) or ?all (neutral) — both are weak
    • DMARC: Missing DMARC = zero enforcement; p=none = monitoring only
    • DKIM: Check selector existence and key strength
  4. Reverse DNS — PTR lookups on all discovered IPs to find additional hostnames
  5. DNS History — Check SecurityTrails or PassiveDNS for historical DNS records that may reveal old infrastructure

Flag these misconfigurations:

  • Zone transfer allowed → Exposes full DNS zone
  • No DMARC record → Email spoofing possible
  • SPF +all → Any server can send as this domain
  • DNSSEC not configured → DNS cache poisoning risk

5. Technology Fingerprinting

When the user asks to fingerprint technology:

  1. Analyze HTTP response headers:
    • Server: → Web server and version
    • X-Powered-By: → Application framework
    • Set-Cookie: names → Session framework (PHPSESSID=PHP, JSESSIONID=Java)
    • X-Generator: / X-WordPress-Cache: → CMS
  2. Examine HTML source for meta tags, script includes, CSS frameworks
  3. Check /robots.txt, /sitemap.xml, /.well-known/ for framework leaks
  4. Test common CMS paths (/wp-admin/, /administrator/, /wp-json/)
  5. Analyze JavaScript files for version strings
  6. Detect WAF presence through header analysis and response behavior
  7. Identify CDN (Cloudflare, Akamai, Fastly, CloudFront) via IP ranges and headers

Technology stack report format:

URL: https://example.com

WEB SERVER:    nginx/1.18.0 (Ubuntu)
APPLICATION:   WordPress 6.4.2
LANGUAGE:      PHP 8.1
DATABASE:      MySQL (inferred from wp-config patterns)
CDN/WAF:       Cloudflare
JS LIBRARIES:  jQuery 3.6.0, Bootstrap 5.3
TLS:           TLS 1.3, ECDHE-RSA-AES256-GCM-SHA384

NOTABLE HEADERS:
  ✗ Missing: X-Content-Type-Options
  ✗ Missing: X-Frame-Options
  ✗ Missing: Content-Security-Policy
  ✓ Present: Strict-Transport-Security

6. OSINT Correlation & Reporting

When the user asks to correlate OSINT findings:

  1. Cross-reference IP ranges across WHOIS, ASN lookups, and cloud provider IP lists
  2. Map employee data (LinkedIn/email patterns) to organizational structure
  3. Correlate exposed credentials from paste sites against discovered email formats
  4. Identify third-party services and SaaS platforms in use (via DNS records, JS imports)
  5. Build infrastructure map showing relationships between assets

Output Standards

Every recon engagement should produce a structured report:

# Reconnaissance Report — [Target]
Date: [Date] | Scope: [Authorized Scope] | Analyst: [Name]

## Executive Summary
[2-3 sentence overview of key findings]

## Discovered Assets
- Subdomains: N found, N live
- IP Ranges: [CIDRs]
- Open Services: [Top findings]
- Technologies: [Stack summary]

## Key Findings
1. [High-impact finding with evidence]
2. [Medium-impact finding]
...

## Attack Surface Summary
[Map of entry points for follow-on testing]

## Recommended Next Steps
- Feed live web apps → Skill 09 (Web Security)
- Feed discovered services → Skill 02 (Vulnerability Scanner)
- Feed cloud assets → Skill 10 (Cloud Security)

Script Reference

subdomain_enum.py

# Passive CT log enumeration
python scripts/subdomain_enum.py --domain target.com --passive-only --output results.json

# Active brute-force with custom wordlist
python scripts/subdomain_enum.py --domain target.com --wordlist resources/common_subdomains.txt --threads 20 --output results.json

dns_recon.py

# Full DNS reconnaissance
python scripts/dns_recon.py --domain target.com --output dns_report.json

# Check zone transfer vulnerability
python scripts/dns_recon.py --domain target.com --check-zone-transfer

tech_fingerprint.py

# Single URL analysis
python scripts/tech_fingerprint.py --url https://target.com --output tech_report.json

# Batch URL fingerprinting
python scripts/tech_fingerprint.py --urls urls.txt --output tech_report.json

Skill Integration

Next StepConditionTarget Skill
Vulnerability assessmentLive services discovered→ Skill 02
Web application testingWeb apps found→ Skill 09
Cloud asset auditingCloud-hosted assets found→ Skill 10
Network traffic analysisPCAP capture available→ Skill 08
IOC correlationSuspicious infrastructure found→ Skill 06

References


v3.0 Enhancements (2026 Update)

Sharper, more current recon tradecraft:

  • Subdomain takeover detection — for every discovered subdomain with a dangling CNAME (pointing to an unclaimed S3/Azure/GitHub Pages/Heroku/Fastly target), flag it as a takeover candidate and identify the fingerprint of the orphaned service.
  • Cloud asset discovery — enumerate public S3/GCS/Azure Blob buckets and storage by permutation of the org name; check for listable/world-readable buckets (use cloud_enum-style logic). Map ASN → CIDR → cloud-provider attribution.
  • JA4+ / favicon hashing — pivot on favicon mmh3 hashes and JARM/JA4S server fingerprints in Shodan/Censys to find sibling infrastructure behind CDNs.
  • GraphQL & API recon — probe /graphql for introspection; harvest schema, types, and mutations to feed Skill 09.
  • Breach & credential intel — correlate discovered email formats against HaveIBeenPwned and public combolists (passive only) to prioritize accounts.
  • Source-code & CI leaks — extend dorking to GitHub Actions logs, npm/PyPI package metadata, and *.map source maps that leak internal paths.

Precision rule: always separate confirmed assets (resolved + responding) from candidate assets (CT-log only) in output, and tag the discovery source per asset so findings are reproducible.

Added references

FAQ

What does the reconnaissance & osint automation skill do?

Passive and active reconnaissance, subdomain enumeration, DNS analysis, technology fingerprinting, and OSINT data correlation for authorized security assessments

How do I install reconnaissance & osint automation?

Run npx skills add https://github.com/masriyan/claude-code-cybersecurity-skill --skill reconnaissance-&-osint-automation in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/reconnaissance-&-osint-automation/ (personal) or .claude/skills/reconnaissance-&-osint-automation/ (project).

Which AI agents can use reconnaissance & osint automation?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is reconnaissance & osint automation safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains reconnaissance & osint automation?

It is published by masriyan in masriyan/claude-code-cybersecurity-skill. It has 145 recorded installs.

More from masriyan/claude-code-cybersecurity-skill

View all →
masriyan avatar

threat hunting & ioc analysis

masriyan/claude-code-cybersecurity-skill

IOC extraction, threat intelligence correlation, MITRE ATT&CK mapping, hunt hypothesis generation, and detection rule creation

Security220 installs
masriyan avatar

reverse engineering & binary analysis

masriyan/claude-code-cybersecurity-skill

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering

162 installs
masriyan avatar

incident response & digital forensics

masriyan/claude-code-cybersecurity-skill

IR playbook execution, evidence collection, forensic timeline analysis, memory forensics, and post-incident reporting following NIST SP 800-61 and SANS PICERL methodology

152 installs
masriyan avatar

cryptographic analysis & assessment

masriyan/claude-code-cybersecurity-skill

SSL/TLS auditing, cipher suite analysis, hash algorithm identification, encryption implementation review, and cryptographic weakness detection in code

masriyan avatar

web application security testing

masriyan/claude-code-cybersecurity-skill

OWASP Top 10 testing, injection vulnerability detection, API security assessment, authentication testing, and web vulnerability reporting for authorized assessments

Security148 installs
masriyan avatar

network security & traffic analysis

masriyan/claude-code-cybersecurity-skill

Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection

Security145 installs

Popular productivity & automation skills

View category →
vercel-labs avatar

agent-browser

vercel-labs/agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

OfficialProductivity & Automation1.6M installs
open.feishu.cn avatar

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。

open.feishu.cn avatar

lark-shared

open.feishu.cn

Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.

open.feishu.cn avatar

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

open.feishu.cn avatar

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。

open.feishu.cn avatar

lark-im

open.feishu.cn

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。