read_events: Read in ATT&CK events from a file

Description Usage Arguments Details Examples

View source: R/read-events.R

Description

This is a convenience wrapper for readr::read_csv() that sets up a contract to read in incident events with some pre-determined expectations. See Details for more information.

Usage

1
read_events(path, matrix = c("enterprise", "mobile", "pre"), ...)

Arguments

path

path to a CSV file that contains ATT&CK events. This will be path.expand()ed.

matrix

which matrix are the events associated with?

...

passed on to readr::read_csv()

Details

While sufficient metadata and helpers have been provided with this package to enable customized use of the ATT&CK matricies sometimes you just want to get stuff done quickly and for that we need to establish some ground rules.

This function defines and "incident event" record as something that contains the fields:

You can think of discovery_source & reporting_source this way: say the Windows Event Log captured the evidence of a failed (or successful) local admin logon event. It passes that on to your centralized logging facility and/or your SIEM. You can make discovery_source "Windows Event Log" and reporting_source whichever technology you used.

Any column not-present will be turned into NA. Columns not matching the above names will be removed from the object returned.

Examples

1
read_events(system.file("extdat/sample-incidents.csv.gz", package = "attckr"))

hrbrmstr/attckr documentation built on Aug. 13, 2020, 11:49 a.m.