live-casi
live-casi is a Python toolkit for Causal Amplification Security Index (CASI)
analysis of byte streams, lightweight-cipher outputs, post-quantum artifacts,
and related structural-integrity signals.
This repository also carries the reproducibility artifact for the IEEE NANO 2026 camera-ready paper:
Compression-Based Trust Verification of Lightweight Ciphers Deployed in Nano-IoT Communication Standards
Install
pip install live-casi
Optional extras:
pip install "live-casi[network]" # pcap/network analysis
pip install "live-casi[causal]" # causal graph export
pip install "live-casi[pqc]" # post-quantum experiments
pip install "live-casi[academia]" # text/PDF structural analysis
pip install "live-casi[all]" # all optional dependencies
Nano-CASI IEEE NANO 2026 Artifact
Version 1.0.1 includes the Nano-CASI camera-ready artifact under:
live_casi/artifacts/nano_casi_ieee_nano_2026/
The artifact contains:
tables/full_coverage_matrix.csv: full 41-cipher camera-ready matrix.tables/representative_table.csv: compact table used for paper reporting.raw_data/: full per-cipher sweeps grouped by family.results/: reduced-round, sample-sensitivity, aging, and sanitized master summaries.figures/: camera-ready figure source images.
Programmatic access after installation:
from live_casi import nano_casi_artifact_path
artifact = nano_casi_artifact_path()
matrix = artifact / "tables" / "full_coverage_matrix.csv"
print(matrix)
The Speck rows use the camera-ready verdict F8-DIST: a full-round
cross-round statistical distinguisher under the F8 experiment, not a key
recovery result and not a practical chosen-plaintext or ciphertext-only
exploit.
Core Usage
import os
from live_casi import LiveCASI
engine = LiveCASI(key_size=32, window_keys=10_000)
engine.feed(os.urandom(320_000))
engine.force_update()
print(engine.current_casi)
print(engine.current_verdict)
Command line:
cat ciphertext.bin | live-casi
live-casi --file ciphertext.bin
live-casi --test
Main Modules
| Module | Purpose |
|---|---|
live_casi.core |
CASI engine, structural strategies, CLI |
live_casi.ciphers |
Cipher generators used by the test suite |
live_casi.frontier |
Detection-boundary search |
live_casi.nist_compare |
CASI vs. NIST SP 800-22 comparison helpers |
live_casi.pqc |
Post-quantum compression-analysis helpers |
live_casi.network |
pcap and live-network analysis |
live_casi.causal |
causal graph export |
live_casi.academia |
text/PDF structural analysis |
live_casi.fingerprint |
stylometric fingerprinting |
Development
python -m pip install -e ".[all]"
python -m pytest tests/test_casi.py
python -m build
Citation
If you use the Nano-CASI artifact, cite:
David Tom Foss, "Compression-Based Trust Verification of Lightweight Ciphers
Deployed in Nano-IoT Communication Standards," IEEE NANO, 2026.
License
MIT
Metadata
Release files for live-casi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| live_casi-1.0.1.tar.gz | 815.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| live_casi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.7 MB
Release files / live_casi-1.0.1.tar.gz
| Download URL | live_casi-1.0.1.tar.gz |
|---|---|
| Size | 815.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0526f77e8bfe6df1507dd1149656daefba89e31fc2b2b0266db0e655f86ba085
|
|
BLAKE2b-256 checksum How to use checksums |
322579cc1341f16f1abec86597414c4d4d8244cb080bdbab72e5d363ba83d984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / live_casi-1.0.1-py3-none-any.whl
| Download URL | live_casi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 877.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d341e69db52c930028fd21adbe4a7bb1d84b27bec65c8d10c1b0581cf5ef5df
|
|
BLAKE2b-256 checksum How to use checksums |
95c9dd2d650d9968075e5bc5b640e6d093f277d08f31028b14d60f3effebdcf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|