Kestrom IFC

by CAPH TECH · Tool · Text & code

Controls what a local language model can reveal while it writes, swapping out tokens that leak secrets from private context, on Apple Silicon Macs.

Latest · Nov 24Added new kestrom ifc command (PR #25) doing information-flow control during local LLM decoding without changing model weights

AccessOpen codeRuns onmacOSLicensePolyForm (free for businesses under 100 people, non-commercial, or 31-day trial; otherwise commercial license)

Evidence

  1. Nov 24
    ifc control writes control fields (tool, recipient, approval) from a blinded copy of the model and hands over to the full-context copy only for the summary field
    Maker's claimrizumitaJapanese
  2. Nov 24
    ifc firewall compares next-token log-probabilities of a secret-reading copy and a public-only copy, swapping tokens whose lift reaches 2.0 nats; no banned-word list needed
    Maker's claimrizumitaJapanese
  3. Nov 24
    Attack-email summary quality hits went 26/30 to 27/30 (Qwen3.5-0.8B) and 26/30 to 28/30 (Qwen3.5-4B) with ifc control
    Maker's claimrizumitaJapanese
  4. Nov 24
    ifc control fast mode runs Qwen3.5-4B at 1.09x the plain model's time (50.1s vs 45.9s over 40 tasks); Qwen3.5-0.8B 1.43x (17.5s vs 12.2s)
    Maker's claimrizumitaJapanese
  5. Nov 24
    ifc firewall on 24 mixed-secret summaries (TAU=2.0): Qwen3.5-0.8B leaks fell from 21/24 to 0/24, Qwen3.5-4B from 2/24 to 0/24, without a banned-word list
    Maker's claimrizumitaJapanese
Show all 8
  1. Nov 24
    strict-public mode output matched a secret-free run bit for bit on 24/24 questions, and all verification reports regenerated in a separate process matched byte for byte
    Maker's claimrizumitaJapanese
  2. Nov 24
    Limits: gated-public firewall and audit mode cost about 1.7-1.9x in BF16 MLX; 4-bit and llama.cpp speeds untested; only Apple Silicon, greedy decoding, own Japanese benchmark
    Maker's claimrizumitaJapanese
  3. Nov 24
    ifc control only helps when control fields are decidable without reading external data; zero leaks does not guarantee text quality (some 0.8B outputs collapsed to repeating a header)
    Maker's claimrizumitaJapanese

Cost to run

Alternatives