omenworks.dev · Benchmarks & Receipts · Token Estimator · Wire Spec · Profiles (E/C) · Security Model · Claim Corrections
Cowrie (v1.3.0)
16 KB-aligned content-addressed binary container, verified KV StatePages (vLLM V4 / llama.cpp), S3 semantic capsules, Capability V2 provenance runtime, and offline cowrie verify-bundle auditor — one zero-dependency Rust/WASM core split cleanly into Edge (Profile E) and Cloud (Profile C).
Package name note: Install as
cowrie-aion PyPI and npm (Neumenon/cowrie, Apache-2.0). Barecowrieon PyPI belongs to the unrelated SSH/Telnet honeypot.
Architecture at a Glance
Cowrie v1.3.0 keeps one shared canonical core (libcowrie_core, cowrie CLI, cowrie_core.wasm) and splits runtime policies cleanly across two profiles instead of forcing one setting onto both local workstations and cloud clusters:
Shared Core (Always On, Apache-2.0, 100% Offline-Verifiable)
- Canonical
COWRWire & Dual-TreeCWRFShards (canonical.rs,shard.rs): Bijective, key-order-invariant binary frames (169.8 nszero-alloc verify), 34-byte SHA-256 multihash CIDs, and 16 KB-aligned RFC 6962 Merkle shards. - Canonical Prefix Splitting (
A2-Split): Lifts KV prefix-cache hit rate from0.2% → 85.0%(98.2%–100%across 5 models with volatile trailer split),7.0–12.4×faster prefill,−27.6%prompt tokens,0 BKV written (receipt_exp_a3_canonical_prefix.json). - Fail-Closed Verified StatePages (
CWSP):verify_hash=Truealways on; emptyexpected_doc_cid, emptyexpected_runtime_id, emptyexpected_model_sha, andverify_hash=Falseare rejected unconditionally at the C-ABI boundary (ERR_INVALID_CONTRACT). - Sticky Provenance, Capability Tokens V2 (
COWRIE_CAP_V2\0) & Offline Evidence (verify-bundle): Out-of-band0x80taint surviving payloads under 16 KB,B2-bslices,A2-Split, andS3capsules; single-use Ed25519 capabilities bound to(cid, action, tool, canonical_args_hash, destination, session_id, issued_at, short expiry <= 300s, nonce)with durableCWNL0002nonce ledgers &StatelessChallengeVerifier; secret-path blocking (including symlinks); pinned MCPtools/listrug-pull detection (-32025); and 100% offlinecowrie verify-bundleverification of.cwwalchains, root-signedTrustBundlekey lifecycles, and V2 signatures. - Honest security scope: Cowrie enforces integrity, provenance, audit, and capability binding — it is not a prompt-injection firewall, host-boundary replacement, or OS sandbox. Read
docs/SECURITY.mdandRETRACTION.md.
Two Deployment Profiles (docs/PROFILES.md)
| Plane / Feature | Profile E (edge) — Local Workstation |
Profile C (cloud) — Single-Node Serving |
|---|---|---|
| StatePage Durability | durable=True (fsync on local btrfs/NVMe) |
durable=False (/dev/shm restart/swap or dedicated local NVMe) |
| StatePage Context Gate | >= 4K tokens (llama.cpp / Eureka / local vLLM) |
Gated OFF < 32K (64K recommended for dense 8B) |
overlayfs Gate |
Local persistent NVMe recommended | Gated OFF on overlayfs |
vLLM MambaSpec Hybrid |
Fail-closed | Fail-closed |
MCP Virtualization (B2-b) |
On (16 KB threshold, grammar-gated local loops) |
OFF on cached cloud APIs |
A2-Split & S3 Capsules |
Enabled (0x80 taint preserved) |
Enabled (0x80 taint preserved) |
Security & verify_hash |
Always ON (durable CWNL0002 nonce ledger) |
Always ON (stateless challenge-nonce or Durable Object) |
What Ships, What Is Gated, What Is Dropped
- Ships now: Canonical
COWR/CWRFcore, fail-closed verifiedCWSPStatePages (V4vLLM connector +llama.cpp+ Diffusers/ComfyUI),A2-Split,S3semantic capsules, Capability Tokens V2 (COWRIE_CAP_V2), Profile E/C presets,.cwwalaudit logs, offlinecowrie verify-bundle, and zero-importcowrie_core.wasm. - Gated (not default-on): Cloud KV StatePages below
32Ktokens (64Kdense 8B) and onoverlayfs; hybridMambaSpecStatePages in vLLM (fail-closed pending exact recurrent-state slot export); multi-GPUTP >= 2StatePage benchmarks (pending 2-GPU cloud quota). - Dropped: Legacy blank-check
COWRIE_DECLASSIFY_V1runtime authorization, in-band_cowrie_parentstrust overrides, trusting server-claimedreadOnlyHint: trueannotations,B2-bvirtualization against prompt-cached cloud APIs, cross-architecture raw KV adapter translation (S1/S2— replaced byS3semantic capsules), and "prompt-injection firewall" marketing claims.
Documentation, Formal Proofs & Receipts
- Quickstart:
docs/QUICKSTART.md— installcowrie-ai, CLI, PythonCOWR/S3/Capability V2, vLLM plugin check - Profiles (Edge vs Cloud):
docs/PROFILES.md— exactProfile E&Profile Cpresets, env vars, and admission gates - Security Model (Honest):
docs/SECURITY.md— exact guarantees, non-guarantees, and adversarial suite receipts - Retractions & Claim Discipline:
RETRACTION.md— public falsification log and defensible replacements - Security Summary Receipt:
receipts/receipt_security_v1_3_summary.json(12/12attack classes,205/205attacks refused) - Full Empirical Run Index (73 Runs):
receipts/RUN-INDEX.md— RTX 309032K–250K, Blackwell32K/64KBig/MoE,S3capsules, and security receipts - Formal & Differential Verification:
formal/README.md(37 Bend laws + 40 Lean 4 theorems, 60 mutants rejected, 18 bugsF1–F18fixed) ·harness/PHASE2.md(753-case 4-oracle differential harness + 4cargo-fuzztargets) ·harness/FINDINGS.md - Long-Form Report & Executive Summary:
reports/COWRIE-BOOK.md·reports/FINAL-SUMMARY.md·CHANGELOG.md - Citation:
CITATION.cff
Quick Install & Verification
pip install cowrie-ai
cowrie --help
python3 -c "import cowrie; print(cowrie.__version__)"
Build From Source & Run All Test Suites
Builds default to /tmp/cowrie-cargo-target so the source tree stays clean:
make test # Rust core release unit tests (21/21)
make conformance # C-ABI + 150 golden/fuzz vectors + independent Python oracle
make wasm # Zero-import cowrie_core.wasm + V8 conformance
make abi-check && make adversarial # 753-case 4-oracle differential harness (rust, py, wasm, bend)
make connectors # LangGraph, PydanticAI, OpenAI Agents, ComfyUI, Diffusers, LanceDB, Cloudflare Workers
python3 tests/test_vllm_kv_connector_unit.py # vLLM V1/V4 connector + Profile E/C admission gates
python3 tests/test_security_v1_3_adversarial.py # Stateful multi-turn cross-restart security fuzz suite (12/12 classes, 205/205 attacks)
python3 tests/test_evidence_bundle.py # Offline cowrie verify-bundle + TrustBundle + CAP_V2 + .cwwal replay
Ecosystem Connectors
See adapters/README.md and ROADMAP.md for drop-in integration guides covering vLLM V1/V4 (CowrieKVConnectorV1), llama.cpp, MCP (cowrie mcp-proxy), LangGraph, PydanticAI, OpenAI Agents SDK, ComfyUI, Hugging Face Diffusers, LanceDB, Cloudflare Workers, and Eureka LLM / Creative.
OmenWorks & Related Links
Built by Femi Adeniran at OmenWorks (Apache-2.0).
- Proof Hub & Estimator: omenworks.dev · omenworks.dev/benchmarks · omenworks.dev/estimator · omenworks.dev/log
- Visual Essays: Mostly Quantized
- Video: YouTube (@omenworksdev)
- Models & Social: Hugging Face (OmenWorks) · X (@Phenomenon_One) ·
hello@omenworks.dev
Metadata
Release files for cowrie-ai 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cowrie_ai-1.3.0.tar.gz | 350.5 kB | Without provenance | Details for cowrie_ai-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cowrie_ai-1.3.0-py3-none-manylinux_2_39_x86_64.whl | Python 3 | none | Linux glibc 2.39+ x86-64 | Details for cowrie_ai-1.3.0-py3-none-manylinux_2_39_x86_64.whl |
Total release size: 1.6 MB
Release files / cowrie_ai-1.3.0.tar.gz
| Download URL | cowrie_ai-1.3.0.tar.gz |
|---|---|
| Size | 350.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e881149c03032d86b59cd676585c7105a15719a012dcf93610b16c59ea78d3b
|
|
BLAKE2b-256 checksum How to use checksums |
a1d2ea88a056776e1f66c784e42d8fb53664b07f3f028c0a06c34acbc3f77eb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Release files / cowrie_ai-1.3.0-py3-none-manylinux_2_39_x86_64.whl
| Download URL | cowrie_ai-1.3.0-py3-none-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Linux glibc 2.39+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
9e34fc16c328bf974130b88fedd8fd4768b9a4207b03387aa896e99c1458d3da
|
|
BLAKE2b-256 checksum How to use checksums |
e78486bffd5a9f000da1d3bbb439223f4b4963afb5b0e94b09aa07ac3a75cd54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Security for cowrie-ai 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.