Expand description
§use-threat
Threat modeling and threat-category primitives for RustUse.
§Experimental
use-threat is experimental while the use-security workspace remains below 0.3.0. Expect small API adjustments during the first release wave.
§Example
use use_threat::{ThreatActorKind, ThreatCategory, ThreatId, ThreatScenario};
let scenario = ThreatScenario::new(
ThreatId::new("T-1")?,
ThreatCategory::Spoofing,
ThreatActorKind::External,
);
assert_eq!(scenario.category().as_str(), "spoofing");§Scope
- Threat IDs, actor kinds, categories, capabilities, intents, surfaces, models, and scenarios.
- STRIDE-style labels and local metadata helpers.
§Non-goals
- MITRE ATT&CK mapping.
- Attack simulation.
- Detection engineering, SIEM behavior, or threat intelligence feeds.
§License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license
Structs§
- Threat
Id - Threat
Scenario - A compact threat scenario metadata record.
- Threat
Surface
Enums§
- Threat
Actor Kind - Threat actor labels.
- Threat
Capability - Threat capability labels.
- Threat
Category - Threat category labels.
- Threat
Error - Error returned when threat metadata is invalid.
- Threat
Intent - Threat intent labels.
- Threat
Model Kind - Threat model kind labels.