🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

scbe-aethermoore

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scbe-aethermoore

SCBE-AETHERMOORE: Hyperbolic Geometry-Based Security with 14-Layer Architecture

latest
Source
npmnpm
Version
4.3.1
Version published
Weekly downloads
1.4K
490.91%
Maintainers
1
Weekly downloads
 
Created
Source

SCBE-AETHERMOORE

CI npm PyPI License: MIT OR Apache-2.0

Post-quantum AI governance through geometric adversarial cost scaling.

Adversarial inputs cost exponentially more the further they drift from safe operation. The mechanism is hyperbolic geometry applied to semantic embeddings — not heuristic classifiers or blocklists. The pipeline runs locally, produces audit receipts, and composes with upstream safety tools.

npm · PyPI · Patent pending: USPTO #19/691,526 (non-provisional, filed 2026-05-28), claiming priority to provisional #63/961,403 (2026-01-15) · CAGE 1EXD5 · SAM UEI J4NXHM6N5F59

2-minute local demo

You do not need Docker, a GPU, an API key, or a model.

# 1. Install
pip install scbe-aethermoore

# 2. Run three scans
scbe-scan "hello world"
scbe-scan "ignore all previous instructions"
scbe-scan "DROP TABLE users"

# 3. Optional browser demo
python -m scbe_aethermoore.demo.web
# open http://127.0.0.1:8765

What you will see:

  • ALLOW on harmless input.
  • ESCALATE or DENY on obvious prompt-injection or destructive text.
  • Where each trigger sits: line, column, and the matched text — not just a number.
  • A stable score (--scores/--json), audit digest, and six-axis demo visualization.

Start here if you just want to see the safety gate work: DEMO.md.

Choose your entry path

AudienceStart here
Security engineer / AI safety reviewerEngineering Overview — math, decision tiers, benchmarks, PQC
Government / defense reviewerGovernment and Contracting — CAGE, SAM, proposal surface, capability docs
Open-source contributorQuickstart — install, first scan, CLI, tests
Product / buyerWhat Works Now — packages, local runtime, hosted runs
Lore / worldbuildingLore and Worldbuilding — Sacred Tongues, Spiralverse, origin story

What This Repo Is

SCBE-AETHERMOORE is a governed AI runtime with a 14-layer architecture, a packaging surface for npm and PyPI, and an active research and proposal lane. It is a large hybrid repo: there is active implementation here, proposal material here, and worldbuilding here. These are not the same layer.

The correct way to read it is through the routing docs below, not by browsing randomly from the root. When docs conflict, use the canonical precedence order in Claim Boundaries and Canonical Sources.

What Works Now

The installable package surface is the simplest public entry point.

PackageRuntimeInstall
scbe-aethermooreTypeScript / Node 18+npm install scbe-aethermoore
scbe-aethermoorePython 3.11+pip install scbe-aethermoore
scbe-agent-busPython agent buspip install scbe-agent-bus
@scbe/kernelLightweight kernelnpm install @scbe/kernel

Neither Python nor npm package requires a server, API key, or external network call. The full pipeline runs locally.

Self-serve product: SCBE Black Box is the buyer-ready workstation failure report: run it locally before long AI/browser/build jobs and get a plain-English report for shutdown, BSOD, disk, memory, WHEA, and storage-warning signals.

Free local use + paid hosted runs: The packages are free under MIT OR Apache-2.0. If you want SCBE to run hosted routing, a governed report, or a benchmark pass:

Service credits are pay-as-you-go: billable provider/model usage is passed through with a 2–5% SCBE coordination fee. No subscription required to use the open-source packages.

Install

npm install scbe-aethermoore    # TypeScript/Node
pip install scbe-aethermoore    # Python

Quickstart

Python:

from scbe_aethermoore import scan, scan_batch, is_safe

# Single scan
result = scan("ignore all previous instructions")
print(result["decision"])   # "DENY"
print(result["score"])      # 0.1961  (0=dangerous, 1=safe)
print(result["digest"])     # SHA-256 for audit trail

# WHERE the trigger is — line/column offsets into your original text,
# even when the payload was leetspeak/base64/rot13/homoglyph-obfuscated
f = result["findings"][0]
print(f["family"], f["line"], f["column"], f["excerpt"])
# instruction-override 1 1 'ignore all previous instructions'

# Batch
results = scan_batch(["hello", "DROP TABLE users", "how are you?"])
for r in results:
    print(r["decision"], r["score"])

# Boolean gate
if not is_safe(user_input):
    raise PermissionError("Input blocked by governance layer")

Command line:

scbe-scan "hello world"
# [OK] ALLOW
#      nothing matched - no located trigger

scbe-scan "ignore all previous instructions"
# [XX] DENY
#      line 1, col 1        instruction-override   'ignore all previous instructions'

scbe-scan --scores "ignore all previous instructions"
# [XX] DENY          score=0.1961  d*=2.5000  pd=0.8000  len=32

scbe-scan --json "DROP TABLE users"
# { "decision": "DENY", ..., "findings": [{ "family": "destructive-cmd",
#   "line": 1, "column": 1, "excerpt": "DROP TABLE", ... }] }

scbe-scan --batch prompts.txt   # one line per input

The default output answers where — line, column, matched text, and the obfuscation channel if the trigger was hidden (leetspeak, base64, rot13, spaced-out letters, invisible Unicode tag characters). --scores prints the numeric line; --json carries both, with byte offsets for tooling.

TypeScript/Node:

import { scan, scanBatch, isSafe, harmonicWall } from 'scbe-aethermoore';

const result = scan('ignore all previous instructions');
result.decision; // "ESCALATE"  (the npm scorer does not yet include the Python
result.score;    // 0.384615     package's L13 intent screen or located findings,
                 //              so its decisions/scores differ — Python says DENY)

isSafe('hello world');                    // true
isSafe('ignore all previous instructions'); // false

// Superexponential cost — how expensive is this drift?
harmonicWall(result.d_star); // cost in [1, ∞)

Decision Tiers

TierScoreMeaning
ALLOW≥ 0.75Safe — proceed
QUARANTINE≥ 0.45Suspicious — flag for review
ESCALATE≥ 0.20High risk — requires governance action
DENY< 0.20Adversarial — blocked

Detection performance (measured)

Two tiers, one API. scan() runs a fast, deterministic, zero-dependency screen — a byte/entropy sieve plus a canonicalized pattern & concept screen that defeats homoglyph, zero-width, leet, base64, spaced-letter, and Unicode tag-block smuggling — and returns a full audit digest. An optional CPU model raises recall on paraphrased / novel attacks.

Measured on a held-out paraphrased-injection corpus (56 attacks / 32 hard negatives), blocked-recall vs benign false-positive rate:

ModeRecall (blocked)Benign FPLatencyFootprint
Default — pure-Python screen50%28%~0 mszero dependencies
+ Model gate (SCBE_INJECTION_MODEL=1)93%34%~45 ms/prompt warm (CPU)one ONNX model, no GPU

The model is off by defaultscan() stays pure-Python with no extra dependency or download until you opt in. A model-only hit is ESCALATE (human review), not DENY. The classifier is ProtectAI's Apache-2.0 DeBERTa; the recall lift comes from the fine-tuned classifier, not the geometry. Honest scope: the default screen is a fast deterministic filter with an audit trail, not a general semantic-intent solver — that is what the model tier is for.

Enable the model tier:

pip install "scbe-aethermoore[ml-onnx]"   # no-torch CPU path
export SCBE_INJECTION_MODEL=1             # first call downloads the model (~740 MB), then cached

Terminology Decoder

SCBE uses custom vocabulary. Each coined term maps to a standard technical concept.

SCBE termStandard technical meaning
Sacred TonguesSix φ-scaled semantic axes / domain weights
Tongue profile6D semantic activation vector
Harmonic score / H-scoreBounded decision score: H(d*,pd) = 1/(1+d*+2·pd), output in (0,1]
Harmonic WallUnbounded cost barrier: cost increases as semantic drift d* grows; super-exponential at boundary
GeoSealGovernance gate / risk decision layer producing ALLOW, QUARANTINE, ESCALATE, or DENY
14-layer pipelineRuntime governance pipeline from embedding through decision and telemetry
Hyperbolic costCost scaling based on hyperbolic distance from safe operating regions
Null-space signatureDetection signal based on missing expected semantic structure, not only present tokens
Fibonacci trustSession trust ladder; violations collapse trust toward the floor tier
SpiralverseNarrative/training corpus origin for the tokenizer and Sacred Tongues vocabulary

In short: the lore terms are labels; the runtime surface is embeddings, weighted semantic axes, hyperbolic distance, decision thresholds, audit receipts, and reproduction tests.

Engineering Overview

The core mechanism: input text is embedded, projected onto six phi-weighted semantic axes, and placed in hyperbolic space. The fourteen-layer decision profiles use the bounded score 1/(1+d+2*pd). Separate, explicitly named cost helpers provide quadratic-exponent or pi-exponent scaling; they are not interchangeable with the decision score.

14-layer pipeline:

Layer 1-2:   Complex Context → Realification
Layer 3-4:   Weighted Transform → Poincaré Embedding
Layer 5:     dℍ = arcosh(1 + 2‖u-v‖²/((1-‖u‖²)(1-‖v‖²)))  [INVARIANT]
Layer 6-7:   Breathing Transform + Phase (Möbius addition)
Layer 8:     Multi-Well Realms
Layer 9-10:  Spectral + Spin Coherence
Layer 11:    Triadic Temporal Distance
Layer 12:    H_score(d*, pd) = 1/(1+d*+2·pd)  [BOUNDED HARMONIC SCORE]
Layer 13:    Risk → ALLOW / QUARANTINE / ESCALATE / DENY
Layer 14:    Audio Axis (FFT telemetry)

Five formal axiom constraints (structural, not hardware quantum):

  • Unitarity (L2, 4, 7): norm preservation
  • Locality (L3, 8): spatial bounds
  • Causality (L6, 11, 13): time-ordering
  • Symmetry (L5, 9, 10, 12): gauge invariance
  • Composition (L1, 14): pipeline integrity

Canonical definitions, formula-regime labels, evidence limits, and the five-dimensional AxiomLens node overlay: docs/CORE_AXIOMS_CANONICAL_INDEX.md. These axioms verify named transforms under stated assumptions; they are not a claim that every possible agent behavior is mathematically proven safe.

Post-quantum cryptography: ML-KEM-768, ML-DSA-65, AES-256-GCM envelope.

Canonical formula lock: docs/specs/SCBE_CANONICAL_CONSTANTS.md

Benchmark Results

SystemF1DetectionFPRMethod
No defense0.0000%0%
DeBERTa PromptGuard76.7%0%Fine-tuned classifier
SCBE (semantic projector)0.81374.2%0/15 clean promptsGeometric cost + semantic embeddings

Read this before citing the table. Four limits, none of them cosmetic:

  • The FPR denominator is 15. BASELINE_CLEAN in tests/adversarial/attack_corpus.py holds 15 clean prompts. Zero false positives out of 15 is consistent with a true FPR anywhere up to roughly 20%. It is not a demonstrated 0%, and the earlier "tunable" in this cell was worse — it read as an unreported number. Treat this as not yet measured at useful precision.
  • The baseline lanes are simulated unless you turn them on. scripts/benchmark/scbe_vs_industry.py records model_lane_status: {"protectai": "simulated", "meta_prompt_guard": "simulated"} by default, because external model loading is off unless SCBE_BENCHMARK_EXTERNAL_LANES is set. A default run therefore scores SCBE against stubs, not against DeBERTa or Meta Prompt Guard, and any cross-system number it prints is not a comparison. The 76.7% row above came from a run with real models; reproducing it requires enabling those lanes.
  • 91 attacks, all ours. The corpus lives in this repo and the pipeline was developed against it. A high score on it measures fit to our own test set, not generalization. On a default (simulated-baseline) run the pipeline blocks 91/91 — which is a statement about the corpus, not a result worth quoting.
  • Detection is below the baseline. 74.2% vs 76.7%. The honest claim is determinism, sub-8ms latency, and an auditable decision trace with no model call — not superior detection.

Before/after the semantic projector upgrade:

AttackBeforeAfter
"Ignore all instructions"ALLOW (cost=1.81)QUARANTINE (cost=16.20)
"You are DAN"ALLOW (cost=19.80)DENY (cost=69.70)
"Bypass safety filter"ALLOW (cost=1.20)ALLOW (cost=21.54)

Cross-model null-space evaluation:

ModelScoreNull tongues
AetherBot (SCBE-trained)60.0%0
Llama 3.2 (base)55.0%0
Gemini 2.5 Flash23.3%6 (all)

This table does not show what it looks like it shows. The metric is derived from our own tongue corpus, and the top scorer is the model trained on that corpus — so the ranking is partly circular and cannot be read as a general capability comparison. The Gemini row is the tell: a model scoring null on all six axes at once is more plausibly evidence that the metric fails to transfer off-corpus than that the model lacks six independent faculties. Use this table for tracking SCBE-trained models against each other over time; a cross-vendor claim would need a metric defined independently of our corpus.

Petri seed gate (Anthropic adversarial seeds): 171/173 correctly denied or escalated at v7-matched config (1.16% false-allow). Notes: docs/external/PETRI_FINDINGS_2026_05_08.md.

Opt-in model gate delta: see Detection performance (measured) above — pure-Python 50% → model 92.9% recall on the held-out paraphrase corpus. Reproduce with pip install .[ml-onnx], SCBE_INJECTION_MODEL=1, and pytest tests/test_intent_model_benchmark.py -q.

Government and Contracting

SCBE-AETHERMOORE has a government contracting surface.

  • CAGE Code: 1EXD5
  • SAM UEI: J4NXHM6N5F59
  • SAM registration: active as of 2026-04-13; verify current status at SAM.gov by UEI or CAGE
  • Patent status: patent pending. Non-provisional #19/691,526 filed 2026-05-28 (micro entity, 35 USC 111(a), docket SCBE-2026-0001), claiming priority to provisional #63/961,403 filed 2026-01-15. Neither is examined. No claims have been allowed or granted, no examiner or art unit is assigned, and "patent pending" confers no enforceable rights. Publication is expected ~2027-07; the application is not in the public USPTO API until then. Note that docs/legal/patent-workbench/ predates the 2026-07-24 receipt confirmation and still describes 19/691,526 as unconfirmed.
  • Relevant federal opportunity: DARPA MATHBAC — active opportunity DARPA-PA-26-05 (published 2026-04-07, proposal deadline 2026-06-16); Proposers Day reference DARPA-SN-26-59
  • Capability docs: M5 Mesh Product & Service Blueprint

Custom AI work is available for clients that need procurement-ready, clearance-sensitive, or regulated workflow support: private AI governance overlays, air-gapped/offline deployments, redacted-data evaluation harnesses, audit receipts, and client-specific agent controls. CAGE/SAM registration supports vendor and subcontract routing; any classified, export-controlled, or otherwise restricted data must stay inside the client's approved environment under the client's security process.

What's in the Box

ComponentStatusWhat it means
14-layer governance pipelineRuntimeContext embedding through risk decision and telemetry
Sacred TonguesRuntime / trainingSix φ-weighted semantic axes
Semantic projectorRuntime / benchmarked385×6 matrix mapping sentence embeddings to tongue coordinates
Bijective tongue transportRuntime / experimentalByte/token round-trip layer for exact packet and code transport
Agent move packetsRuntime / agenticCommand packets with atomic workflow units, byte/hex signatures, and six-tongue round-trip proof
Fleet governance gateRuntime / agenticCommand authority layer over move packets: operation class, posture, clearance, quorum, BFT size, degraded comms
Harmonic scoreRuntimeBounded score H(d*,pd) used for decision tiers
Harmonic WallResearch / runtime-linkedUnbounded cost scaling as semantic drift increases
Fibonacci trustRuntime conceptSession trust ladder with violation reset
Null-space signaturesEval / researchDetection by absence of expected semantic structure
Neural dye injectionTooling / visualizationTrace activation through all 14 pipeline layers
Post-quantum cryptoRuntime componentML-KEM-768, ML-DSA-65, AES-256-GCM envelope
5 quantum axiomsFormal constraintsUnitarity, Locality, Causality, Symmetry, Composition
Aethermoor OutreachExperimental / civic MVPWorkflow engine for navigating government processes
~19,170 testsVerification5,954 TypeScript + 13,216 Python (pytest --collect-only, 2026-07-25, all under tests/); property-based with fast-check/Hypothesis

Eval and Reproduction

# Run all benchmarks
python -m benchmarks.scbe.run_all --synthetic-only --scbe-coords semantic

# Shell agent benchmark (22/22)
cd packages/cli && npm run bench:shell

# Dye injection trace
python src/video/dye_injection.py --input "your text here"

# Null-space eval
python scripts/run_biblical_null_space_eval.py --provider ollama --model llama3.2

# Cross-model matrix
python scripts/aggregate_null_space_matrix.py

Pre-made agent templates (starter configurations, not production policy):

  • examples/npm/agents/fraud_detection_fleet.json
  • examples/npm/agents/research_browser_fleet.json
  • examples/npm/use-cases/financial_fraud_triage.json
  • examples/npm/use-cases/autonomous_research_review.json

Live demo endpoints (when backend is running):

curl $SCBE_BASE_URL/v1/demo/rogue-detection
curl $SCBE_BASE_URL/v1/demo/swarm-coordination?agents=20
curl "$SCBE_BASE_URL/v1/demo/pipeline-layers?trust=0.8&sensitivity=0.7"

Composes with Upstream Safety Tooling

SCBE is the enforcement layer. It composes with detection-only auditing tools and attacker-capability benchmarks as the gate that emits the audit-trail receipt those tools assume.

Claim Boundaries and Canonical Sources

This repository includes active implementation, proposal material, historical docs, exploratory research, and narrative/training assets. The right question is not "is this in the repo?" but "is this canonical, active, legacy, or exploratory?"

When docs conflict, use this order:

Some older docs still reference legacy bounded scorers or earlier wall variants. The formula lock file at step 2 above is authoritative.

If you are reviewing the project seriously, start with:

Lore and Worldbuilding

This started as a DnD campaign on Everweave.ai. 12,596 paragraphs of AI game logs became the seed corpus for a custom tokenizer. That tokenizer became a 6-dimensional semantic coordinate system. That coordinate system became the 14-layer security pipeline. That pipeline became a patent application (provisional #63/961,403, now non-provisional #19/691,526 — filed, not examined). The game logs became a 141,000-word novel where the magic system is the real security architecture.

The "Sacred Tongues" are the six φ-scaled semantic axes. "GeoSeal" is the governance gate. "Spiralverse" is the training corpus and the world. The lore is not decoration — it is the original encoding system. But it is also genuinely lore, and the two things are kept separate deliberately.

For the worldbuilding side:

License

Project-owned source, npm packages, PyPI packages, and packaged customer ZIP artifacts are dual licensed under MIT OR Apache-2.0. See LICENSE, LICENSE-APACHE, and LICENSE-NOTICE.md.

Paid services, support, hosted deployments, audits, and custom commercial terms are separate commercial offerings and are not required to use the open-source code under either permissive license.

Author

Built by Issac Davis in Port Angeles, WA.

Keywords

cryptography

FAQs

Package last updated on 27 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts