Loading Lion artifact…
Inspect Lion Program Source (JSON)
[
"begin",
[
"relation",
"infra_node",
[
"id",
"label",
"kind",
"exposure_note"
],
{
"certified": true,
"description": "Cloud architecture and IAM principals",
"key": [
"id"
]
}
],
[
"relation",
"svc_edge",
[
"from",
"to",
"rel"
],
{
"certified": true,
"references": {
"from": [
"infra_node",
"id"
],
"to": [
"infra_node",
"id"
]
}
}
],
[
"relation",
"iam_grant",
[
"principal",
"target",
"action"
],
{
"key": [
"principal",
"target",
"action"
]
}
],
[
"relation",
"ctrl",
[
"k",
"v"
],
{
"key": [
"k"
]
}
],
[
"fact",
[
"infra_node",
"edge_api",
"Edge Gateway",
"ingress",
"Receives 100% of paying checkout & webhook traffic ($480k/hr revenue)."
],
[
"infra_node",
"checkout_a",
"Checkout Pod A",
"service",
"Active-active checkout replica in us-east-1a."
],
[
"infra_node",
"checkout_b",
"Checkout Pod B",
"service",
"Active-active checkout replica in us-east-1b."
],
[
"infra_node",
"auth_token",
"Auth Token Svc",
"bottleneck",
"Shared signing service — both replicas depend on it (hidden SPOF!)."
],
[
"infra_node",
"ledger_db",
"Primary Ledger DB",
"datastore",
"Holds customer PII and financial settlement ledger ($4.88M breach impact)."
],
[
"infra_node",
"preview_bot",
"PR Preview Bot",
"untrusted",
"Runs untrusted external PR code in ephemeral sandboxes."
],
[
"infra_node",
"ci_role",
"CI Deploy Role",
"iam_role",
"Has cross-account KMS decrypt permission to seed staging migrations."
],
[
"svc_edge",
"edge_api",
"checkout_a",
"routes_to"
],
[
"svc_edge",
"edge_api",
"checkout_b",
"routes_to"
],
[
"svc_edge",
"checkout_a",
"auth_token",
"validates"
],
[
"svc_edge",
"checkout_b",
"auth_token",
"validates"
],
[
"svc_edge",
"auth_token",
"ledger_db",
"commits"
],
[
"iam_grant",
"preview_bot",
"ci_role",
"sts:AssumeRole"
],
[
"iam_grant",
"ci_role",
"ledger_db",
"kms:DecryptPII"
],
[
"ctrl",
"add_failover",
false
],
[
"ctrl",
"revoke_assume",
false
],
[
"ctrl",
"selected",
"auth_token"
]
],
[
"relation",
"can_reach_iam",
[
"src",
"dst"
]
],
[
"rule",
[
"can_reach_iam",
"?a",
"?b"
],
[
"iam_grant",
"?a",
"?b",
"?_act"
]
],
[
"rule",
[
"can_reach_iam",
"?a",
"?c"
],
[
"iam_grant",
"?a",
"?b",
"?_act"
],
[
"can_reach_iam",
"?b",
"?c"
]
],
[
"define",
"view",
[
"lambda",
[],
[
"begin",
[
"define",
"add_failover",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
[
"quote",
"add_failover"
],
"?v"
]
]
]
],
[
"define",
"revoke_assume",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
[
"quote",
"revoke_assume"
],
"?v"
]
]
]
],
[
"define",
"sel",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
"selected",
"?v"
]
]
]
],
[
"define",
"spofs",
[
"cond",
[
"add_failover",
[
"assuming",
[
"fact",
[
"svc_edge",
"checkout_b",
"ledger_db",
"failover_cache"
]
],
[
"find",
"?d",
[
"and",
[
"graph/dominators",
"svc_edge",
"edge_api",
"ledger_db",
"?d"
],
[
"not",
[
"=",
"?d",
"edge_api"
]
],
[
"not",
[
"=",
"?d",
"ledger_db"
]
]
]
]
]
],
[
"else",
[
"find",
"?d",
[
"and",
[
"graph/dominators",
"svc_edge",
"edge_api",
"ledger_db",
"?d"
],
[
"not",
[
"=",
"?d",
"edge_api"
]
],
[
"not",
[
"=",
"?d",
"ledger_db"
]
]
]
]
]
]
],
[
"define",
"iam_breach",
[
"cond",
[
"revoke_assume",
[
"assuming",
[
"retract",
[
"iam_grant",
"preview_bot",
"ci_role",
"sts:AssumeRole"
]
],
[
"find",
"?d",
[
"can_reach_iam",
"preview_bot",
"?d"
]
]
]
],
[
"else",
[
"find",
"?d",
[
"can_reach_iam",
"preview_bot",
"?d"
]
]
]
]
],
[
"define",
"has_spof",
[
"number/greaterThan",
[
"array/length",
"spofs"
],
0
]
],
[
"define",
"has_breach",
[
"number/greaterThan",
[
"array/length",
"iam_breach"
],
0
]
],
[
"define",
"sod_sat",
[
"proof/sat",
[
"cond",
[
"revoke_assume",
[
"quote",
[
"and",
"untrusted_pr",
[
"implies",
"untrusted_pr",
[
"not",
"can_assume_ci"
]
],
[
"implies",
"can_assume_ci",
"can_decrypt_pii"
],
[
"implies",
"can_decrypt_pii",
"can_assume_ci"
],
"can_decrypt_pii"
]
]
],
[
"else",
[
"quote",
[
"and",
"untrusted_pr",
[
"implies",
"untrusted_pr",
"can_assume_ci"
],
[
"implies",
"can_assume_ci",
"can_decrypt_pii"
],
"can_decrypt_pii"
]
]
]
]
]
],
[
"define",
"nodes",
[
"find",
{
"group": "?k",
"id": "?id",
"label": "?l",
"subtitle": "?k",
"tone": [
"cond",
[
[
"boolean/and",
"has_spof",
[
"=",
"?id",
"auth_token"
]
],
"error"
],
[
[
"boolean/and",
"has_breach",
[
"=",
"?id",
"preview_bot"
]
],
"error"
],
[
[
"boolean/and",
"has_breach",
[
"=",
"?id",
"ci_role"
]
],
"warn"
],
[
[
"=",
"?id",
"ledger_db"
],
"accent"
],
[
"else",
"ok"
]
]
},
[
"infra_node",
"?id",
"?l",
"?k",
"?_n"
]
]
],
[
"define",
"svc_edges",
[
"cond",
[
"add_failover",
[
"assuming",
[
"fact",
[
"svc_edge",
"checkout_b",
"ledger_db",
"failover_cache"
]
],
[
"find",
{
"from": "?a",
"label": "?r",
"to": "?b",
"tone": "ok"
},
[
"svc_edge",
"?a",
"?b",
"?r"
]
]
]
],
[
"else",
[
"find",
{
"from": "?a",
"label": "?r",
"to": "?b",
"tone": [
"cond",
[
[
"=",
"?b",
"auth_token"
],
"warn"
],
[
"else",
"ok"
]
]
},
[
"svc_edge",
"?a",
"?b",
"?r"
]
]
]
]
],
[
"define",
"iam_edges",
[
"cond",
[
"revoke_assume",
[
"assuming",
[
"retract",
[
"iam_grant",
"preview_bot",
"ci_role",
"sts:AssumeRole"
]
],
[
"find",
{
"from": "?a",
"label": "?act",
"to": "?b",
"tone": "ok"
},
[
"iam_grant",
"?a",
"?b",
"?act"
]
]
]
],
[
"else",
[
"find",
{
"from": "?a",
"label": "?act",
"to": "?b",
"tone": "error"
},
[
"iam_grant",
"?a",
"?b",
"?act"
]
]
]
]
],
[
"define",
"all_edges",
[
"array/concat",
"svc_edges",
"iam_edges"
]
],
[
"define",
"sel_info",
[
"array/head",
[
"find",
{
"kind": "?k",
"label": "?l",
"note": "?n"
},
[
"infra_node",
"sel",
"?l",
"?k",
"?n"
]
]
]
],
[
"define",
"why_breach",
[
"why",
[
"can_reach_iam",
"preview_bot",
"ledger_db"
]
]
],
[
"ui/stack",
{
"gap": "lg"
},
[
"ui/hero",
{
"badges": [
"quote",
[
{
"label": "graph/dominators SPOF",
"tone": "accent"
},
{
"label": "CDCL SAT RUP Proof",
"tone": "ok"
},
{
"label": "Zero-Trust IAM",
"tone": "ok"
}
]
],
"eyebrow": "Lion-Only Proof 02 · Cloud Reliability & Security",
"subtitle": "Two invisible risks cost enterprises millions: hidden Single Points of Failure inside 'redundant' topologies, and transitive IAM privilege escalation chains. Lion proves both mathematically — and verifies your fixes with a RUP SAT certificate.",
"title": "Zero-Trust IAM & Single-Point-of-Failure Auditor"
}
],
[
"ui/grid",
{
"cols": 4,
"gap": "md"
},
[
"ui/metric",
{
"caption": [
"cond",
[
"has_spof",
"auth_token dominates 100% of traffic"
],
[
"else",
"No single node breaks checkout -> DB"
]
],
"label": "Hidden SPOF Bottlenecks",
"tone": [
"cond",
[
"has_spof",
"error"
],
[
"else",
"ok"
]
],
"value": [
"array/length",
"spofs"
]
}
],
[
"ui/metric",
{
"caption": [
"cond",
[
"has_breach",
"PR Preview Bot can decrypt Prod PII"
],
[
"else",
"Zero transitive path to Prod PII"
]
],
"label": "IAM Escalation Paths",
"tone": [
"cond",
[
"has_breach",
"error"
],
[
"else",
"ok"
]
],
"value": [
"cond",
[
"has_breach",
"1 CRITICAL"
],
[
"else",
"0 SAFE"
]
]
}
],
[
"ui/metric",
{
"caption": "Estimated 1-hr Tier-1 outage exposure",
"label": "Outage Risk ($/hr)",
"tone": [
"cond",
[
"has_spof",
"warn"
],
[
"else",
"ok"
]
],
"value": [
"cond",
[
"has_spof",
"$480k/hr"
],
[
"else",
"$0"
]
]
}
],
[
"ui/metric",
{
"caption": "CDCL SAT Zero-Trust isolation proof",
"label": "SAT Policy Seal",
"tone": [
"cond",
[
"has_breach",
"error"
],
[
"else",
"ok"
]
],
"value": [
"cond",
[
"has_breach",
"EXPLOITABLE"
],
[
"else",
"UNSAT VERIFIED"
]
]
}
]
],
[
"ui/section",
{
"badge": [
"cond",
[
[
"boolean/and",
[
"boolean/not",
"has_spof"
],
[
"boolean/not",
"has_breach"
]
],
"100% Hardened"
],
[
"else",
"Active Exposure"
]
],
"step": "01",
"subtitle": "Toggle either remediation to run counterfactual assuming updates. Watch graph/dominators eliminate the SPOF and CDCL SAT emit a kernel-verified RUP UNSAT proof.",
"title": "Counterfactual Architecture & IAM Remediations",
"tone": [
"cond",
[
[
"boolean/and",
[
"boolean/not",
"has_spof"
],
[
"boolean/not",
"has_breach"
]
],
"ok"
],
[
"else",
"error"
]
]
},
[
"ui/card",
[
"ui/grid",
{
"cols": 2,
"gap": "md"
},
[
"ui/toggle",
{
"checked": "add_failover",
"label": "Remediation A: Add direct Checkout Pod B -> Ledger failover cache (eliminates SPOF)",
"onChange": [
"quote",
[
"fact",
[
"ctrl",
"add_failover",
"value"
]
]
]
}
],
[
"ui/toggle",
{
"checked": "revoke_assume",
"label": "Remediation B: Revoke sts:AssumeRole from PR Preview Bot -> CI Role (closes PII breach)",
"onChange": [
"quote",
[
"fact",
[
"ctrl",
"revoke_assume",
"value"
]
]
]
}
]
]
],
[
"ui/graph",
{
"edges": "all_edges",
"height": 270,
"layout": "layered",
"nodes": "nodes",
"onSelect": [
"quote",
[
"fact",
[
"ctrl",
"selected",
"value"
]
]
],
"selected": "sel",
"title": "Combined Service Topology & IAM Privilege Graph (click any node)"
}
]
],
[
"ui/section",
{
"step": "02",
"subtitle": "Inspect the selected cloud component alongside the kernel-verified CDCL SAT proof and transitive attack derivation.",
"title": "Focused Asset & Cryptographic Security Proof"
},
[
"ui/split",
{
"gap": "md",
"ratio": "1:1"
},
[
"ui/card",
{
"subtitle": [
"object/get",
"sel_info",
"note"
],
"title": [
"object/get",
"sel_info",
"label"
]
},
[
"ui/kv",
{
"columns": 2,
"items": [
"array/make",
{
"label": "Asset ID",
"mono": true,
"value": "sel"
},
{
"label": "Role",
"value": [
"object/get",
"sel_info",
"kind"
]
},
{
"label": "Dominator SPOFs",
"value": [
"array/length",
"spofs"
]
},
{
"label": "PII Reachability",
"value": [
"cond",
[
"has_breach",
"Exposed via ci_role"
],
[
"else",
"Isolated"
]
]
}
]
}
]
],
[
"ui/proof",
{
"summary": [
"cond",
[
"has_breach",
"SAT found an assignment where untrusted_pr reaches can_decrypt_pii."
],
[
"else",
"Kernel-verified RUP UNSAT proof: no execution path allows untrusted PRs to decrypt Prod PII."
]
],
"title": "Zero-Trust PII Isolation (proof/sat)",
"valid": [
"cond",
[
"has_breach",
false
],
[
"else",
[
"proof/valid?",
[
"object/get",
"sod_sat",
"proof"
]
]
]
]
},
"sod_sat"
]
],
[
"ui/accordion",
{
"badge": "why(breach)",
"open": false,
"subtitle": "Transitive Datalog proof trace from PR Preview Bot to Primary Ledger DB",
"title": "Inspect Transitive IAM Attack Chain"
},
[
"ui/why",
{
"title": "IAM Escalation Derivation"
},
"why_breach"
]
]
]
]
]
],
{
"persist": true
}
],
[
"view"
]
]