Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Workflow:7onez Cti expert Deterministic Case Pipeline

From Leeroopedia
Knowledge Sources
Domains OSINT, Threat_Intel, Automation
Last Updated 2026-10-28 14:00 GMT

Overview

Deterministic, no-LLM pipeline that turns a list of domain seeds into a persisted case — collect, ingest, cluster, assess, and render a house-style PDF — the same way every time, with zero model reasoning.

Description

This workflow is the deterministic alternative to the LLM-driven Domain_Investigation harness loop. It is invoked by /cti-case <CASE-ID> <seeds>, which shells to intel.py open <case> <domains-file>. The pipeline orchestrates existing tools without reimplementing any logic: it runs WebPivot collection per host, ingests results into the KB, partitions hosts into shared-indicator clusters, runs falsification-board judgment per cluster, and renders the house-style PDF/DOCX deliverable.

Goal: A fully persisted case folder (cases/<case>/) containing raw collection JSON, shared-cluster seeds, cluster definitions, the case graph, network HTML, and a house-style PDF — produced deterministically, without any LLM call.

Scope: From a domain seed list through collection, KB ingestion, correlation, and final deliverable rendering. No model reasoning is involved at any step; judgment is delegated to the hypothesize.py falsification scaffold and the evidence-scoring weights.

Strategy: The pipeline prefers cti-expert's own richer collector, resolves all paths from its own location (never CWD), and lets the pipeline choose output paths — never passing -o cases/... by hand. Zero third-party deps for the core path.

Usage

Execute this workflow when:

  • Input State: You have a list of domain seeds (a text file, one domain per line) and a case ID.
  • Desired Output: A persisted case with evidence archiving, versioned assessment, convergence check, and a house-style PDF — without spending model credits.
  • When to choose this over Domain_Investigation: When you want reproducibility and batch processing over adaptive reasoning. Preferable when the analyst wants evidence archiving + versioned assessment + convergence check without ad-hoc hand-running collectors, or when no LLM backend is available.

Execution Steps

Step 1: Open Case and Seed Collection

The pipeline creates (or opens) the case directory under $INTEL_HOME/cases/<CASE-ID>/ and writes the seed list to a seeds file. For each host in the seed list, it runs pivot_extract — the WebPivot collector — which fetches the page, extracts DOM/HTML pivot artifacts (favicon hash, analytics IDs, verification tokens, affiliate codes, JS-bundle hashes, wallet handles), builds ranked pivot queries, and runs keyless WHOIS enrichment (RDAP) plus passive Wayback/urlscan when no API keys are set. Each host's result is persisted to cases/<case>/raw/<host>.json.

Key considerations:

  • Collection runs with zero API keys by default; keys (WhoisXML, FOFA, etc.) are strictly additive.
  • Platform boilerplate and third-party noise are filtered at extraction time to prevent false clusters.

Step 2: KB Ingestion

The ingest_webpivot adapter reads each raw collection JSON file and writes atomic, provenance-carrying facts and edges into the knowledge base. Each shared artifact becomes an indicator entity; each domain gets an attributed edge to its indicators. Domains sharing an indicator are auto-linked. Ingestion is idempotent — re-running a host updates its rows.

Key considerations:

  • Noise filters (managed DNS suffixes, privacy proxies, CDN ranges, parking favicons) are consumed during ingestion.
  • The rung table splits artifacts into owner (may seed edges), kit (facts only), and neighbour (collected, never attributed).

Step 3: Shared-Cluster Partition

The pipeline queries the KB for indicators shared by two or more domains (query.py --shared --min 2), producing cases/<case>/shared.txt — the cluster seeds. It then partitions domains into same-operator components via union-find, producing cases/<case>/clusters.json. Judgment runs per CLUSTER, not per case — a cluster is the unit of attribution.

Key considerations:

  • A cluster is bound by attribution-grade artifacts (shared GA4 ID, signing cert, self-hosted nameserver, registrant email).
  • Same-kit artifacts (same template, same CDN) are collected but never attributed — same-kit is not same-operator.

Step 4: Falsification-Board Judgment

The hypothesize.py scaffold turns each cluster into a testable attribution hypothesis. It classifies binding artifacts via _tier() (attribution-grade / corroborating / noise using evidence_weights.json), emits a HYPOTHESIS statement, a CONFIDENCE level (assessed/likely/lead — requires at least two attribution-grade artifacts or one plus a named identity), a DISCONFIRM check (an artifact that should NOT be shared if the hypothesis is true), and open QUESTIONS. The timeline tool (case_timeline) extracts temporal intervals — registration spans, registrant eras, hosting windows, certificate windows — to test contemporaneity.

Key considerations:

  • A shared artifact only links two hosts if both carried it at the same time — non-overlapping tenancy is a recycled address, not co-tenancy.
  • Every timeline row carries an ONLINE permalink (Wayback/urlscan/crt.sh/RDAP/BGP) — a local path is the collection record, never the citation.

Step 5: Case Graph and Network Visualization

The pipeline builds the case graph (case_graph.json) from the KB edges and renders the interactive Cytoscape network HTML (render_network.py), giving the analyst a visual map of the attributed infrastructure estate. The Mermaid diagram (render_mermaid.py, via the pinned, sha512-verified Pele renderer) provides a static, exportable graph.

Key considerations:

  • The network HTML is interactive — nodes are domains, edges are shared attribution-grade indicators.
  • The Pele renderer is pinned and hash-verified to prevent a supply-chain swap.

Step 6: House-Style Report Rendering

The house_report.py tool composes the editorial PDF and DOCX deliverable from what the case directory already holds — assessment JSON, assessment markdown (if an analyst wrote one), scope.json, WHOIS data, raw collection, clusters, case graph, shared indicators, and the benign-verdict reference ledger. It enforces IntelReport house rules (Rules 0–23): BLUF first, methodology early with both Admiralty and ICD-203 scales, one captured landing page per estate host inline, per-domain dossiers, glossary, no internal tool/vendor/path names in the body while every indicator value is kept. The only egress is landing-page capture of unscreenshot estate hosts (through the research-egress proxy, skipped when blocked).

Key considerations:

  • The house report runs with zero LLM — it composes from persisted state, so a case worked without the harness still gets the house PDF.
  • --no-screenshots opts out of the only network call (landing-page capture).

Execution Diagram