code wiki / (root) / nx_security_census.nx

nx_security_census.nx

buildroot/runtime/nx_security_census.nx

12188 B115 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic security
docsdependenciesstructsconstsfunctions

about

nx_security_census.nx -- HONEST measure of the ecosystem's SECURITY coverage across the four surfaces a serious adversary actually works: OVER THE WIRE (transport/auth/crypto), IN THE NETWORK (host/lateral/ tenancy), ON THE DEVICE (firmware/boot/supply), and THE AGENTS (the surface unique to an AI-operated substrate). For each control: HAVE iff a real sovereign organ opens on disk (existence != correctness -> the per-organ gate is the ratchet); GAP = a ranked target the growth loop must BUILD = the roadmap. The headline number is the WEAKEST-LINK coverage_permil (critical controls, marked *, weigh 3x): a missing CRITICAL control -- e.g. PQ built-but-UNWIRED, or the host NOT isolated -- drags the grade, because a primitive that does not defend the LIVE path is not coverage. That number is written to the durable log and the ecosystem-maturity rollup live-derives the `security` domain grade from it (measured, never asserted). Sibling of nx_adversarial_census (adversarial-VERIFICATION coverage); this is attack-SURFACE coverage. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_security_census_lib.nx nx_gate.nx nx_security_census.nx

imports: nx_security_census_lib.nxnx_gate.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gw sys_write sc_ax sc_have sys_openat_rd sys_close sc_weight gw ↻ sc_surf_name sc_permil gn sys_write ↻ sys_mmap sys_openat_append sw sn sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real

structs

none

consts

none

functions

18func sw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main
19func sn(fd: i64, v: i64) -> i64
called by 1: main
31func sc_ax(label: *u8, path: *u8, surf: i64, crit: i64, note: *u8, have: *i64, tot: *i64, cwh: *i64, cwt: *i64) -> i64
called by 1: main calls 4: sc_havesc_weightgwsc_surf_name
43func main() -> i64