Skip to content

Commit

Permalink
Generate docs from job=validate_atomics_generate_docs branch=master
Browse files Browse the repository at this point in the history
  • Loading branch information
CircleCI Atomic Red Team doc generator committed Sep 15, 2020
1 parent 7b90e89 commit 00948b0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
36 changes: 30 additions & 6 deletions atomics/Indexes/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,10 @@ privilege-escalation:
default: "/tmp/persistevil"
executor:
name: bash
command: 'echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
command: |
crontab -l > /tmp/notevil
echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
cleanup_command: 'crontab /tmp/notevil

'
- name: Cron - Add script to cron folder
Expand All @@ -2116,7 +2119,12 @@ privilege-escalation:
executor:
elevation_required: true
name: bash
command: echo "#{command}" > /etc/cron.daily/#{cron_script_name}
command: 'echo "#{command}" > /etc/cron.daily/#{cron_script_name}

'
cleanup_command: 'rm /etc/cron.daily/#{cron_script_name}

'
T1574.001:
technique:
created: '2020-03-13T18:11:08.357Z'
Expand Down Expand Up @@ -10652,7 +10660,10 @@ persistence:
default: "/tmp/persistevil"
executor:
name: bash
command: 'echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
command: |
crontab -l > /tmp/notevil
echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
cleanup_command: 'crontab /tmp/notevil

'
- name: Cron - Add script to cron folder
Expand All @@ -10677,7 +10688,12 @@ persistence:
executor:
elevation_required: true
name: bash
command: echo "#{command}" > /etc/cron.daily/#{cron_script_name}
command: 'echo "#{command}" > /etc/cron.daily/#{cron_script_name}

'
cleanup_command: 'rm /etc/cron.daily/#{cron_script_name}

'
T1574.001:
technique:
created: '2020-03-13T18:11:08.357Z'
Expand Down Expand Up @@ -41898,7 +41914,10 @@ execution:
default: "/tmp/persistevil"
executor:
name: bash
command: 'echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
command: |
crontab -l > /tmp/notevil
echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
cleanup_command: 'crontab /tmp/notevil

'
- name: Cron - Add script to cron folder
Expand All @@ -41923,7 +41942,12 @@ execution:
executor:
elevation_required: true
name: bash
command: echo "#{command}" > /etc/cron.daily/#{cron_script_name}
command: 'echo "#{command}" > /etc/cron.daily/#{cron_script_name}

'
cleanup_command: 'rm /etc/cron.daily/#{cron_script_name}

'
T1559.002:
technique:
created: '2020-02-12T14:10:50.699Z'
Expand Down
9 changes: 9 additions & 0 deletions atomics/T1053.003/T1053.003.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ This test replaces the current user's crontab file with the contents of the refe


```bash
crontab -l > /tmp/notevil
echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
```

#### Cleanup Commands:
```bash
crontab /tmp/notevil
```



Expand Down Expand Up @@ -65,6 +70,10 @@ This test adds a script to a cron folder configured to execute on a schedule. Th
echo "#{command}" > /etc/cron.daily/#{cron_script_name}
```

#### Cleanup Commands:
```bash
rm /etc/cron.daily/#{cron_script_name}
```



Expand Down

0 comments on commit 00948b0

Please sign in to comment.