Query: Sigma YAML for windows / ps_script
Matching passage: Sigma rule: Detects the creation of a dMSA service account using the New-ADServiceAccount cmdlet in certain OUs. The fact that the c. Logsource: windows / ps_script. Rule: title: DMSA Service Account Created in Specific OUs - PowerShell id: 02122374-b74e-495c-b285-9e4da973f3d6 related: - id: e15bc294-ae2a-45ad-b7d6-637b33868bde type: similar - id: 0ea8db81-2ff6-4525-9448-33bbe7effc13 type: similar status: experimental description: 'Detects the creation of a dMSA service account using the New-ADServiceAccount cmdlet in certain OUs. The fact that the cmdlet is used to create a dMSASvc account in a specific OU is highly suspicious. It is a pattern trying to exploit the BadSuccessor privilege escalation vulnerability in Windows Server 2025. On top of that, if the user that is creating the dMSASvc account is not a legitimate administrator or does not have the necessary permissions, it is a strong signal of an attempted or successful abuse of the BaDSuccessor vulnerability for privilege escalation within the Windows Server 2025 Active Directory environment. ' references: - https://www.akamai.com/blog/security-research/abusing-bad-successor-for-privilege-escalation-in-active-directory author: Swachchhanda Shrawan Poudel (Nextron Systems) date: 2025-05-24 tags: - attack.privilege-escalation - attack.initial-access - attack.persistence - attack.stealth - attack.t1078.002 - attack.t1098 logsource: category: ps_script product: windows detection: selection: ScriptBlockText|contains|all: - New-ADServiceAccount - -CreateDelegatedServiceAccount - -path condition: selection falsepositives: - Unknown level: medium
Near-miss passage: Sigma rule: Detects the execution of an Office application that points to a document that is located in a trusted location. Attacker. Logsource: windows / process_creation. Rule: title: Potentially Suspicious Office Document Executed From Trusted Location id: f99abdf0-6283-4e71-bd2b-b5c048a94743 status: test description: Detects the execution of an Office application that points to a document that is located in a trusted location. Attackers often used this to avoid macro security and execute their malicious code. references: - Internal Research - https://twitter.com/Max_Mal_/status/1633863678909874176 - https://techcommunity.microsoft.com/t5/microsoft-365-blog/new-security-hardening-policies-for-trusted-documents/ba-p/3023465 - https://twitter.com/_JohnHammond/status/1588155401752788994 author: Nasreddine Bencherchali (Nextron Systems) date: 2023-06-21 modified: 2023-10-18 tags: - attack.stealth - attack.t1202 logsource: category: process_creation product: windows detection: selection_parent: ParentImage|endswith: - \explorer.exe - \dopus.exe selection_img: - Image|endswith: - \EXCEL.EXE - \POWERPNT.EXE - \WINWORD.exe - OriginalFileName: - Excel.exe - POWERPNT.EXE - WinWord.exe selection_trusted_location: CommandLine|contains: - \AppData\Roaming\Microsoft\Templates - \AppData\Roaming\Microsoft\Word\Startup\ - \Microsoft Office\root\Templates\ - \Microsoft Office\Templates\ filter_main_dotx: CommandLine|endswith: - .dotx - .xltx - .potx condition: all of selection_* and not 1 of filter_main_* falsepositives: - Unknown level: high