code wiki / (root) / nx_redteam.nx

nx_redteam.nx

buildroot/runtime/nx_redteam.nx

5180 B84 linesdepth 9pulls 25 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_redteam.nx -- automated RED-TEAM attack playbooks (census gap) driven over R0's ta_handle. Each attack asserts the SECURE outcome (blocked / escaped / no-crash); a SURVIVED attack reds. Complements the invoke gate by adding the hostile-INPUT classes: JSON injection via registry data, auth-bypass, malformed-body robustness, unknown-method. (In-process today; a LIVE-edge playbook over nishifamily.com is the ratchet once tools/call deploys.) license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_tools_api.nx nx_gate.nx nx_redteam.nx

imports: nx_tools_api.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 ta_slen tool_register_pfx tr_cat tr_tab reg_put reg_put_x sts_lock sts_mm sys_mmap sts_werr sys_exit ss_cat sys_openat_append sts_werr ↻ sys_flock reg_key reg_cat ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_scan_seglist reg_strlen reg_id_present sts_unlock sys_flock ↻ sys_close ss_next_segid sys_mmap ↻ ss_cat ↻ ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻

structs

none

consts

7const K_MAGIC_1048576: i64 = 1048576
8const K_MAGIC_4096: i64 = 4096

functions

10func rt_has(o: *u8, n: i64, ndl: *u8) -> i64 { if ta_indexof(o, n, ndl) >= 0 { return 1 } return 0 }
called by 1: main calls 1: ta_indexof
11func rt_mark(cond: i64, p: *i64, t: *i64, lbl: *u8) -> i64
called by 1: main calls 1: gw
18func rt_req(cap: *u8, caplen: i64, jbody: *u8, jblen: i64, out: *u8) -> i64
called by 1: main calls 2: ta_catta_catb
26func rt_callbody(name: *u8, buf: *u8) -> i64
called by 1: main calls 1: ta_cat
33func main() -> i64