validate_tactics: Validate Tactics strings against MITRE authoritative source

Description Usage Arguments Value Examples

View source: R/validate-tactics.R

Description

Validate Tactics strings against MITRE authoritative source

Usage

1
2
3
4
5
validate_tactics(
  tactics,
  matrix = c("enterprise", "mobile", "pre"),
  na_rm = TRUE
)

Arguments

tactics

a character vector of tactic strings to validate. This will be converted to lower-case, left/right spaces will be trimmed and internal spaces will be converted to a single -

matrix

which matrix to use when validating?

na_rm

remove NA's before comparing?

Value

TRUE if all tactics validate, otherwise FALSE with messages identifying the invalid tactics.

Examples

1
2
validate_tactics("persistence")
validate_tactics(c("persistence", "Persistence", "Persistance"))

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