Skip to content

Commit 1d16e91

Browse files
author
Atomic Red Team doc generator
committed
Generated docs from job=generate-docs branch=master [ci skip]
1 parent 82b75e0 commit 1d16e91

16 files changed

+165
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Atomic Red Team
44

5-
![GitHub Action Status](https://github.com/redcanaryco/atomic-red-team/actions/workflows/validate-atomics.yml/badge.svg?branch=master) ![Atomics](https://img.shields.io/badge/Atomics-1715-flat.svg) ![GitHub Action Status](https://github.com/redcanaryco/atomic-red-team/actions/workflows/generate-docs.yml/badge.svg?branch=master)
5+
![GitHub Action Status](https://github.com/redcanaryco/atomic-red-team/actions/workflows/validate-atomics.yml/badge.svg?branch=master) ![Atomics](https://img.shields.io/badge/Atomics-1716-flat.svg) ![GitHub Action Status](https://github.com/redcanaryco/atomic-red-team/actions/workflows/generate-docs.yml/badge.svg?branch=master)
66

77

88
Atomic Red Team™ is a library of tests mapped to the

atomics/Indexes/Attack-Navigator-Layers/art-navigator-layer-linux.json

+1-1
Large diffs are not rendered by default.

atomics/Indexes/Attack-Navigator-Layers/art-navigator-layer-macos.json

+1-1
Large diffs are not rendered by default.

atomics/Indexes/Attack-Navigator-Layers/art-navigator-layer.json

+1-1
Large diffs are not rendered by default.

atomics/Indexes/Indexes-CSV/index.csv

+1
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,7 @@ discovery,T1046,Network Service Discovery,8,WinPwn - fruit,bb037826-cbe8-4a41-93
20142014
discovery,T1046,Network Service Discovery,9,Network Service Discovery for Containers,06eaafdb-8982-426e-8a31-d572da633caa,sh
20152015
discovery,T1046,Network Service Discovery,10,Port-Scanning /24 Subnet with PowerShell,05df2a79-dba6-4088-a804-9ca0802ca8e4,powershell
20162016
discovery,T1046,Network Service Discovery,11,Remote Desktop Services Discovery via PowerShell,9e55750e-4cbf-4013-9627-e9a045b541bf,powershell
2017+
discovery,T1046,Network Service Discovery,12,Port Scan using nmap (Port range),0d5a2b03-3a26-45e4-96ae-89485b4d1f97,sh
20172018
discovery,T1518,Software Discovery,1,Find and Display Internet Explorer Browser Version,68981660-6670-47ee-a5fa-7e74806420a4,command_prompt
20182019
discovery,T1518,Software Discovery,2,Applications Installed,c49978f6-bd6e-4221-ad2c-9e3e30cc1e3b,powershell
20192020
discovery,T1518,Software Discovery,3,Find and Display Safari Browser Version,103d6533-fd2a-4d08-976a-4a598565280f,sh

atomics/Indexes/Indexes-CSV/linux-index.csv

+1
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ discovery,T1018,Remote System Discovery,14,Remote System Discovery - netstat,d27
385385
discovery,T1018,Remote System Discovery,15,Remote System Discovery - ip tcp_metrics,6c2da894-0b57-43cb-87af-46ea3b501388,sh
386386
discovery,T1046,Network Service Discovery,1,Port Scan,68e907da-2539-48f6-9fc9-257a78c05540,bash
387387
discovery,T1046,Network Service Discovery,2,Port Scan Nmap,515942b0-a09f-4163-a7bb-22fefb6f185f,sh
388+
discovery,T1046,Network Service Discovery,12,Port Scan using nmap (Port range),0d5a2b03-3a26-45e4-96ae-89485b4d1f97,sh
388389
discovery,T1124,System Time Discovery,3,System Time Discovery in FreeBSD/macOS,f449c933-0891-407f-821e-7916a21a1a6f,sh
389390
execution,T1053.003,Scheduled Task/Job: Cron,1,Cron - Replace crontab with referenced file,435057fb-74b1-410e-9403-d81baf194f75,sh
390391
execution,T1053.003,Scheduled Task/Job: Cron,2,Cron - Add script to all cron subfolders,b7d42afa-9086-4c8a-b7b0-8ea3faa6ebb0,bash

atomics/Indexes/Indexes-CSV/macos-index.csv

+1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ discovery,T1018,Remote System Discovery,6,Remote System Discovery - arp nix,acb6
255255
discovery,T1018,Remote System Discovery,7,Remote System Discovery - sweep,96db2632-8417-4dbb-b8bb-a8b92ba391de,sh
256256
discovery,T1046,Network Service Discovery,1,Port Scan,68e907da-2539-48f6-9fc9-257a78c05540,bash
257257
discovery,T1046,Network Service Discovery,2,Port Scan Nmap,515942b0-a09f-4163-a7bb-22fefb6f185f,sh
258+
discovery,T1046,Network Service Discovery,12,Port Scan using nmap (Port range),0d5a2b03-3a26-45e4-96ae-89485b4d1f97,sh
258259
discovery,T1518,Software Discovery,3,Find and Display Safari Browser Version,103d6533-fd2a-4d08-976a-4a598565280f,sh
259260
discovery,T1124,System Time Discovery,3,System Time Discovery in FreeBSD/macOS,f449c933-0891-407f-821e-7916a21a1a6f,sh
260261
execution,T1053.003,Scheduled Task/Job: Cron,1,Cron - Replace crontab with referenced file,435057fb-74b1-410e-9403-d81baf194f75,sh

atomics/Indexes/Indexes-Markdown/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -2716,6 +2716,7 @@
27162716
- Atomic Test #9: Network Service Discovery for Containers [containers]
27172717
- Atomic Test #10: Port-Scanning /24 Subnet with PowerShell [windows]
27182718
- Atomic Test #11: Remote Desktop Services Discovery via PowerShell [windows]
2719+
- Atomic Test #12: Port Scan using nmap (Port range) [linux, macos]
27192720
- [T1518 Software Discovery](../../T1518/T1518.md)
27202721
- Atomic Test #1: Find and Display Internet Explorer Browser Version [windows]
27212722
- Atomic Test #2: Applications Installed [windows]

atomics/Indexes/Indexes-Markdown/linux-index.md

+1
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@
796796
- [T1046 Network Service Discovery](../../T1046/T1046.md)
797797
- Atomic Test #1: Port Scan [linux, macos]
798798
- Atomic Test #2: Port Scan Nmap [linux, macos]
799+
- Atomic Test #12: Port Scan using nmap (Port range) [linux, macos]
799800
- T1518 Software Discovery [CONTRIBUTE A TEST](https://github.com/redcanaryco/atomic-red-team/wiki/Contributing)
800801
- T1622 Debugger Evasion [CONTRIBUTE A TEST](https://github.com/redcanaryco/atomic-red-team/wiki/Contributing)
801802
- [T1124 System Time Discovery](../../T1124/T1124.md)

atomics/Indexes/Indexes-Markdown/macos-index.md

+1
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@
699699
- [T1046 Network Service Discovery](../../T1046/T1046.md)
700700
- Atomic Test #1: Port Scan [linux, macos]
701701
- Atomic Test #2: Port Scan Nmap [linux, macos]
702+
- Atomic Test #12: Port Scan using nmap (Port range) [linux, macos]
702703
- [T1518 Software Discovery](../../T1518/T1518.md)
703704
- Atomic Test #3: Find and Display Safari Browser Version [macos]
704705
- T1622 Debugger Evasion [CONTRIBUTE A TEST](https://github.com/redcanaryco/atomic-red-team/wiki/Contributing)

atomics/Indexes/index.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -109432,6 +109432,41 @@ discovery:
109432109432
'
109433109433
name: powershell
109434109434
elevation_required: true
109435+
- name: Port Scan using nmap (Port range)
109436+
auto_generated_guid: 0d5a2b03-3a26-45e4-96ae-89485b4d1f97
109437+
description: 'Scan multiple ports to check for listening ports with nmap
109438+
109439+
'
109440+
supported_platforms:
109441+
- linux
109442+
- macos
109443+
input_arguments:
109444+
host:
109445+
description: Host(s) to scan.
109446+
type: string
109447+
default: 127.0.0.1
109448+
port_range:
109449+
description: Port range(s) to scan.
109450+
type: string
109451+
default: 0-65535
109452+
dependency_executor_name: sh
109453+
dependencies:
109454+
- description: 'Check if nmap command exists on the machine
109455+
109456+
'
109457+
prereq_command: 'if [ -x "$(command -v nmap)" ]; then exit 0; else exit 1;
109458+
fi;
109459+
109460+
'
109461+
get_prereq_command: "(which yum && yum -y install epel-release nmap)||(which
109462+
apt-get && DEBIAN_FRONTEND=noninteractive apt-get install -y nmap)||(which
109463+
pkg && pkg install -y nmap)||(which brew && brew install nmap)\n"
109464+
executor:
109465+
command: 'nmap -Pn -sV -p #{port_range} #{host}
109466+
109467+
'
109468+
elevation_required: true
109469+
name: sh
109435109470
T1518:
109436109471
technique:
109437109472
modified: '2024-04-16T00:16:06.689Z'

atomics/Indexes/linux-index.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -63484,6 +63484,41 @@ discovery:
6348463484
nc -nv #{host} #{port}
6348563485
name: sh
6348663486
elevation_required: true
63487+
- name: Port Scan using nmap (Port range)
63488+
auto_generated_guid: 0d5a2b03-3a26-45e4-96ae-89485b4d1f97
63489+
description: 'Scan multiple ports to check for listening ports with nmap
63490+
63491+
'
63492+
supported_platforms:
63493+
- linux
63494+
- macos
63495+
input_arguments:
63496+
host:
63497+
description: Host(s) to scan.
63498+
type: string
63499+
default: 127.0.0.1
63500+
port_range:
63501+
description: Port range(s) to scan.
63502+
type: string
63503+
default: 0-65535
63504+
dependency_executor_name: sh
63505+
dependencies:
63506+
- description: 'Check if nmap command exists on the machine
63507+
63508+
'
63509+
prereq_command: 'if [ -x "$(command -v nmap)" ]; then exit 0; else exit 1;
63510+
fi;
63511+
63512+
'
63513+
get_prereq_command: "(which yum && yum -y install epel-release nmap)||(which
63514+
apt-get && DEBIAN_FRONTEND=noninteractive apt-get install -y nmap)||(which
63515+
pkg && pkg install -y nmap)||(which brew && brew install nmap)\n"
63516+
executor:
63517+
command: 'nmap -Pn -sV -p #{port_range} #{host}
63518+
63519+
'
63520+
elevation_required: true
63521+
name: sh
6348763522
T1518:
6348863523
technique:
6348963524
modified: '2024-04-16T00:16:06.689Z'

atomics/Indexes/macos-index.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -58513,6 +58513,41 @@ discovery:
5851358513
nc -nv #{host} #{port}
5851458514
name: sh
5851558515
elevation_required: true
58516+
- name: Port Scan using nmap (Port range)
58517+
auto_generated_guid: 0d5a2b03-3a26-45e4-96ae-89485b4d1f97
58518+
description: 'Scan multiple ports to check for listening ports with nmap
58519+
58520+
'
58521+
supported_platforms:
58522+
- linux
58523+
- macos
58524+
input_arguments:
58525+
host:
58526+
description: Host(s) to scan.
58527+
type: string
58528+
default: 127.0.0.1
58529+
port_range:
58530+
description: Port range(s) to scan.
58531+
type: string
58532+
default: 0-65535
58533+
dependency_executor_name: sh
58534+
dependencies:
58535+
- description: 'Check if nmap command exists on the machine
58536+
58537+
'
58538+
prereq_command: 'if [ -x "$(command -v nmap)" ]; then exit 0; else exit 1;
58539+
fi;
58540+
58541+
'
58542+
get_prereq_command: "(which yum && yum -y install epel-release nmap)||(which
58543+
apt-get && DEBIAN_FRONTEND=noninteractive apt-get install -y nmap)||(which
58544+
pkg && pkg install -y nmap)||(which brew && brew install nmap)\n"
58545+
executor:
58546+
command: 'nmap -Pn -sV -p #{port_range} #{host}
58547+
58548+
'
58549+
elevation_required: true
58550+
name: sh
5851658551
T1518:
5851758552
technique:
5851858553
modified: '2024-04-16T00:16:06.689Z'

atomics/T1046/T1046.md

+48
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Within macOS environments, adversaries may use the native Bonjour application to
3434

3535
- [Atomic Test #11 - Remote Desktop Services Discovery via PowerShell](#atomic-test-11---remote-desktop-services-discovery-via-powershell)
3636

37+
- [Atomic Test #12 - Port Scan using nmap (Port range)](#atomic-test-12---port-scan-using-nmap-port-range)
38+
3739

3840
<br/>
3941

@@ -520,4 +522,50 @@ Get-Service -Name "Remote Desktop Services", "Remote Desktop Configuration"
520522

521523

522524

525+
<br/>
526+
<br/>
527+
528+
## Atomic Test #12 - Port Scan using nmap (Port range)
529+
Scan multiple ports to check for listening ports with nmap
530+
531+
**Supported Platforms:** Linux, macOS
532+
533+
534+
**auto_generated_guid:** 0d5a2b03-3a26-45e4-96ae-89485b4d1f97
535+
536+
537+
538+
539+
540+
#### Inputs:
541+
| Name | Description | Type | Default Value |
542+
|------|-------------|------|---------------|
543+
| host | Host(s) to scan. | string | 127.0.0.1|
544+
| port_range | Port range(s) to scan. | string | 0-65535|
545+
546+
547+
#### Attack Commands: Run with `sh`! Elevation Required (e.g. root or admin)
548+
549+
550+
```sh
551+
nmap -Pn -sV -p #{port_range} #{host}
552+
```
553+
554+
555+
556+
557+
#### Dependencies: Run with `sh`!
558+
##### Description: Check if nmap command exists on the machine
559+
##### Check Prereq Commands:
560+
```sh
561+
if [ -x "$(command -v nmap)" ]; then exit 0; else exit 1; fi;
562+
```
563+
##### Get Prereq Commands:
564+
```sh
565+
(which yum && yum -y install epel-release nmap)||(which apt-get && DEBIAN_FRONTEND=noninteractive apt-get install -y nmap)||(which pkg && pkg install -y nmap)||(which brew && brew install nmap)
566+
```
567+
568+
569+
570+
523571
<br/>

atomics/T1046/T1046.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ atomic_tests:
278278
name: powershell
279279
elevation_required: true
280280
- name: Port Scan using nmap (Port range)
281+
auto_generated_guid: 0d5a2b03-3a26-45e4-96ae-89485b4d1f97
281282
description: |
282283
Scan multiple ports to check for listening ports with nmap
283284
supported_platforms:

atomics/used_guids.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1739,3 +1739,4 @@ a4b74723-5cee-4300-91c3-5e34166909b4
17391739
7b5d350e-f758-43cc-a761-8e3f6b052a03
17401740
8e139e1f-1f3a-4be7-901d-afae9738c064
17411741
1aea6d15-70f1-4b4e-8b02-397b5d5ffe75
1742+
0d5a2b03-3a26-45e4-96ae-89485b4d1f97

0 commit comments

Comments
 (0)