Skip to content

Commit

Permalink
FreeBSD changes (#2585)
Browse files Browse the repository at this point in the history
* freebsd changes

* renaming freebsd to linux
  • Loading branch information
cyberbuff authored Nov 6, 2023
1 parent 446c2d5 commit 62a85c1
Show file tree
Hide file tree
Showing 83 changed files with 524 additions and 629 deletions.
454 changes: 227 additions & 227 deletions atomics/Indexes/index.yaml

Large diffs are not rendered by default.

222 changes: 111 additions & 111 deletions atomics/Indexes/linux-index.yaml

Large diffs are not rendered by default.

146 changes: 73 additions & 73 deletions atomics/Indexes/macos-index.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions atomics/Indexes/windows-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51018,7 +51018,7 @@ persistence:
description: Turn on Chrome/Chromium developer mode and Load Extension found
in the src directory
supported_platforms:
- freebsd
- linux:freebsd
- linux
- windows
- macos
Expand All @@ -51036,7 +51036,7 @@ persistence:
auto_generated_guid: 4c83940d-8ca5-4bb2-8100-f46dc914bc3f
description: Install the "Minimum Viable Malicious Extension" Chrome extension
supported_platforms:
- freebsd
- linux:freebsd
- linux
- windows
- macos
Expand All @@ -51053,7 +51053,7 @@ persistence:

'
supported_platforms:
- freebsd
- linux:freebsd
- linux
- windows
- macos
Expand Down
3 changes: 1 addition & 2 deletions atomics/T1003.007/T1003.007.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ atomic_tests:
copy process memory to an external file so it can be searched or exfiltrated later.
On FreeBSD procfs must be mounted.
supported_platforms:
- freebsd
- linux

input_arguments:
output_file:
Expand Down Expand Up @@ -102,7 +102,6 @@ atomic_tests:
copy a process's heap memory to an external file so it can be searched or exfiltrated later.
On FreeBSD procfs must be mounted.
supported_platforms:
- freebsd
- linux

input_arguments:
Expand Down
5 changes: 1 addition & 4 deletions atomics/T1003.008/T1003.008.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ atomic_tests:
description: |
/etc/master.passwd file is accessed in FreeBSD environments
supported_platforms:
- freebsd
- linux
input_arguments:
output_file:
description: Path where captured results will be placed
Expand All @@ -44,7 +44,6 @@ atomic_tests:
description: |
/etc/passwd file is accessed in FreeBSD and Linux environments
supported_platforms:
- freebsd
- linux
input_arguments:
output_file:
Expand All @@ -63,7 +62,6 @@ atomic_tests:
description: |
Dump /etc/passwd, /etc/master.passwd and /etc/shadow using ed
supported_platforms:
- freebsd
- linux
input_arguments:
output_file:
Expand All @@ -82,7 +80,6 @@ atomic_tests:
description: |
Dump /etc/passwd, /etc/master.passwd and /etc/shadow using sh builtins
supported_platforms:
- freebsd
- linux
input_arguments:
output_file:
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1007/T1007.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ atomic_tests:
description: |
Enumerates system service using service
supported_platforms:
- freebsd
- linux
executor:
command: |
service -e
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1016/T1016.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ atomic_tests:
Upon successful execution, sh will spawn multiple commands and output will be via stdout.
supported_platforms:
- freebsd
- linux
executor:
command: |
if [ -x "$(command -v arp)" ]; then arp -a; else echo "arp is missing from the machine. skipping..."; fi;
Expand Down
4 changes: 1 addition & 3 deletions atomics/T1018/T1018.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ atomic_tests:
Upon successful execution, sh will execute arp to list out the arp cache. Output will be via stdout.
supported_platforms:
- freebsd
- linux
- macos
dependency_executor_name: sh
Expand All @@ -109,7 +108,6 @@ atomic_tests:
Upon successful execution, sh will perform a ping sweep on the 192.168.1.1/24 and echo via stdout if an IP is active.
supported_platforms:
- freebsd
- linux
- macos
input_arguments:
Expand Down Expand Up @@ -277,7 +275,7 @@ atomic_tests:
description: |
Use the netstat command to display the kernels routing tables.
supported_platforms:
- freebsd
- linux
executor:
command: |
netstat -r | grep default
Expand Down
6 changes: 2 additions & 4 deletions atomics/T1027.001/T1027.001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ atomic_tests:
Upon successful execution, dd will modify `/tmp/evil-binary`, therefore the expected hash will change.
supported_platforms:
- freebsd
- macos
- linux
- macos
input_arguments:
file_to_pad:
description: Path of binary to be padded
Expand Down Expand Up @@ -40,9 +39,8 @@ atomic_tests:
Upon successful execution, truncate will modify `/tmp/evil-binary`, therefore the expected hash will change.
supported_platforms:
- freebsd
- macos
- linux
- macos
input_arguments:
file_to_pad:
description: Path of binary to be padded
Expand Down
3 changes: 0 additions & 3 deletions atomics/T1027.004/T1027.004.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ atomic_tests:
description: |
Compile a c file with either gcc or clang on FreeBSD, Linux or Macos.
supported_platforms:
- freebsd
- linux
- macos
input_arguments:
Expand All @@ -90,7 +89,6 @@ atomic_tests:
description: |
Compile a c file with either gcc or clang on FreeBSD, Linux or Macos.
supported_platforms:
- freebsd
- linux
- macos
input_arguments:
Expand All @@ -116,7 +114,6 @@ atomic_tests:
description: |
Compile a go file with golang on FreeBSD, Linux or Macos.
supported_platforms:
- freebsd
- linux
- macos
input_arguments:
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1027/T1027.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ atomic_tests:
Upon successful execution, sh will execute art.sh, which is a base64 encoded command, that echoes `Hello from the Atomic Red Team`
and uname -v
supported_platforms:
- freebsd
- linux
input_arguments:
shell_command:
description: command to encode
Expand Down
1 change: 0 additions & 1 deletion atomics/T1030/T1030.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ atomic_tests:
supported_platforms:
- macos
- linux
- freebsd
input_arguments:
file_name:
description: File name
Expand Down
1 change: 0 additions & 1 deletion atomics/T1033/T1033.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ atomic_tests:
Upon successful execution, sh will stdout list of usernames.
supported_platforms:
- freebsd
- linux
- macos
executor:
Expand Down
1 change: 0 additions & 1 deletion atomics/T1036.003/T1036.003.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ atomic_tests:
Upon successful execution, sh is renamed to `crond` and executed.
supported_platforms:
- freebsd
- linux
executor:
command: |
Expand Down
1 change: 0 additions & 1 deletion atomics/T1036.005/T1036.005.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ atomic_tests:
supported_platforms:
- macos
- linux
- freebsd
input_arguments:
test_message:
description: Test message to echo out to the screen
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1036.006/T1036.006.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ atomic_tests:
description: |
Space after filename.
supported_platforms:
- freebsd
- linux
executor:
name: sh
command: |
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1037.004/T1037.004.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ atomic_tests:
Modify rc.local
supported_platforms:
- freebsd
- linux
executor:
name: sh
elevation_required: true
Expand Down
6 changes: 3 additions & 3 deletions atomics/T1040/T1040.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ atomic_tests:
Upon successful execution, tshark or tcpdump will execute and capture 5 packets on interface ens33.
supported_platforms:
- freebsd
- linux
input_arguments:
interface:
description: Specify interface to perform PCAP on.
Expand Down Expand Up @@ -254,7 +254,7 @@ atomic_tests:
description: |
Opens a /dev/bpf file (O_RDONLY) and captures packets for a few seconds.
supported_platforms:
- freebsd
- linux
input_arguments:
ifname:
description: Specify interface to perform PCAP on.
Expand Down Expand Up @@ -288,7 +288,7 @@ atomic_tests:
description: |
Opens a /dev/bpf file (O_RDONLY), sets BPF filter for 'udp' and captures packets for a few seconds.
supported_platforms:
- freebsd
- linux
input_arguments:
ifname:
description: Specify interface to perform PCAP on.
Expand Down
4 changes: 2 additions & 2 deletions atomics/T1046/T1046.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ atomic_tests:
name: sh
elevation_required: true
- name: Port Scan Nmap for FreeBSD
auto_generated_guid: f03d59dc-0e3b-428a-baeb-3499552c7048
auto_generated_guid: f03d59dc-0e3b-428a-baeb-3499552c7048
description: |
Scan ports to check for listening ports with Nmap.
Upon successful execution, sh will utilize nmap, telnet, and nc to contact a single or range of addresses on port 80 to determine if listening. Results will be via stdout.
supported_platforms:
- freebsd
- linux
input_arguments:
host:
description: Host to scan.
Expand Down
1 change: 0 additions & 1 deletion atomics/T1048.002/T1048.002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ atomic_tests:
supported_platforms:
- macos
- linux
- freebsd
input_arguments:
input_file:
description: Test file to upload
Expand Down
4 changes: 1 addition & 3 deletions atomics/T1048.003/T1048.003.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ atomic_tests:
supported_platforms:
- macos
- linux
- freebsd
executor:
steps: |
1. Victim System Configuration:
Expand Down Expand Up @@ -53,7 +52,6 @@ atomic_tests:
description: |
Exfiltration of specified file over DNS protocol.
supported_platforms:
- freebsd
- linux
executor:
steps: |
Expand Down Expand Up @@ -223,7 +221,7 @@ atomic_tests:
description: |
An adversary may use the python3 standard library module http.server to exfiltrate data. This test checks if python3.9 is available and if so, creates a HTTP server on port 9090, captures the PID, sleeps for 10 seconds, then kills the PID and unsets the $PID variable.
supported_platforms:
- freebsd
- linux
executor:
name: sh
elevation_required: false
Expand Down
2 changes: 0 additions & 2 deletions atomics/T1048/T1048.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ atomic_tests:
supported_platforms:
- macos
- linux
- freebsd
input_arguments:
domain:
description: target SSH domain
Expand All @@ -33,7 +32,6 @@ atomic_tests:
supported_platforms:
- macos
- linux
- freebsd
input_arguments:
user_name:
description: username for domain
Expand Down
1 change: 0 additions & 1 deletion atomics/T1049/T1049.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ atomic_tests:
Upon successful execution, sh will execute `netstat` and `who -a`. Results will output via stdout.
supported_platforms:
- freebsd
- linux
- macos
dependency_executor_name: sh
Expand Down
2 changes: 1 addition & 1 deletion atomics/T1053.002/T1053.002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ atomic_tests:
This test submits a command to be run in the future by the `at` daemon.
supported_platforms:
- freebsd
- linux

input_arguments:
time_spec:
Expand Down
5 changes: 2 additions & 3 deletions atomics/T1053.003/T1053.003.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ atomic_tests:
description: |
This test replaces the current user's crontab file with the contents of the referenced file. This technique was used by numerous IoT automated exploitation attacks.
supported_platforms:
- freebsd
- macos
- linux
- macos
input_arguments:
command:
description: Command to execute
Expand Down Expand Up @@ -59,7 +58,7 @@ atomic_tests:
description: |
This test adds a script to /etc/cron.d folder configured to execute on a schedule.
supported_platforms:
- freebsd
- linux
input_arguments:
command:
description: Command to execute
Expand Down
3 changes: 1 addition & 2 deletions atomics/T1056.001/T1056.001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ atomic_tests:
To gain persistence the command could be added to the users .shrc or .profile
supported_platforms:
- freebsd
- linux
dependency_executor_name: sh
dependencies:
- description: |
Expand All @@ -121,7 +121,6 @@ atomic_tests:
To gain persistence the command could be added to the users .bashrc or .bash_aliases or the systems default .bashrc in /etc/skel/
supported_platforms:
- freebsd
- linux
dependency_executor_name: sh
dependencies:
Expand Down
1 change: 0 additions & 1 deletion atomics/T1057/T1057.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ atomic_tests:
Upon successful execution, sh will execute ps and output to /tmp/loot.txt.
supported_platforms:
- freebsd
- linux
- macos
input_arguments:
Expand Down
Loading

0 comments on commit 62a85c1

Please sign in to comment.