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 16db9e0
Browse filesBrowse the repository at this point in the historyBrowse files
-**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
+
-**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
+
-**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`.
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
+
-**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.
-**Capability Tokens V2 (`COWRIE_CAP_V2\0`):** Replaced blank-check V1 declassification tokens on all host paths (Rust `cowrie mcp-proxy`, Python `CowrieMemoryStore` & `CowrieToolGuard`, Node/WASM `CowrieMcpMediator`, ComfyUI, and Cloudflare Workers) with Ed25519 capability tokens bound to `target_cid`, `action`, `tool_name`, canonical `args_hash`, `destination`/audience, `session_id`, `issued_at`, short `expiry` (`<= 300 s`), and a single-use 16-byte `nonce`. V1 downgrades are unconditionally rejected.
17
+
-**Durable & Stateless Replay Defense:** Added `CWNL0002``0600``O_NOFOLLOW``fsync`'d `NonceLedger` (surviving process restarts and Durable Object evictions) and O(1)-memory `StatelessChallengeVerifier` (verifier-minted HMAC-bound single-use challenge nonces with immediate burn and epoch rotation).
18
+
-**Fail-Closed C-ABI Pins:**`cowrie_statepage_open_strict`, `cowrie_statepage_open_full`, `cowrie_statepage_open_checked`, `cowrie_statepage_open`, and `cowrie_statepage_verify_bytes` now unconditionally reject NULL or empty `expected_model_sha`, `expected_doc_cid`, `expected_runtime_id`, and `verify_hash == 0` (`ERR_INVALID_CONTRACT`). Removed `COWRIE_ALLOW_UNSIGNED_OVERRIDE` env-var bypass; no environment variable can disable verification in a release build.
19
+
-**Taint Below the 16 KB Floor:** Guaranteed `_meta.cowrie` (`cid`, `authority`, `tainted`, `virtualized`) and `BIT_TAINTED (0x80)` survive payloads under `16 KB`, `B2-b` virtualization, `cowrie_get` slices, `A2-Split` canonicalization, `S3` capsules, and omitted-parent `CowrieMemoryStore` summaries.
20
+
-**Host Lineage, Secret-Path & Malicious Tool-List Defenses:** Hard-disabled caller-supplied `_cowrie_parents` trust overrides; tightened output classification to default-untrusted for unknown tools (e.g., `get_ticket`); blocked direct and symlink-resolved secret-path reads (`~/.ssh`, `.env`, `/proc/self/environ`, `/etc/shadow`, etc.) unless explicitly allow-listed; pinned MCP `tools/list` canonical hashes to reject mid-session rug-pulls and ignore deceptive server `readOnlyHint: true` annotations; logged every refusal to stderr and `.cwwal`.
21
+
-**Honest Security Docs (`docs/SECURITY.md`):** Withdrew all "prompt-injection firewall" claims and documented exact cryptographic/container guarantees vs non-guarantees.
title: "Cowrie: 16 KB-Aligned Content-Addressed AI Container, Verified KV StatePages, S3 Semantic Capsules, and Capability V2 Provenance Runtime"
3
+
message: "If you use Cowrie, its wire specification, formal verification suite (Bend + Lean 4), or benchmark receipts in research or production, please cite it using this metadata."
0 commit comments