MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / mitre

Method mitre

crates/openshell-ocsf/src/objects/attack.rs:42–58  ·  view source on GitHub ↗
(
        technique_uid: &str,
        technique_name: &str,
        tactic_uid: &str,
        tactic_name: &str,
    )

Source from the content-addressed store, hash-verified

40 /// Create a MITRE ATT&CK mapping with technique and tactic.
41 #[must_use]
42 pub fn mitre(
43 technique_uid: &str,
44 technique_name: &str,
45 tactic_uid: &str,
46 tactic_name: &str,
47 ) -> Self {
48 Self {
49 technique: Technique {
50 uid: technique_uid.to_string(),
51 name: technique_name.to_string(),
52 },
53 tactic: Some(Tactic {
54 uid: tactic_uid.to_string(),
55 name: tactic_name.to_string(),
56 }),
57 }
58 }
59}
60
61#[cfg(test)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected