From 957f80ec4a061f45ab445a358bbc1873397c37f4 Mon Sep 17 00:00:00 2001 From: frack113 <62423083+frack113@users.noreply.github.com> Date: Sun, 17 Jul 2022 19:46:19 +0200 Subject: [PATCH] Fax service persistance --- .../registry_set_fax_change_service_user.yml | 24 +++++++++++++++++ .../registry_set_fax_dll_persistance.yml | 26 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 rules/windows/registry/registry_set/registry_set_fax_change_service_user.yml create mode 100644 rules/windows/registry/registry_set/registry_set_fax_dll_persistance.yml diff --git a/rules/windows/registry/registry_set/registry_set_fax_change_service_user.yml b/rules/windows/registry/registry_set/registry_set_fax_change_service_user.yml new file mode 100644 index 000000000..53c54121b --- /dev/null +++ b/rules/windows/registry/registry_set/registry_set_fax_change_service_user.yml @@ -0,0 +1,24 @@ +title: Change User Account Associated with the FAX Service +id: e3fdf743-f05b-4051-990a-b66919be1743 +description: Detect change of the user account associated with the FAX service to avoid the escalation problem. +status: experimental +references: + - https://twitter.com/dottor_morte/status/1544652325570191361 + - https://raw.githubusercontent.com/RiccardoAncarani/talks/master/F-Secure/unorthodox-lateral-movement.pdf +date: 2022/07/17 +author: frack113 +level: high +logsource: + product: windows + category: registry_set +detection: + selection: + TargetObject: HKLM\System\CurrentControlSet\Services\Fax\ObjectName + filter: + details|contains: NetworkService + condition: selection and not filter +falsepositives: + - Unknown +tags: + - attack.defense_evasion + - attack.t1112 \ No newline at end of file diff --git a/rules/windows/registry/registry_set/registry_set_fax_dll_persistance.yml b/rules/windows/registry/registry_set/registry_set_fax_dll_persistance.yml new file mode 100644 index 000000000..23107e6d4 --- /dev/null +++ b/rules/windows/registry/registry_set/registry_set_fax_dll_persistance.yml @@ -0,0 +1,26 @@ +title: Change the Fax Dll +id: 9e3357ba-09d4-4fbd-a7c5-ad6386314513 +description: Detect possible persistance using Fax DLL load when service restart +status: experimental +references: + - https://twitter.com/dottor_morte/status/1544652325570191361 + - https://raw.githubusercontent.com/RiccardoAncarani/talks/master/F-Secure/unorthodox-lateral-movement.pdf +date: 2022/07/17 +author: frack113 +level: high +logsource: + product: windows + category: registry_set +detection: + selection: + TargetObject|contains|all: + - '\Software\Microsoft\Fax\Device Providers\' + - '\ImageName' + filter: + details: '%systemroot%\system32\fxst30.dll' #Windows 10 + condition: selection and not filter +falsepositives: + - Unknown +tags: + - attack.defense_evasion + - attack.t1112 \ No newline at end of file