Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/OpenShell
/ attack
Method
attack
crates/openshell-ocsf/src/builders/finding.rs:100–103 ·
view source on GitHub ↗
(mut self, attack: Attack)
Source
from the content-addressed store, hash-verified
98
/// Add a MITRE ATT&CK mapping.
99
#[must_use]
100
pub fn attack(mut self, attack: Attack) -> Self {
101
self.attacks.push(attack);
102
self
103
}
104
105
#[must_use]
106
pub fn build(self) -> OcsfEvent {
Callers
1
test_detection_finding_builder
Function · 0.80
Calls
1
push
Method · 0.80
Tested by
1
test_detection_finding_builder
Function · 0.64