Skip to content

Commit

Permalink
add "elevation_required" attribute to test definition yaml (redcanary…
Browse files Browse the repository at this point in the history
…co#532)

* add elevation_required attribute to test definition yaml

* Update atomic_red_team/atomic_test_template.yaml

Co-Authored-By: Brian Beyer <[email protected]>

* Update atomics/T1089/T1089.yaml

Co-Authored-By: Brian Beyer <[email protected]>

* Update atomics/T1089/T1089.yaml

Co-Authored-By: Brian Beyer <[email protected]>
  • Loading branch information
clr2of8 and brianebeyer committed Aug 29, 2019
1 parent 5f460b5 commit 9f535f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atomic_red_team/atomic_doc_template.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ end.join(', ') %>
<% end -%>

<%- if test['executor']['name'] == 'manual' -%>
#### Run it with these steps!
#### Run it with these steps! <%- if test['executor']['elevation_required'] -%> Elevation Required (e.g. root or admin) <%- end -%>
<%= test['executor']['steps'] %>

<%- else -%>
#### Run it with `<%= test['executor']['name'] %>`!
#### Run it with `<%= test['executor']['name'] %>`! <%- if test['executor']['elevation_required'] -%> Elevation Required (e.g. root or admin) <%- end -%>
```
<%= test['executor']['command'].to_s.strip %>
```
Expand Down
1 change: 1 addition & 0 deletions atomic_red_team/atomic_test_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ atomic_tests:

executor:
name: command_prompt
elevation_required: true # indicates whether command must be run with admin privileges. If the elevation_required attribute is not defined, the value is assumed to be false
command: |
TODO
2 changes: 2 additions & 0 deletions atomics/T1089/T1089.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ atomic_tests:
default: SysmonDrv
executor:
name: command_prompt
elevation_required: true
command: |
fltmc.exe unload #{sysmon_driver}
Expand Down Expand Up @@ -136,5 +137,6 @@ atomic_tests:

executor:
name: command_prompt
elevation_required: true
command: |
sysmon -u

0 comments on commit 9f535f0

Please sign in to comment.