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

Principle:7onez Cti expert KB Entity Edge Model

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

Overview

Data model that represents an OSINT knowledge base as attributed entities (facts) and attributed, deduped relationships (edges), where every fact and edge carries its source, collector, observation time, confidence, and evidence reference.

Description

The KB Entity-Edge Model solves the problem of unattributed correlation: a knowledge base that stores "domain A uses tracker X" without recording who said so, when, and how confidently cannot distinguish a verified fact from a guessed one, and cannot survive a re-collection that disagrees. The model defines two primitive types:

1. Entity: a typed node (domain, ip, email, indicator, person, org) keyed by value. An entity carries first_seen, last_seen, and a list of facts — each fact is an (attribute, value, source, collector, observed_at, confidence, evidence_ref) tuple.

2. Edge: an attributed, deduped relationship between two entities: (src_type, src, rel, dst_type, dst, source, collector, observed_at, confidence, evidence_ref, attrs). Both endpoints are ensured to exist as entities.

The model is idempotent: add_fact is deduped on (attribute, value, source, collector); add_edge is deduped on the full edge key. Re-ingesting updates observed_at but never overwrites a disagreement — conflicts are kept as separate facts.

Usage

Use this principle when designing a knowledge base for OSINT where:

  • Every fact must carry its provenance (source, collector, observation time) so the KB can distinguish verified from guessed.
  • Re-collection is safe — idempotent ingest means running the same collection twice does not duplicate or overwrite.
  • Conflicting facts (same attribute, different value, different source) must be preserved, not silently resolved.
  • Edges may carry extra data-level fields (e.g. a hosted_on edge's hosting window) without affecting the dedup key.

Theoretical Basis

The model is a provenance graph — every node and edge carries a full provenance chain. This is the RDF reification pattern applied to OSINT: instead of bare triples, each triple carries its own metadata.

# Abstract model (NOT real implementation)
Entity = {type, value, first_seen, last_seen, facts: [
    {attribute, value, source, collector, observed_at, confidence, evidence_ref}
]}
Edge = {src_type, src, rel, dst_type, dst, source, collector,
        observed_at, confidence, evidence_ref, attrs?}

# Idempotency keys
fact_key = (attribute, value_json, source, collector)
edge_key = (src_type, src, rel, dst_type, dst, source, collector)

The conflict preservation invariant: when two sources disagree on the same attribute (e.g. registrant email), both facts are stored. The KB never silently resolves a disagreement — the assessment layer (the LLM or the analyst) decides which source to trust.

Related Pages

Implemented By

Used By Workflow

Page Connections

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