Query: rule covering Detect usage of the "ssh.exe" binary as a proxy to launch other programs.
Matching passage: Sigma rule: Detect usage of the "ssh.exe" binary as a proxy to launch other programs.. Logsource: windows / process_creation. Rule: title: Program Executed Using Proxy/Local Command Via SSH.EXE id: 7d6d30b8-5b91-4b90-a891-46cccaf29598 status: test description: Detect usage of the "ssh.exe" binary as a proxy to launch other programs. references: - https://lolbas-project.github.io/lolbas/Binaries/Ssh/ - https://github.com/LOLBAS-Project/LOLBAS/pull/211/files - https://gtfobins.github.io/gtfobins/ssh/ - https://man.openbsd.org/ssh_config#ProxyCommand - https://man.openbsd.org/ssh_config#LocalCommand author: frack113, Nasreddine Bencherchali date: 2022-12-29 modified: 2025-10-16 tags: - attack.stealth - attack.t1218 logsource: category: process_creation product: windows detection: selection_parent: ParentImage: C:\Windows\System32\OpenSSH\sshd.exe selection_cli_img: - Image|endswith: \ssh.exe - Product: OpenSSH for Windows - Hashes|contains: - IMPHASH=55b4964d29aad5438b9e950052dbbbc0 - IMPHASH=334d66c33503ccbf647c15b47c27eef4 - IMPHASH=27b0da080ef92afb37983d30d839141e - IMPHASH=977eb4c263d384e47daa0712d34713ab - IMPHASH=3eaadce9ae43d5a918bb082065815c3b - IMPHASH=980fe6cf0d996ab1eedf877222e722aa - IMPHASH=5f959422308ac3d721010d66647e100e - IMPHASH=a49aaa3d03d1cd9c8dc7fca60f7f480b - IMPHASH=dd335f759b6d5d6a8382b71dd9d65791 selection_cli_flags: - CommandLine|contains: ProxyCommand= - CommandLine|contains|all: - PermitLocalCommand=yes - ' LocalCommand' condition: selection_parent or all of selection_cli_* falsepositives: - Legitimate usage for administration purposes level: medium
Near-miss passage: Sigma rule: Detects modification of autostart extensibility point (ASEP) in registry. Adversaries may modify these keys to execute m. Logsource: windows / registry_set. Rule: title: Office Autorun Keys Modification id: baecf8fb-edbf-429f-9ade-31fc3f22b970 related: - id: 17f878b8-9968-4578-b814-c4217fc5768c type: obsolete status: test description: 'Detects modification of autostart extensibility point (ASEP) in registry. Adversaries may modify these keys to execute malicious code when Office files are opened. There are various legitimate add-ins that also use these keys and this filter list might not be exhaustive. Thus, it is recommended to review and tune filters for your environment to reduce false positives before deploying to production. ' references: - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1547.001/T1547.001.md - https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns - https://gist.github.com/GlebSukhodolskiy/0fc5fa5f482903064b448890db1eaf9d author: Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split) date: 2019-10-25 modified: 2026-01-09 tags: - attack.privilege-escalation - attack.persistence - attack.t1547.001 logsource: category: registry_set product: windows detection: selection_office_root: TargetObject|contains: - \Software\Wow6432Node\Microsoft\Office - \Software\Microsoft\Office selection_office_details: TargetObject|contains: - \Word\Addins - \PowerPoint\Addins - \Outlook\Addins - \Onenote\Addins - \Excel\Addins - \Access\Addins - test\Special\Perf filter_main_empty: Details: (Empty) filter_main_null: Details: null filter_main_known_addins: Image|startswith: - C:\Program Files\Microsoft Office\ - C:\Program Files (x86)\Microsoft Office\ - C:\PROGRA~2\MICROS~2\Office - C:\Windows\System32\msiexec.exe - C:\Windows\SysWOW64\msiexec.exe - C:\Windows\System32\regsvr32.exe - 'C:\Windows\SysWOW64\regsvr32.exe ' TargetObject|contains: - \Excel\Addins\AdHocReportingExcelClientLib.AdHocReportingExcelClientAddIn.1\ - \Excel\Addins\ExcelPlugInShell.PowerMapConnect\ - \Excel\Addins\NativeShim\ - \Excel\Addins\NativeShim.InquireConnector.1\ - \Excel\Addins\PowerPivotExcelClientAddIn.NativeEntry.1\ - \Outlook\AddIns\AccessAddin.DC\ - \Outlook\AddIns\ColleagueImport.ColleagueImportAddin\ - \Outlook\AddIns\EvernoteCC.EvernoteContactConnector\ - \Outlook\AddIns\EvernoteOLRD.Connect\ - \Outlook\Addins\\OneNote.OutlookAddin - \Outlook\Addins\DriveFSExtensionLib.Connect\ - \Outlook\Addins\GoogleAppsSync.Connect\ - \Outlook\Addins\Microsoft.VbaAddinForOutlook.1\ - \Outlook\Addins\OcOffice.OcFo