blackice

module
v0.0.0-...-3fabec7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2025 License: MIT

README ΒΆ

BlackIce

Go Report Card Go Reference

BlackIce

Betrayal-resilient data infrastructure that plans for compromise – and survives it.

BlackIce is a zero-trust data platform built around the conviction that compromise is inevitable. Instead of pretending attacks will never land, BlackIce designs for the aftermath: immediate containment, cryptographic provenance, adaptive degradation and forensic-first recovery – all while keeping the data moving.

Not fail-safe. Breach-resilient. Tamper-aware. Unafraid.


✨ Highlights

Feature What it buys you
πŸš€ Zero-Trust Flight Gateway PQ-TLS, Merkle integrity & adaptive circuit-breakers without sacrificing throughput.
πŸ›° Control Plane Signed config ledger, real-time fleet health, live policy pushes.
πŸŒ€ Mutation-Aware Storage Iceberg-style versioning with cryptographic commits & predictive rollback.
πŸ” Self-Doubt Pipelines Behaviour + content anomaly detection that can auto-isolate or burn-back.
🌩 Decentralised Fallback Reed-Solomon / Shamir-sharded backupsβ€”survive region loss or legal seizure.

πŸ—οΈ Layered Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           Control Plane  (gRPC + Signed Ledger)             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
            β–²                      β–²                  
            β”‚                      β”‚                  
            β”‚ Health / Policy      β”‚ Panic Escalation 
            β”‚                      β”‚                  
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€-──────-────────┐
β”‚  Secure Flight GW    β”‚ ← β”‚ Anomaly Engine β”‚ ← β”‚  Panic Service   β”‚
β”‚  (pkg/flightgw)      β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚  HMAC β–ͺ PQ-TLS β–ͺ CB  β”‚                                     
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                     
          β”‚  Arrow Flight                                    
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                                     
β”‚    Data Stores       β”‚  πŸ—„οΈ  Iceberg β–ͺ DuckDB β–ͺ S3 β–ͺ Storj/IPFS
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                     

Every layer can operate independently, yet all layers sign each other's work – creating an immutable chain-of-custody from raw ingress to long-term archive.


πŸš€ Quick Start

set -euo pipefail

# 1. Install CLI tools
go install github.com/TFMV/blackice/cmd/flightdata@latest
go install github.com/TFMV/blackice/cmd/flightclient@latest

# 2. Start an in-memory Secure Flight Gateway
flightdata --listen 0.0.0.0:8815 --ttl 10m

# 3. In another terminal, push & fetch a demo Arrow RecordBatch
flightclient put --file demo.arrow
flightclient get --ticket demo.arrow

Docker one-liner:

docker run -p 8815:8815 -p 9090:9090 ghcr.io/tfmv/blackice/flightdata:latest

🧩 Core Components

Component Purpose Key Features
Secure Flight Gateway
pkg/flightgw
Drop-in Arrow Flight proxy with zero-trust defaults β€’ Post-Quantum gRPC-TLS (Kyber-x25519-HMAC)
β€’ SHA-256 HMAC per batch, optional Merkle stream verification
β€’ Battle-tested circuit-breaker with five-tier postures
β€’ Dynamic Trust Scoring across ten behavioural dimensions
Control Plane
pkg/controlplane
Central nervous system that keeps every BlackIce node honest β€’ AuthN/Z pluggable providers, hardware-rooted attestations
β€’ Real-time component registry with heartbeat-based liveness
β€’ Signed configuration ledger with provenance and diffs
β€’ gRPC API from proto/blackice/v1/controlplane.proto
Telemetry & Anomaly Detection
pkg/flightgw/telemetry
Multi-modal threat detection β€’ OpenTelemetry pipelines, Prometheus/Grafana export
β€’ High-dimensional detectors (Isolation Forest, VAEs, DBSCAN)
β€’ <0.1% false-positive rate, MITRE ATT&CK mapping
Panic Service
proto/blackice/v1/panic.proto
Coordinated incident response β€’ Tier-0 … Tier-5 escalation, burn-back coordination
β€’ Multi-party attestation, immutable forensic ledger

πŸ“Š Stability Matrix

Component Status Notes
Flight Gateway Beta Production-ready, API stable
Control Plane Alpha Core features complete, API evolving
Anomaly Detection Beta High accuracy, tuning ongoing
Panic Service Alpha Protocol stable, implementation maturing
CLI Tools Stable Ready for daily use

πŸ“‚ Repository Map

art/                 ↳ Vision documents, logos, diagrams
cmd/                 ↳ CLI entry-points (flightdata, flightserver, flightclient …)
proto/               ↳ gRPC / protobuf contracts
pkg/                 ↳ Production Go packages
  β”œβ”€β”€ controlplane/  ↳ Fleet orchestration & policy engine
  └── flightgw/      ↳ Zero-trust Arrow Flight gateway & helpers
       β”œβ”€β”€ server/        ↳ Flight server implementations
       β”œβ”€β”€ proxy/         ↳ Reverse proxy logic
       β”œβ”€β”€ crypto/        ↳ HMAC, PQ-TLS, Merkle, attestations
       β”œβ”€β”€ trust/         ↳ Dynamic trust scoring
       β”œβ”€β”€ anomaly/       ↳ Detectors & alert lifecycle
       └── telemetry/     ↳ Metrics, tracing, logging

πŸ›  Development

  1. Prerequisites: Go 1.24+ and buf (for protobuf)
  2. Build & Test: make lint test – runs golangci-lint, unit tests and race detector
  3. Protobuf: make proto to regenerate gRPC stubs
  4. Dev Environment: make dev-shell for containerized development

Linter config lives in .golangci.yml; CI runs on GitHub Actions.


🀝 Contributing

Bug reports, feature ideas and pull requests are welcome!

Please see CONTRIBUTING.md for guidelines.


πŸ“œ License

SPDX-License-Identifier: MIT

Β© 2025 TFMV β€” MIT License

Directories ΒΆ

Path Synopsis
cmd
anomalyclient command
anomalyclient is a test client for the anomaly detection service
anomalyclient is a test client for the anomaly detection service
anomalyservice command
main is the entry point for the anomaly detection service
main is the entry point for the anomaly detection service
controlplane command
flightclient command
flightdata command
flightgw command
flightserver command
keygen command
pkg
flightgw/anomaly
Package anomaly provides anomaly detection and response capabilities for the BlackIce system.
Package anomaly provides anomaly detection and response capabilities for the BlackIce system.
flightgw/crypto
Package crypto provides military-grade cryptographic functionality for BlackIce
Package crypto provides military-grade cryptographic functionality for BlackIce
flightgw/integration
Package integration provides components to integrate various Flight servers
Package integration provides components to integrate various Flight servers
flightgw/server
Package server provides core server functionality for the BlackIce Flight Gateway
Package server provides core server functionality for the BlackIce Flight Gateway
flightgw/telemetry
Package telemetry provides a secure framework for collecting and exposing metrics
Package telemetry provides a secure framework for collecting and exposing metrics
flightgw/trust
Package trust provides trust scoring and evaluation for data sources
Package trust provides trust scoring and evaluation for data sources
proto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL