diff --git a/source/threat-hunting/index.md b/source/threat-hunting/index.md index fde47e4..4be2694 100644 --- a/source/threat-hunting/index.md +++ b/source/threat-hunting/index.md @@ -1159,6 +1159,19 @@ SPL: | table Time, index, host, EventCode, EventDescription, process, user, Name, Email ``` +## Regasm.exe execution + +References: [1](https://www.microsoft.com/en-us/security/blog/2025/03/06/malvertising-campaign-leads-to-info-stealers-hosted-on-github/#third-stage-exe-analysis), [2](https://lolbas-project.github.io/lolbas/Binaries/Regasm/) +SPL: + +```spl +| tstats summariesonly=true allow_old_summaries=true count FROM datamodel=Endpoint.Processes WHERE index="windows" Processes.process_name="regasm.exe" BY index, host, Processes.signature_id, Processes.signature, Processes.process, Processes.user, _time span=1s +| rename Processes.* AS *, signature_id AS EventCode, signature AS EventDescription +| eval Time = strftime(_time, "%Y-%m-%d %H:%M:%S %z") +| lookup ad_users sAMAccountName AS user OUTPUT displayName AS Name, mail AS Email +| table Time, index, host, EventCode, EventDescription, process, user, Name, Email +``` + ## Regsvcs.exe process injection Description: regsvcs.exe executing without any command-line parameters