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

Implementation:7onez Cti expert Intel Cmd Open

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

Overview

Concrete tool for opening a case, collecting seed domains in parallel, and persisting the raw evidence, provided by the cti-expert deterministic pipeline.

Description

The cmd_open function in intel.py is the first step of the deterministic (no-LLM) pipeline. It creates the case directory structure (cases/<case>/raw/), reads seed domains from CLI args or a file, and collects them in parallel via collect_core.collect_many — the SAME shared collector core the LLM harness uses. Flags control: parallel jobs, reverse WHOIS, FOFA full, render-extract DOM, SerpApi advertising, passive SSL, free-only (no spend), and IntelX auto-fire.

After collection, it runs binary auto-analysis, Censys cert search (once per case), subdomain enumeration (once per apex per case), and persists state.json with the run environment. The --no-collect handoff mode reuses existing raw JSONs with zero extra egress.

Usage

Import this when you need to:

  • Open a new case and collect seed domains deterministically (no LLM).
  • Use the handoff mode (--no-collect) to re-use pre-collected raw JSONs.
  • Control parallelism, reverse WHOIS, subdomain enumeration, and metered engines.

Code Reference

Source Location

  • Repository: cti-expert
  • File: intel_engine/tools/intel.py
  • Lines: L281-506

Signature

def cmd_open(a):
    """Open a case, collect seed domains, run binary auto, Censys certs, subenum.
    CLI: intel.py open <case> <domains...> [--jobs N] [--whois-reverse] [--free-only]
    [--no-collect] [--render] [--serp] [--screenshots]"""

Import

# CLI tool — invoked via: python3 intel_engine/tools/intel.py open <case> <domains...>

I/O Contract

Inputs (CLI Args)

Name Type Required Description
case str Yes Case ID
domains list[str] Yes Seed domains (CLI args or file)
jobs int No /// Parallel workers (default varies)
whois_reverse bool No Enable reverse WHOIS
free_only bool No /// Skip metered engines
no_collect bool No /// Handoff: reuse existing raw JSONs (zero egress)
render bool No /// Post-JS DOM extraction
serp bool No /// SerpApi advertising layer

Outputs

Name Type Description
raw files files cases/<case>/raw/<host>.json per seed
state.json file Run environment + case metadata
(stdout) text /// Per-host status ([ok]/[skip]/[MISS])

Usage Examples

Open and Collect

python3 intel_engine/tools/intel.py open CASE-0001 example.com site-a.example site-b.example --jobs 4

Handoff Mode (Pre-Collected)

# Reuse raw JSONs already in cases/CASE-0001/raw/ — zero extra egress
python3 intel_engine/tools/intel.py open CASE-0001 --no-collect

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment