Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

Citadel

Latest version: v3.0.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
MCP server Transport: stdio Publisher: yp3y5akh0v
4 Stars
0 Forks
15 Versions
Rust Repo language

Scan summary

Citadel was last scanned on 28 Nov 2026 at version 3.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 15 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 3.0.0.
  • MCP server: Runs over stdio.

Versions

15 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.0.0 LATEST 28 Nov 2026 No rules fired
2.7.0 28 Sep 2026 No rules fired
2.6.1 25 Sep 2026 No rules fired
2.6.0 24 Sep 2026 Not shown
2.5.0 13 Sep 2026 Not shown

No rules fired in 3.0.0

Findings

Findings for v3.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Quick Start

For semantic memory through MCP, install uv and pull the local embedder and optional cross-encoder reranker:

uvx citadeldb-mcp pull e5-large
uvx citadeldb-mcp pull ms-marco-minilm

Set CITADEL_KEY to your vault passphrase (export CITADEL_KEY="your-passphrase" on macOS/Linux or $env:CITADEL_KEY = "your-passphrase" in PowerShell), then start:

uvx citadeldb-mcp --db memory.cdl --embedder e5-large --reranker ms-marco-minilm

The server communicates over stdio. See MCP for client configuration. Model downloads do not need a vault key; serving does.

Memory (Python)

Install the published package with pip install citadeldb. It includes KodamaEmbedder and CrossEncoder for local KodamaEmbed models; see the Python semantic-memory guide. Custom embedders implement embed_with_cancel(texts, cancel_token) and check cancellation between bounded batches.

Memory (Rust)

Uses citadeldb and citadeldb-mem with the kodama-embed feature. This example loads e5-large and a local cross-encoder reranker. Other presets or a custom Embedder are supported.

use std::sync::Arc;
use citadel::DatabaseBuilder;
use citadel_mem::{AtomInput, CrossEncoder, KodamaEmbedder, MemoryEngine, RecallQuery, RerankStrategy};

// Encrypted store (per-atom keys enable cryptographic forgetting)
let db = DatabaseBuilder::new("memory.db")
    .passphrase(b"secret")
    .enable_region_keys(true)
    .create()?;
let mem = MemoryEngine::open(Arc::new(db))?;

let embedder = Arc::new(KodamaEmbedder::e5_large("/path/to/e5-large")?);
mem.create_encrypted_region("chat", embedder)?;
mem.set_reranker(
    Arc::new(CrossEncoder::ms_marco_minilm_l6("/path/to/ms-marco-minilm")?),
    RerankStrategy::default(),
);

// Remember raw turns (no LLM)
mem.remember("chat", AtomInput::new("fact", "Alice's cat is named Mochi"))?;
let berlin = mem.remember("chat", AtomInput::new("fact", "Alice lives in Berlin"))?;

// Recall by relevance
for hit in mem.recall("chat", RecallQuery::by_text("where does Alice live?", 5))? {
    println!("{:.3}  {}", hit.relevance.expect("ranked recall"), hit.text);
}

// Cryptographic forgetting: destroy the atom's key
mem.forget_atom("chat", berlin)?;
SQL and key-value

Uses the citadeldb and citadeldb-sql crates - or try SQL with no install in the live playground.

use citadel::DatabaseBuilder;
use citadel_sql::Connection;

let db = DatabaseBuilder::new("my.db")
    .passphrase(b"secret")
    .create()?;

let conn = Connection::open(&db)?;
conn.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT NOT NULL);")?;
conn.execute("INSERT INTO users (id, name) VALUES (1, 'Alice');")?;
let result = conn.query("SELECT * FROM users;")?;

// Key-value API
let mut wtx = db.begin_write()?;
wtx.insert(b"key", b"value")?;
wtx.commit()?;

let mut rtx = db.begin_read();
assert_eq!(rtx.get(b"key")?.unwrap(), b"value");

// Named tables
let mut wtx = db.begin_write()?;
wtx.create_table(b"sessions")?;
wtx.table_insert(b"sessions", b"token-abc", b"user-42")?;
wtx.commit()?;

// In-memory (no file I/O - useful for testing and WASM)
let mem_db = DatabaseBuilder::new("")
    .passphrase(b"secret")
    .create_in_memory()?;
CLI
citadel --create my.db

citadel> CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT NOT NULL);
citadel> INSERT INTO users (id, name) VALUES (1, 'Alice'), (2, 'Bob');
citadel> SELECT * FROM users;
+----+-------+
| id | name  |
+----+-------+
|  1 | Alice |
|  2 | Bob   |
+----+-------+

citadel> .backup mydb.bak
citadel> .verify
citadel> .upgrade
citadel> .stats
citadel> .audit verify
citadel> .rekey
citadel> .compact clean.db
citadel> .dump users

# P2P sync
citadel> .keygen
citadel> .listen 4248 <KEY>              # Terminal A
citadel> .sync 127.0.0.1:4248 <KEY>      # Terminal B
Citadel Studio

A native desktop client for Windows, macOS, and Linux. Open encrypted vaults, browse tables and memory, run SQL with EXPLAIN and ANALYZE, and inspect vectors and integrity results.

See the Studio guide for screenshots and build instructions. Download Citadel Studio for Windows, macOS, or Linux.

Agent frameworks

The adapters implement framework-specific storage, session, and retrieval interfaces. Each requires an explicit embedder. See the package README for setup, search behavior, and supported filters.

Framework Package Implements
LangGraph citadeldb-langgraph BaseStore
CrewAI citadeldb-crewai StorageBackend
OpenAI Agents SDK citadeldb-openai-agents Session
Google ADK citadeldb-google-adk BaseMemoryService
LlamaIndex citadeldb-llamaindex BasePydanticVectorStore
LangChain citadeldb-langchain VectorStore, BaseChatMessageHistory
Haystack citadeldb-haystack DocumentStore
Microsoft Agent Framework citadeldb-ms-agent-framework HistoryProvider, ContextProvider
Strands Agents citadeldb-strands-agents SessionRepository
pip install citadeldb-langgraph

One database serves every adapter on the thread that opened it, so a graph's long-term store and its session transcripts can share one encrypted file. See packaging/ for each package's own README.

MCP

Serve an encrypted memory region to Claude Desktop or any MCP client. citadeldb-mcp is published to PyPI and listed in the official MCP registry as dev.citadeldb/mcp. Run it without installing through uvx.

For the recommended semantic-recall setup, pull the embedder and cross-encoder reranker once:

uvx citadeldb-mcp pull e5-large
uvx citadeldb-mcp pull ms-marco-minilm

The pull commands do not need a vault key. Before starting the server, set CITADEL_KEY to the vault passphrase: use export CITADEL_KEY="your-passphrase" on macOS/Linux or $env:CITADEL_KEY = "your-passphrase" in PowerShell. Then run:

uvx citadeldb-mcp --db memory.cdl --embedder e5-large --reranker ms-marco-minilm

--db, --embedder, and CITADEL_KEY are required when serving. The reranker is optional, but e5-large with ms-marco-minilm is the configuration used for the memory benchmarks. Models run on the processor; --device auto, --device cuda or --device vulkan moves them to a GPU.

To install the executable instead, run pip install citadeldb-mcp or cargo install citadeldb-mcp. Pull the same models with citadeldb-mcp pull e5-large and citadeldb-mcp pull ms-marco-minilm, then add it to claude_desktop_config.json:

{
  "mcpServers": {
    "citadel": {
      "command": "citadeldb-mcp",
      "args": [
        "--db", "/absolute/path/to/memory.cdl",
        "--embedder", "e5-large",
        "--reranker", "ms-marco-minilm"
      ],
      "env": { "CITADEL_KEY": "your-passphrase" }
    }
  }
}

Historical memory benchmarks

Recorded LoCoMo and LongMemEval results are summarized below; their configurations and limitations predate the current memory-engine changes. SQL comparisons with unencrypted SQLite across 59 cases are under Speed benchmarks.

LoCoMo - gpt-4o-mini reader and judge with the harness's prompts, mean of 3 runs measured August 18, 2026:

Metric Score
Overall 87.2% +/- 0.3
Full context, no retrieval (reported in the Mem0 paper, not rerun here) 72.9%

Retrieval is identical across the three runs; the spread is reader and judge nondeterminism. A manual audit estimates that ~6.4% of LoCoMo answer keys are erroneous, so raw accuracy should be interpreted with that annotation noise in mind.

Memory is built with no LLM - raw turns enriched with supplied photo captions and image-search text, indexed and recalled deterministically.

LongMemEval_S (arXiv 2410.10813) full-haystack split (~40-50 sessions/question), gpt-4o reader, official CoT prompt and gpt-4o-2024-08-06 judge:

Metric Score
Overall 86.2%
Task-averaged 86.8%
Abstention 80.0%

Full-haystack stresses retrieval against distractors (not the oracle reader ceiling). Protocol and per-type results in citadel-membench.

Encrypted memory engine

The same encrypted pages that hold SQL tables also hold memory. Three crates make up the memory engine:

  • citadeldb-vector - a VECTOR(N) SQL type, distance operators (<-> L2, <#> inner, <=> cosine), and a PRISM-backed filtered ANN index that reads through the encrypted page store.
  • citadeldb-mem - the memory engine (regions, atoms, edges) with hybrid recall and cryptographic forgetting: an atom or region is erased by destroying its key, at whole-store, per-region, and per-atom granularity. Its optional local embedding and reranking models run on KodamaEmbed, on the processor or a GPU.
  • citadeldb-mcp - a Model Context Protocol server exposing a Citadel memory region (encrypted by default) to any MCP client (Claude Desktop, IDEs) as recall/remember/link/evolve/forget/verify tools.
Zero-LLM memory path

citadeldb-mem stores raw conversation content without a summarizer LLM. Recall uses embeddings, BM25 keyword matching, and an optional reranker. Local embedding and reranking backends keep this processing on-device; custom backends determine their own network use and costs. The benchmark readers and judges are separate LLMs - gpt-4o-mini for LoCoMo, gpt-4o for LongMemEval. The protocol and results are in citadel-membench.

Agent runtime

  • citadeldb-llm - the provider-neutral LLM client layer (Claude, OpenAI, Ollama, Gemini) behind one factory, with canonical request hashing and a non-secret client request identity.
  • citadeldb-ai - an autonomous agent runtime (ReAct + Reflexion, tool registry, budget caps, pluggable LLM backends) that uses citadeldb-mem for persistence.

Features

  • Encrypted at rest - AES-256-CTR + HMAC-SHA256 per page, verified before decryption
  • SQL - JOINs, subqueries, CTEs (recursive + WITH-DML), UNION/INTERSECT/EXCEPT, window functions, views, materialized views, triggers, TEMP tables, generated columns (STORED + VIRTUAL), constraints, full FK actions, UPSERT, RETURNING, JSON/JSONB (14 Postgres operators + SQL/JSON path language), full-text search, prepared statements with plan caching, and a queryable system catalog. Full list under SQL
  • ACID - Copy-on-Write B+ tree, shadow paging, no WAL. Snapshot isolation with concurrent readers
  • Authenticated commit slots - the commit metadata (table roots, catalog) carries its own HMAC; older files migrate one-way via .upgrade
  • P2P sync - Merkle-based table diffing over Noise-encrypted channels with PSK auth
  • CLI - SQL shell with tab completion, syntax highlighting, 27 dot-commands (.backup, .verify, .upgrade, .rekey, .sync, .dump, ...)
  • Citadel Studio - Native desktop client for SQL, stored memory, vector inspection, and vault diagnostics
  • 3-tier key hierarchy - Passphrase -> Argon2id -> Master Key -> AES-KW -> REK -> HKDF -> DEK + MAC
  • Cryptographic forgetting - Whole-store and per-region / per-atom key erasure via citadeldb-mem. Pre-erasure backups, copied keys, and exported plaintext are outside that erasure
  • FIPS-oriented at-rest profile - PBKDF2-HMAC-SHA256 + AES-256-CTR for database storage; not a claim of whole-product validation
  • Audit log - HMAC-SHA256 chained within files and across retained v2 generations; retained-history verification detects record edits and broken retained links, but there is no external anti-rollback anchor
  • Hot backup - Consistent snapshots via MVCC, no write blocking
  • Overflow pages - Large values handled transparently, up to 1 GiB per value
  • Cross-platform - Windows, Linux, macOS. Python, C FFI, and WebAssembly bindings
  • Thousands of tests - Unit, integration, and torture tests across the workspace

Speed benchmarks

Measured on September 13, 20 and 27, 2026 (UTC) on an Intel Core i9-12900HX, Windows 11 Pro, Rust 1.98.0, and SQLite 3.51.3. Runs use one fixed logical processor, with durability disabled and both caches configured for 4,096 pages (about 32 MiB). Most cases use 100K rows; schemas and operations vary as listed below.

Each time is the arithmetic mean of two or four per-run sample medians, with 30 samples per run. Ratios use unrounded SQLite time / Citadel time: above 1 means Citadel is faster, below 1 means Citadel is slower. For example, 0.5x means Citadel takes twice as long as SQLite.

Sixteen comparisons were refreshed on September 27 at 0dbe126c: nine execution cases and seven cached repeat reads. Each refreshed row uses four new runs per engine in Citadel/SQLite/SQLite/Citadel, then SQLite/Citadel/Citadel/SQLite order. Other rows retain their September 13 or 20 measurements and source revisions. This is a combined snapshot, not a full-suite run at the latest revision. Source revisions, run settings, medians, 95% intervals, and drift identify every row.

Execution speed

37 comparisons of writes and reads that execute each iteration, including rotating-parameter queries. Fixture resets are excluded unless the case description says otherwise.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry dev.citadeldb/mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229