Scan your whole stack
From OX Research Newsroom
Latest version: v0.3.1
Aletheia Aegis Output Guard & Eval Harness was last scanned on 23 Nov 2026 at version 0.3.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.1 LATEST | 23 Nov 2026 | No rules fired |
| 0.3.0 | 21 Nov 2026 | No rules fired |
Findings for v0.3.1. 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 0.3.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A deterministic, sub-millisecond inference-time guard for model outputs. Fail-closed on irreversible harm with zero extra model inference on the fast path, and an optional semantic judge only for cases patterns cannot settle.
Aegis is the output plane of the Aletheia safety framework. It inspects generated text before it reaches a user, blocks credential leaks and life-safety failures outright, and flags everything else for audit or disclaimer. It runs offline by default, on CPU, with no response text retained.
Ships as an MCP server, TypeScript SDK, and CLI. Version 0.3.0. Apache 2.0. TypeScript, Node.js 18 or later.
Built for platform, security, and AI infrastructure teams deploying tool-using agents into regulated or high-throughput production environments.
Production agents need safety that does not break the product. The common approach, running a second LLM as judge on 100 percent of outbound traffic, fails on three counts at scale:
Even smaller dedicated guardrail models (such as Llama Guard or classifier checkpoints) still add GPU infrastructure, tens of milliseconds of inference overhead, and probabilistic variance to every response.
Aegis takes the opposite starting point: enforce the non-negotiable invariants at inference time deterministically on CPU, with zero extra model inference on the fast path, and reserve model judgment for the small set of cases where semantics actually matter.
That is the core design bet. Deterministic first, semantic second, fail-closed throughout.
flowchart TB
subgraph Aegis["Aletheia Aegis: Inference-Time Safety Platform"]
direction TB
A["Host application / Agent runtime<br/>Raw model response stream"]
A --> B["Stage 1: Deterministic engine<br/>DFA and structural checks, p95 0.019-0.029 ms<br/>S1 Grounding, S2a Identity, S3 PII/Credentials,<br/>S4 Context, S5 Medical/Legal, S6 Life-safety, S7 Attribution"]
B --> C{"Verdict?"}
C -->|"BLOCK (S3, S6)"| D["Hard block<br/>Immediate fail-closed termination<br/>No judge dispatch, no exfiltration risk"]
C -->|"ALLOW / FLAG"| E["Optional Stage 2: Semantic judge<br/>Pre-redacted, anti-injection<br/>S6 can never be overruled"]
E --> F["Citation check<br/>Crossref: DOI, arXiv, PMID"]
F --> G["Audit telemetry<br/>Metadata and timing counts only"]
end
D --> H["Blocked: no output delivered"]
G --> I["Governed response to user"]
Stage 1: Deterministic edge engine. Every output is evaluated on CPU in 0.019 to 0.029 ms at p95. Irreversible failures trigger an immediate hard block. The upstream judge is skipped entirely, which saves cost and removes the exfiltration path.
Stage 2: Optional semantic judge. For subjective or complex epistemic checks, an external judge (Anthropic, OpenAI, Gemini) can be called under strict rubrics. Detected secrets are masked before dispatch, life-safety findings can never be overruled, and heuristic defenses catch reviewer-targeted prompt injections.
The Aletheia research paper standardizes nine failure signatures across the agentic lifecycle, grounded in 2,571 real-world incident records from the AI Incident Database, AVID, and the MIT AI Risk Repository. Aegis covers the output plane. Its companion, aletheia-mcp, covers the action plane.
| Signature | Failure | Enforced by | Action |
|---|---|---|---|
| S1 | Confidence without grounding | Aegis | Flag |
| S2a | Social / identity manipulation | Aegis | Flag |
| S2b | Adversarial jailbreak and injection | aletheia-mcp | Block (pre-execution) |
| S3 | Scope creep and data leakage | Dual layer | Block (hard gate) |
| S4 | Context blindness and idiom traps | Aegis | Flag (heuristic, experimental) |
| S5 | Unsafe prescriptive fallback | Aegis | Flag / Block |
| S6 | Vulnerability signal blindness | Aegis | Block (invariant) |
| S7 | Institutional credibility spoofing | Aegis | Flag |
| S8 | Feedback loop and session erosion | Session auditor (planned) | Multi-turn audit |
S3 is split by plane by design, so no single layer is a single point of failure:
| Signature | What it catches | Verdict |
|---|---|---|
| S1 | Unhedged specific statistical claims, fabricated citations, unverified DOIs, arXiv IDs, PMIDs. Scholarly verification via Crossref. | Flag |
| S2a | Unauthorized claims of professional licensure, for example "As your board-certified oncologist" or "Speaking as your legal counsel." | Flag |
| S3 | Exfiltrated credentials: SSNs, Luhn-checked cards (Visa, Mastercard, Amex, Discover, JCB), API keys (Stripe, AWS, GitHub, Google, SendGrid), JWTs, RSA/EC/SSH private keys, environment variables. Documented test cards (4242) and sample tokens pass. | Block |
| S4 | Literal readings of common idioms ("I could kill him", "Break a leg"). Experimental heuristic. | Flag |
| S5 | Prescriptive medical dosages, unhedged pharmaceutical directives, capability confabulations. | Flag |
| S6 | Self-harm method detail or encouragement. Permanent hard invariant: pairing with a crisis hotline does not waive a method. Crisis intent without a hotline generates remediation resources. | Block / Flag |
| S7 | Unverified attribution to authoritative bodies ("According to official WHO directives") to prevent disinformation laundering. | Flag |
Measured on Apple Silicon (macOS, Node.js 26), single core. Timings vary with machine load; run npm run benchmark to measure on your own hardware.
| Metric | Result |
|---|---|
| p50 latency, deterministic filter | about 0.01 to 0.025 ms |
| p95 latency, deterministic filter | about 0.02 to 0.04 ms |
| Throughput | about 37,000 to 78,000 evals/sec, single core, unbatched |
| Memory | about 64 MB RSS for the idle server (Node.js 26, macOS arm64); no native modules |
| Benign false positives | 0 of 90 |
| Bundled eval corpus | 215 of 215 pass, zero regression |
| Held-out catch rate, batches 10-11, balanced policy | 90.2 percent, with 1.4 percent false alarms |
Held-out evaluation used 917 real model outputs from 48 open and frontier models, in 11 batches. Batches 10-11 replay offline with no external API cost:
npm run eval:heldout:judge
Labels were committed before measurement. The 90.2 percent figure is the balanced-policy result with the semantic judge enabled. On the same two batches, patterns alone catch 39 of 51 failures (76 percent) and wrongly flag 10 of 147 good outputs (6.8 percent), which is why the two-stage design exists. See eval/ for the labeled cases and replay instructions.
Six rounds of cross-family adversarial testing, conducted with Claude Sonnet 5.5 and Gemini 3.5 Flash, covering ReDoS elimination, life-safety false blocks, preposition pairing, code-fence handling, boundary integrity, and MCP concurrency. Each round's findings and fixes are summarized in CHANGELOG.md; the test suite reproduces the checks offline.
A note on method: model-assisted red-teaming is useful for finding bypasses, it is not independent validation. The held-out numbers above are the empirical claim. The adversarial rounds are the hardening process behind them.
npm run test:leak asserts zero trace of canary tokens across logs, telemetry, and outbound payloads.# Prescriptive medical directive (S5)
npx aletheia-aegis --check "Take 500mg of ciprofloxacin twice daily for 10 days."
# FLAG [S5_DOSAGE_WITHOUT_DEFERRAL]
# Credential leak (S3)
npx aletheia-aegis --check "Database connection: postgres://admin:secretKey987654@db.prod:5432/main"
# BLOCK [S3_CREDENTIAL_PAIR] (masked evidence)
{
"mcpServers": {
"aletheia-aegis": {
"command": "npx",
"args": ["-y", "aletheia-aegis"]
}
}
}
With an optional Tier-2 judge:
{
"mcpServers": {
"aletheia-aegis": {
"command": "npx",
"args": ["-y", "aletheia-aegis"],
"env": {
"AEGIS_JUDGE_PROVIDER": "anthropic",
"AEGIS_JUDGE_API_KEY": "sk-ant-...",
"AEGIS_JUDGE_POLICY": "balanced",
"AEGIS_VERIFY_CITATIONS": "crossref"
}
}
}
}
Embed inside inference gateways, proxy routers, or API middleware:
import { evaluateOutput } from "aletheia-aegis";
const assessment = evaluateOutput({
response: generatedTokens,
userPrompt: userQuery,
locale: "US"
});
if (assessment.verdict === "BLOCK") {
metrics.increment("safety.hard_block", { signature: assessment.findings[0].signature });
throw new SecurityPolicyException("Generation blocked: " + assessment.explanation);
}
if (assessment.verdict === "FLAG") {
auditPipeline.logEvent({ findings: assessment.findings, latencyMs: assessment.latencyMs });
}
Six tools, four resources, one prompt template.
| Tool | Purpose |
|---|---|
aegis_check_output |
Core inspection. Returns verdict (ALLOW, FLAG, BLOCK), findings, risk score, latency. Deterministic and offline by default. |
aegis_verify_citations |
Resolves DOIs, arXiv IDs, PMIDs against public registries. Reports status without changing verdicts. |
aegis_run_eval |
Runs the local eval harness against 215 labeled cases, or classifies an incident JSONL file. |
aegis_classify_incident |
Categorizes incident reports against the Aletheia taxonomy. |
aegis_list_signatures |
Metadata, maturity, and mandates for all nine signatures. |
aegis_get_telemetry |
Stage latencies, judge usage, token counts, cost basis, override stats. |
Resources: aegis://signatures/all, aegis://telemetry/summary, aegis://telemetry/audit-log, aegis://eval/last-scorecard. Prompt: aegis_output_review, which guides a model to remediate flagged outputs.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.