Adding New Test (#1248)
* Adding New Test Adding a new test that will invoke the command that Ryuk ransomware uses. * more descriptive wording Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1b0994ea9e
commit
fad05dbdfa
@@ -47,7 +47,7 @@ atomic_tests:
|
||||
dependency_executor_name: command_prompt
|
||||
dependencies:
|
||||
- description: |
|
||||
Test requrires a file to modifyto be located at (#{file_or_folder})
|
||||
Test requrires a file to modify to be located at (#{file_or_folder})
|
||||
prereq_command: |
|
||||
IF EXIST #{file_or_folder} ( EXIT 0 ) ELSE ( EXIT 1 )
|
||||
get_prereq_command: |
|
||||
@@ -56,7 +56,7 @@ atomic_tests:
|
||||
echo T1222.001_cacls2 >> #{file_or_folder}\T1222.001_cacls2.txt
|
||||
executor:
|
||||
command: |
|
||||
Icacls.exe #{file_or_folder} /grant #{user_or_group}:F
|
||||
icacls.exe #{file_or_folder} /grant #{user_or_group}:F
|
||||
name: command_prompt
|
||||
- name: attrib - Remove read-only attribute
|
||||
auto_generated_guid: bec1e95c-83aa-492e-ab77-60c71bbd21b0
|
||||
@@ -86,3 +86,10 @@ atomic_tests:
|
||||
command: |
|
||||
attrib.exe -r #{file_or_folder}\*.* /s
|
||||
name: command_prompt
|
||||
- name: 'Grant Full Access to Entire C:\ Drive for Everyone - Ryuk Ransomware Style'
|
||||
description: Invokes the command line used by Ryuk Ransomware to grant full access to the entire C:\ drive for Everyone.
|
||||
supported_platforms:
|
||||
- windows
|
||||
executor:
|
||||
command: icacls "C:\*" /grant Everyone:F /T /C /Q
|
||||
name: powershell
|
||||
|
||||
Reference in New Issue
Block a user