interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / SECURITY_MODEL.md

66 lines · 3769 bytes Raw Blame History Rendered
1# AIEN Security & Telemetry Model
2
3This document establishes the normative security architecture, terminology, and invariants for the AIEN ecosystem.
4
5---
6
7## 1. Core Security Invariant
8
9AIEN provides no unsolicited outbound telemetry, avoids persistent plaintext secret storage, and uses the strongest available platform-backed secret provider where supported.
10
11---
12
13## 2. Telemetry and Observability Definitions
14
15To maintain linguistic and technical precision:
16
17### Local Observability
18Metrics, traces, structured logs, benchmark counters, hardware telemetry (such as GPU temperature and power draw), and diagnostic health endpoints (`/api/pulse`, `/healthz`) retained strictly on the local machine or served to local administrative consoles. Local observability is essential for systems engineering, performance verification, and operational reliability.
19
20### Explicit Network Activity
21Network communication directly initiated by an operator or required by a user-configured feature, including dispatching prompts to configured model API endpoints, downloading verified model weights from public hubs, or synchronizing repositories across designated peer nodes.
22
23### Outbound Telemetry
24Automatically transmitted usage analytics, diagnostic beacons, behavioral tracking, user profiling, or background heartbeat telemetry transmitted to third-party endpoints.
25
26### The Invariant
27**AIEN core components MUST NOT transmit unsolicited outbound telemetry.** Local observability data remains local unless the operator explicitly exports it.
28
29---
30
31## 3. Secret Protection at Rest and In-Flight
32
33### No Persistent Plaintext Storage
34AIEN software does not persist unencrypted API keys, cryptographic tokens, or private credentials to disk files. Configuration templates, source repositories, and persistent working trees maintain a strict zero-plaintext-credentials standard.
35
36### Materialization Policy
37Persisted credentials are encrypted or hardware-bound at rest and are materialized into process memory only when required for authorized operations. Ephemeral buffers holding decrypted secret material are zeroized upon deallocation.
38
39---
40
41## 4. Platform Secret Provider Architecture
42
43Hardware security primitives vary across operating systems. AIEN abstracts credential protection behind a uniform `SecretProvider` capability interface:
44
45```rust
46pub trait SecretProvider: Send + Sync {
47 fn capabilities(&self) -> SecretCapabilities;
48 fn protection_level(&self) -> SecretProtectionLevel;
49 fn seal(&self, name: &str, secret: &[u8]) -> Result<SealedSecret, SecretError>;
50 fn unseal(&self, secret: &SealedSecret) -> Result<Zeroizing<Vec<u8>>, SecretError>;
51 fn delete(&self, name: &str) -> Result<(), SecretError>;
52}
53```
54
55### Protection Levels
56
571. **`HardwareBackedNonExportable`**: Asymmetric private keys generated inside secure hardware silicon that cannot be extracted, where cryptographic operations occur directly within the hardware boundary.
582. **`HardwareBackedSealed`**: Secrets encrypted at rest using keys bound to hardware silicon and platform PCR state (such as TPM 2.0 sealed storage).
593. **`OsProtected`**: Credentials protected by operating-system keyring facilities (such as Linux kernel keyrings or macOS Keychain access).
604. **`MemoryOnly`**: Volatile in-process credential store for ephemeral test environments, wiped immediately on process exit.
61
62### Platform Implementations
63
64- **NVIDIA DGX Spark / Linux Systems**: Implemented via hardware TPM 2.0 (`/dev/tpmrm0`) with dynamic in-memory unsealing.
65- **Apple Silicon (macOS)**: Implemented via Secure Enclave and hardware-backed Keychain APIs.
66- **Air-Gapped & Offline Hosts**: Implemented using local hardware silicon roots of trust with zero external network verification dependencies.