Skip to content
All posts

· 9 min read

AI for OSINT: Private, Lawful Analysis Workflows

Use an LLM for OSINT triage, translation, entity extraction and reporting, with API prompts and completions not stored. Covers lawful scope, GDPR and verification.

When people talk about AI for OSINT, they usually mean finding things, but most OSINT time goes into reading. Certificate logs, scraped forum threads, company filings, foreign-language posts and breach notifications pile up faster than anyone can work through them, and that reading is where a language model helps most. Two things get in the way. First, the case file is sensitive: who you are looking at, for which client, and what you suspect. Pasting it into a consumer chatbot hands all of that to a third party under terms you may not have read. Second, mainstream models often refuse harmless OSINT tasks because a prompt mentions an "investigation" or a forum selling access. This guide covers lawful scope, where your case data goes, five practical workflows with a fictional company, and the verification discipline that keeps AI output out of trouble.

Lawful scope first

This is OSINT on organisations and infrastructure, done with a reason you could explain to a court or a client:

  • threat intelligence on your own organisation or a client, such as leaked credentials, initial access offers or infrastructure that impersonates the brand
  • attack-surface mapping for a client who has authorised it in writing
  • due diligence on companies before a deal, a partnership or a supplier contract
  • brand protection: lookalike domains, phishing pages and counterfeit listings
  • journalism and research that have a lawful basis, and CTF-style OSINT challenges

It is not a toolkit for locating, profiling, doxxing or stalking private individuals. The Acceptable Use Policy forbids harassing, stalking or doxxing people, and collecting or processing personal data unlawfully.

Public does not mean free to use. If your sources contain personal data of people in the EU, the GDPR still applies: you need a lawful basis, you collect only what the question needs (data minimisation), and special-category data such as health, religion or political opinions needs extra care. In practice, keep names of private individuals out of the model unless the analysis truly depends on them. Nothing here is legal advice, so check with your counsel or DPO when a case touches people.

Private OSINT analysis: where your case data goes

Every option has a trade-off, and for some cases the right answer is not a hosted model at all:

OptionStrengthTrade-off
Consumer chatbotNothing to set upHistory and retention follow the provider's terms and settings; refusals on investigation wording
Local modelNothing leaves your machineSmaller models unless you have a large GPU, and you run the infrastructure
Hosted API that does not store promptsLarge model, no setup, content not keptContent still crosses the network to be processed

For the most sensitive work, such as source protection, a local model is still the strongest choice. For everything else, the InterOdin API sits in the middle. API prompts and completions are never stored. InterOdin keeps only request metadata for billing, abuse prevention and your usage pages: model, token counts, cost, latency, status, the request id, the key that made the request, and the client IP address and user agent. The model infrastructure provider processes request content only to generate responses. The web chat is different: normal chats stay in your account until you delete them, and incognito chats are never saved. For case work, use the API or incognito.

Odin does not browse the web on its own. A web search tool is available on the Messages and Responses APIs (not on Chat Completions), with up to 5 searches per request, each billed on top of the tokens; see the Responses guide. For a confidential case, it is usually better OPSEC to collect sources with your own tooling, log them yourself and paste the text.

The fictional case

The examples below use a fictional client, Example Freight Ltd, whose domain is example.com. A threat-intel team holds a written engagement to monitor for threats against it. The collection so far: certificate transparency results, passive DNS exports, two forum threads, a few press releases and screenshots of a suspected phishing page. All of it is synthetic.

Workflow 1: triage a large collection

odin-v1 has a 1,000,000-token context window and thinking on by default, so a whole collection of forum threads, filings and DNS exports fits in one request. Give each document an ID before you send it, so every finding can point back to its source:

python
import jsonimport osimport pathlib
from openai import OpenAI
client = OpenAI(base_url="https://api.interodin.com/v1", api_key=os.environ["INTERODIN_API_KEY"])
SYSTEM = (    "You assist a threat intelligence analyst on an authorised engagement for Example Freight Ltd. "    "Extract entities from the documents. Return only JSON with the keys organisations, domains, "    "ip_addresses, products, dates and claims. Each item has value, source_id and quote, where quote "    "is copied exactly from the source. Replace names of private individuals with a role such as "    "[EMPLOYEE] or [FORUM_USER]. Never add entities or sources that are not in the documents.")
docs = sorted(pathlib.Path("case/collected").glob("*.txt"))corpus = "\n\n".join(    f"<doc id=\"S{i:03d}\" file=\"{p.name}\">\n{p.read_text(encoding='utf-8', errors='replace')}\n</doc>"    for i, p in enumerate(docs, 1))
resp = client.chat.completions.create(    model="odin-v1",    messages=[{"role": "system", "content": SYSTEM}, {"role": "user", "content": corpus}],)raw = resp.choices[0].message.content.strip()fence = "`" * 3raw = raw.removeprefix(fence + "json").removesuffix(fence).strip()pathlib.Path("case/entities.json").write_text(json.dumps(json.loads(raw), indent=2))

The role tokens are data minimisation built into the prompt: the client needs to know that a forum user offers access, not who that user might be. The exact quotes make the next step, verification, a string search instead of a reread. Client setup is in the OpenAI SDK guide.

Workflow 2: translate foreign-language sources

Threat intel often lives in languages the team does not read. A plain translation hides the hard parts, so ask the model to show them:

Translate this forum post into English. Keep slang and trade terms in the original next to your translation, mark every phrase you are unsure of as UNCERTAIN with the alternatives, and say which details suggest the seller really has access and which look like marketing.

Suppose the post offers "VPN access to a European freight company, around 400 employees, domain admin", with a sample hostname that resolves to vpn.example.com. A useful answer separates what the post claims from what the sample proves, and notes that "around 400 employees" fits the client's public filings without proving anything. Mainstream models often stall on posts like this because they discuss selling access. Odin treats it as the defensive work it is; security research with fewer refusals explains why that matters.

Workflow 3: build a timeline

Due diligence and incident follow-up both need a clean chronology. Paste the dated material, such as filings, press releases and a breach notification, extracted as text, since PDFs are not accepted:

Build a timeline table with the columns date, event, source_id and confidence. Use only dates stated in the sources. Where two sources disagree, keep both rows and mark the conflict. List undated events separately at the end.

Conflicts are the useful part. If a press release dates a "security incident" to March and the regulator notice says February, that gap is a question for the client, not something the model should smooth over.

Workflow 4: read screenshots for brand protection

odin-v1 reads text only, but odin-flash also reads images, which suits brand protection: a screenshot of a suspected phishing page at login.example-freight.example.net, or of a counterfeit listing. Ask it to transcribe all visible text, describe which logos and layout elements copy the client's real login page, and list any URLs, form fields or contact details shown. Capture the screenshot yourself, with time and URL, before you ask anything. The model describes the image; your capture log is the evidence.

Workflow 5: draft the report

Finally, give the model the verified entities, the timeline and your notes, and ask for a report in your team's format with an explicit confidence level per finding:

text
Finding 2: initial access offer referencing Example FreightConfidence: moderate (sample hostname matches vpn.example.com; seller claims unverified)Sources: S004 (forum post, translated), S011 (passive DNS for 203.0.113.24)Recommended actions: reset VPN credentials, review VPN logs for 203.0.113.0/24,  enforce MFA on remote access

Keep assessments and evidence separate in the wording: "the post claims" is not "we confirmed". For structure and tone, pentest report writing with AI covers the same discipline for findings and remediation.

Verify everything

Language models write fluent, confident text whether or not it is true, and OSINT is unforgiving about that. Generated images and text are also eroding the old assumption that a post or a photo proves something happened. A few rules keep you honest:

  • Sources come from your log, never from the model. Do not accept a URL, an account name or a document the model supplies from memory. If it is not in your collection, it does not exist yet.
  • Check quotes mechanically. Search the source for every quoted string. A quote that is not there means the finding goes back for review.
  • Label inference. Ask for CONFIRMED and INFERRED labels, as you would in malware triage, and push back on any inference with no source.
  • Keep the chain of custody yourself. Record capture times, URLs and hashes with your own tools. The model is an analyst, not a record keeper.

Practising on CTF-style OSINT challenges is a safe way to calibrate this; see CTF practice with an AI coach.

Get started

Create an API key in the console and follow the quickstart. Every key can have its own monthly spend limit, which helps when a pipeline runs over a large collection. The unrestricted LLM API page covers models and compatibility, and uncensored AI for security research compares Odin with mainstream assistants for security work.

FAQ

How is AI used in OSINT?

Mostly for the reading and writing: triaging large collections, extracting entities, translating foreign-language sources, building timelines, describing screenshots and drafting reports. Collection, judgement and verification stay with the analyst.

Can ChatGPT be used for OSINT, and is it private?

It can help with the same reading and writing tasks. Whether it is private depends on the provider's terms and your settings, so read them before pasting case material. Mainstream assistants also refuse some legitimate OSINT prompts, especially ones about forums, leaks or investigations.

What are good AI prompts for OSINT analysis?

Good prompts state the lawful purpose, give each source an ID, ask for exact quotes, separate confirmed facts from inference, and replace private individuals' names with roles. Ask for a fixed output format, such as JSON or a table, so results can be checked.

Should I use a local LLM or an API for sensitive investigations?

For the most sensitive work, such as source protection, a local model keeps everything on your machine. For most other cases, a hosted API that does not store prompts and completions gives you a much larger model with less setup. Minimise personal data either way.

How do I verify AI-generated OSINT findings?

Accept sources only from your own collection log, search each source for every quoted string, ask the model to label inference, and keep capture times, URLs and hashes yourself. Treat any source the model names from memory as unverified.

Collecting public information for a legitimate purpose is generally lawful, but GDPR still applies to personal data of people in the EU: you need a lawful basis, should collect only what you need, and must take extra care with special-category data. Check with counsel for your case.

Can Odin search the web by itself?

Only if you add the web search tool on the Messages or Responses API, with up to 5 searches per request, each billed. Otherwise it works only on the text you send, plus images on odin-flash.