validate_techniques: Validate Techniques strings against MITRE authoritative...

Description Usage Arguments Value Examples

View source: R/validate-techniques.R

Description

Validate Techniques strings against MITRE authoritative source

Usage

1
2
3
4
5
6
validate_techniques(
  techniques,
  matrix = c("enterprise", "mobile", "pre"),
  ignore_case = FALSE,
  na_rm = TRUE
)

Arguments

matrix

which matrix to use when validating?

ignore_case

if TRUE case will not be taken into account when comparing strings. Default is FALSE.

na_rm

remove NA's before comparing?

tactics

a character vector of tactic strings to validate.

Value

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

Examples

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

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