National Cyber Warfare Foundation (NCWF)login

osint-d2 for agentic identity investigations across public sources


0 user ratings
2026-11-08 05:31:04
milo
Red Team (CNA)
"osint-d2

osint-d2 is a Python CLI and local dashboard that lets an LLM agent chain username, email, and phone scans into a verifiable identity dossier for authorized OSINT work.








ToolDoble-2/osint-d2 — agentic OSINT toolkit with CLI and local web dashboard for identity triangulation and reporting
ToolDoble-2/osint-d2 — agentic OSINT toolkit with CLI and local web dashboard for identity triangulation and reporting
Primary UseCorrelating usernames, emails, and phone numbers across public sources into verifiable identity reports during authorized investigations
Safe UseIntended for authorized security research, journalism, and OSINT investigations; the README explicitly warns that privacy law applies even to public data and directs users to its Security & Responsible Use guide
Telemetry NoteScans generate outbound requests to ~470 sites via Sherlock integration and, unless OSINT_D2_AI_PROVIDER=ollama is used, scan results are sent to the configured AI provider; site operators and the LLM provider can observe this traffic

osint-d2 from Doble-2 positions itself as an agentic open-source intelligence toolkit: a Python 3.11+ CLI and a local web dashboard that take a username, email, or phone number as a seed and turn it into a documented, verifiable identity report. The project has accumulated 271 stars, an MIT license, CI badges, prebuilt release binaries, and a proper documentation site, which signals a maintained codebase rather than a weekend experiment. What distinguishes it from the usual username-enumeration scripts is the split between deterministic scanning and LLM-driven investigation: direct scans work with no AI at all, while agent mode lets a model choose tools, follow leads, and write the final dossier. That architecture choice matters for professionals who need reproducible evidence trails, because the non-AI path remains fully auditable.


The scanning layer is concrete and bounded. There are 20 native username scanners and 4 email scanners, plus optional integration with sherlock — the well-known project that checks roughly 470 sites — and support for custom site lists. Email scanning leans on Gravatar and PGP keyservers with an optional username pivot, and scan_phone returns carrier, country, line type, and WhatsApp status. The hunt subcommand accepts multiple targets across -u and -e flags, and --format json produces machine-readable output that pipes cleanly into jq, which makes the tool composable in larger authorized workflows rather than a black box.


Agent mode is where the README's engineering shows. The LLM gets a toolbox of nine functions: scan_username, scan_email, breach_check, fetch_url, compare_avatars, scan_phone, search_vector_memory, correlate_stylometry, and generate_report. Each call appears on a timeline in the dashboard, so the investigator can audit exactly which tool the agent invoked and what it found — an illustrative run shows scan_username yielding confirmed accounts, fetch_url extracting an email from a personal site, scan_email pivoting on that address, and generate_report closing with a confidence figure. Notably, the README is candid that the confidence score is the model's own estimate, not a measured probability, and instructs users to verify before relying on it.


The false-positive problem — separating a genuine account from a namesake — gets first-class treatment through what the docs call trust anchors. The --trust github:johndoe flag declares an account you already control or have verified, and every other candidate profile is scored on name, bio, avatar, and location signals, with contradictory evidence discarded. Identity correlation goes further than string matching: compare_avatars uses perceptual hashing (dHash) to compare profile images across platforms, and correlate_stylometry compares writing style using character n-grams. This is the kind of triangulation logic that normally requires analysts to do manually across browser tabs, and its inclusion suggests the author has done real attribution work.


The AI provider layer is refreshingly provider-agnostic. Configuration lives in .env with OSINT_D2_AI_PROVIDER accepting deepseek (the default), openai, any OpenAI-compatible API, or ollama for fully local inference — the README explicitly notes Ollama keeps scan results on your machine, and the Docker guide covers a fully offline Ollama setup with a container address. This matters operationally: investigations involving sensitive subjects should not leak query data to a third-party inference provider, and the project acknowledges that scan results are sent to your AI provider unless you opt for local models. That is a privacy disclosure many comparable tools never make.


Reporting is multi-format and audit-friendly: PDF dossiers, JSON, and graph exports for Obsidian Canvas and HTML. PDF generation needs the optional Pango libraries on the CLI side. The report structure covers identity, geo-temporal signals, and technical profile by default; personality (OCEAN), ideology, and attack-surface sections exist but are gated behind --sensitive-inferences because, as the README states plainly, they are speculative inferences. Gating speculative cognitive profiling behind an explicit opt-in flag is good hygiene — it keeps the default output anchored to observable evidence and forces the analyst to consciously accept uncertainty when they want more speculative analysis.


The deployment story covers several personas. pipx install git+https://github.com/Doble-2/osint-d2.git followed by osint-d2 scan johndoe is enough for keyless direct scans, and osint-d2 doctor run diagnoses missing optional components. A Docker path uses an install script that scaffolds a Compose file, a .env for the AI key, and a reports folder, with the dashboard on localhost:8000. Developers get a poetry install workflow with playwright install chromium for browser-dependent scanning, and there are prebuilt binaries — unsigned, so expect OS warnings. The test suite runs under pytest with ruff linting, and there is a contributor guide for adding scanners.


Security posture deserves attention from two directions. First, the dashboard deliberately has no authentication and binds to localhost only; the project refuses to operate a hosted version for ethical and legal reasons, and the README warns against exposing it. Anyone deploying this in a shared environment needs to front it with their own access control. Second, fetch_url includes SSRF protection — a thoughtful detail, since an agent that follows arbitrary URLs extracted from web pages is a classic SSRF vector if a target controls a page the agent visits. Optional integrations include the paid official Have I Been Pwned API via OSINT_D2_HIBP_API_KEY (which receives full email addresses, another disclosed data flow) and ScrapingAnt as a proxy via OSINT_D2_PROXY_API_KEY.


From a defensive perspective, the telemetry footprint is worth understanding. Username sweeps across 20 native scanners plus ~470 Sherlock sites produce a characteristic burst of profile-page requests from a single source, and any breach checks hit the HIBP API with plaintext emails. Defenders monitoring for OSINT tooling against their organization's public footprint can watch for rapid sequential account-lookup patterns. For the operator's own opsec, the key decisions are the AI provider choice (local ollama versus cloud inference), whether the third-party proxy is in play, and the fact that the local dashboard retains reports and evidence on disk in the reports folder.


Where osint-d2 fits best is the authorized end of the spectrum: corporate investigations into account sprawl, journalist verification of a subject's digital footprint, threat-intel attribution of an actor's infrastructure-linked personas, and red-team reconnaissance scoped by engagement rules. The README's disclaimer is unambiguous — authorized security research, journalism, and OSINT investigations only, with the user responsible for applicable law — and its own important banner notes that privacy law can apply even to public data and that results can be wrong. That level of self-awareness about false positives, speculative inference, and data egress to AI providers is uncommon in the OSINT tooling space and makes this a project worth watching for anyone building defensible investigation workflows.



Official project repository for Doble-2/osint-d2.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/11/osint-d2-for-agentic-identity.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.