From f2b06016c1f34a905a278be8e2e2af32df9fdc8e Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 8 Mar 2025 07:23:15 +0000 Subject: [PATCH] feat(threat-hunting): Regasm.exe execution --- source/threat-hunting/index.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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