Query: alert when Detects execution and usage of the DSInternals PowerShell module. Which can be used to perform what might be considered
Matching passage: Sigma rule: Detects execution and usage of the DSInternals PowerShell module. Which can be used to perform what might be considered. Logsource: windows / process_creation. Rule: title: DSInternals Suspicious PowerShell Cmdlets id: 43d91656-a9b2-4541-b7e2-6a9bd3a13f4e related: - id: 846c7a87-8e14-4569-9d49-ecfd4276a01c type: similar status: test description: 'Detects execution and usage of the DSInternals PowerShell module. Which can be used to perform what might be considered as suspicious activity such as dumping DPAPI backup keys or manipulating NTDS.DIT files. The DSInternals PowerShell Module exposes several internal features of Active Directory and Azure Active Directory. These include FIDO2 and NGC key auditing, offline ntds.dit file manipulation, password auditing, DC recovery from IFM backups and password hash calculation. ' references: - https://github.com/MichaelGrafnetter/DSInternals/blob/39ee8a69bbdc1cfd12c9afdd7513b4788c4895d4/Src/DSInternals.PowerShell/DSInternals.psd1 author: Nasreddine Bencherchali (Nextron Systems), Nounou Mbeiri date: 2024-06-26 tags: - attack.execution - attack.t1059.001 logsource: product: windows category: process_creation detection: selection: CommandLine|contains: - Add-ADDBSidHistory - Add-ADNgcKey - Add-ADReplNgcKey - ConvertFrom-ADManagedPasswordBlob - ConvertFrom-GPPrefPassword - ConvertFrom-ManagedPasswordBlob - ConvertFrom-UnattendXmlPassword - ConvertFrom-UnicodePassword - ConvertTo-AADHash - ConvertTo-GPPrefPassword - ConvertTo-KerberosKey - ConvertTo-LMHash - ConvertTo-MsoPasswordHash - ConvertTo-NTHash - ConvertTo-OrgIdHash - ConvertTo-UnicodePassword - Disable-ADDBAccount - Enable-ADDBAccount - Get-ADDBAccount - Get-ADDBBackupKey - Get-ADDBDomainController - Get-ADDBGroupManagedServiceAccount - Get-ADDBKdsRootKey - Get-ADDBSchemaAttribute - Get-ADDBServiceAccount - Get-ADDefaultPasswordPolicy - Get-ADKeyCredential - Get-ADPasswordPolicy - Get-ADReplAccount - Get-ADReplBackupKey - Get-ADReplicationAccount - Get-ADSIAccount - Get-AzureADUserEx - Get-BootKey - Get-KeyCredential - Get-LsaBackupKey - Get-LsaPolicy - Get-SamPasswordPolicy - Get-SysKey - Get-SystemKey - New-ADDBRestoreFromMediaScript - New-ADKeyCredential - New-ADNgcKey - New-NTHashSet - Remove-ADDBObject - Save-DPAPIBlob - Set-ADAccountPasswordHash - Set-ADDBAccountPassword - Set-ADDBBootKey - Set-ADDBDomainController - Set-ADDBPrimaryGroup - Set-ADDBSysKey - Set-AzureADUserEx - Set-LsaPolicy - Set-SamAccountPasswordHash - Set-WinUserPasswordHash - Test-ADDBPasswordQuality - Test-ADPasswordQuality - Test-ADReplPasswordQuality - Test-PasswordQuality - Unlock-ADDBAccount - Write-ADNgcKey - Write-ADReplNgcKey condition: se
Near-miss passage: Sigma rule: Detects uncommon outbound network activity via Kerberos default port indicating possible lateral movement or first stage. Logsource: windows / security. Rule: title: Uncommon Outbound Kerberos Connection - Security id: eca91c7c-9214-47b9-b4c5-cb1d7e4f2350 related: - id: e54979bd-c5f9-4d6c-967b-a04b19ac4c74 type: similar status: test description: 'Detects uncommon outbound network activity via Kerberos default port indicating possible lateral movement or first stage PrivEsc via delegation. ' references: - https://github.com/GhostPack/Rubeus author: Ilyas Ochkov, oscd.community date: 2019-10-24 modified: 2024-03-15 tags: - attack.lateral-movement - attack.credential-access - attack.t1558.003 logsource: product: windows service: security detection: selection: EventID: 5156 DestPort: 88 filter_main_lsass: Application|startswith: - \device\harddiskvolume - 'C:' Application|endswith: \Windows\System32\lsass.exe filter_optional_chrome: Application|startswith: - \device\harddiskvolume - 'C:' Application|endswith: - \Program Files (x86)\Google\Chrome\Application\chrome.exe - \Program Files\Google\Chrome\Application\chrome.exe filter_optional_firefox: Application|startswith: - \device\harddiskvolume - 'C:' Application|endswith: - \Program Files (x86)\Mozilla Firefox\firefox.exe - \Program Files\Mozilla Firefox\firefox.exe filter_optional_tomcat: Application|endswith: \tomcat\bin\tomcat8.exe condition: selection and not 1 of filter_main_* and not 1 of filter_optional_* falsepositives: - Web Browsers and third party application might generate similar activity. An initial baseline is required. level: medium