Documentation Index
Fetch the complete documentation index at: https://quintsecurity.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Memgraph Graph Database
Memgraph materializes agent tool call sequences as a property graph, enabling structural pattern detection that the proxy’s FlowMatrix signatures cannot express. It’s the data layer for the GNN scoring pipeline (BI Service Stages 4-5).Why Memgraph
| Factor | Memgraph | Alternative |
|---|---|---|
| Write performance | ~6,577 events/sec (UNWIND batch) | Neo4j: ~3x slower |
| Memory model | Native in-memory C++ | Neo4j: JVM overhead |
| Query language | Cypher (same as Neo4j) | Compatible ecosystem |
| MAGE algorithms | PageRank, betweenness, community built-in | Required for centrality features |
| Bolt protocol | Standard neo4j Python driver works | No vendor lock-in |
Graph Schema
Node Types
Action — One MCP tool call. The most numerous node type.Edge Types
NEXT — Temporal ordering between consecutive actions in a session. The core sequence edge that the GNN traverses. Carriescapability_transition label (e.g., “data>write”).
BELONGS_TO — Action → Session membership.
STARTED_BY — Session → Agent ownership.
Indexes
All node types indexed onaction_id, session_id, agent_id, tenant_id, and timestamp for fast Cypher queries.
Data Pipeline
GraphIngester
- Async drain loop with non-blocking queue
- Batch UNWIND writes (4 Cypher statements per batch)
- Cross-batch NEXT edge tracking (sessions span multiple batches)
- Tenant-scoped MERGE keys (no cross-tenant data leaks)
- Bounded memory: 50K session tracking cap with eviction
Performance
| Metric | Value |
|---|---|
| Ingestion throughput | 6,577 events/sec |
| Batch latency p99 | 37.3ms |
| Memory growth (20K events) | 2x (sub-linear, no leak) |
| Cross-batch NEXT edges | 99/99 per session (verified) |
| Tenant isolation | 0 cross-tenant edges (stress tested) |
Subgraph Extraction
For GNN training and inference, session subgraphs are extracted via Cypher:Deployment Tiers
Team (1-2GB Memgraph)
Memgraph runs as an ECS Fargate sidecar alongside the BI Service. Shared infrastructure, tenant isolation via query-leveltenant_id filtering. 7-day action retention.
Enterprise (8-32GB Memgraph)
Dedicated Memgraph on memory-optimized EC2 (r6g.xlarge). Deployable in customer’s own AWS account. 30-day hot retention, 90-day warm. Tiered pruning:- Hot (0-24h): Full action nodes with all properties
- Warm (1-7d): Reduced properties (drop arguments/results)
- Cold (7-30d): Session summaries only
Global (Aggregated, 4-8GB)
Stores only anonymized FlowMatrix shapes and latent embeddings — no individual actions. A FlowMatrix is 144 floats (576 bytes). Even 1M threat observations = ~576MB.Privacy
All Cypher queries includeWHERE tenant_id = $tid. Data crossing tenant boundaries is anonymized to:
- FlowMatrix
[12x12]probability distributions (capability-level, no tool names) - Latent embeddings
[64-dim](compressed, non-invertible) - Capability distributions
[12](percentages only)