Skip to content

Commit

Permalink
New Atomic TestT1547.001.yaml (#3025)
Browse files Browse the repository at this point in the history
Co-authored-by: Bhavin Patel <[email protected]>
  • Loading branch information
sansan-monkey and patel-bhavin authored Jan 7, 2025
1 parent 6d5f38e commit 8d13023
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions atomics/T1547.001/T1547.001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,15 @@ atomic_tests:
cleanup_command: reg delete HKLM\System\CurrentControlSet\Control\BootVerificationProgram /f
name: command_prompt
elevation_required: true

- name: Add persistence via Windows Context Menu
description: |
This atomic test add persistence taking advantage of the Windows Context Menu [Hexacorn](https://www.hexacorn.com/blog/2018/07/29/beyond-good-ol-run-key-part-82/)
User have to right click on the main screen or in the white space of the opened folder (e.g. Size Modify).
supported_platforms:
- windows
executor:
command: reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Size Modify\command" /ve /t REG_SZ /d "C:\Windows\System32\calc.exe" /f
cleanup_command: reg delete "HKEY_CLASSES_ROOT\Directory\Background\shell\Size Modify" /f
name: command_prompt
elevation_required: true

0 comments on commit 8d13023

Please sign in to comment.