Files
atomic-red-team/atomics/T1156/T1156.yaml
T

37 lines
876 B
YAML

---
attack_technique: T1156
display_name: .bash_profile and .bashrc
atomic_tests:
- name: Add command to .bash_profile
description: |
Adds a command to the .bash_profile file of the current user
supported_platforms:
- macos
- linux
input_arguments:
command_to_add:
description: Command to add to the .bash_profile file
type: string
default: /path/to/script.py
executor:
name: sh
command: |
echo "#{command_to_add}" >> ~/.bash_profile
- name: Add command to .bashrc
description: |
Adds a command to the .bashrc file of the current user
supported_platforms:
- macos
- linux
input_arguments:
command_to_add:
description: Command to add to the .bashrc file
type: string
default: /path/to/script.py
executor:
name: sh
command: |
echo "#{command_to_add}" >> ~/.bashrc