You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7d064f9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ All notable changes to Cowrie (`cowrie-ai`) are documented in this file.
8
8
-**Profile E (Edge) / Profile C (Cloud) Split (`python/cowrie/profiles.py`, `docs/PROFILES.md`):** Separated local workstation and multi-tenant cloud serving into explicit, immutable presets sharing one canonical core.
9
9
-**Profile E (Edge):**`durable=True` (`fsync` on local `btrfs`/NVMe), `min_statepage_ctx_tokens=4096`, local grammar-gated `B2-b` virtualization (`16 KB`), `A2-Split`, `S3` capsules, and durable single-use nonce ledgers.
10
10
-**Profile C (Cloud):**`durable=False` (`/dev/shm` restart/swap or dedicated local NVMe), StatePage hard-gated **OFF** below `32,768` tokens (`65,536` recommended for dense 8B) and hard-gated **OFF** on `overlayfs`, `B2-b` off on cached APIs, and stateless challenge-nonce verification.
11
-
-**Scale inversion validated (`receipts/RUN-INDEX.md`):** Confirmed that KV StatePages cross breakeven cleanly at `>= 32K` tokens on both dense (`Llama-3.3-70B-AWQ`) and MoE (`Qwen3.5-35B-A3B-FP8`, `GLM-4.5-Air-AWQ`) models while staying sub-breakeven at short contexts (`<= 16K`) and on `overlayfs`.
11
+
-**Scale inversion validated (`receipts/RUN-INDEX.md`):** Confirmed that KV StatePages cross breakeven cleanly at `>= 32K` tokens on both dense (`Llama-3.3-70B-AWQ`, `64/64` parity) and pure-attention MoE (`Mixtral-46.7B-AWQ`, `64/64` parity; `GLM-4.5-Air-AWQ``PASS_WITH_AWQ_NONDET_CAVEAT`) models while staying sub-breakeven at short contexts (`<= 16K`) and on `overlayfs`. Hybrid `MambaSpec` MoE (`Qwen3.5-35B-A3B`) failed parity (`0/64`) and is now fail-closed.
12
12
-**Native V4 vLLM Connector (`adapters/vllm/cowrie_kv_connector.py`):** Self-describing V4 layout with pinned-slab async staging, split durability policy, Profile E/C admission gates (`<32K` and `overlayfs`), and fail-closed `MambaSpec` handling until vLLM exposes exact recurrent-state slot layouts.
13
13
-**S3 Semantic Capsules & A2-Split (`python/cowrie/__init__.py`):** Shipped `encode_s3_capsule` / `decode_s3_capsule` for cross-family big-chewer → small-worker knowledge handoff (`+16.7 pp` to `+100 pp` accuracy lift on small workers, `100%``0x80` taint preservation) and `canonicalize_a2_split` for cache-friendly static/dynamic framing.
Copy file name to clipboardExpand all lines: README.md
+27-4Lines changed: 27 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
25
25
**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`).**
26
26
27
-
> **Package name note:**Install as **`cowrie-ai`**on PyPI and npm (`Neumenon/cowrie`, Apache-2.0). Bare `cowrie` on PyPI belongs to the unrelated SSH/Telnet honeypot.
27
+
> **Package & publish note:****`cowrie-ai==1.3.0` is published on PyPI** (Apache-2.0), install with `pip install cowrie-ai`. The npm `cowrie-ai` package and crates.io `cowrie-core`/`cowrie-cli` are **not yet published** — build from source for those. Do **not** install bare `cowrie` (unrelated SSH/Telnet honeypot) or the retired legacy packages `cowrie-py`, `cowrie-codec`, or `cowrie-rs` (`Neumenon/cowrie-legacy` codec).
28
28
29
29
---
30
30
@@ -33,7 +33,7 @@
33
33
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:
34
34
35
35
### Shared Core (Always On, Apache-2.0, 100% Offline-Verifiable)
A three-reviewer Carbon swarm audited `v1.3.0` line by line against the source, not the claims. Seven external findings were triaged — **4 real, 3 partial** — and the audit surfaced additional defects the 205-attack suite had not covered.
64
+
65
+
**Fixed in `v1.3.0`:**
66
+
-**Session taint root (`COWRIE_TAINT_SET_V1`)** — one capability and one signature cover a whole multi-read tainted snapshot; the old path required one Ed25519 signature per tainted CID and deadlocked the stateless verifier.
67
+
-**Secret-path normalization** — interior quotes, backslash escapes, `file://localhost/`, allowlist `"/"`, dangling/multi-level symlinks, and `_cowrie_*` argument smuggling to child MCP servers.
68
+
-**Bounded JSON parsing and MCP framing** — 64 MiB decoded budget, 65,536-byte key cap, O(1) drain of oversized lines without desynchronising JSON-RPC.
69
+
-**Nonce ledger expiry pruning**, `_find_lib()` fail-closed ABI checks, and safe-path enforcement on `COWRIE_LIB`/`COWRIE_LIB_PATH`.
70
+
-**vLLM connector** — 3× → 1× Merkle verification per hit, TP>1/PP>1 CID parity (was a 0% hit rate), pinned-slab leak and async D2H use-after-release fixes.
71
+
-**`EvidenceBundle` integrity** — revoked keys with `revoked_at == 0`, unsigned Plane C tensors, and unescaped control characters are now refused; `lens.rs` gained a UTF-8 boundary panic fix and an O(N²) → O(N) search.
72
+
73
+
**Verified:**`tests/test_carbon_audit_regressions.py`**9/9**, security **12/12 classes / 205/205 attacks refused**, Rust **31/31**, full connector, evidence, WASM and conformance suites green. Triage and implementation notes: [`reports/CARBON-AUDIT-TRIAGE.md`](reports/CARBON-AUDIT-TRIAGE.md) · [`reports/CARBON-AUDIT-SUMMARY.md`](reports/CARBON-AUDIT-SUMMARY.md).
74
+
75
+
**Autonomy leases (`COWRIE_LEASE_V1`)** — bounded autonomy instead of a per-call approval modal:
76
+
-**T0** observe (free) · **T1** reversible workspace writes · **T2** shell, network, credentials, deletes, publishing (never covered by a normal lease)
77
+
-**Single-use** lease for one action, or a **long lease** bounded by time, actions, bytes, external calls and spend
78
+
- Host-pinned workspace root, symlink/`..` escape refusal, executable/config surfaces forced to T2, content-addressed snapshots with `cowrie lease rollback`, durable budgets, checkpoint digest, revocation list, and an optional high-risk T2 co-signature (≤300 s)
- Model and threat analysis: [`docs/AUTONOMY-LEASES.md`](docs/AUTONOMY-LEASES.md) · implementation report: [`reports/LEASE-IMPLEMENTATION.md`](reports/LEASE-IMPLEMENTATION.md)
Copy file name to clipboardExpand all lines: adapters/cloudflare-workers/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
# Cowrie Edge MCP Gateway for Cloudflare Workers
2
2
3
-
Deploy Cowrie's zero-import `cowrie_core.wasm` (`~92 KiB` gzipped, `~0.6 ms` isolate load) as a Cloudflare Worker in front of any Streamable HTTP MCP server or edge AI API:
3
+
Deploy Cowrie's zero-import `cowrie_core.wasm` (`~116 KiB` gzipped / `289.7 KiB` raw in `v1.3.0`, zero host imports) as a Cloudflare Worker in front of a Streamable HTTP MCP server or edge AI API:
4
4
5
5
-**`POST /mcp`** — Virtualizes oversized (`>= 16 KB`) MCP responses into Mealy-fenced atlases, injects `cowrie_get` for bounded RFC 6901 / grep / line slicing, and blocks unsigned tainted privileged calls with `-32025` at the edge. Backed by **`CowrieMcpSessionDO` (Cloudflare Durable Objects)** in [`wrangler.toml`](wrangler.toml) so virtualized handles and causal `0x80` taint survive global V8 isolate evictions.
Copy file name to clipboardExpand all lines: adapters/lancedb/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Keep **LanceDB** as your multimodal vector lakehouse, and use **Cowrie** at the
4
4
5
5
1.**Eliminates JSON vector bloat (`−90%+` bytes):** Hoists raw `384–1536d` float lists into compact typed `$tensor` handles (`dtype`, `shape`, `sha256`, `space`).
6
6
2.**Proves integrity end-to-end:** Seals the retrieved slice in a 16 KB-aligned Merkle-authenticated `CWRF` shard (`verify_shard` catches any 1-bit modification).
7
-
3.**Stops RAG prompt injection deterministically (`0x04 -> 0x80`):** Stamps external KB rows `AUTH_UNTRUSTED_EXT`, wraps prompt output in Mealy-escaped fences, and blocks tainted `shell_exec` / `fs_write` / `net_exfil` tool calls unless approved by an RFC 8032 `Ed25519`token.
7
+
3.**Enforces provenance & capability gates (`0x04 -> 0x80`):** Stamps external KB rows `AUTH_UNTRUSTED_EXT`, wraps prompt output in Mealy-escaped fences, and gates tainted `shell_exec` / `fs_write` / `net_exfil` tool calls on RFC 8032 `Ed25519`Capability V2 (`COWRIE_CAP_V2`) tokens (not a prompt-injection firewall; see [`docs/SECURITY.md`](../../docs/SECURITY.md)).
Copy file name to clipboardExpand all lines: docs/archive/GAINS-AND-USES.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
-
# Cowrie Engineering Guide (`v1.2.0`)
1
+
> **Superseded v1.2.0 Guide:** This document reflects the pre-reframe `v1.2.0` surface (including retired `COWRIE_DECLASSIFY_V1`, non-default `CWIV`/`CWZM`, toy 12L `vLLM 0.15.0` proofs, and `26/26` Bend counts). For current `v1.3.0` installation, profiles, security guarantees, and retracted claims, see [`README.md`](../README.md), [`QUICKSTART.md`](QUICKSTART.md), [`PROFILES.md`](PROFILES.md), [`SECURITY.md`](SECURITY.md), and [`RETRACTION.md`](../RETRACTION.md).
2
2
3
-
Cowrie (`v1.2.0`) is a 16 KB-aligned, content-addressed, provenance-tagged binary container and runtime library for AI inference, retrieval, and tool execution. It serves three consumers from one container layout: LLM context windows (`Plane B` lenses), GPU/NVMe DMA pipelines (`Plane C` 16 KB arenas), and CPU integrity and policy verifiers (`Plane A` canonical wire + `Plane D` causal provenance and Merkle roots).
Every metric in this guide is backed by a reproducible receipt in [`receipts/`](../receipts/) or `~/tessera-lab/`.
5
+
Cowrie (`v1.2.0`) was a 16 KB-aligned, content-addressed, provenance-tagged binary container and runtime library for AI inference, retrieval, and tool execution. It served three consumers from one container layout: LLM context windows (`Plane B` lenses), GPU/NVMe DMA pipelines (`Plane C` 16 KB arenas), and CPU integrity and policy verifiers (`Plane A` canonical wire + `Plane D` causal provenance and Merkle roots).
6
+
7
+
Historical metrics below reference [`receipts/`](../receipts/) (external local development receipts from `v1.2` are not committed in this repository; see [`receipts/RUN-INDEX.md`](../receipts/RUN-INDEX.md) for the current 73-run `v1.3.0` ledger).
0 commit comments