Skip to content
Ian684Public

About

Offline security telemetry policy optimizer with verifiable replay, counterexamples, and an experimental FPGA accelerator.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

56 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogRation

LogRation

Offline security telemetry policy optimizer with verifiable replay, counterexamples, and an experimental FPGA accelerator.

LogRation compares offline security telemetry retention policies against the alerts produced from the same historical events and rules.

The current local preview covers Windows JSONL and LANL authentication CSV normalization, restricted Sigma compilation, native count and ordered correlation, CPU replay, impact, Pareto search and replayable witnesses. The Studio serves the same CPU analysis pipeline on localhost. See STATUS.md for the phase and hardware gates.

At a glance

LogRation terminal demo

Quick start

git clone https://github.com/Ian684/LogRation.git
cd LogRation
cargo build --locked
cargo run --locked -p logration -- replay --dataset datasets/fixtures/synthetic/manifest.json --rules rules/examples/demo.json --policies policies/examples/demo.json --out build/first-replay
cargo run --locked -p logration -- report build/first-replay --format csv

Screenshot

LogRation Studio (logration serve) on localhost with the synthetic demo dataset.

LogRation Studio (logration serve) on localhost with the synthetic demo dataset.

Architecture

LogRation architecture

Example results

Alert retention per policy on the synthetic demo dataset.

Alert retention per policy on the synthetic demo dataset. Generated from the tool's own output on the bundled examples.

CPU quickstart

Use Python 3.12, the pinned Rust toolchain, and Node/npm for Studio. From the repository root:

cargo build --locked
cargo run --locked -p logration -- doctor --json
cargo run --locked -p logration -- inspect datasets/fixtures/synthetic/manifest.json
New-Item -ItemType Directory -Force build | Out-Null
cargo run --locked -p logration -- replay --dataset datasets/fixtures/synthetic/manifest.json --rules rules/examples/demo.json --policies policies/examples/demo.json --out build/first-replay
cargo run --locked -p logration -- report build/first-replay --format csv
python scripts/run.py verify --tier software
python scripts/run.py evidence-verify

Use a fresh output path each time. The CLI writes alerts, impact, cost and run metadata to the selected run directory. The demo fixture is synthetic. Use benchmark in place of replay with the same arguments to save replay-profile.json alongside a measured run. The repeated comparison procedure is described in the benchmark report. The LANL documentation preview is a separate set of three published records.

For the registered OpenSSH splits, acquire the pinned archive and replay it:

New-Item -ItemType Directory -Force datasets/cache | Out-Null
curl.exe --fail --show-error --silent --max-filesize 8388608 --output datasets/cache/loghub-ssh-v8.tar.gz https://zenodo.org/records/8196385/files/SSH.tar.gz
python scripts/run.py benchmark --suite public --backend cpu

Studio

npm ci --prefix apps/studio --ignore-scripts
npm run build --prefix apps/studio
cargo run --locked -p logration -- serve --port 8765

Open http://127.0.0.1:8765 on the same machine. Use the synthetic demo or import a local Windows JSONL or LANL authentication CSV file up to 4 MiB from Dataset & rules. Replay with the two native demo rules, inspect a lost key, minimize its witness or search for a Pareto plan. Completed runs offer JSON, CSV and Markdown exports. See docs/api.md.

Verification

FPGA builds target Vivado 2022.2 and its installed PYNQ-Z2 board preset. See the Vivado results for routed timing, utilization, warnings and the local overlay hashes. The optional local preview archive includes the tested P32 bitstream and matching hardware handoff. See the board guide for authorization, raw-output verification and supported analysis boundaries. The same-board benchmarks include exact million-event checks and a full OpenSSH replay. The OpenSSH report path took 25.01 seconds on FPGA and 4.70 seconds with the ARM CLI.

This is a local engineering preview. LogRation's original code is available under the MIT License. See NOTICE for included source material. The Windows preview ZIP includes source, the executable and built Studio assets. Raw verification receipts stay in the local workspace.

About

Offline security telemetry policy optimizer with verifiable replay, counterexamples, and an experimental FPGA accelerator.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages