Passive OSINT Enrichment¶
ZettelForge ships a passive OSINT executor that runs registered collectors, validates each tuple against the ontology, canonicalizes entity values, and persists nodes and edges into the knowledge graph.
Install¶
Install the OSINT extra when you need DNS, WHOIS, or IP/ASN enrichment:
The base package already includes httpx, so passive BGPView lookups work with the standard install. The OSINT extra adds dnspython, python-whois, and ipwhois for the DNS and WHOIS collectors.
Run a passive enrichment¶
from zettelforge.osint import run_osint_collection
result = run_osint_collection("DomainName", "Example.COM.")
print(result.canonical_input_value) # example.com
print(result.persisted_count)
print(result.error_count)
The executor accepts these seed types: DomainName, IPv4Address, IPv6Address, ASNumber, and Netblock.
Common passive flows:
DomainNameseeds drive DNS, WHOIS, and certificate transparency collectors.IPv4AddressandIPv6Addressseeds drive WHOIS enrichment.ASNumberseeds drive passive BGP prefix lookups.
Dry-run or narrow scope¶
Pass persist=False to validate collector output without writing to the knowledge graph:
from zettelforge.osint import run_osint_collection
result = run_osint_collection("ASNumber", "AS15169", persist=False)
Use collector_names=(...) when you want to run only specific collectors from the registry.
Safety controls¶
Active port scanning stays disabled unless the operator explicitly enables it:
Without that flag, the port scanner returns an empty result and no probe is sent. Keep that flag unset unless you own the target network or have explicit authorization to scan it.
What gets persisted¶
The executor writes canonical entity values to the graph, so duplicate spellings collapse onto the same nodes. For example, AS15169 and 15169 resolve to the same canonical ASN node, and alternate domain spellings register as aliases for the same canonical domain node.
Errors are collected per collector or tuple. A single failing collector does not abort the run.