Skip to content

Commit

Permalink
Creation of T1614.yaml and T1016.001.yaml (#2901)
Browse files Browse the repository at this point in the history
* Create T1614.yaml

* Create T1016.001

* Update T1016.001

* correct Technique # in YAML file

* remove duplicate tests

---------

Co-authored-by: Carrie Roberts <[email protected]>
  • Loading branch information
marcopedrinazzi and clr2of8 authored Aug 13, 2024
1 parent 32da9c8 commit 06f28fd
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
34 changes: 34 additions & 0 deletions atomics/T1016.001/T1016.001
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
attack_technique: T1016.001
display_name: 'System Network Configuration Discovery: Internet Connection Discovery'
atomic_tests:
- name: Check internet connection using ping Windows
description: |
Check internet connection using ping on Windows. The default target of the ping is 8.8.8.8 (Google Public DNS).
supported_platforms:
- windows
input_arguments:
ping_target:
description: target of the ping
type: url
default: 8.8.8.8
executor:
name: command_prompt
elevation_required: false
command: |
ping -n 4 #{ping_target}
- name: Check internet connection using ping freebsd, linux or macos
description: |
Check internet connection using ping on Linux, MACOS. The default target of the ping is 8.8.8.8 (Google Public DNS).
supported_platforms:
- macos
- linux
input_arguments:
ping_target:
description: target of the ping
type: url
default: 8.8.8.8
executor:
name: bash
elevation_required: false
command: |
ping -n 4 #{ping_target}
49 changes: 49 additions & 0 deletions atomics/T1614/T1614.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
attack_technique: T1614
display_name: System Location Discovery
atomic_tests:
- name: Get geolocation info through IP-Lookup services using curl Windows
description: |
Get geolocation info through IP-Lookup services using curl Windows. The default URL of the IP-Lookup service is https://ipinfo.io/. References: https://securelist.com/transparent-tribe-part-1/98127/ and https://news.sophos.com/en-us/2016/05/03/location-based-ransomware-threat-research/
supported_platforms:
- windows
input_arguments:
ip_lookup_url:
description: URL of the IP-Lookup service
type: url
default: https://ipinfo.io/
curl_path:
description: path to curl.exe
type: path
default: C:\Windows\System32\Curl.exe
dependency_executor_name: powershell
dependencies:
- description: |
Curl must be installed on system.
prereq_command: |
if (Test-Path #{curl_path}) {exit 0} else {exit 1}
get_prereq_command: |
New-Item -Type Directory "PathToAtomicsFolder\..\ExternalPayloads\" -ErrorAction Ignore -Force | Out-Null
Invoke-WebRequest "https://curl.se/windows/dl-8.4.0_6/curl-8.4.0_6-win64-mingw.zip" -Outfile "PathToAtomicsFolder\..\ExternalPayloads\curl.zip"
Expand-Archive -Path "PathToAtomicsFolder\..\ExternalPayloads\curl.zip" -DestinationPath "PathToAtomicsFolder\..\ExternalPayloads\curl"
Copy-Item "PathToAtomicsFolder\..\ExternalPayloads\curl\curl-8.4.0_6-win64-mingw\bin\curl.exe" C:\Windows\System32\Curl.exe
executor:
name: command_prompt
elevation_required: false
command: |
#{curl_path} -k #{ip_lookup_url}
- name: Get geolocation info through IP-Lookup services using curl freebsd, linux or macos
description: |
Get geolocation info through IP-Lookup services using curl Windows. The default URL of the IP-Lookup service is https://ipinfo.io/. References: https://securelist.com/transparent-tribe-part-1/98127/ and https://news.sophos.com/en-us/2016/05/03/location-based-ransomware-threat-research/
supported_platforms:
- macos
- linux
input_arguments:
ip_lookup_url:
description: URL of the IP-Lookup service
type: url
default: https://ipinfo.io/
executor:
name: bash
elevation_required: false
command: |
curl -k #{ip_lookup_url}

0 comments on commit 06f28fd

Please sign in to comment.