Implementation:7onez Cti expert WP IntelX Search
| Knowledge Sources | |
|---|---|
| Domains | OSINT, Leak_Corpus, Breach_Data |
| Last Updated | 2026-10-28 14:00 GMT |
Overview
Concrete tool for searching Intelligence X for strong selectors with stealer-log-priority pass planning and per-selector memoization, provided by the cti-expert WebPivot engine.
Description
The search function in wp_intelx.py searches IntelX for one strong selector (email/domain/URL/IP/phone/wallet). It runs the stealer logs in their own pass first (see _plan_passes), then the general pass, and merges — so a hundred recycled combolist rows can never crowd the one infostealer record out of a bounded page. logs_pass records whether that pass ran to completion, making an empty read_these a real negative rather than a budget artefact.
The whole search runs under ONE wall-clock deadline proportional to the buckets searched. status is clean when every pass finished, else partial (deadline) / partial (budget) with the records that did arrive — never a bare timeout.
The function is memoized once per selector per case, regardless of pass plan — a narrower later ask reuses the broader earlier result. Returns None with no key (keyless fallback). phonebook is the PAID domain→selector inventory.
Usage
Import this when you need to:
- Search IntelX for a strong selector (email, domain, URL, IP, phone, wallet).
- Run stealer-log-priority search (logs pass first, then general).
- Get the domain→selector inventory via phonebook (PAID).
- Enforce per-selector memoization (one search per selector per case).
Code Reference
Source Location
- Repository: cti-expert
- File: intel_engine/WebPivot/tools/wp_intelx.py
- Lines: L832-978 (search), L981-1036 (phonebook)
Signature
def search(term: str, maxresults: int = None, buckets: list = None, media: int = 0,
datefrom: str = "", dateto: str = "", timeout: int = None, logs_first: bool = None,
general_pass: bool = None, deadline_seconds: int = None):
"""Search IntelX for one strong selector. Runs logs pass first, then general.
Memoized once per selector per case. Returns None with no key."""
def phonebook(domain: str, target: str = "all", maxresults: int = None, timeout: int = 30):
"""Domain -> selector inventory: every email, subdomain and URL IntelX has seen.
PAID endpoint — free key gets HTTP 402."""
Import
from wp_intelx import search, phonebook
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| term | str | Yes /// Strong selector (email/domain/URL/IP/phone/wallet) | |
| maxresults | int | No /// Result cap | |
| buckets | list | No /// Corpus buckets to search (override pass plan) | |
| logs_first | bool | No /// Run stealer logs pass first (default True) | |
| deadline_seconds | int | No /// Wall-clock deadline | |
| timeout | int | No /// HTTP timeout |
Outputs
| Name | Type | Description |
|---|---|---|
| result | dict | {term, selector, status, records, by_bucket, read_these, stealer_log_items, logs_pass, passes} |
| (no key) | None /// Keyless fallback |
Usage Examples
Search for an Email
from wp_intelx import search
result = search("operator@example.com")
if result is None:
print("no IntelX key configured")
elif result.get("skipped"):
print(f"skipped: {result['skipped']}")
else:
print(f"status: {result['status']}")
print(f"read these: {len(result.get('read_these', []))} stealer-log items")
print(f"logs pass complete: {result.get('logs_pass')}")
Phonebook (Paid)
from wp_intelx import phonebook
result = phonebook("example.com")
print(result.get("emails", [])) # every email IntelX has seen under this domain
print(result.get("domains", [])) # subdomains
print(result.get("urls", [])) # URLs