acceptedPagesHostSubstitution
The page cannot defend against its own host. A user who needs more can build the route table from the tagged source with prismpm verify and compare.
Taught by Security and threat model, Slides and video script
Overview
Case studiesUORust
How UORust was modeledArchitecture walkthroughDesign views in OPM and UMLFeatures and journeysSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsSystem and releaseExtension facetsCommand referenceSlides and video scriptRecord explorerllms.txt and Markdown twinsPrism-DevRel
How Prism-DevRel was modeledArchitecture walkthroughDesign views in OPM and UMLFeatures and journeysSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsExtension facetsSlides and video scriptRecord explorerllms.txt and Markdown twinsRule 30
How Rule 30 was modeledArchitecture walkthroughSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsSlides and video scriptRecord explorerllms.txt and Markdown twins// case study · UORust
The assets of UORust, its threats, risks and controls, and the risks it accepts on purpose.
Subject: UORust at commit afd5cea950a8, 331 facet records, source digest f3f743b6834adaff.
The security facet holds ISO/IEC 27034 and ISO/IEC 27005 records: assets, threats, risks and controls. Its Production.ThreatModel rows give them names, STRIDE categories and evidence. Once any row is present, the SDK checks three things. Every threat has a control or an accepted risk (PP2019). Every control has evidence (PP2020). Every threat has a category (PP2021). See PrismPM SPEC section 2.3.
Security and threat model facet explains the facet for every Prism model, with the counts of every case study.
| Index | Record | Kind | Name |
|---|---|---|---|
| 215 | Security::acceptedPagesHostSubstitution | AcceptedRisk | acceptedPagesHostSubstitution |
| 216 | Security::activityArtifactClosure | SecurityActivity | activityArtifactClosure |
| 217 | Security::activityBoundedIngest | SecurityActivity | activityBoundedIngest |
| 218 | Security::activityCargoDeny | SecurityActivity | activityCargoDeny |
| 219 | Security::activityConfinedOutput | SecurityActivity | activityConfinedOutput |
| 220 | Security::activityDeterministicOutput | SecurityActivity | activityDeterministicOutput |
| 221 | Security::activityForbidUnsafe | SecurityActivity | activityForbidUnsafe |
| 222 | Security::activityLockedBuild | SecurityActivity | activityLockedBuild |
| 223 | Security::activityNoBuildExecution | SecurityActivity | activityNoBuildExecution |
| 224 | Security::activityOffline | SecurityActivity | activityOffline |
| 225 | Security::activityPinnedWorkflows | SecurityActivity | activityPinnedWorkflows |
| 226 | Security::activityRouterConformance | SecurityActivity | activityRouterConformance |
| 227 | Security::activityTypedRefusal | SecurityActivity | activityTypedRefusal |
| 228 | Security::activityVerifiedRouteTable | SecurityActivity | activityVerifiedRouteTable |
| 229 | Security::assetCi | Asset | assetCi |
| 230 | Security::assetEmittedModel | Asset | assetEmittedModel |
| 231 | Security::assetPagesSite | Asset | assetPagesSite |
| 232 | Security::assetReleaseBinary | Asset | assetReleaseBinary |
| 233 | Security::assetSubjectSource | Asset | assetSubjectSource |
| 234 | Security::assetSupplyChain | Asset | assetSupplyChain |
| 235 | Security::controlArtifactClosure | ApplicationSecurityControl | controlArtifactClosure |
| 236 | Security::controlBoundedIngest | ApplicationSecurityControl | controlBoundedIngest |
| 237 | Security::controlCargoDeny | ApplicationSecurityControl | controlCargoDeny |
| 238 | Security::controlConfinedOutput | ApplicationSecurityControl | controlConfinedOutput |
| 239 | Security::controlDeterministicOutput | ApplicationSecurityControl | controlDeterministicOutput |
| 240 | Security::controlForbidUnsafe | ApplicationSecurityControl | controlForbidUnsafe |
| 241 | Security::controlLockedBuild | ApplicationSecurityControl | controlLockedBuild |
| 242 | Security::controlNoBuildExecution | ApplicationSecurityControl | controlNoBuildExecution |
| 243 | Security::controlOffline | ApplicationSecurityControl | controlOffline |
| 244 | Security::controlPinnedWorkflows | ApplicationSecurityControl | controlPinnedWorkflows |
| 245 | Security::controlRouterConformance | ApplicationSecurityControl | controlRouterConformance |
| 246 | Security::controlTypedRefusal | ApplicationSecurityControl | controlTypedRefusal |
| 247 | Security::controlVerifiedRouteTable | ApplicationSecurityControl | controlVerifiedRouteTable |
| 248 | Security::mappingBuildScriptExecution | ThreatMapping | mappingBuildScriptExecution |
| 249 | Security::mappingCraftedSourceExhaustion | ThreatMapping | mappingCraftedSourceExhaustion |
| 250 | Security::mappingDependencyCompromise | ThreatMapping | mappingDependencyCompromise |
| 251 | Security::mappingDisputedProjection | ThreatMapping | mappingDisputedProjection |
| 252 | Security::mappingMisroutedFact | ThreatMapping | mappingMisroutedFact |
| 253 | Security::mappingPathEscape | ThreatMapping | mappingPathEscape |
| 254 | Security::mappingSourceExfiltration | ThreatMapping | mappingSourceExfiltration |
| 255 | Security::mappingTamperedPages | ThreatMapping | mappingTamperedPages |
| 256 | Security::mappingUnsafeMemory | ThreatMapping | mappingUnsafeMemory |
| 257 | Security::mappingWorkflowTokenAbuse | ThreatMapping | mappingWorkflowTokenAbuse |
| 258 | Security::measurementArtifactClosure | VerificationMeasurement | measurementArtifactClosure |
| 259 | Security::measurementBoundedIngest | VerificationMeasurement | measurementBoundedIngest |
| 260 | Security::measurementCargoDeny | VerificationMeasurement | measurementCargoDeny |
| 261 | Security::measurementDeterministicOutput | VerificationMeasurement | measurementDeterministicOutput |
| 262 | Security::measurementForbidUnsafe | VerificationMeasurement | measurementForbidUnsafe |
| 263 | Security::measurementLockedBuild | VerificationMeasurement | measurementLockedBuild |
| 264 | Security::measurementNoBuildExecution | VerificationMeasurement | measurementNoBuildExecution |
| 265 | Security::measurementOffline | VerificationMeasurement | measurementOffline |
| 266 | Security::measurementPinnedWorkflows | VerificationMeasurement | measurementPinnedWorkflows |
| 267 | Security::measurementRouterConformance | VerificationMeasurement | measurementRouterConformance |
| 268 | Security::measurementTypedRefusal | VerificationMeasurement | measurementTypedRefusal |
| 269 | Security::measurementVerifiedRouteTable | VerificationMeasurement | measurementVerifiedRouteTable |
| 270 | Security::modeledAssetCi | ModeledAsset | CI pipeline |
| 271 | Security::modeledAssetEmittedModel | ModeledAsset | Emitted Prism model |
| 272 | Security::modeledAssetPagesSite | ModeledAsset | Pages site |
| 273 | Security::modeledAssetReleaseBinary | ModeledAsset | Release binary |
| 274 | Security::modeledAssetSubjectSource | ModeledAsset | Subject source code |
| 275 | Security::modeledAssetSupplyChain | ModeledAsset | Supply chain |
| 276 | Security::modeledControlArtifactClosure | ModeledControl | Artifact closure |
| 277 | Security::modeledControlBoundedIngest | ModeledControl | Bounded ingest |
| 278 | Security::modeledControlCargoDeny | ModeledControl | Dependency policy |
| 279 | Security::modeledControlConfinedOutput | ModeledControl | Confined output |
| 280 | Security::modeledControlDeterministicOutput | ModeledControl | Deterministic output |
| 281 | Security::modeledControlForbidUnsafe | ModeledControl | No unsafe code |
| 282 | Security::modeledControlLockedBuild | ModeledControl | Locked build |
| 283 | Security::modeledControlNoBuildExecution | ModeledControl | No build of the subject but its MIR dump |
| 284 | Security::modeledControlOffline | ModeledControl | No network |
| 285 | Security::modeledControlPinnedWorkflows | ModeledControl | Pinned workflows |
| 286 | Security::modeledControlRouterConformance | ModeledControl | Router conformance |
| 287 | Security::modeledControlTypedRefusal | ModeledControl | Typed refusal |
| 288 | Security::modeledControlVerifiedRouteTable | ModeledControl | Verified route table |
| 289 | Security::modeledThreatBuildScriptExecution | ModeledThreat | Code execution from the subject |
| 290 | Security::modeledThreatCraftedSourceExhaustion | ModeledThreat | Crafted source exhausting uorust |
| 291 | Security::modeledThreatDependencyCompromise | ModeledThreat | Compromised dependency |
| 292 | Security::modeledThreatDisputedProjection | ModeledThreat | Disputed projection |
| 293 | Security::modeledThreatMisroutedFact | ModeledThreat | Misrouted fact |
| 294 | Security::modeledThreatPagesHostSubstitution | ModeledThreat | Compromised Pages host |
| 295 | Security::modeledThreatPathEscape | ModeledThreat | Write outside the output directory |
| 296 | Security::modeledThreatSourceExfiltration | ModeledThreat | Source exfiltration |
| 297 | Security::modeledThreatTamperedPages | ModeledThreat | Tampered Pages artifact |
| 298 | Security::modeledThreatUnsafeMemory | ModeledThreat | Memory corruption |
| 299 | Security::modeledThreatWorkflowTokenAbuse | ModeledThreat | Workflow token abuse |
| 300 | Security::riskBuildScriptExecution | Risk | riskBuildScriptExecution |
| 301 | Security::riskCraftedSourceExhaustion | Risk | riskCraftedSourceExhaustion |
| 302 | Security::riskDependencyCompromise | Risk | riskDependencyCompromise |
| 303 | Security::riskDisputedProjection | Risk | riskDisputedProjection |
| 304 | Security::riskMisroutedFact | Risk | riskMisroutedFact |
| 305 | Security::riskPagesHostSubstitution | Risk | riskPagesHostSubstitution |
| 306 | Security::riskPathEscape | Risk | riskPathEscape |
| 307 | Security::riskSourceExfiltration | Risk | riskSourceExfiltration |
| 308 | Security::riskTamperedPages | Risk | riskTamperedPages |
| 309 | Security::riskUnsafeMemory | Risk | riskUnsafeMemory |
| 310 | Security::riskWorkflowTokenAbuse | Risk | riskWorkflowTokenAbuse |
| 311 | Security::threatBuildScriptExecution | Threat | threatBuildScriptExecution |
| 312 | Security::threatCraftedSourceExhaustion | Threat | threatCraftedSourceExhaustion |
| 313 | Security::threatDependencyCompromise | Threat | threatDependencyCompromise |
| 314 | Security::threatDisputedProjection | Threat | threatDisputedProjection |
| 315 | Security::threatMisroutedFact | Threat | threatMisroutedFact |
| 316 | Security::threatModelControlSet | ControlSet | UORust security controls |
| 317 | Security::threatPagesHostSubstitution | Threat | threatPagesHostSubstitution |
| 318 | Security::threatPathEscape | Threat | threatPathEscape |
| 319 | Security::threatSourceExfiltration | Threat | threatSourceExfiltration |
| 320 | Security::threatTamperedPages | Threat | threatTamperedPages |
| 321 | Security::threatUnsafeMemory | Threat | threatUnsafeMemory |
| 322 | Security::threatWorkflowTokenAbuse | Threat | threatWorkflowTokenAbuse |
The page cannot defend against its own host. A user who needs more can build the route table from the tagged source with prismpm verify and compare.
Taught by Security and threat model, Slides and video script
08Taught by Security and threat model
11Taught by Security and threat model
22Taught by Security and threat model
36Taught by Security and threat model
43Taught by Security and threat model
59Taught by Security and threat model
62Taught by Security and threat model
70Taught by Security and threat model
87Taught by Security and threat model
910Taught by Security and threat model
104Taught by Security and threat model
114Taught by Security and threat model
124Taught by Security and threat model
05Taught by Security and threat model
14Taught by Security and threat model
27Taught by Security and threat model
32Taught by Security and threat model
413Taught by Security and threat model
53Taught by Security and threat model
uorust reads a Cargo workspace and writes a Prism project. It runs locally, builds nothing it reads, opens no network connection and writes only below its output directory.
0.1.12026-11-11T00:00:00ZTaught by Security and threat model
The GitHub Actions workflows that gate every push and deploy the Pages site.
Security::assetCiTaught by Security and threat model
The Prism project uorust writes. Reviewers trust it to state what the source does.
Taught by Security and threat model
The published page and the route-table guest it runs.
Taught by Security and threat model
The uorust binary developers download and run against their workspaces.
Taught by Security and threat model
The manifests, lock file and Rust sources uorust reads. They may be private and must not leave the machine.
Taught by Security and threat model
The locked crates uorust is built from, and the crates the subject workspace locks.
Taught by Security and threat model
prismpm verify replays the acceptance vectors in the built guest and checks the exact file closure of the browser artifact.
Security::controlArtifactClosure(ctor Production.ThreatModel::EvidenceKind.gate)prismpm --project app verifyTaught by Security and threat model
Every read is bounded in size and every walk in depth; a bound that is hit ends the run with a typed error.
Security::controlBoundedIngest(ctor Production.ThreatModel::EvidenceKind.gate)UE-06: Every way a run can end without a projection is a typed UorustError variant with a negative testTaught by Security and threat model
cargo deny refuses advisories, unknown registries, wildcard requirements and licenses outside Apache-2.0, MIT and Unicode-3.0.
Security::controlCargoDeny(ctor Production.ThreatModel::EvidenceKind.gate)just vv denyTaught by Security and threat model
The emitter writes only relative paths it generated itself, each checked to stay below the output directory.
Security::controlConfinedOutput(ctor Production.ThreatModel::EvidenceKind.review)crates/uorust/src/lib.rs:168 pub fn write(out: &Path, files: &BTreeMap<String, Vec<u8>>) -> Result<(), UorustError> {Taught by Security and threat model
Output is a pure function of the workspace and its commit time, written in a fixed order, so a dispute is settled by re-running uorust.
Security::controlDeterministicOutput(ctor Production.ThreatModel::EvidenceKind.gate)UE-02: Two projections of the same workspace are byte-identical, for the fixture and for this workspaceTaught by Security and threat model
#![forbid(unsafe_code)] in every uorust crate makes any unsafe block a compile error.
Security::controlForbidUnsafe(ctor Production.ThreatModel::EvidenceKind.gate)crates/uorust/src/main.rs:3 #crates/uorust/src/lib.rs:12 #![forbid(unsafe_code)]Taught by Security and threat model
Every build and test runs with --locked against the committed Cargo.lock.
Security::controlLockedBuild(ctor Production.ThreatModel::EvidenceKind.gate)just vv lint and test run cargo with --lockedTaught by Security and threat model
uorust project, check and prove read the workspace through cargo metadata and syn only and never compile the subject; uorust mir alone compiles it with cargo, running its build scripts and macros as any build of it does, to dump the MIR the lift translates, and it is run only on a workspace the reviewer would build.
Security::controlNoBuildExecution(ctor Production.ThreatModel::EvidenceKind.review)crates/uorust/src/ingest.rs:578 let parsed = match syn::parse_file(&text) {(ctor Production.ThreatModel::EvidenceKind.review)crates/uorust/src/mir/mod.rs:194 .env("RUSTC_BOOTSTRAP", "1")(ctor Production.ThreatModel::EvidenceKind.gate)UE-01: uorust projects the fixture workspace into exactly the committed Prism project, which lexlean fmt, lexlean lock and prismpm check acceptTaught by Security and threat model
uorust links no network client, and every cargo command it runs (cargo metadata, and the MIR dump's cargo clean and cargo rustc) runs with --offline against the subject's lock file.
Security::controlOffline(ctor Production.ThreatModel::EvidenceKind.gate)cargo deny check over Cargo.lock(ctor Production.ThreatModel::EvidenceKind.review)no line of crates/uorust/src names std::net outside a doc comment (checked by scripts/self-model/facets.py)Taught by Security and threat model
Workflows pin every action by commit, check out with persist-credentials false and are themselves pinned by template.lock.
Security::controlPinnedWorkflows(ctor Production.ThreatModel::EvidenceKind.gate)xtask audit-bootstrapTaught by Security and threat model
The Rust router replays every vector of model/routes.toml, the same vectors the verified guest replays.
Security::controlRouterConformance(ctor Production.ThreatModel::EvidenceKind.gate)UE-05: The engine's router equals model/routes.toml route for route and answers every router vector of that table exactlyTaught by Security and threat model
Admission never defaults: an ambiguous, unknown or incomplete fact becomes an open claim with its reason.
Security::controlTypedRefusal(ctor Production.ThreatModel::EvidenceKind.gate)UE-03: Admission refuses an ambiguous call, a feature without acceptance and a missing MSRV with typed refusals recorded as open claims, and emits no record for themTaught by Security and threat model
The route table is a LexLean function proved total and ambiguity-refusing by decide, and checked by the Lean kernel.
Security::controlVerifiedRouteTable(ctor Production.ThreatModel::EvidenceKind.proof)Routes::routeTableIsTotal(ctor Production.ThreatModel::EvidenceKind.proof)Routes::routeTableRefusesAmbiguity(ctor Production.ThreatModel::EvidenceKind.gate)prismpm --project app verifyTaught by Security and threat model
A build script or procedural macro in the subject workspace runs on the reviewer's machine while it is modeled.
Security::threatBuildScriptExecution(ctor Production.ThreatModel::Stride.elevationOfPrivilege)Taught by Security and threat model
A huge or deeply nested source file consumes memory or time until no model is written.
Security::threatCraftedSourceExhaustion(ctor Production.ThreatModel::Stride.denialOfService)Taught by Security and threat model
A crate uorust is built from is replaced by a malicious or vulnerable version.
Security::threatDependencyCompromise(ctor Production.ThreatModel::Stride.tampering)Taught by Security and threat model
A user disputes which model uorust produced for a given commit.
Security::threatDisputedProjection(ctor Production.ThreatModel::Stride.repudiation)Taught by Security and threat model
A fact becomes the wrong record, or an ambiguous fact is resolved by a default, so the model misstates the source.
Security::threatMisroutedFact(ctor Production.ThreatModel::Stride.tampering)Taught by Security and threat model
The host serves a self-consistent altered artifact whose digests match.
Security::threatPagesHostSubstitution(ctor Production.ThreatModel::Stride.spoofing)Taught by Security and threat model
A crafted crate name makes the emitter write outside the directory given by --out.
Security::threatPathEscape(ctor Production.ThreatModel::Stride.tampering)Taught by Security and threat model
uorust or one of its dependencies sends the subject's source to a third party.
Security::threatSourceExfiltration(ctor Production.ThreatModel::Stride.informationDisclosure)Taught by Security and threat model
The published page or guest is altered so it routes facts differently from the verified table.
Security::threatTamperedPages(ctor Production.ThreatModel::Stride.tampering)Taught by Security and threat model
Unsafe code in uorust corrupts memory while parsing hostile source.
Security::threatUnsafeMemory(ctor Production.ThreatModel::Stride.elevationOfPrivilege)Taught by Security and threat model
A third-party action or a persisted credential lets an attacker push or publish from CI.
Security::threatWorkflowTokenAbuse(ctor Production.ThreatModel::Stride.elevationOfPrivilege)Taught by Security and threat model
040(ctor Foundation.Sec::Likelihood.medium)(ctor Foundation.Sec::Impact.critical)Taught by Security and threat model
111(ctor Foundation.Sec::Likelihood.medium)(ctor Foundation.Sec::Impact.minor)Taught by Security and threat model
252(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.critical)Taught by Security and threat model
313(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.minor)Taught by Security and threat model
414(ctor Foundation.Sec::Likelihood.medium)(ctor Foundation.Sec::Impact.major)Taught by Security and threat model
525(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.major)Taught by Security and threat model
636(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.major)Taught by Security and threat model
747(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.critical)Taught by Security and threat model
828(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.major)Taught by Security and threat model
939(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.major)Taught by Security and threat model
10010(ctor Foundation.Sec::Likelihood.low)(ctor Foundation.Sec::Impact.major)Taught by Security and threat model
00Taught by Security and threat model
11Taught by Security and threat model
22Taught by Security and threat model
33Taught by Security and threat model
44Taught by Security and threat model
55Taught by Security and threat model
66Taught by Security and threat model
77Taught by Security and threat model
88Taught by Security and threat model
99Taught by Security and threat model
1010Taught by Security and threat model
1111Taught by Security and threat model
1212Taught by Security and threat model
0Taught by Security and threat model
1Taught by Security and threat model
2Taught by Security and threat model
3Taught by Security and threat model
4Taught by Security and threat model
5Taught by Security and threat model
6Taught by Security and threat model
7Taught by Security and threat model
8Taught by Security and threat model
9Taught by Security and threat model
10Taught by Security and threat model
Taught by Security and threat model
Taught by Security and threat model
Security::threatDependencyCompromiseTaught by Security and threat model
Taught by Security and threat model
Security::threatMisroutedFactTaught by Security and threat model
Taught by Security and threat model
Taught by Security and threat model
Taught by Security and threat model
Taught by Security and threat model
Taught by Security and threat model
00trueTaught by Security and threat model
11trueTaught by Security and threat model
22trueTaught by Security and threat model
34trueTaught by Security and threat model
45trueTaught by Security and threat model
56trueTaught by Security and threat model
67trueTaught by Security and threat model
78trueTaught by Security and threat model
89trueTaught by Security and threat model
910trueTaught by Security and threat model
1011trueTaught by Security and threat model
1112trueTaught by Security and threat model