Principle:ARCANGEL0 EVA Session Intelligence Management
| Knowledge Sources | |
|---|---|
| Domains | Security_Automation, Knowledge_Management, Pentest |
| Last Updated | 2026-10-29 14:00 GMT |
Overview
Structured knowledge model for recording, deduplicating, and retrieving engagement intelligence — assets, findings, exploits, observations, and accounts — with stable identifiers, evidence tracking, and confidence levels.
Description
During a penetration test, an agent accumulates intelligence — discovered assets (hosts, services, domains), security findings, exploit evidence, observations, and account credentials. Without a structured model, this intelligence would be scattered across chat messages, unsearchable, and prone to duplication.
Session Intelligence Management defines a schema with typed records, each carrying:
- Stable IDs: SHA256-based identifiers derived from record content, so the same asset discovered twice resolves to one record.
- Evidence tracking: Each record accumulates evidence entries (source, details, timestamp) rather than overwriting.
- Confidence levels: low, medium, high, unknown — reflecting the reliability of each record.
- Verification states: discovered, validated, rejected — tracking whether findings have been confirmed.
- Deduplication: Upsert operations match on (type, value) for assets and (title, asset) for findings/exploits.
The schema also supports pagination and context generation: compact JSON views for LLM system prompts and paginated views for TUI panels.
Usage
Use this principle when:
- Building a pentest or security assessment agent that must track discovered assets and findings.
- Needing to provide an LLM with a compact, structured summary of engagement state.
- Generating visual attack-surface maps from recorded intelligence.
- Ensuring evidence provenance is maintained throughout an engagement.
Theoretical Basis
The model uses content-addressed deduplication — the same logical entity maps to the same record regardless of how many times it is reported:
# Abstract algorithm (NOT real implementation)
def upsert_asset(intel, asset_type, value, source, evidence):
key = sha256(asset_type + value.lower() + parent.lower())
existing = find_by_key(intel["assets"], key)
if existing:
existing.evidence.append({source, evidence, timestamp})
else:
new_asset = {id: key, type: asset_type, value: value, evidence: [...]}
intel["assets"].append(new_asset)
Context generation compresses the full Intel dict into sections (Targets, Services, Findings, Exploits) with per-section record limits, producing a string suitable for injection into an LLM system prompt.
Practical Guide
- Use content-addressed IDs so duplicate discoveries merge automatically.
- Cap record counts (e.g., max 500 assets, max 100 findings) to prevent unbounded growth.
- Truncate evidence per record to a maximum (e.g., 50 evidence entries) to bound memory.
- Generate context strings with section limits so the LLM gets a bounded view.
- Expose a pagination API for TUI panels that need to display records incrementally.
Related Pages
Implemented By
- Implementation:ARCANGEL0_EVA_upsert_asset
- Implementation:ARCANGEL0_EVA_upsert_finding
- Implementation:ARCANGEL0_EVA_upsert_exploit
- Implementation:ARCANGEL0_EVA_intel_context
- Implementation:ARCANGEL0_EVA_intel_page