Skip to content

hint-shu/deep-research / skills/osint-research

osint-research

Unverified

OSINT recon skill — passive entity discovery for domain / IP / email / person / company / github user. Builds a hybrid findings/dossier/graph report from free public sources (Whois, DNS, crt.sh, Wayback, Shodan InternetDB, GitHub code search, Tavily/Firecrawl/Exa/Perplexity dorks, optional theHarvester/subfinder). No subscription dependencies. Disclaimer is non-removable; secrets are redacted; blocklisted dump sites are filtered at outbound and inbound levels.

FileKindSize
SKILL.mdskill md6.1 KB
channels/crtsh.shexecutablescript1.8 KB
channels/dorks.shexecutablescript3.5 KB
channels/github-leaks.shexecutablescript2.0 KB
channels/shodan-idb.shexecutablescript2.2 KB
channels/subfinder-wrap.shscript1.8 KB
channels/theharvester-wrap.shexecutablescript1.8 KB
channels/wayback.shexecutablescript1.5 KB
channels/whois-dns.shexecutablescript2.2 KB
lib/entity-classifier.shexecutablescript1.4 KB
lib/findings-extractor.shexecutablescript1.6 KB
lib/inbound-filter.shscript6.9 KB
lib/secret-patterns.txtmarkdown1.1 KB
lib/secret-redactor.shexecutablescript2.3 KB
templates/graph.mmd.tplother53 B
templates/osint-report.md.tplother1.1 KB

lib/entity-classifier.sh

View on GitHub
#!/usr/bin/env bash
# skills/osint-research/lib/entity-classifier.sh
# Emits one of: domain, ip, email, person, company, github

set -uo pipefail

COMPANY_FLAG=0
RAW=""
while [ $# -gt 0 ]; do
    case "$1" in
        --company) COMPANY_FLAG=1; shift;;
        *) RAW="$1"; shift;;
    esac
done

if [ -z "$RAW" ]; then
    echo "entity-classifier: empty target" >&2
    exit 1
fi

# Strip surrounding quotes if present
unquoted="${RAW#\"}"
unquoted="${unquoted%\"}"

# github: prefix
if [[ "$RAW" =~ ^github: ]]; then
    echo "github"; exit 0
fi

# explicit --company flag
if [ "$COMPANY_FLAG" -eq 1 ]; then
    echo "company"; exit 0
fi

# email: <local>@<domain>
if [[ "$unquoted" =~ ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$ ]]; then
    echo "email"; exit 0
fi

# IPv4
if [[ "$unquoted" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; then
    echo "ip"; exit 0
fi

# IPv6 (loose)
if [[ "$unquoted" == *:* ]] && [[ "$unquoted" =~ ^[0-9a-fA-F:]+$ ]]; then
    echo "ip"; exit 0
fi

# Quoted string (with or without space) → person (company would have used --company)
if [[ "$RAW" =~ ^\".*\"$ ]]; then
    echo "person"; exit 0
fi

# Domain: contains a dot, no spaces, no @, no /
if [[ "$unquoted" == *.* ]] && [[ "$unquoted" != *" "* ]] && [[ "$unquoted" != *"@"* ]] && [[ "$unquoted" != *"/"* ]]; then
    echo "domain"; exit 0
fi

echo "entity-classifier: cannot classify: $RAW" >&2
exit 1
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall