-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creation of T1614.yaml and T1016.001.yaml (#2901)
* 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
1 parent
32da9c8
commit 06f28fd
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |