---
title: "Security and threat model facet"
url: https://afflom.github.io/prism-devrel/facets/security/
diataxis: explanation
developer-journey: learn
---

# Security and threat model facet

> What this facet holds and the standard it follows. Then how each case study uses it.

**Figure: Security and threat model records by case study.** How many security and threat model records each case study declares, one bar for each.

| | Count |
| --- | --- |
| UORust | 108 |
| Prism-DevRel | 49 |
| Rule 30 | 20 |
| Verdant Resonance | 0 |
| Foundry | 0 |

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](https://github.com/UOR-Foundation/prismpm/blob/15f630aa6deec5d6490ac22e222381fa28d6f17d/SPEC.md#23-threat-models).

- A risk joins one asset and one threat with a likelihood and an impact.
- A control answers a risk; its evidence is a gate, a proof or a review.
- An accepted risk states why it is accepted, so it cannot be read as mitigated.

The facet follows [ISO/IEC 27034 and ISO/IEC 27005](https://github.com/UOR-Foundation/prismpm/blob/15f630aa6deec5d6490ac22e222381fa28d6f17d/SPEC.md#23-threat-models). [The facets of a Prism app](https://afflom.github.io/prism-devrel/facets/) lists every facet beside this one.

## How the case studies declare it

For each case study, its records of this facet by kind. The first record of each kind links to where the case study teaches it.

### UORust

UORust declares 108 records of 12 kinds. [Security and threat model](https://afflom.github.io/prism-devrel/case-studies/uorust/security/) teaches them.

| Kind | Records | First record |
| --- | --- | --- |
| AcceptedRisk | 1 | [`Security::acceptedPagesHostSubstitution`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-acceptedPagesHostSubstitution) |
| ApplicationSecurityControl | 13 | [`Security::controlArtifactClosure`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-controlArtifactClosure) |
| Asset | 6 | [`Security::assetCi`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-assetCi) |
| ControlSet | 1 | [`Security::threatModelControlSet`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-threatModelControlSet) |
| ModeledAsset | 6 | [`Security::modeledAssetCi`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-modeledAssetCi) |
| ModeledControl | 13 | [`Security::modeledControlArtifactClosure`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-modeledControlArtifactClosure) |
| ModeledThreat | 11 | [`Security::modeledThreatBuildScriptExecution`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-modeledThreatBuildScriptExecution) |
| Risk | 11 | [`Security::riskBuildScriptExecution`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-riskBuildScriptExecution) |
| SecurityActivity | 13 | [`Security::activityArtifactClosure`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-activityArtifactClosure) |
| Threat | 11 | [`Security::threatBuildScriptExecution`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-threatBuildScriptExecution) |
| ThreatMapping | 10 | [`Security::mappingBuildScriptExecution`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-mappingBuildScriptExecution) |
| VerificationMeasurement | 12 | [`Security::measurementArtifactClosure`](https://afflom.github.io/prism-devrel/case-studies/uorust/security/#Security-measurementArtifactClosure) |

### Prism-DevRel

Prism-DevRel declares 49 records of 10 kinds. [Security and threat model](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/) teaches them.

| Kind | Records | First record |
| --- | --- | --- |
| AcceptedRisk | 1 | [`Security::acceptedHostSubstitution`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-acceptedHostSubstitution) |
| ApplicationSecurityControl | 6 | [`Security::controlCoverageTheorems`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-controlCoverageTheorems) |
| Asset | 4 | [`Security::assetCatalogData`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-assetCatalogData) |
| ControlSet | 1 | [`Security::controlSet`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-controlSet) |
| ModeledAsset | 4 | [`Security::modeledAssetCatalogData`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-modeledAssetCatalogData) |
| ModeledControl | 6 | [`Security::modeledControlCoverageTheorems`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-modeledControlCoverageTheorems) |
| ModeledThreat | 7 | [`Security::modeledThreatAgentInstructionInjection`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-modeledThreatAgentInstructionInjection) |
| Risk | 7 | [`Security::riskAgentInstructionInjection`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-riskAgentInstructionInjection) |
| Threat | 7 | [`Security::threatAgentInstructionInjection`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-threatAgentInstructionInjection) |
| ThreatMapping | 6 | [`Security::mappingAgentInstructionInjection`](https://afflom.github.io/prism-devrel/case-studies/prism-devrel/security/#Security-mappingAgentInstructionInjection) |

### Rule 30

Rule 30 declares 20 records of 5 kinds. [Security and threat model](https://afflom.github.io/prism-devrel/case-studies/rule30/security/) teaches them.

| Kind | Records | First record |
| --- | --- | --- |
| ApplicationSecurityControl | 4 | [`ResearchArchitecture::kernelAndRegisterGate`](https://afflom.github.io/prism-devrel/case-studies/rule30/security/#ResearchArchitecture-kernelAndRegisterGate) |
| Asset | 4 | [`ResearchArchitecture::attemptAsset`](https://afflom.github.io/prism-devrel/case-studies/rule30/security/#ResearchArchitecture-attemptAsset) |
| Risk | 4 | [`ResearchArchitecture::forgedOriginRisk`](https://afflom.github.io/prism-devrel/case-studies/rule30/security/#ResearchArchitecture-forgedOriginRisk) |
| SecurityActivity | 4 | [`ResearchArchitecture::kernelAndRegisterGateActivity`](https://afflom.github.io/prism-devrel/case-studies/rule30/security/#ResearchArchitecture-kernelAndRegisterGateActivity) |
| Threat | 4 | [`ResearchArchitecture::forgedOrigin`](https://afflom.github.io/prism-devrel/case-studies/rule30/security/#ResearchArchitecture-forgedOrigin) |

### Verdant Resonance

Verdant Resonance declares no record of this facet.

### Foundry

Foundry declares no record of this facet.

