attck
Crate for working with MITRE ATT&CK matrices in Rust.
This crate includes the schema and data for each MITRE ATT&CK matrix.
Usage
// initialize the matrix once; this parses JSON so it can be expensive.
let enterprise = enterprise;
let threat = enterprise
.intrusion_sets
.find
.unwrap;
// For the example only look at the attack patterns whose IDs resolve in the collection.
// STIX data will not always be so clean, so the extra call to `resolve` enables graph
// traversal without panicking in those cases.
for pat in threat.uses_attack_patterns.filter_map