Find sigma rule
Attack: Boot or Logon Autostart Execution: Shortcut Modification
Adversaries may create or modify shortcuts that can execute a program during system boot or user login. Shortcuts or symbolic links are used to reference other files or programs that will be opened or executed when the shortcut is clicked or executed by a system startup process.
Adversaries may abuse shortcuts in the startup folder to execute their tools and achieve persistence.(Citation: Shortcut for Persistence ) Although often used as payloads in an infection chain (e.g. Spearphishing Attachment), adversaries may also create a new shortcut as a means of indirection, while also abusing Masquerading to make the malicious shortcut appear as a legitimate program. Adversaries can also edit the target path or entirely replace an existing shortcut so their malware will be executed instead of the intended legitimate program.
Shortcuts can also be abused to establish persistence by implementing other methods. For example, LNK browser extensions may be modified (e.g. Browser Extensions) to persistently launch malware.
MITRE
Tactic
- privilege-escalation
- persistence
technique
- T1547.009
Test : Create shortcut to cmd in startup folders
OS
- windows
Description:
LNK file to launch CMD placed in startup folder. Upon execution, open File Explorer and browse to “%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup" to view the new shortcut.
Executor
powershell
Sigma Rule
-
file_event_win_powershell_startup_shortcuts.yml (id: 92fa78e7-4d39-45f1-91a3-8b23f3f1088d)
-
file_event_win_startup_folder_file_write.yml (id: 2aa0a6b4-a865-495b-ab51-c28249537b75)