Home/Detection rules/VMware Carbon Black
Tool
EDR / XDR

VMware Carbon Black

1,677 rules · Sigma detections in VMware Carbon Black syntax
The same Sigma detection corpus, machine-rendered into VMware Carbon Black query syntax and ready to paste. Switch platforms above for identical coverage in another language, or choose Sigma (generic) for the portable YAML.
Download all 3,646 rules (.zip, 1.2 MB) Every VMware Carbon Black query in this view, packaged to deploy.
Filter by techniquepick techniques from the ATT&CK matrix
Reconnaissance12
Resource Development10
Initial Access10
Execution30
Persistence42
Privilege Escalation20
Stealth79
Defense Impairment32
Credential Access35
Discovery33
Lateral Movement16
Collection20
Command and Control24
Exfiltration10
Impact18
Using these Sigma rules
Deploy. Pick your SIEM above and paste the rendered query straight into a saved search or detection rule, or expand any rule to convert its generic YAML inline to the language you run.
Adapt. Map the field names to your log schema - Sigma assumes a normalised taxonomy - and tune thresholds and timeframes to your own baseline before you trust the alert.
Validate. Every rule is mapped to ATT&CK, so run the matching Atomic Red Team test on /atomic to confirm the rule actually fires before you rely on it.
Judge. Each rule shows a quality tier (Strong / Moderate / Basic) and an estimated alert-volume tier (Low / Medium / High FP), both scored deterministically from the rule's shape - status, detection depth, match breadth, log source, documented false positives and references. A rule existing is not the same as a rule being good, or being quiet; hover either tier for the breakdown. The FP estimate reads rule shape, not a measured rate, so use it to pick what to tune first before you deploy.

Detection rules

50 shown of 1,677
high Moderate High FP
Malicious PowerShell Commandlets - ScriptBlock
Detects Commandlet names from well-known PowerShell exploitation frameworks
status test author Sean Metcalf, Florian Roth, Bartlomiej Czyz @bczyz1, oscd.community, Nasreddine Bencherchali, Tim Shelton, Mustafa Kaan Demir, Georg Lauenstein, Max Altgelt, Tobias Michalski, Austin Songer ATT&CK sub-technique id 89819aa4-bbd6-46bc-88ec-c7f7fe30efa6
carbon_black query
(ScriptBlockText:Add\-Exfiltration* OR ScriptBlockText:Add\-Persistence* OR ScriptBlockText:Add\-RegBackdoor* OR ScriptBlockText:Add\-RemoteRegBackdoor* OR ScriptBlockText:Add\-ScrnSaveBackdoor* OR ScriptBlockText:ConvertTo\-Rc4ByteStream* OR ScriptBlockText:Decrypt\-Hash* OR ScriptBlockText:Disable\-ADIDNSNode* OR ScriptBlockText:Do\-Exfiltration* OR ScriptBlockText:Enable\-ADIDNSNode* OR ScriptBlockText:Enabled\-DuplicateToken* OR ScriptBlockText:Exploit\-Jboss* OR ScriptBlockText:Export\-ADRCSV* OR ScriptBlockText:Export\-ADRExcel* OR ScriptBlockText:Export\-ADRHTML* OR ScriptBlockText:Export\-ADRJSON* OR ScriptBlockText:Export\-ADRXML* OR ScriptBlockText:Find\-Fruit* OR ScriptBlockText:Find\-GPOLocation* OR ScriptBlockText:Find\-TrustedDocuments* OR ScriptBlockText:Get\-ADIDNSNodeAttribute* OR ScriptBlockText:Get\-ADIDNSNodeOwner* OR ScriptBlockText:Get\-ADIDNSNodeTombstoned* OR ScriptBlockText:Get\-ADIDNSPermission* OR ScriptBlockText:Get\-ADIDNSZone* OR ScriptBlockText:Get\-ChromeDump* OR ScriptBlockText:Get\-ClipboardContents* OR ScriptBlockText:Get\-FoxDump* OR ScriptBlockText:Get\-GPPPassword* OR ScriptBlockText:Get\-IndexedItem* OR ScriptBlockText:Get\-KerberosAESKey* OR ScriptBlockText:Get\-Keystrokes* OR ScriptBlockText:Get\-LSASecret* OR ScriptBlockText:Get\-PassHashes* OR ScriptBlockText:Get\-RegAlwaysInstallElevated* OR ScriptBlockText:Get\-RegAutoLogon* OR ScriptBlockText:Get\-RemoteBootKey* OR ScriptBlockText:Get\-RemoteCachedCredential* OR ScriptBlockText:Get\-RemoteLocalAccountHash* OR ScriptBlockText:Get\-RemoteLSAKey* OR ScriptBlockText:Get\-RemoteMachineAccountHash* OR ScriptBlockText:Get\-RemoteNLKMKey* OR ScriptBlockText:Get\-RickAstley* OR ScriptBlockText:Get\-SecurityPackages* OR ScriptBlockText:Get\-ServiceFilePermission* OR ScriptBlockText:Get\-ServicePermission* OR ScriptBlockText:Get\-ServiceUnquoted* OR ScriptBlockText:Get\-SiteListPassword* OR ScriptBlockText:Get\-System* OR ScriptBlockText:Get\-TimedScreenshot* OR ScriptBlockText:Get\-UnattendedInstallFile* OR ScriptBlockText:Get\-Unconstrained* OR ScriptBlockText:Get\-USBKeystrokes* OR ScriptBlockText:Get\-VaultCredential* OR ScriptBlockText:Get\-VulnAutoRun* OR ScriptBlockText:Get\-VulnSchTask* OR ScriptBlockText:Grant\-ADIDNSPermission* OR ScriptBlockText:Gupt\-Backdoor* OR ScriptBlockText:Invoke\-ACLScanner* OR ScriptBlockText:Invoke\-ADRecon* OR ScriptBlockText:Invoke\-ADSBackdoor* OR ScriptBlockText:Invoke\-AgentSmith* OR ScriptBlockText:Invoke\-AllChecks* OR ScriptBlockText:Invoke\-ARPScan* OR ScriptBlockText:Invoke\-AzureHound* OR ScriptBlockText:Invoke\-BackdoorLNK* OR ScriptBlockText:Invoke\-BadPotato* OR ScriptBlockText:Invoke\-BetterSafetyKatz* OR ScriptBlockText:Invoke\-BypassUAC* OR ScriptBlockText:Invoke\-Carbuncle* OR ScriptBlockText:Invoke\-Certify* OR ScriptBlockText:Invoke\-ConPtyShell* OR ScriptBlockText:Invoke\-CredentialInjection* OR ScriptBlockText:Invoke\-DAFT* OR ScriptBlockText:Invoke\-DCSync* OR ScriptBlockText:Invoke\-DinvokeKatz* OR ScriptBlockText:Invoke\-DllInjection* OR ScriptBlockText:Invoke\-DNSUpdate* OR ScriptBlockText:Invoke\-DNSExfiltrator* OR ScriptBlockText:Invoke\-DomainPasswordSpray* OR ScriptBlockText:Invoke\-DowngradeAccount* OR ScriptBlockText:Invoke\-EgressCheck* OR ScriptBlockText:Invoke\-Eyewitness* OR ScriptBlockText:Invoke\-FakeLogonScreen* OR ScriptBlockText:Invoke\-Farmer* OR ScriptBlockText:Invoke\-Get\-RBCD\-Threaded* OR ScriptBlockText:Invoke\-Gopher* OR ScriptBlockText:Invoke\-Grouper* OR ScriptBlockText:Invoke\-HandleKatz* OR ScriptBlockText:Invoke\-ImpersonatedProcess* OR ScriptBlockText:Invoke\-ImpersonateSystem* OR ScriptBlockText:Invoke\-InteractiveSystemPowerShell* OR ScriptBlockText:Invoke\-Internalmonologue* OR ScriptBlockText:Invoke\-Inveigh* OR ScriptBlockText:Invoke\-InveighRelay* OR ScriptBlockText:Invoke\-KrbRelay* OR ScriptBlockText:Invoke\-LdapSignCheck* OR ScriptBlockText:Invoke\-Lockless* OR ScriptBlockText:Invoke\-MalSCCM* OR ScriptBlockText:Invoke\-Mimikatz* OR ScriptBlockText:Invoke\-Mimikittenz* OR ScriptBlockText:Invoke\-MITM6* OR ScriptBlockText:Invoke\-NanoDump* OR ScriptBlockText:Invoke\-NetRipper* OR ScriptBlockText:Invoke\-Nightmare* OR ScriptBlockText:Invoke\-NinjaCopy* OR ScriptBlockText:Invoke\-OfficeScrape* OR ScriptBlockText:Invoke\-OxidResolver* OR ScriptBlockText:Invoke\-P0wnedshell* OR ScriptBlockText:Invoke\-Paranoia* OR ScriptBlockText:Invoke\-PortScan* OR ScriptBlockText:Invoke\-PoshRatHttp* OR ScriptBlockText:Invoke\-PostExfil* OR ScriptBlockText:Invoke\-PowerDump* OR ScriptBlockText:Invoke\-PowerDPAPI* OR ScriptBlockText:Invoke\-PowerShellTCP* OR ScriptBlockText:Invoke\-PowerShellWMI* OR ScriptBlockText:Invoke\-PPLDump* OR ScriptBlockText:Invoke\-PsExec* OR ScriptBlockText:Invoke\-PSInject* OR ScriptBlockText:Invoke\-PsUaCme* OR ScriptBlockText:Invoke\-ReflectivePEInjection* OR ScriptBlockText:Invoke\-ReverseDNSLookup* OR ScriptBlockText:Invoke\-Rubeus* OR ScriptBlockText:Invoke\-RunAs* OR ScriptBlockText:Invoke\-SafetyKatz* OR ScriptBlockText:Invoke\-SauronEye* OR ScriptBlockText:Invoke\-SCShell* OR ScriptBlockText:Invoke\-Seatbelt* OR ScriptBlockText:Invoke\-ServiceAbuse* OR ScriptBlockText:Invoke\-ShadowSpray* OR ScriptBlockText:Invoke\-Sharp* OR ScriptBlockText:Invoke\-Shellcode* OR ScriptBlockText:Invoke\-SMBScanner* OR ScriptBlockText:Invoke\-Snaffler* OR ScriptBlockText:Invoke\-Spoolsample* OR ScriptBlockText:Invoke\-SpraySinglePassword* OR ScriptBlockText:Invoke\-SSHCommand* OR ScriptBlockText:Invoke\-StandIn* OR ScriptBlockText:Invoke\-StickyNotesExtract* OR ScriptBlockText:Invoke\-SystemCommand* OR ScriptBlockText:Invoke\-Tasksbackdoor* OR ScriptBlockText:Invoke\-Tater* OR ScriptBlockText:Invoke\-Thunderfox* OR ScriptBlockText:Invoke\-ThunderStruck* OR ScriptBlockText:Invoke\-TokenManipulation* OR ScriptBlockText:Invoke\-Tokenvator* OR ScriptBlockText:Invoke\-TotalExec* OR ScriptBlockText:Invoke\-UrbanBishop* OR ScriptBlockText:Invoke\-UserHunter* OR ScriptBlockText:Invoke\-VoiceTroll* OR ScriptBlockText:Invoke\-Whisker* OR ScriptBlockText:Invoke\-WinEnum* OR ScriptBlockText:Invoke\-winPEAS* OR ScriptBlockText:Invoke\-WireTap* OR ScriptBlockText:Invoke\-WmiCommand* OR ScriptBlockText:Invoke\-WMIExec* OR ScriptBlockText:Invoke\-WScriptBypassUAC* OR ScriptBlockText:Invoke\-Zerologon* OR ScriptBlockText:MailRaider* OR ScriptBlockText:New\-ADIDNSNode* OR ScriptBlockText:New\-HoneyHash* OR ScriptBlockText:New\-InMemoryModule* OR ScriptBlockText:New\-SOASerialNumberArray* OR ScriptBlockText:Out\-Minidump* OR ScriptBlockText:PowerBreach* OR ScriptBlockText:powercat\ * OR ScriptBlockText:PowerUp* OR ScriptBlockText:PowerView* OR ScriptBlockText:Remove\-ADIDNSNode* OR ScriptBlockText:Remove\-Update* OR ScriptBlockText:Rename\-ADIDNSNode* OR ScriptBlockText:Revoke\-ADIDNSPermission* OR ScriptBlockText:Set\-ADIDNSNode* OR ScriptBlockText:Show\-TargetScreen* OR ScriptBlockText:Start\-CaptureServer* OR ScriptBlockText:Start\-Dnscat2* OR ScriptBlockText:Start\-WebcamRecorder* OR ScriptBlockText:VolumeShadowCopyTools*) (-(ScriptBlockText:Get\-SystemDriveInfo* OR ScriptBlockText:C\:\\ProgramData\\Amazon\\EC2\-Windows\\Launch\\Module\\*))
view Sigma YAML
title: Malicious PowerShell Commandlets - ScriptBlock
id: 89819aa4-bbd6-46bc-88ec-c7f7fe30efa6
related:
    - id: 7d0d0329-0ef1-4e84-a9f5-49500f9d7c6c
      type: similar
    - id: 02030f2f-6199-49ec-b258-ea71b07e03dc
      type: similar
    - id: 6d3f1399-a81c-4409-aff3-1ecfe9330baf
      type: obsolete
    - id: 83083ac6-1816-4e76-97d7-59af9a9ae46e
      type: obsolete
status: test
description: Detects Commandlet names from well-known PowerShell exploitation frameworks
references:
    - https://adsecurity.org/?p=2921
    - https://github.com/S3cur3Th1sSh1t/PowerSharpPack/tree/master/PowerSharpBinaries
    - https://github.com/BC-SECURITY/Invoke-ZeroLogon/blob/111d17c7fec486d9bb23387e2e828b09a26075e4/Invoke-ZeroLogon.ps1
    - https://github.com/xorrior/RandomPS-Scripts/blob/848c919bfce4e2d67b626cbcf4404341cfe3d3b6/Get-DXWebcamVideo.ps1
    - https://github.com/rvrsh3ll/Misc-Powershell-Scripts/blob/6f23bb41f9675d7e2d32bacccff75e931ae00554/OfficeMemScraper.ps1
    - https://github.com/dafthack/DomainPasswordSpray/blob/b13d64a5834694aa73fd2aea9911a83027c465a7/DomainPasswordSpray.ps1
    - https://unit42.paloaltonetworks.com/threat-assessment-black-basta-ransomware/ # Invoke-TotalExec
    - https://research.nccgroup.com/2022/06/06/shining-the-light-on-black-basta/ # Invoke-TotalExec
    - https://github.com/calebstewart/CVE-2021-1675 # Invoke-Nightmare
    - https://github.com/BloodHoundAD/BloodHound/blob/0927441f67161cc6dc08a53c63ceb8e333f55874/Collectors/AzureHound.ps1
    - https://bloodhound.readthedocs.io/en/latest/data-collection/azurehound.html
    - https://github.com/HarmJ0y/DAMP
    - https://github.com/samratashok/nishang
    - https://github.com/DarkCoderSc/PowerRunAsSystem/
    - https://github.com/besimorhino/powercat
    - https://github.com/Kevin-Robertson/Powermad
    - https://github.com/adrecon/ADRecon
    - https://github.com/adrecon/AzureADRecon
    - https://github.com/The-Viper-One/Invoke-PowerDPAPI/
    - https://github.com/Arno0x/DNSExfiltrator/
author: Sean Metcalf, Florian Roth, Bartlomiej Czyz @bczyz1, oscd.community, Nasreddine Bencherchali, Tim Shelton, Mustafa Kaan Demir, Georg Lauenstein, Max Altgelt, Tobias Michalski, Austin Songer
date: 2017-03-05
modified: 2025-12-10
tags:
    - attack.execution
    - attack.discovery
    - attack.t1482
    - attack.t1087
    - attack.t1087.001
    - attack.t1087.002
    - attack.t1069.001
    - attack.t1069.002
    - attack.t1069
    - attack.t1059.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            # Note: Please ensure alphabetical order when adding new entries
            - 'Add-Exfiltration'
            - 'Add-Persistence'
            - 'Add-RegBackdoor'
            - 'Add-RemoteRegBackdoor'
            - 'Add-ScrnSaveBackdoor'
            - 'ConvertTo-Rc4ByteStream'
            - 'Decrypt-Hash'
            - 'Disable-ADIDNSNode'
            - 'Do-Exfiltration'
            - 'Enable-ADIDNSNode'
            - 'Enabled-DuplicateToken'
            - 'Exploit-Jboss'
            - 'Export-ADRCSV'
            - 'Export-ADRExcel'
            - 'Export-ADRHTML'
            - 'Export-ADRJSON'
            - 'Export-ADRXML'
            - 'Find-Fruit'
            - 'Find-GPOLocation'
            - 'Find-TrustedDocuments'
            - 'Get-ADIDNSNodeAttribute'
            - 'Get-ADIDNSNodeOwner'
            - 'Get-ADIDNSNodeTombstoned'
            - 'Get-ADIDNSPermission'
            - 'Get-ADIDNSZone'
            - 'Get-ChromeDump'
            - 'Get-ClipboardContents'
            - 'Get-FoxDump'
            - 'Get-GPPPassword'
            - 'Get-IndexedItem'
            - 'Get-KerberosAESKey'
            - 'Get-Keystrokes'
            - 'Get-LSASecret'
            - 'Get-PassHashes'
            - 'Get-RegAlwaysInstallElevated'
            - 'Get-RegAutoLogon'
            - 'Get-RemoteBootKey'
            - 'Get-RemoteCachedCredential'
            - 'Get-RemoteLocalAccountHash'
            - 'Get-RemoteLSAKey'
            - 'Get-RemoteMachineAccountHash'
            - 'Get-RemoteNLKMKey'
            - 'Get-RickAstley'
            - 'Get-SecurityPackages'
            - 'Get-ServiceFilePermission'
            - 'Get-ServicePermission'
            - 'Get-ServiceUnquoted'
            - 'Get-SiteListPassword'
            - 'Get-System'
            - 'Get-TimedScreenshot'
            - 'Get-UnattendedInstallFile'
            - 'Get-Unconstrained'
            - 'Get-USBKeystrokes'
            - 'Get-VaultCredential'
            - 'Get-VulnAutoRun'
            - 'Get-VulnSchTask'
            - 'Grant-ADIDNSPermission'
            - 'Gupt-Backdoor'
            - 'Invoke-ACLScanner'
            - 'Invoke-ADRecon'
            - 'Invoke-ADSBackdoor'
            - 'Invoke-AgentSmith'
            - 'Invoke-AllChecks'
            - 'Invoke-ARPScan'
            - 'Invoke-AzureHound'
            - 'Invoke-BackdoorLNK'
            - 'Invoke-BadPotato'
            - 'Invoke-BetterSafetyKatz'
            - 'Invoke-BypassUAC'
            - 'Invoke-Carbuncle'
            - 'Invoke-Certify'
            - 'Invoke-ConPtyShell'
            - 'Invoke-CredentialInjection'
            - 'Invoke-DAFT'
            - 'Invoke-DCSync'
            - 'Invoke-DinvokeKatz'
            - 'Invoke-DllInjection'
            - 'Invoke-DNSUpdate'
            - 'Invoke-DNSExfiltrator'
            - 'Invoke-DomainPasswordSpray'
            - 'Invoke-DowngradeAccount'
            - 'Invoke-EgressCheck'
            - 'Invoke-Eyewitness'
            - 'Invoke-FakeLogonScreen'
            - 'Invoke-Farmer'
            - 'Invoke-Get-RBCD-Threaded'
            - 'Invoke-Gopher'
            - 'Invoke-Grouper' # Also Covers Invoke-GrouperX
            - 'Invoke-HandleKatz'
            - 'Invoke-ImpersonatedProcess'
            - 'Invoke-ImpersonateSystem'
            - 'Invoke-InteractiveSystemPowerShell'
            - 'Invoke-Internalmonologue'
            - 'Invoke-Inveigh'
            - 'Invoke-InveighRelay'
            - 'Invoke-KrbRelay'
            - 'Invoke-LdapSignCheck'
            - 'Invoke-Lockless'
            - 'Invoke-MalSCCM'
            - 'Invoke-Mimikatz'
            - 'Invoke-Mimikittenz'
            - 'Invoke-MITM6'
            - 'Invoke-NanoDump'
            - 'Invoke-NetRipper'
            - 'Invoke-Nightmare'
            - 'Invoke-NinjaCopy'
            - 'Invoke-OfficeScrape'
            - 'Invoke-OxidResolver'
            - 'Invoke-P0wnedshell'
            - 'Invoke-Paranoia'
            - 'Invoke-PortScan'
            - 'Invoke-PoshRatHttp' # Also Covers Invoke-PoshRatHttps
            - 'Invoke-PostExfil'
            - 'Invoke-PowerDump'
            - 'Invoke-PowerDPAPI'
            - 'Invoke-PowerShellTCP'
            - 'Invoke-PowerShellWMI'
            - 'Invoke-PPLDump'
            - 'Invoke-PsExec'
            - 'Invoke-PSInject'
            - 'Invoke-PsUaCme'
            - 'Invoke-ReflectivePEInjection'
            - 'Invoke-ReverseDNSLookup'
            - 'Invoke-Rubeus'
            - 'Invoke-RunAs'
            - 'Invoke-SafetyKatz'
            - 'Invoke-SauronEye'
            - 'Invoke-SCShell'
            - 'Invoke-Seatbelt'
            - 'Invoke-ServiceAbuse'
            - 'Invoke-ShadowSpray'
            - 'Invoke-Sharp' # Covers all "Invoke-Sharp" variants
            - 'Invoke-Shellcode'
            - 'Invoke-SMBScanner'
            - 'Invoke-Snaffler'
            - 'Invoke-Spoolsample'
            - 'Invoke-SpraySinglePassword'
            - 'Invoke-SSHCommand'
            - 'Invoke-StandIn'
            - 'Invoke-StickyNotesExtract'
            - 'Invoke-SystemCommand'
            - 'Invoke-Tasksbackdoor'
            - 'Invoke-Tater'
            - 'Invoke-Thunderfox'
            - 'Invoke-ThunderStruck'
            - 'Invoke-TokenManipulation'
            - 'Invoke-Tokenvator'
            - 'Invoke-TotalExec'
            - 'Invoke-UrbanBishop'
            - 'Invoke-UserHunter'
            - 'Invoke-VoiceTroll'
            - 'Invoke-Whisker'
            - 'Invoke-WinEnum'
            - 'Invoke-winPEAS'
            - 'Invoke-WireTap'
            - 'Invoke-WmiCommand'
            - 'Invoke-WMIExec'
            - 'Invoke-WScriptBypassUAC'
            - 'Invoke-Zerologon'
            - 'MailRaider'
            - 'New-ADIDNSNode'
            - 'New-HoneyHash'
            - 'New-InMemoryModule'
            - 'New-SOASerialNumberArray'
            - 'Out-Minidump'
            - 'PowerBreach'
            - 'powercat '
            - 'PowerUp'
            - 'PowerView'
            - 'Remove-ADIDNSNode'
            - 'Remove-Update'
            - 'Rename-ADIDNSNode'
            - 'Revoke-ADIDNSPermission'
            - 'Set-ADIDNSNode' # Covers: Set-ADIDNSNodeAttribute, Set-ADIDNSNodeOwner
            - 'Show-TargetScreen'
            - 'Start-CaptureServer'
            - 'Start-Dnscat2'
            - 'Start-WebcamRecorder'
            - 'VolumeShadowCopyTools'
            # - 'Check-VM'
            # - 'Disable-MachineAccount'
            # - 'Enable-MachineAccount'
            # - 'Get-ApplicationHost'
            # - 'Get-MachineAccountAttribute'
            # - 'Get-MachineAccountCreator'
            # - 'Get-Screenshot'
            # - 'HTTP-Login'
            # - 'Install-ServiceBinary'
            # - 'Install-SSP'
            # - 'New-DNSRecordArray'
            # - 'New-MachineAccount'
            # - 'Port-Scan'
            # - 'Remove-MachineAccount'
            # - 'Set-MacAttribute'
            # - 'Set-MachineAccountAttribute'
            # - 'Set-Wallpaper'
    filter_optional_amazon_ec2:
        ScriptBlockText|contains:
            - Get-SystemDriveInfo  # http://bheltborg.dk/Windows/WinSxS/amd64_microsoft-windows-maintenancediagnostic_31bf3856ad364e35_10.0.10240.16384_none_91ef7543a4514b5e/CL_Utility.ps1
            - C:\ProgramData\Amazon\EC2-Windows\Launch\Module\  # false positive form Amazon EC2
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
Malicious PowerShell Scripts - FileCreation
Detects the creation of known offensive powershell scripts used for exploitation
status test author Markus Neis, Nasreddine Bencherchali (Nextron Systems), Mustafa Kaan Demir, Georg Lauenstein ATT&CK sub-technique id f331aa1f-8c53-4fc3-b083-cc159bc971cb
carbon_black query
(TargetFilename:\\Add\-ConstrainedDelegationBackdoor.ps1 OR TargetFilename:\\Add\-Exfiltration.ps1 OR TargetFilename:\\Add\-Persistence.ps1 OR TargetFilename:\\Add\-RegBackdoor.ps1 OR TargetFilename:\\Add\-RemoteRegBackdoor.ps1 OR TargetFilename:\\Add\-ScrnSaveBackdoor.ps1 OR TargetFilename:\\ADRecon.ps1 OR TargetFilename:\\AzureADRecon.ps1 OR TargetFilename:\\BadSuccessor.ps1 OR TargetFilename:\\Check\-VM.ps1 OR TargetFilename:\\ConvertTo\-ROT13.ps1 OR TargetFilename:\\Copy\-VSS.ps1 OR TargetFilename:\\Create\-MultipleSessions.ps1 OR TargetFilename:\\DNS_TXT_Pwnage.ps1 OR TargetFilename:\\dnscat2.ps1 OR TargetFilename:\\Do\-Exfiltration.ps1 OR TargetFilename:\\DomainPasswordSpray.ps1 OR TargetFilename:\\Download_Execute.ps1 OR TargetFilename:\\Download\-Execute\-PS.ps1 OR TargetFilename:\\Enable\-DuplicateToken.ps1 OR TargetFilename:\\Enabled\-DuplicateToken.ps1 OR TargetFilename:\\Execute\-Command\-MSSQL.ps1 OR TargetFilename:\\Execute\-DNSTXT\-Code.ps1 OR TargetFilename:\\Execute\-OnTime.ps1 OR TargetFilename:\\ExetoText.ps1 OR TargetFilename:\\Exploit\-Jboss.ps1 OR TargetFilename:\\Find\-AVSignature.ps1 OR TargetFilename:\\Find\-Fruit.ps1 OR TargetFilename:\\Find\-GPOLocation.ps1 OR TargetFilename:\\Find\-TrustedDocuments.ps1 OR TargetFilename:\\FireBuster.ps1 OR TargetFilename:\\FireListener.ps1 OR TargetFilename:\\Get\-ApplicationHost.ps1 OR TargetFilename:\\Get\-ChromeDump.ps1 OR TargetFilename:\\Get\-ClipboardContents.ps1 OR TargetFilename:\\Get\-ComputerDetail.ps1 OR TargetFilename:\\Get\-FoxDump.ps1 OR TargetFilename:\\Get\-GPPAutologon.ps1 OR TargetFilename:\\Get\-GPPPassword.ps1 OR TargetFilename:\\Get\-IndexedItem.ps1 OR TargetFilename:\\Get\-Keystrokes.ps1 OR TargetFilename:\\Get\-LSASecret.ps1 OR TargetFilename:\\Get\-MicrophoneAudio.ps1 OR TargetFilename:\\Get\-PassHashes.ps1 OR TargetFilename:\\Get\-PassHints.ps1 OR TargetFilename:\\Get\-RegAlwaysInstallElevated.ps1 OR TargetFilename:\\Get\-RegAutoLogon.ps1 OR TargetFilename:\\Get\-RickAstley.ps1 OR TargetFilename:\\Get\-Screenshot.ps1 OR TargetFilename:\\Get\-SecurityPackages.ps1 OR TargetFilename:\\Get\-ServiceFilePermission.ps1 OR TargetFilename:\\Get\-ServicePermission.ps1 OR TargetFilename:\\Get\-ServiceUnquoted.ps1 OR TargetFilename:\\Get\-SiteListPassword.ps1 OR TargetFilename:\\Get\-System.ps1 OR TargetFilename:\\Get\-TimedScreenshot.ps1 OR TargetFilename:\\Get\-UnattendedInstallFile.ps1 OR TargetFilename:\\Get\-Unconstrained.ps1 OR TargetFilename:\\Get\-USBKeystrokes.ps1 OR TargetFilename:\\Get\-VaultCredential.ps1 OR TargetFilename:\\Get\-VulnAutoRun.ps1 OR TargetFilename:\\Get\-VulnSchTask.ps1 OR TargetFilename:\\Get\-WebConfig.ps1 OR TargetFilename:\\Get\-WebCredentials.ps1 OR TargetFilename:\\Get\-WLAN\-Keys.ps1 OR TargetFilename:\\Gupt\-Backdoor.ps1 OR TargetFilename:\\HTTP\-Backdoor.ps1 OR TargetFilename:\\HTTP\-Login.ps1 OR TargetFilename:\\Install\-ServiceBinary.ps1 OR TargetFilename:\\Install\-SSP.ps1 OR TargetFilename:\\Invoke\-ACLScanner.ps1 OR TargetFilename:\\Invoke\-ADSBackdoor.ps1 OR TargetFilename:\\Invoke\-AmsiBypass.ps1 OR TargetFilename:\\Invoke\-ARPScan.ps1 OR TargetFilename:\\Invoke\-BackdoorLNK.ps1 OR TargetFilename:\\Invoke\-BadPotato.ps1 OR TargetFilename:\\Invoke\-BetterSafetyKatz.ps1 OR TargetFilename:\\Invoke\-BruteForce.ps1 OR TargetFilename:\\Invoke\-BypassUAC.ps1 OR TargetFilename:\\Invoke\-Carbuncle.ps1 OR TargetFilename:\\Invoke\-Certify.ps1 OR TargetFilename:\\Invoke\-ConPtyShell.ps1 OR TargetFilename:\\Invoke\-CredentialInjection.ps1 OR TargetFilename:\\Invoke\-CredentialsPhish.ps1 OR TargetFilename:\\Invoke\-DAFT.ps1 OR TargetFilename:\\Invoke\-DCSync.ps1 OR TargetFilename:\\Invoke\-Decode.ps1 OR TargetFilename:\\Invoke\-DinvokeKatz.ps1 OR TargetFilename:\\Invoke\-DllInjection.ps1 OR TargetFilename:\\Invoke\-DNSExfiltrator.ps1 OR TargetFilename:\\Invoke\-DNSUpdate.ps1 OR TargetFilename:\\Invoke\-DowngradeAccount.ps1 OR TargetFilename:\\Invoke\-EgressCheck.ps1 OR TargetFilename:\\Invoke\-Encode.ps1 OR TargetFilename:\\Invoke\-EventViewer.ps1 OR TargetFilename:\\Invoke\-Eyewitness.ps1 OR TargetFilename:\\Invoke\-FakeLogonScreen.ps1 OR TargetFilename:\\Invoke\-Farmer.ps1 OR TargetFilename:\\Invoke\-Get\-RBCD\-Threaded.ps1 OR TargetFilename:\\Invoke\-Gopher.ps1 OR TargetFilename:\\Invoke\-Grouper2.ps1 OR TargetFilename:\\Invoke\-Grouper3.ps1 OR TargetFilename:\\Invoke\-HandleKatz.ps1 OR TargetFilename:\\Invoke\-Interceptor.ps1 OR TargetFilename:\\Invoke\-Internalmonologue.ps1 OR TargetFilename:\\Invoke\-Inveigh.ps1 OR TargetFilename:\\Invoke\-InveighRelay.ps1 OR TargetFilename:\\Invoke\-JSRatRegsvr.ps1 OR TargetFilename:\\Invoke\-JSRatRundll.ps1 OR TargetFilename:\\Invoke\-KrbRelay.ps1 OR TargetFilename:\\Invoke\-KrbRelayUp.ps1 OR TargetFilename:\\Invoke\-LdapSignCheck.ps1 OR TargetFilename:\\Invoke\-Lockless.ps1 OR TargetFilename:\\Invoke\-MalSCCM.ps1 OR TargetFilename:\\Invoke\-Mimikatz.ps1 OR TargetFilename:\\Invoke\-MimikatzWDigestDowngrade.ps1 OR TargetFilename:\\Invoke\-Mimikittenz.ps1 OR TargetFilename:\\Invoke\-MITM6.ps1 OR TargetFilename:\\Invoke\-NanoDump.ps1 OR TargetFilename:\\Invoke\-NetRipper.ps1 OR TargetFilename:\\Invoke\-NetworkRelay.ps1 OR TargetFilename:\\Invoke\-NinjaCopy.ps1 OR TargetFilename:\\Invoke\-OxidResolver.ps1 OR TargetFilename:\\Invoke\-P0wnedshell.ps1 OR TargetFilename:\\Invoke\-P0wnedshellx86.ps1 OR TargetFilename:\\Invoke\-Paranoia.ps1 OR TargetFilename:\\Invoke\-PortScan.ps1 OR TargetFilename:\\Invoke\-PoshRatHttp.ps1 OR TargetFilename:\\Invoke\-PoshRatHttps.ps1 OR TargetFilename:\\Invoke\-PostExfil.ps1 OR TargetFilename:\\Invoke\-PowerDump.ps1 OR TargetFilename:\\Invoke\-PowerDPAPI.ps1 OR TargetFilename:\\Invoke\-PowerShellIcmp.ps1 OR TargetFilename:\\Invoke\-PowerShellTCP.ps1 OR TargetFilename:\\Invoke\-PowerShellTcpOneLine.ps1 OR TargetFilename:\\Invoke\-PowerShellTcpOneLineBind.ps1 OR TargetFilename:\\Invoke\-PowerShellUdp.ps1 OR TargetFilename:\\Invoke\-PowerShellUdpOneLine.ps1 OR TargetFilename:\\Invoke\-PowerShellWMI.ps1 OR TargetFilename:\\Invoke\-PowerThIEf.ps1 OR TargetFilename:\\Invoke\-PPLDump.ps1 OR TargetFilename:\\Invoke\-Prasadhak.ps1 OR TargetFilename:\\Invoke\-PsExec.ps1 OR TargetFilename:\\Invoke\-PsGcat.ps1 OR TargetFilename:\\Invoke\-PsGcatAgent.ps1 OR TargetFilename:\\Invoke\-PSInject.ps1 OR TargetFilename:\\Invoke\-PsUaCme.ps1 OR TargetFilename:\\Invoke\-ReflectivePEInjection.ps1 OR TargetFilename:\\Invoke\-ReverseDNSLookup.ps1 OR TargetFilename:\\Invoke\-Rubeus.ps1 OR TargetFilename:\\Invoke\-RunAs.ps1 OR TargetFilename:\\Invoke\-SafetyKatz.ps1 OR TargetFilename:\\Invoke\-SauronEye.ps1 OR TargetFilename:\\Invoke\-SCShell.ps1 OR TargetFilename:\\Invoke\-Seatbelt.ps1 OR TargetFilename:\\Invoke\-ServiceAbuse.ps1 OR TargetFilename:\\Invoke\-SessionGopher.ps1 OR TargetFilename:\\Invoke\-ShellCode.ps1 OR TargetFilename:\\Invoke\-SMBScanner.ps1 OR TargetFilename:\\Invoke\-Snaffler.ps1 OR TargetFilename:\\Invoke\-Spoolsample.ps1 OR TargetFilename:\\Invoke\-SSHCommand.ps1 OR TargetFilename:\\Invoke\-SSIDExfil.ps1 OR TargetFilename:\\Invoke\-StandIn.ps1 OR TargetFilename:\\Invoke\-StickyNotesExtract.ps1 OR TargetFilename:\\Invoke\-Tater.ps1 OR TargetFilename:\\Invoke\-Thunderfox.ps1 OR TargetFilename:\\Invoke\-ThunderStruck.ps1 OR TargetFilename:\\Invoke\-TokenManipulation.ps1 OR TargetFilename:\\Invoke\-Tokenvator.ps1 OR TargetFilename:\\Invoke\-TotalExec.ps1 OR TargetFilename:\\Invoke\-UrbanBishop.ps1 OR TargetFilename:\\Invoke\-UserHunter.ps1 OR TargetFilename:\\Invoke\-VoiceTroll.ps1 OR TargetFilename:\\Invoke\-Whisker.ps1 OR TargetFilename:\\Invoke\-WinEnum.ps1 OR TargetFilename:\\Invoke\-winPEAS.ps1 OR TargetFilename:\\Invoke\-WireTap.ps1 OR TargetFilename:\\Invoke\-WmiCommand.ps1 OR TargetFilename:\\Invoke\-WScriptBypassUAC.ps1 OR TargetFilename:\\Invoke\-Zerologon.ps1 OR TargetFilename:\\Keylogger.ps1 OR TargetFilename:\\MailRaider.ps1 OR TargetFilename:\\New\-HoneyHash.ps1 OR TargetFilename:\\OfficeMemScraper.ps1 OR TargetFilename:\\Offline_Winpwn.ps1 OR TargetFilename:\\Out\-CHM.ps1 OR TargetFilename:\\Out\-DnsTxt.ps1 OR TargetFilename:\\Out\-Excel.ps1 OR TargetFilename:\\Out\-HTA.ps1 OR TargetFilename:\\Out\-Java.ps1 OR TargetFilename:\\Out\-JS.ps1 OR TargetFilename:\\Out\-Minidump.ps1 OR TargetFilename:\\Out\-RundllCommand.ps1 OR TargetFilename:\\Out\-SCF.ps1 OR TargetFilename:\\Out\-SCT.ps1 OR TargetFilename:\\Out\-Shortcut.ps1 OR TargetFilename:\\Out\-WebQuery.ps1 OR TargetFilename:\\Out\-Word.ps1 OR TargetFilename:\\Parse_Keys.ps1 OR TargetFilename:\\Port\-Scan.ps1 OR TargetFilename:\\PowerBreach.ps1 OR TargetFilename:\\powercat.ps1 OR TargetFilename:\\Powermad.ps1 OR TargetFilename:\\PowerRunAsSystem.psm1 OR TargetFilename:\\PowerSharpPack.ps1 OR TargetFilename:\\PowerUp.ps1 OR TargetFilename:\\PowerUpSQL.ps1 OR TargetFilename:\\PowerView.ps1 OR TargetFilename:\\PSAsyncShell.ps1 OR TargetFilename:\\RemoteHashRetrieval.ps1 OR TargetFilename:\\Remove\-Persistence.ps1 OR TargetFilename:\\Remove\-PoshRat.ps1 OR TargetFilename:\\Remove\-Update.ps1 OR TargetFilename:\\Run\-EXEonRemote.ps1 OR TargetFilename:\\Schtasks\-Backdoor.ps1 OR TargetFilename:\\Set\-DCShadowPermissions.ps1 OR TargetFilename:\\Set\-MacAttribute.ps1 OR TargetFilename:\\Set\-RemotePSRemoting.ps1 OR TargetFilename:\\Set\-RemoteWMI.ps1 OR TargetFilename:\\Set\-Wallpaper.ps1 OR TargetFilename:\\Show\-TargetScreen.ps1 OR TargetFilename:\\Speak.ps1 OR TargetFilename:\\Start\-CaptureServer.ps1 OR TargetFilename:\\Start\-WebcamRecorder.ps1 OR TargetFilename:\\StringToBase64.ps1 OR TargetFilename:\\TexttoExe.ps1 OR TargetFilename:\\Veeam\-Get\-Creds.ps1 OR TargetFilename:\\VolumeShadowCopyTools.ps1 OR TargetFilename:\\WinPwn.ps1 OR TargetFilename:\\WSUSpendu.ps1) OR (TargetFilename:Invoke\-Sharp* TargetFilename:.ps1)
view Sigma YAML
title: Malicious PowerShell Scripts - FileCreation
id: f331aa1f-8c53-4fc3-b083-cc159bc971cb
related:
    - id: 41025fd7-0466-4650-a813-574aaacbe7f4
      type: similar
status: test
description: Detects the creation of known offensive powershell scripts used for exploitation
references:
    - https://github.com/PowerShellMafia/PowerSploit
    - https://github.com/NetSPI/PowerUpSQL
    - https://github.com/CsEnox/EventViewer-UACBypass
    - https://web.archive.org/web/20210511204621/https://github.com/AlsidOfficial/WSUSpendu
    - https://github.com/nettitude/Invoke-PowerThIEf
    - https://github.com/S3cur3Th1sSh1t/WinPwn
    - https://github.com/S3cur3Th1sSh1t/PowerSharpPack/tree/master/PowerSharpBinaries
    - https://github.com/BC-SECURITY/Invoke-ZeroLogon/blob/111d17c7fec486d9bb23387e2e828b09a26075e4/Invoke-ZeroLogon.ps1
    - https://github.com/xorrior/RandomPS-Scripts/blob/848c919bfce4e2d67b626cbcf4404341cfe3d3b6/Get-DXWebcamVideo.ps1
    - https://github.com/rvrsh3ll/Misc-Powershell-Scripts/blob/6f23bb41f9675d7e2d32bacccff75e931ae00554/OfficeMemScraper.ps1
    - https://github.com/dafthack/DomainPasswordSpray/blob/b13d64a5834694aa73fd2aea9911a83027c465a7/DomainPasswordSpray.ps1
    - https://unit42.paloaltonetworks.com/threat-assessment-black-basta-ransomware/ # Invoke-TotalExec
    - https://research.nccgroup.com/2022/06/06/shining-the-light-on-black-basta/ # Invoke-TotalExec
    - https://github.com/HarmJ0y/DAMP
    - https://github.com/samratashok/nishang
    - https://github.com/DarkCoderSc/PowerRunAsSystem/
    - https://github.com/besimorhino/powercat
    - https://github.com/Kevin-Robertson/Powermad
    - https://github.com/adrecon/ADRecon
    - https://github.com/adrecon/AzureADRecon
    - https://github.com/sadshade/veeam-creds/blob/6010eaf31ba41011b58d6af3950cffbf6f5cea32/Veeam-Get-Creds.ps1
    - https://github.com/The-Viper-One/Invoke-PowerDPAPI/
    - https://github.com/Arno0x/DNSExfiltrator/
author: Markus Neis, Nasreddine Bencherchali (Nextron Systems), Mustafa Kaan Demir, Georg Lauenstein
date: 2018-04-07
modified: 2025-12-10
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: file_event
    product: windows
detection:
    selection_generic:
        TargetFilename|endswith:
            # Note: Please ensure alphabetical order when adding new entries
            - '\Add-ConstrainedDelegationBackdoor.ps1'
            - '\Add-Exfiltration.ps1'
            - '\Add-Persistence.ps1'
            - '\Add-RegBackdoor.ps1'
            - '\Add-RemoteRegBackdoor.ps1'
            - '\Add-ScrnSaveBackdoor.ps1'
            - '\ADRecon.ps1'
            - '\AzureADRecon.ps1'
            - '\BadSuccessor.ps1'
            - '\Check-VM.ps1'
            - '\ConvertTo-ROT13.ps1'
            - '\Copy-VSS.ps1'
            - '\Create-MultipleSessions.ps1'
            - '\DNS_TXT_Pwnage.ps1'
            - '\dnscat2.ps1'
            - '\Do-Exfiltration.ps1'
            - '\DomainPasswordSpray.ps1'
            - '\Download_Execute.ps1'
            - '\Download-Execute-PS.ps1'
            - '\Enable-DuplicateToken.ps1'
            - '\Enabled-DuplicateToken.ps1'
            - '\Execute-Command-MSSQL.ps1'
            - '\Execute-DNSTXT-Code.ps1'
            - '\Execute-OnTime.ps1'
            - '\ExetoText.ps1'
            - '\Exploit-Jboss.ps1'
            - '\Find-AVSignature.ps1'
            - '\Find-Fruit.ps1'
            - '\Find-GPOLocation.ps1'
            - '\Find-TrustedDocuments.ps1'
            - '\FireBuster.ps1'
            - '\FireListener.ps1'
            - '\Get-ApplicationHost.ps1'
            - '\Get-ChromeDump.ps1'
            - '\Get-ClipboardContents.ps1'
            - '\Get-ComputerDetail.ps1'
            - '\Get-FoxDump.ps1'
            - '\Get-GPPAutologon.ps1'
            - '\Get-GPPPassword.ps1'
            - '\Get-IndexedItem.ps1'
            - '\Get-Keystrokes.ps1'
            - '\Get-LSASecret.ps1'
            - '\Get-MicrophoneAudio.ps1'
            - '\Get-PassHashes.ps1'
            - '\Get-PassHints.ps1'
            - '\Get-RegAlwaysInstallElevated.ps1'
            - '\Get-RegAutoLogon.ps1'
            - '\Get-RickAstley.ps1'
            - '\Get-Screenshot.ps1'
            - '\Get-SecurityPackages.ps1'
            - '\Get-ServiceFilePermission.ps1'
            - '\Get-ServicePermission.ps1'
            - '\Get-ServiceUnquoted.ps1'
            - '\Get-SiteListPassword.ps1'
            - '\Get-System.ps1'
            - '\Get-TimedScreenshot.ps1'
            - '\Get-UnattendedInstallFile.ps1'
            - '\Get-Unconstrained.ps1'
            - '\Get-USBKeystrokes.ps1'
            - '\Get-VaultCredential.ps1'
            - '\Get-VulnAutoRun.ps1'
            - '\Get-VulnSchTask.ps1'
            - '\Get-WebConfig.ps1'
            - '\Get-WebCredentials.ps1'
            - '\Get-WLAN-Keys.ps1'
            - '\Gupt-Backdoor.ps1'
            - '\HTTP-Backdoor.ps1'
            - '\HTTP-Login.ps1'
            - '\Install-ServiceBinary.ps1'
            - '\Install-SSP.ps1'
            - '\Invoke-ACLScanner.ps1'
            - '\Invoke-ADSBackdoor.ps1'
            - '\Invoke-AmsiBypass.ps1'
            - '\Invoke-ARPScan.ps1'
            - '\Invoke-BackdoorLNK.ps1'
            - '\Invoke-BadPotato.ps1'
            - '\Invoke-BetterSafetyKatz.ps1'
            - '\Invoke-BruteForce.ps1'
            - '\Invoke-BypassUAC.ps1'
            - '\Invoke-Carbuncle.ps1'
            - '\Invoke-Certify.ps1'
            - '\Invoke-ConPtyShell.ps1'
            - '\Invoke-CredentialInjection.ps1'
            - '\Invoke-CredentialsPhish.ps1'
            - '\Invoke-DAFT.ps1'
            - '\Invoke-DCSync.ps1'
            - '\Invoke-Decode.ps1'
            - '\Invoke-DinvokeKatz.ps1'
            - '\Invoke-DllInjection.ps1'
            - '\Invoke-DNSExfiltrator.ps1'
            - '\Invoke-DNSUpdate.ps1'
            - '\Invoke-DowngradeAccount.ps1'
            - '\Invoke-EgressCheck.ps1'
            - '\Invoke-Encode.ps1'
            - '\Invoke-EventViewer.ps1'
            - '\Invoke-Eyewitness.ps1'
            - '\Invoke-FakeLogonScreen.ps1'
            - '\Invoke-Farmer.ps1'
            - '\Invoke-Get-RBCD-Threaded.ps1'
            - '\Invoke-Gopher.ps1'
            - '\Invoke-Grouper2.ps1'
            - '\Invoke-Grouper3.ps1'
            - '\Invoke-HandleKatz.ps1'
            - '\Invoke-Interceptor.ps1'
            - '\Invoke-Internalmonologue.ps1'
            - '\Invoke-Inveigh.ps1'
            - '\Invoke-InveighRelay.ps1'
            - '\Invoke-JSRatRegsvr.ps1'
            - '\Invoke-JSRatRundll.ps1'
            - '\Invoke-KrbRelay.ps1'
            - '\Invoke-KrbRelayUp.ps1'
            - '\Invoke-LdapSignCheck.ps1'
            - '\Invoke-Lockless.ps1'
            - '\Invoke-MalSCCM.ps1'
            - '\Invoke-Mimikatz.ps1'
            - '\Invoke-MimikatzWDigestDowngrade.ps1'
            - '\Invoke-Mimikittenz.ps1'
            - '\Invoke-MITM6.ps1'
            - '\Invoke-NanoDump.ps1'
            - '\Invoke-NetRipper.ps1'
            - '\Invoke-NetworkRelay.ps1'
            - '\Invoke-NinjaCopy.ps1'
            - '\Invoke-OxidResolver.ps1'
            - '\Invoke-P0wnedshell.ps1'
            - '\Invoke-P0wnedshellx86.ps1'
            - '\Invoke-Paranoia.ps1'
            - '\Invoke-PortScan.ps1'
            - '\Invoke-PoshRatHttp.ps1'
            - '\Invoke-PoshRatHttps.ps1'
            - '\Invoke-PostExfil.ps1'
            - '\Invoke-PowerDump.ps1'
            - '\Invoke-PowerDPAPI.ps1'
            - '\Invoke-PowerShellIcmp.ps1'
            - '\Invoke-PowerShellTCP.ps1'
            - '\Invoke-PowerShellTcpOneLine.ps1'
            - '\Invoke-PowerShellTcpOneLineBind.ps1'
            - '\Invoke-PowerShellUdp.ps1'
            - '\Invoke-PowerShellUdpOneLine.ps1'
            - '\Invoke-PowerShellWMI.ps1'
            - '\Invoke-PowerThIEf.ps1'
            - '\Invoke-PPLDump.ps1'
            - '\Invoke-Prasadhak.ps1'
            - '\Invoke-PsExec.ps1'
            - '\Invoke-PsGcat.ps1'
            - '\Invoke-PsGcatAgent.ps1'
            - '\Invoke-PSInject.ps1'
            - '\Invoke-PsUaCme.ps1'
            - '\Invoke-ReflectivePEInjection.ps1'
            - '\Invoke-ReverseDNSLookup.ps1'
            - '\Invoke-Rubeus.ps1'
            - '\Invoke-RunAs.ps1'
            - '\Invoke-SafetyKatz.ps1'
            - '\Invoke-SauronEye.ps1'
            - '\Invoke-SCShell.ps1'
            - '\Invoke-Seatbelt.ps1'
            - '\Invoke-ServiceAbuse.ps1'
            - '\Invoke-SessionGopher.ps1'
            - '\Invoke-ShellCode.ps1'
            - '\Invoke-SMBScanner.ps1'
            - '\Invoke-Snaffler.ps1'
            - '\Invoke-Spoolsample.ps1'
            - '\Invoke-SSHCommand.ps1'
            - '\Invoke-SSIDExfil.ps1'
            - '\Invoke-StandIn.ps1'
            - '\Invoke-StickyNotesExtract.ps1'
            - '\Invoke-Tater.ps1'
            - '\Invoke-Thunderfox.ps1'
            - '\Invoke-ThunderStruck.ps1'
            - '\Invoke-TokenManipulation.ps1'
            - '\Invoke-Tokenvator.ps1'
            - '\Invoke-TotalExec.ps1'
            - '\Invoke-UrbanBishop.ps1'
            - '\Invoke-UserHunter.ps1'
            - '\Invoke-VoiceTroll.ps1'
            - '\Invoke-Whisker.ps1'
            - '\Invoke-WinEnum.ps1'
            - '\Invoke-winPEAS.ps1'
            - '\Invoke-WireTap.ps1'
            - '\Invoke-WmiCommand.ps1'
            - '\Invoke-WScriptBypassUAC.ps1'
            - '\Invoke-Zerologon.ps1'
            - '\Keylogger.ps1'
            - '\MailRaider.ps1'
            - '\New-HoneyHash.ps1'
            - '\OfficeMemScraper.ps1'
            - '\Offline_Winpwn.ps1'
            - '\Out-CHM.ps1'
            - '\Out-DnsTxt.ps1'
            - '\Out-Excel.ps1'
            - '\Out-HTA.ps1'
            - '\Out-Java.ps1'
            - '\Out-JS.ps1'
            - '\Out-Minidump.ps1'
            - '\Out-RundllCommand.ps1'
            - '\Out-SCF.ps1'
            - '\Out-SCT.ps1'
            - '\Out-Shortcut.ps1'
            - '\Out-WebQuery.ps1'
            - '\Out-Word.ps1'
            - '\Parse_Keys.ps1'
            - '\Port-Scan.ps1'
            - '\PowerBreach.ps1'
            - '\powercat.ps1'
            - '\Powermad.ps1'
            - '\PowerRunAsSystem.psm1'
            - '\PowerSharpPack.ps1'
            - '\PowerUp.ps1'
            - '\PowerUpSQL.ps1'
            - '\PowerView.ps1'
            - '\PSAsyncShell.ps1'
            - '\RemoteHashRetrieval.ps1'
            - '\Remove-Persistence.ps1'
            - '\Remove-PoshRat.ps1'
            - '\Remove-Update.ps1'
            - '\Run-EXEonRemote.ps1'
            - '\Schtasks-Backdoor.ps1'
            - '\Set-DCShadowPermissions.ps1'
            - '\Set-MacAttribute.ps1'
            - '\Set-RemotePSRemoting.ps1'
            - '\Set-RemoteWMI.ps1'
            - '\Set-Wallpaper.ps1'
            - '\Show-TargetScreen.ps1'
            - '\Speak.ps1'
            - '\Start-CaptureServer.ps1'
            - '\Start-WebcamRecorder.ps1'
            - '\StringToBase64.ps1'
            - '\TexttoExe.ps1'
            - '\Veeam-Get-Creds.ps1'
            - '\VolumeShadowCopyTools.ps1'
            - '\WinPwn.ps1'
            - '\WSUSpendu.ps1'
    selection_invoke_sharp:
        TargetFilename|contains: 'Invoke-Sharp' # Covers all "Invoke-Sharp" variants
        TargetFilename|endswith: '.ps1'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
Malicious PowerShell Scripts - PoshModule
Detects the execution of known offensive powershell scripts used for exploitation or reconnaissance
status test author frack113, Nasreddine Bencherchali (Nextron Systems) ATT&CK sub-technique id 41025fd7-0466-4650-a813-574aaacbe7f4
carbon_black query
(ContextInfo:Add\-ConstrainedDelegationBackdoor.ps1* OR ContextInfo:Add\-Exfiltration.ps1* OR ContextInfo:Add\-Persistence.ps1* OR ContextInfo:Add\-RegBackdoor.ps1* OR ContextInfo:Add\-RemoteRegBackdoor.ps1* OR ContextInfo:Add\-ScrnSaveBackdoor.ps1* OR ContextInfo:BadSuccessor.ps1* OR ContextInfo:Check\-VM.ps1* OR ContextInfo:ConvertTo\-ROT13.ps1* OR ContextInfo:Copy\-VSS.ps1* OR ContextInfo:Create\-MultipleSessions.ps1* OR ContextInfo:DNS_TXT_Pwnage.ps1* OR ContextInfo:dnscat2.ps1* OR ContextInfo:Do\-Exfiltration.ps1* OR ContextInfo:DomainPasswordSpray.ps1* OR ContextInfo:Download_Execute.ps1* OR ContextInfo:Download\-Execute\-PS.ps1* OR ContextInfo:Enabled\-DuplicateToken.ps1* OR ContextInfo:Enable\-DuplicateToken.ps1* OR ContextInfo:Execute\-Command\-MSSQL.ps1* OR ContextInfo:Execute\-DNSTXT\-Code.ps1* OR ContextInfo:Execute\-OnTime.ps1* OR ContextInfo:ExetoText.ps1* OR ContextInfo:Exploit\-Jboss.ps1* OR ContextInfo:Find\-AVSignature.ps1* OR ContextInfo:Find\-Fruit.ps1* OR ContextInfo:Find\-GPOLocation.ps1* OR ContextInfo:Find\-TrustedDocuments.ps1* OR ContextInfo:FireBuster.ps1* OR ContextInfo:FireListener.ps1* OR ContextInfo:Get\-ApplicationHost.ps1* OR ContextInfo:Get\-ChromeDump.ps1* OR ContextInfo:Get\-ClipboardContents.ps1* OR ContextInfo:Get\-ComputerDetail.ps1* OR ContextInfo:Get\-FoxDump.ps1* OR ContextInfo:Get\-GPPAutologon.ps1* OR ContextInfo:Get\-GPPPassword.ps1* OR ContextInfo:Get\-IndexedItem.ps1* OR ContextInfo:Get\-Keystrokes.ps1* OR ContextInfo:Get\-LSASecret.ps1* OR ContextInfo:Get\-MicrophoneAudio.ps1* OR ContextInfo:Get\-PassHashes.ps1* OR ContextInfo:Get\-PassHints.ps1* OR ContextInfo:Get\-RegAlwaysInstallElevated.ps1* OR ContextInfo:Get\-RegAutoLogon.ps1* OR ContextInfo:Get\-RickAstley.ps1* OR ContextInfo:Get\-Screenshot.ps1* OR ContextInfo:Get\-SecurityPackages.ps1* OR ContextInfo:Get\-ServiceFilePermission.ps1* OR ContextInfo:Get\-ServicePermission.ps1* OR ContextInfo:Get\-ServiceUnquoted.ps1* OR ContextInfo:Get\-SiteListPassword.ps1* OR ContextInfo:Get\-System.ps1* OR ContextInfo:Get\-TimedScreenshot.ps1* OR ContextInfo:Get\-UnattendedInstallFile.ps1* OR ContextInfo:Get\-Unconstrained.ps1* OR ContextInfo:Get\-USBKeystrokes.ps1* OR ContextInfo:Get\-VaultCredential.ps1* OR ContextInfo:Get\-VulnAutoRun.ps1* OR ContextInfo:Get\-VulnSchTask.ps1* OR ContextInfo:Get\-WebConfig.ps1* OR ContextInfo:Get\-WebCredentials.ps1* OR ContextInfo:Get\-WLAN\-Keys.ps1* OR ContextInfo:Gupt\-Backdoor.ps1* OR ContextInfo:HTTP\-Backdoor.ps1* OR ContextInfo:HTTP\-Login.ps1* OR ContextInfo:Install\-ServiceBinary.ps1* OR ContextInfo:Install\-SSP.ps1* OR ContextInfo:Invoke\-ACLScanner.ps1* OR ContextInfo:Invoke\-ADSBackdoor.ps1* OR ContextInfo:Invoke\-AmsiBypass.ps1* OR ContextInfo:Invoke\-ARPScan.ps1* OR ContextInfo:Invoke\-BackdoorLNK.ps1* OR ContextInfo:Invoke\-BadPotato.ps1* OR ContextInfo:Invoke\-BetterSafetyKatz.ps1* OR ContextInfo:Invoke\-BruteForce.ps1* OR ContextInfo:Invoke\-BypassUAC.ps1* OR ContextInfo:Invoke\-Carbuncle.ps1* OR ContextInfo:Invoke\-Certify.ps1* OR ContextInfo:Invoke\-ConPtyShell.ps1* OR ContextInfo:Invoke\-CredentialInjection.ps1* OR ContextInfo:Invoke\-CredentialsPhish.ps1* OR ContextInfo:Invoke\-DAFT.ps1* OR ContextInfo:Invoke\-DCSync.ps1* OR ContextInfo:Invoke\-Decode.ps1* OR ContextInfo:Invoke\-DinvokeKatz.ps1* OR ContextInfo:Invoke\-DllInjection.ps1* OR ContextInfo:Invoke\-DNSExfiltrator.ps1* OR ContextInfo:Invoke\-DowngradeAccount.ps1* OR ContextInfo:Invoke\-EgressCheck.ps1* OR ContextInfo:Invoke\-Encode.ps1* OR ContextInfo:Invoke\-EventViewer.ps1* OR ContextInfo:Invoke\-Eyewitness.ps1* OR ContextInfo:Invoke\-FakeLogonScreen.ps1* OR ContextInfo:Invoke\-Farmer.ps1* OR ContextInfo:Invoke\-Get\-RBCD\-Threaded.ps1* OR ContextInfo:Invoke\-Gopher.ps1* OR ContextInfo:Invoke\-Grouper2.ps1* OR ContextInfo:Invoke\-Grouper3.ps1* OR ContextInfo:Invoke\-HandleKatz.ps1* OR ContextInfo:Invoke\-Interceptor.ps1* OR ContextInfo:Invoke\-Internalmonologue.ps1* OR ContextInfo:Invoke\-Inveigh.ps1* OR ContextInfo:Invoke\-InveighRelay.ps1* OR ContextInfo:Invoke\-JSRatRegsvr.ps1* OR ContextInfo:Invoke\-JSRatRundll.ps1* OR ContextInfo:Invoke\-KrbRelay.ps1* OR ContextInfo:Invoke\-KrbRelayUp.ps1* OR ContextInfo:Invoke\-LdapSignCheck.ps1* OR ContextInfo:Invoke\-Lockless.ps1* OR ContextInfo:Invoke\-MalSCCM.ps1* OR ContextInfo:Invoke\-Mimikatz.ps1* OR ContextInfo:Invoke\-MimikatzWDigestDowngrade.ps1* OR ContextInfo:Invoke\-Mimikittenz.ps1* OR ContextInfo:Invoke\-MITM6.ps1* OR ContextInfo:Invoke\-NanoDump.ps1* OR ContextInfo:Invoke\-NetRipper.ps1* OR ContextInfo:Invoke\-NetworkRelay.ps1* OR ContextInfo:Invoke\-NinjaCopy.ps1* OR ContextInfo:Invoke\-OxidResolver.ps1* OR ContextInfo:Invoke\-P0wnedshell.ps1* OR ContextInfo:Invoke\-P0wnedshellx86.ps1* OR ContextInfo:Invoke\-Paranoia.ps1* OR ContextInfo:Invoke\-PortScan.ps1* OR ContextInfo:Invoke\-PoshRatHttp.ps1* OR ContextInfo:Invoke\-PoshRatHttps.ps1* OR ContextInfo:Invoke\-PostExfil.ps1* OR ContextInfo:Invoke\-PowerDump.ps1* OR ContextInfo:Invoke\-PowerDPAPI.ps1* OR ContextInfo:Invoke\-PowerShellIcmp.ps1* OR ContextInfo:Invoke\-PowerShellTCP.ps1* OR ContextInfo:Invoke\-PowerShellTcpOneLine.ps1* OR ContextInfo:Invoke\-PowerShellTcpOneLineBind.ps1* OR ContextInfo:Invoke\-PowerShellUdp.ps1* OR ContextInfo:Invoke\-PowerShellUdpOneLine.ps1* OR ContextInfo:Invoke\-PowerShellWMI.ps1* OR ContextInfo:Invoke\-PowerThIEf.ps1* OR ContextInfo:Invoke\-PPLDump.ps1* OR ContextInfo:Invoke\-Prasadhak.ps1* OR ContextInfo:Invoke\-PsExec.ps1* OR ContextInfo:Invoke\-PsGcat.ps1* OR ContextInfo:Invoke\-PsGcatAgent.ps1* OR ContextInfo:Invoke\-PSInject.ps1* OR ContextInfo:Invoke\-PsUaCme.ps1* OR ContextInfo:Invoke\-ReflectivePEInjection.ps1* OR ContextInfo:Invoke\-ReverseDNSLookup.ps1* OR ContextInfo:Invoke\-Rubeus.ps1* OR ContextInfo:Invoke\-RunAs.ps1* OR ContextInfo:Invoke\-SafetyKatz.ps1* OR ContextInfo:Invoke\-SauronEye.ps1* OR ContextInfo:Invoke\-SCShell.ps1* OR ContextInfo:Invoke\-Seatbelt.ps1* OR ContextInfo:Invoke\-ServiceAbuse.ps1* OR ContextInfo:Invoke\-SessionGopher.ps1* OR ContextInfo:Invoke\-ShellCode.ps1* OR ContextInfo:Invoke\-SMBScanner.ps1* OR ContextInfo:Invoke\-Snaffler.ps1* OR ContextInfo:Invoke\-Spoolsample.ps1* OR ContextInfo:Invoke\-SSHCommand.ps1* OR ContextInfo:Invoke\-SSIDExfil.ps1* OR ContextInfo:Invoke\-StandIn.ps1* OR ContextInfo:Invoke\-StickyNotesExtract.ps1* OR ContextInfo:Invoke\-Tater.ps1* OR ContextInfo:Invoke\-Thunderfox.ps1* OR ContextInfo:Invoke\-ThunderStruck.ps1* OR ContextInfo:Invoke\-TokenManipulation.ps1* OR ContextInfo:Invoke\-Tokenvator.ps1* OR ContextInfo:Invoke\-TotalExec.ps1* OR ContextInfo:Invoke\-UrbanBishop.ps1* OR ContextInfo:Invoke\-UserHunter.ps1* OR ContextInfo:Invoke\-VoiceTroll.ps1* OR ContextInfo:Invoke\-Whisker.ps1* OR ContextInfo:Invoke\-WinEnum.ps1* OR ContextInfo:Invoke\-winPEAS.ps1* OR ContextInfo:Invoke\-WireTap.ps1* OR ContextInfo:Invoke\-WmiCommand.ps1* OR ContextInfo:Invoke\-WScriptBypassUAC.ps1* OR ContextInfo:Invoke\-Zerologon.ps1* OR ContextInfo:Keylogger.ps1* OR ContextInfo:MailRaider.ps1* OR ContextInfo:New\-HoneyHash.ps1* OR ContextInfo:OfficeMemScraper.ps1* OR ContextInfo:Offline_Winpwn.ps1* OR ContextInfo:Out\-CHM.ps1* OR ContextInfo:Out\-DnsTxt.ps1* OR ContextInfo:Out\-Excel.ps1* OR ContextInfo:Out\-HTA.ps1* OR ContextInfo:Out\-Java.ps1* OR ContextInfo:Out\-JS.ps1* OR ContextInfo:Out\-Minidump.ps1* OR ContextInfo:Out\-RundllCommand.ps1* OR ContextInfo:Out\-SCF.ps1* OR ContextInfo:Out\-SCT.ps1* OR ContextInfo:Out\-Shortcut.ps1* OR ContextInfo:Out\-WebQuery.ps1* OR ContextInfo:Out\-Word.ps1* OR ContextInfo:Parse_Keys.ps1* OR ContextInfo:Port\-Scan.ps1* OR ContextInfo:PowerBreach.ps1* OR ContextInfo:powercat.ps1* OR ContextInfo:PowerRunAsSystem.psm1* OR ContextInfo:PowerSharpPack.ps1* OR ContextInfo:PowerUp.ps1* OR ContextInfo:PowerUpSQL.ps1* OR ContextInfo:PowerView.ps1* OR ContextInfo:PSAsyncShell.ps1* OR ContextInfo:RemoteHashRetrieval.ps1* OR ContextInfo:Remove\-Persistence.ps1* OR ContextInfo:Remove\-PoshRat.ps1* OR ContextInfo:Remove\-Update.ps1* OR ContextInfo:Run\-EXEonRemote.ps1* OR ContextInfo:Schtasks\-Backdoor.ps1* OR ContextInfo:Set\-DCShadowPermissions.ps1* OR ContextInfo:Set\-MacAttribute.ps1* OR ContextInfo:Set\-RemotePSRemoting.ps1* OR ContextInfo:Set\-RemoteWMI.ps1* OR ContextInfo:Set\-Wallpaper.ps1* OR ContextInfo:Show\-TargetScreen.ps1* OR ContextInfo:Speak.ps1* OR ContextInfo:Start\-CaptureServer.ps1* OR ContextInfo:Start\-WebcamRecorder.ps1* OR ContextInfo:StringToBase64.ps1* OR ContextInfo:TexttoExe.ps1* OR ContextInfo:Veeam\-Get\-Creds.ps1* OR ContextInfo:VolumeShadowCopyTools.ps1* OR ContextInfo:WinPwn.ps1* OR ContextInfo:WSUSpendu.ps1*) OR (ContextInfo:Invoke\-Sharp* ContextInfo:.ps1*)
view Sigma YAML
title: Malicious PowerShell Scripts - PoshModule
id: 41025fd7-0466-4650-a813-574aaacbe7f4
related:
    - id: f331aa1f-8c53-4fc3-b083-cc159bc971cb
      type: similar
    - id: bf7286e7-c0be-460b-a7e8-5b2e07ecc2f2
      type: obsolete
status: test
description: Detects the execution of known offensive powershell scripts used for exploitation or reconnaissance
references:
    - https://github.com/PowerShellMafia/PowerSploit
    - https://github.com/NetSPI/PowerUpSQL
    - https://github.com/CsEnox/EventViewer-UACBypass
    - https://web.archive.org/web/20210511204621/https://github.com/AlsidOfficial/WSUSpendu
    - https://github.com/nettitude/Invoke-PowerThIEf
    - https://github.com/S3cur3Th1sSh1t/WinPwn
    - https://github.com/S3cur3Th1sSh1t/PowerSharpPack/tree/master/PowerSharpBinaries
    - https://github.com/BC-SECURITY/Invoke-ZeroLogon/blob/111d17c7fec486d9bb23387e2e828b09a26075e4/Invoke-ZeroLogon.ps1
    - https://github.com/xorrior/RandomPS-Scripts/blob/848c919bfce4e2d67b626cbcf4404341cfe3d3b6/Get-DXWebcamVideo.ps1
    - https://github.com/rvrsh3ll/Misc-Powershell-Scripts/blob/6f23bb41f9675d7e2d32bacccff75e931ae00554/OfficeMemScraper.ps1
    - https://github.com/dafthack/DomainPasswordSpray/blob/b13d64a5834694aa73fd2aea9911a83027c465a7/DomainPasswordSpray.ps1
    - https://unit42.paloaltonetworks.com/threat-assessment-black-basta-ransomware/ # Invoke-TotalExec
    - https://research.nccgroup.com/2022/06/06/shining-the-light-on-black-basta/ # Invoke-TotalExec
    - https://github.com/HarmJ0y/DAMP
    - https://github.com/samratashok/nishang
    - https://github.com/DarkCoderSc/PowerRunAsSystem/
    - https://github.com/besimorhino/powercat
    - https://github.com/sadshade/veeam-creds/blob/6010eaf31ba41011b58d6af3950cffbf6f5cea32/Veeam-Get-Creds.ps1
    - https://github.com/The-Viper-One/Invoke-PowerDPAPI/
    - https://github.com/Arno0x/DNSExfiltrator/
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2023-01-23
modified: 2025-12-10
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_module
    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
    selection_generic:
        ContextInfo|contains:
            - 'Add-ConstrainedDelegationBackdoor.ps1'
            - 'Add-Exfiltration.ps1'
            - 'Add-Persistence.ps1'
            - 'Add-RegBackdoor.ps1'
            - 'Add-RemoteRegBackdoor.ps1'
            - 'Add-ScrnSaveBackdoor.ps1'
            - 'BadSuccessor.ps1'
            - 'Check-VM.ps1'
            - 'ConvertTo-ROT13.ps1'
            - 'Copy-VSS.ps1'
            - 'Create-MultipleSessions.ps1'
            - 'DNS_TXT_Pwnage.ps1'
            - 'dnscat2.ps1'
            - 'Do-Exfiltration.ps1'
            - 'DomainPasswordSpray.ps1'
            - 'Download_Execute.ps1'
            - 'Download-Execute-PS.ps1'
            - 'Enabled-DuplicateToken.ps1'
            - 'Enable-DuplicateToken.ps1'
            - 'Execute-Command-MSSQL.ps1'
            - 'Execute-DNSTXT-Code.ps1'
            - 'Execute-OnTime.ps1'
            - 'ExetoText.ps1'
            - 'Exploit-Jboss.ps1'
            - 'Find-AVSignature.ps1'
            - 'Find-Fruit.ps1'
            - 'Find-GPOLocation.ps1'
            - 'Find-TrustedDocuments.ps1'
            - 'FireBuster.ps1'
            - 'FireListener.ps1'
            - 'Get-ApplicationHost.ps1'
            - 'Get-ChromeDump.ps1'
            - 'Get-ClipboardContents.ps1'
            - 'Get-ComputerDetail.ps1'
            - 'Get-FoxDump.ps1'
            - 'Get-GPPAutologon.ps1'
            - 'Get-GPPPassword.ps1'
            - 'Get-IndexedItem.ps1'
            - 'Get-Keystrokes.ps1'
            - 'Get-LSASecret.ps1'
            - 'Get-MicrophoneAudio.ps1'
            - 'Get-PassHashes.ps1'
            - 'Get-PassHints.ps1'
            - 'Get-RegAlwaysInstallElevated.ps1'
            - 'Get-RegAutoLogon.ps1'
            - 'Get-RickAstley.ps1'
            - 'Get-Screenshot.ps1'
            - 'Get-SecurityPackages.ps1'
            - 'Get-ServiceFilePermission.ps1'
            - 'Get-ServicePermission.ps1'
            - 'Get-ServiceUnquoted.ps1'
            - 'Get-SiteListPassword.ps1'
            - 'Get-System.ps1'
            - 'Get-TimedScreenshot.ps1'
            - 'Get-UnattendedInstallFile.ps1'
            - 'Get-Unconstrained.ps1'
            - 'Get-USBKeystrokes.ps1'
            - 'Get-VaultCredential.ps1'
            - 'Get-VulnAutoRun.ps1'
            - 'Get-VulnSchTask.ps1'
            - 'Get-WebConfig.ps1'
            - 'Get-WebCredentials.ps1'
            - 'Get-WLAN-Keys.ps1'
            - 'Gupt-Backdoor.ps1'
            - 'HTTP-Backdoor.ps1'
            - 'HTTP-Login.ps1'
            - 'Install-ServiceBinary.ps1'
            - 'Install-SSP.ps1'
            - 'Invoke-ACLScanner.ps1'
            - 'Invoke-ADSBackdoor.ps1'
            - 'Invoke-AmsiBypass.ps1'
            - 'Invoke-ARPScan.ps1'
            - 'Invoke-BackdoorLNK.ps1'
            - 'Invoke-BadPotato.ps1'
            - 'Invoke-BetterSafetyKatz.ps1'
            - 'Invoke-BruteForce.ps1'
            - 'Invoke-BypassUAC.ps1'
            - 'Invoke-Carbuncle.ps1'
            - 'Invoke-Certify.ps1'
            - 'Invoke-ConPtyShell.ps1'
            - 'Invoke-CredentialInjection.ps1'
            - 'Invoke-CredentialsPhish.ps1'
            - 'Invoke-DAFT.ps1'
            - 'Invoke-DCSync.ps1'
            - 'Invoke-Decode.ps1'
            - 'Invoke-DinvokeKatz.ps1'
            - 'Invoke-DllInjection.ps1'
            - 'Invoke-DNSExfiltrator.ps1'
            - 'Invoke-DowngradeAccount.ps1'
            - 'Invoke-EgressCheck.ps1'
            - 'Invoke-Encode.ps1'
            - 'Invoke-EventViewer.ps1'
            - 'Invoke-Eyewitness.ps1'
            - 'Invoke-FakeLogonScreen.ps1'
            - 'Invoke-Farmer.ps1'
            - 'Invoke-Get-RBCD-Threaded.ps1'
            - 'Invoke-Gopher.ps1'
            - 'Invoke-Grouper2.ps1'
            - 'Invoke-Grouper3.ps1'
            - 'Invoke-HandleKatz.ps1'
            - 'Invoke-Interceptor.ps1'
            - 'Invoke-Internalmonologue.ps1'
            - 'Invoke-Inveigh.ps1'
            - 'Invoke-InveighRelay.ps1'
            - 'Invoke-JSRatRegsvr.ps1'
            - 'Invoke-JSRatRundll.ps1'
            - 'Invoke-KrbRelay.ps1'
            - 'Invoke-KrbRelayUp.ps1'
            - 'Invoke-LdapSignCheck.ps1'
            - 'Invoke-Lockless.ps1'
            - 'Invoke-MalSCCM.ps1'
            - 'Invoke-Mimikatz.ps1'
            - 'Invoke-MimikatzWDigestDowngrade.ps1'
            - 'Invoke-Mimikittenz.ps1'
            - 'Invoke-MITM6.ps1'
            - 'Invoke-NanoDump.ps1'
            - 'Invoke-NetRipper.ps1'
            - 'Invoke-NetworkRelay.ps1'
            - 'Invoke-NinjaCopy.ps1'
            - 'Invoke-OxidResolver.ps1'
            - 'Invoke-P0wnedshell.ps1'
            - 'Invoke-P0wnedshellx86.ps1'
            - 'Invoke-Paranoia.ps1'
            - 'Invoke-PortScan.ps1'
            - 'Invoke-PoshRatHttp.ps1'
            - 'Invoke-PoshRatHttps.ps1'
            - 'Invoke-PostExfil.ps1'
            - 'Invoke-PowerDump.ps1'
            - 'Invoke-PowerDPAPI.ps1'
            - 'Invoke-PowerShellIcmp.ps1'
            - 'Invoke-PowerShellTCP.ps1'
            - 'Invoke-PowerShellTcpOneLine.ps1'
            - 'Invoke-PowerShellTcpOneLineBind.ps1'
            - 'Invoke-PowerShellUdp.ps1'
            - 'Invoke-PowerShellUdpOneLine.ps1'
            - 'Invoke-PowerShellWMI.ps1'
            - 'Invoke-PowerThIEf.ps1'
            - 'Invoke-PPLDump.ps1'
            - 'Invoke-Prasadhak.ps1'
            - 'Invoke-PsExec.ps1'
            - 'Invoke-PsGcat.ps1'
            - 'Invoke-PsGcatAgent.ps1'
            - 'Invoke-PSInject.ps1'
            - 'Invoke-PsUaCme.ps1'
            - 'Invoke-ReflectivePEInjection.ps1'
            - 'Invoke-ReverseDNSLookup.ps1'
            - 'Invoke-Rubeus.ps1'
            - 'Invoke-RunAs.ps1'
            - 'Invoke-SafetyKatz.ps1'
            - 'Invoke-SauronEye.ps1'
            - 'Invoke-SCShell.ps1'
            - 'Invoke-Seatbelt.ps1'
            - 'Invoke-ServiceAbuse.ps1'
            - 'Invoke-SessionGopher.ps1'
            - 'Invoke-ShellCode.ps1'
            - 'Invoke-SMBScanner.ps1'
            - 'Invoke-Snaffler.ps1'
            - 'Invoke-Spoolsample.ps1'
            - 'Invoke-SSHCommand.ps1'
            - 'Invoke-SSIDExfil.ps1'
            - 'Invoke-StandIn.ps1'
            - 'Invoke-StickyNotesExtract.ps1'
            - 'Invoke-Tater.ps1'
            - 'Invoke-Thunderfox.ps1'
            - 'Invoke-ThunderStruck.ps1'
            - 'Invoke-TokenManipulation.ps1'
            - 'Invoke-Tokenvator.ps1'
            - 'Invoke-TotalExec.ps1'
            - 'Invoke-UrbanBishop.ps1'
            - 'Invoke-UserHunter.ps1'
            - 'Invoke-VoiceTroll.ps1'
            - 'Invoke-Whisker.ps1'
            - 'Invoke-WinEnum.ps1'
            - 'Invoke-winPEAS.ps1'
            - 'Invoke-WireTap.ps1'
            - 'Invoke-WmiCommand.ps1'
            - 'Invoke-WScriptBypassUAC.ps1'
            - 'Invoke-Zerologon.ps1'
            - 'Keylogger.ps1'
            - 'MailRaider.ps1'
            - 'New-HoneyHash.ps1'
            - 'OfficeMemScraper.ps1'
            - 'Offline_Winpwn.ps1'
            - 'Out-CHM.ps1'
            - 'Out-DnsTxt.ps1'
            - 'Out-Excel.ps1'
            - 'Out-HTA.ps1'
            - 'Out-Java.ps1'
            - 'Out-JS.ps1'
            - 'Out-Minidump.ps1'
            - 'Out-RundllCommand.ps1'
            - 'Out-SCF.ps1'
            - 'Out-SCT.ps1'
            - 'Out-Shortcut.ps1'
            - 'Out-WebQuery.ps1'
            - 'Out-Word.ps1'
            - 'Parse_Keys.ps1'
            - 'Port-Scan.ps1'
            - 'PowerBreach.ps1'
            - 'powercat.ps1'
            - 'PowerRunAsSystem.psm1'
            - 'PowerSharpPack.ps1'
            - 'PowerUp.ps1'
            - 'PowerUpSQL.ps1'
            - 'PowerView.ps1'
            - 'PSAsyncShell.ps1'
            - 'RemoteHashRetrieval.ps1'
            - 'Remove-Persistence.ps1'
            - 'Remove-PoshRat.ps1'
            - 'Remove-Update.ps1'
            - 'Run-EXEonRemote.ps1'
            - 'Schtasks-Backdoor.ps1'
            - 'Set-DCShadowPermissions.ps1'
            - 'Set-MacAttribute.ps1'
            - 'Set-RemotePSRemoting.ps1'
            - 'Set-RemoteWMI.ps1'
            - 'Set-Wallpaper.ps1'
            - 'Show-TargetScreen.ps1'
            - 'Speak.ps1'
            - 'Start-CaptureServer.ps1'
            - 'Start-WebcamRecorder.ps1'
            - 'StringToBase64.ps1'
            - 'TexttoExe.ps1'
            - 'Veeam-Get-Creds.ps1'
            - 'VolumeShadowCopyTools.ps1'
            - 'WinPwn.ps1'
            - 'WSUSpendu.ps1'
    selection_invoke_sharp:
        ContextInfo|contains|all:
            - 'Invoke-Sharp' # Covers all "Invoke-Sharp" variants
            - '.ps1'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
Malicious ShellIntel PowerShell Commandlets
Detects Commandlet names from ShellIntel exploitation scripts.
status test author Max Altgelt (Nextron Systems), Tobias Michalski (Nextron Systems) ATT&CK sub-technique id 402e1e1d-ad59-47b6-bf80-1ee44985b3a7
carbon_black query
ScriptBlockText:Invoke\-SMBAutoBrute* OR ScriptBlockText:Invoke\-GPOLinks* OR ScriptBlockText:Invoke\-Potato*
view Sigma YAML
title: Malicious ShellIntel PowerShell Commandlets
id: 402e1e1d-ad59-47b6-bf80-1ee44985b3a7
status: test
description: Detects Commandlet names from ShellIntel exploitation scripts.
references:
    - https://github.com/Shellntel/scripts/
author: Max Altgelt (Nextron Systems), Tobias Michalski (Nextron Systems)
date: 2021-08-09
modified: 2023-01-02
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            - 'Invoke-SMBAutoBrute'
            - 'Invoke-GPOLinks'
            # - 'Out-Minidump' # Covered in 89819aa4-bbd6-46bc-88ec-c7f7fe30efa6
            - 'Invoke-Potato'
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
Malicious Usage Of IMDS Credentials Outside Of AWS Infrastructure
Detects when an instance identity has taken an action that isn't inside SSM. This can indicate that a compromised EC2 instance is being used as a pivot point.
status test author jamesc-grafana ATT&CK sub-technique id 352a918a-34d8-4882-8470-44830c507aa3
carbon_black query
"userIdentity.arn":.+:assumed-role/aws:.+ (-(eventSource:ssm.amazonaws.com OR eventName:RegisterManagedInstance OR sourceIPAddress:AWS\ Internal))
view Sigma YAML
title: Malicious Usage Of IMDS Credentials Outside Of AWS Infrastructure
id: 352a918a-34d8-4882-8470-44830c507aa3
status: test
description: |
    Detects when an instance identity has taken an action that isn't inside SSM.
    This can indicate that a compromised EC2 instance is being used as a pivot point.
references:
    - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-identity-roles.html
    - https://ermetic.com/blog/aws/aws-ec2-imds-what-you-need-to-know/
    - https://www.packetmischief.ca/2023/07/31/amazon-ec2-credential-exfiltration-how-it-happens-and-how-to-mitigate-it/#lifting-credentials-from-imds-this-is-why-we-cant-have-nice-things
author: jamesc-grafana
date: 2024-07-11
tags:
    - attack.privilege-escalation
    - attack.initial-access
    - attack.persistence
    - attack.stealth
    - attack.t1078
    - attack.t1078.002
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        userIdentity.arn|re: '.+:assumed-role/aws:.+'
    filter_main_generic:
        - eventSource: 'ssm.amazonaws.com'
        - eventName: 'RegisterManagedInstance'
        - sourceIPAddress: 'AWS Internal'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - A team has configured an EC2 instance to use instance profiles that grant the option for the EC2 instance to talk to other AWS Services
level: high
Convert to SIEM query
high Strong Medium FP
Malware Shellcode in Verclsid Target Process
Detects a process access to verclsid.exe that injects shellcode from a Microsoft Office application / VBA macro
status test author John Lambert (tech), Florian Roth (Nextron Systems) ATT&CK technique id b7967e22-3d7e-409b-9ed5-cdae3f9243a1
carbon_black query
(TargetImage:\\verclsid.exe GrantedAccess:0x1FFFFF) ((CallTrace:|UNKNOWN\(* CallTrace:VBE7.DLL*) OR (SourceImage:\\Microsoft\ Office\\* CallTrace:|UNKNOWN*))
view Sigma YAML
title: Malware Shellcode in Verclsid Target Process
id: b7967e22-3d7e-409b-9ed5-cdae3f9243a1
status: test
description: Detects a process access to verclsid.exe that injects shellcode from a Microsoft Office application / VBA macro
references:
    - https://twitter.com/JohnLaTwC/status/837743453039534080
author: John Lambert (tech), Florian Roth (Nextron Systems)
date: 2017-03-04
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055
    - detection.emerging-threats
logsource:
    category: process_access
    product: windows
    definition: 'Requirements: The following config is required to generate the necessary Event ID 10 Process Access events: <ProcessAccess onmatch="include"><CallTrace condition="contains">VBE7.DLL</CallTrace></ProcessAccess><ProcessAccess onmatch="exclude"><CallTrace condition="excludes">UNKNOWN</CallTrace></ProcessAccess>'
detection:
    selection_target:
        TargetImage|endswith: '\verclsid.exe'
        GrantedAccess: '0x1FFFFF'
    selection_calltrace_1:
        CallTrace|contains|all:
            - '|UNKNOWN('
            - 'VBE7.DLL'
    selection_calltrace_2:
        SourceImage|contains: '\Microsoft Office\'
        CallTrace|contains: '|UNKNOWN'
    condition: selection_target and 1 of selection_calltrace_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
Malware User Agent
Detects suspicious user agent strings used by malware in proxy logs
status test author Florian Roth (Nextron Systems), X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) ATT&CK sub-technique id 5c84856b-55a5-45f1-826f-13f37250cf4e
carbon_black query
"c-useragent":Mozilla\/5.0\ \(Windows\ NT\ 6.1;\ WOW64;\ rv\:53.0\)\ Gecko\/20100101\ Chrome\ \/53.0 OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 8.0;\ Windows\ NT\ 5.1\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 7.0;\ Windows\ NT\ 5.1;\ Trident\/4.0\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.0;\ .NET\ CLR\ \ 1.1.4322\) OR "c-useragent":HttpBrowser\/1.0 OR "c-useragent":<|>* OR "c-useragent":nsis_inetc\ \(mozilla\) OR "c-useragent":Wget\/1.9\+cvs\-stable\ \(Red\ Hat\ modified\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 8.0;\ Windows\ NT\ 6.1;\ Trident\/4.0;\ .NET\ CLR\ 1.1.4322\) OR "c-useragent":zeroup* OR "c-useragent":Mozilla\/5.0\ \(Windows\ NT\ 5.1\ ;\ v.* OR "c-useragent":\ adlib\/* OR "c-useragent":\ tiny OR "c-useragent":\ BGroom\ * OR "c-useragent":\ changhuatong OR "c-useragent":\ CholTBAgent OR "c-useragent":Mozilla\/5.0\ WinInet OR "c-useragent":RookIE\/1.0 OR "c-useragent":M OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 8.0;\ Windows\ NT\ 5.1;\ Trident\/4.0\) OR "c-useragent":Mozilla\/4.0\ \(compatible;MSIE\ 7.0;Windows\ NT\ 6.0\) OR "c-useragent":backdoorbot OR "c-useragent":Mozilla\/5.0\ \(Windows;\ U;\ Windows\ NT\ 5.1;\ en\-US;\ rv\:1.9.2.3\)\ Gecko\/20100401\ Firefox\/3.6.1\ \(.NET\ CLR\ 3.5.30731\) OR "c-useragent":Opera\/8.81\ \(Windows\ NT\ 6.0;\ U;\ en\) OR "c-useragent":Mozilla\/5.0\ \(Windows;\ U;\ Windows\ NT\ 5.1;\ en\-US;\ rv\:1.9.2.3\)\ Gecko\/20100401\ Firefox\/3.6.1\ \(.NET\ CLR\ 3.5.30729\) OR "c-useragent":Opera OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 5.0;\ Windows\ 98\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 5.01;\ Windows\ NT\ 5.0\) OR "c-useragent":MSIE OR "c-useragent":\(Charon;\ Inferno\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 8.0;\ Windows\ NT\ 5.1;\ Trident\/5.0\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 6.1;\ Windows\ NT\) OR "c-useragent":Mozilla\/4.0\(compatible;\ MSIE\ 6.0;\ Windows\ NT\ 5.1\) OR "c-useragent":Mozilla\/5.0\ \(Windows\ NT\ 10.0;\ Win64;\ x64\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 8.0;\ Windows\ NT\ 10.0;\ Win64;\ x64\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 8.0;\ Windows\ NT\ 6.1;\ Win64;\ x64\) OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 7.0;\ Windows\ NT\ 6.2;\ WOW64;\ Trident\/7.0;\ .NET4.0C;\ .NET4.0E;\ InfoPath.3\) OR "c-useragent":Mozilla\/5.0\ \(Windows\ NT\ 6.1\) OR "c-useragent":AppleWebkit\/587.38\ \(KHTML,\ like\ Gecko\) OR "c-useragent":Chrome\/91.0.4472.77 OR "c-useragent":Safari\/537.36 OR "c-useragent":Edge\/91.0.864.37 OR "c-useragent":Firefox\/89.0 OR "c-useragent":Gecko\/20100101 OR "c-useragent":\ pxyscand* OR "c-useragent":\ asd OR "c-useragent":\ mdms OR "c-useragent":sample OR "c-useragent":nocase OR "c-useragent":Moxilla OR "c-useragent":Win32\ * OR "c-useragent":Microsoft\ Internet\ Explorer* OR "c-useragent":agent\ * OR "c-useragent":AutoIt OR "c-useragent":IczelionDownLoad OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 9.0;\ Windows\ NT\ 10.0;\ .NET4.0C;\ .NET4.0E;\ Tablet\ PC\ 2.0\) OR "c-useragent":record OR "c-useragent":mozzzzzzzzzzz OR "c-useragent":Mozilla\/5.0\ \(Windows\ NT\ 10.0;\ Win64;\ x64;\ rv\:76.0\)\ Gecko\/20100101\ Firefox\/76.0 OR "c-useragent":Havana\/0.1 OR "c-useragent":antSword\/v2.1 OR "c-useragent":rqwrwqrqwrqw OR "c-useragent":qwrqrwrqwrqwr OR "c-useragent":rc2.0\/client OR "c-useragent":TakeMyPainBack OR "c-useragent":xxx OR "c-useragent":20112211 OR "c-useragent":23591 OR "c-useragent":901785252112 OR "c-useragent":1235125521512 OR "c-useragent":125122112551 OR "c-useragent":B1D3N_RIM_MY_ASS OR "c-useragent":AYAYAYAY1337 OR "c-useragent":iMightJustPayMySelfForAFeature OR "c-useragent":ForAFeature OR "c-useragent":Ares_ldr_v_* OR "c-useragent":Microsoft\ Internet\ Explorer OR "c-useragent":CLCTR OR "c-useragent":uploader OR "c-useragent":agent OR "c-useragent":License OR "c-useragent":vb\ wininet OR "c-useragent":Client OR "c-useragent":Lilith\-Bot\/3.0 OR "c-useragent":svc\/1.0 OR "c-useragent":WSHRAT OR "c-useragent":ZeroStresser\ Botnet\/1.5 OR "c-useragent":OK OR "c-useragent":Project1sqlite OR "c-useragent":Project1 OR "c-useragent":DuckTales OR "c-useragent":Zadanie OR "c-useragent":GunnaWunnaBlueTips OR "c-useragent":Xlmst OR "c-useragent":GeekingToTheMoon OR "c-useragent":SunShineMoonLight OR "c-useragent":BunnyRequester OR "c-useragent":BunnyTasks OR "c-useragent":BunnyStealer OR "c-useragent":BunnyLoader_Dropper OR "c-useragent":BunnyLoader OR "c-useragent":BunnyShell OR "c-useragent":SPARK\-COMMIT OR "c-useragent":4B4DB4B3 OR "c-useragent":SouthSide OR "c-useragent":Mozilla\/4.0\ \(compatible;\ MSIE\ 7.0;\ Windows\ NT\ 5.1;\ Tob\ 1.1\)
view Sigma YAML
title: Malware User Agent
id: 5c84856b-55a5-45f1-826f-13f37250cf4e
status: test
description: Detects suspicious user agent strings used by malware in proxy logs
references:
    - http://rules.emergingthreats.net/open/snort-2.9.0/rules/emerging-user_agents.rules
    - http://www.botopedia.org/search?searchword=scan&searchphrase=all
    - https://networkraptor.blogspot.com/2015/01/user-agent-strings.html
    - https://perishablepress.com/blacklist/ua-2013.txt
    - https://www.bluecoat.com/en-gb/security-blog/2015-05-05/know-your-agents
    - https://twitter.com/kladblokje_88/status/1614673320124743681?s=12&t=joEpeVa5d58aHYNGA_To7Q
    - https://pbs.twimg.com/media/FtYbfsDXoAQ1Y8M?format=jpg&name=large
    - https://twitter.com/crep1x/status/1635034100213112833
author: Florian Roth (Nextron Systems), X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2017-07-08
modified: 2024-04-14
tags:
    - attack.command-and-control
    - attack.t1071.001
logsource:
    category: proxy
detection:
    selection:
        c-useragent:
            # RATs
            - 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Chrome /53.0' # DragonOK
            - 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1)' # Used by PlugX - base-lining recommended - https://community.rsa.com/thread/185439
            - 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0)' # Used by PlugX - base-lining recommended - https://community.rsa.com/thread/185439
            - 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR  1.1.4322)' # Used by PlugX - old - https://unit42.paloaltonetworks.com/unit-42-identifies-new-dragonok-backdoor-malware-deployed-against-japanese-targets/
            - 'HttpBrowser/1.0' # HTTPBrowser RAT
            - '*<|>*' # Houdini / Iniduoh / njRAT
            - 'nsis_inetc (mozilla)' # ZeroAccess
            - 'Wget/1.9+cvs-stable (Red Hat modified)' # Dyre / Upatre
            # Ghost419 https://www.mcafee.com/blogs/other-blogs/mcafee-labs/gold-dragon-widens-olympics-malware-attacks-gains-permanent-presence-on-victims-systems/
            - 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; .NET CLR 1.1.4322)'
            # Malware
            - '*zeroup*' # W32/Renos.Downloader
            - 'Mozilla/5.0 (Windows NT 5.1 ; v.*' # Kazy
            - '* adlib/*'
            - '* tiny' # Trojan Downloader
            - '* BGroom *' # Trojan Downloader
            - '* changhuatong'
            - '* CholTBAgent'
            - 'Mozilla/5.0 WinInet'
            - 'RookIE/1.0'
            - 'M' # HkMain
            - 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)' # Egamipload - old UA - probable prone to false positives
            - 'Mozilla/4.0 (compatible;MSIE 7.0;Windows NT 6.0)' # Yakes
            - 'backdoorbot'
            - 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.1 (.NET CLR 3.5.30731)' # Sality
            - 'Opera/8.81 (Windows NT 6.0; U; en)' # Sality
            - 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.1 (.NET CLR 3.5.30729)' # Sality
            - 'Opera' # Trojan Keragany
            - 'Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)' # Fareit
            - 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)' # Webshell's back connect
            - 'MSIE' # Toby web shell
            - '*(Charon; Inferno)' # Loki Bot
            - 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/5.0)' # Fareit / Pony
            - 'Mozilla/4.0 (compatible; MSIE 6.1; Windows NT)' # https://www.virustotal.com/gui/file/8abbef8e58f012d45a7cb46c3c2729dcd33cf53e721ff8c59e238862aa0a9e0e/detection
            - 'Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.1)' # MacControl malware https://www.virustotal.com/gui/file/d60f61f1f03a5011a0240694e110c6d370bf68a92753093186c6d14e26a15428/detection https://www.symantec.com/connect/blogs/osxmacontrol-back-it-again
            - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' # used by Zebrocy malware https://app.any.run/tasks/7d7fa4a0-6970-4428-828b-29572abf9ceb/
            # Ursnif
            - 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 10.0; Win64; x64)'
            - 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64)'
            # Emotet
            - 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; InfoPath.3)' # https://twitter.com/webbthewombat/status/1225827092132179968
            # Lockbit (https://twitter.com/kladblokje_88/status/1614673320124743681?s=12&t=joEpeVa5d58aHYNGA_To7Q)
            - 'Mozilla/5.0 (Windows NT 6.1)'
            - 'AppleWebkit/587.38 (KHTML, like Gecko)'
            - 'Chrome/91.0.4472.77'
            - 'Safari/537.36'
            - 'Edge/91.0.864.37'
            - 'Firefox/89.0'
            - 'Gecko/20100101'
            # Others
            - '* pxyscand*'
            - '* asd'
            - '* mdms'
            - 'sample'
            - 'nocase'
            - 'Moxilla'
            - 'Win32 *'
            - '*Microsoft Internet Explorer*'
            - 'agent *'
            - 'AutoIt' # Suspicious - base-lining recommended
            - 'IczelionDownLoad'
            - 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 10.0; .NET4.0C; .NET4.0E; Tablet PC 2.0)' # https://unit42.paloaltonetworks.com/thor-plugx-variant/
            - 'record' # https://blog.sekoia.io/raccoon-stealer-v2-part-1-the-return-of-the-dead/
            - 'mozzzzzzzzzzz' # https://blog.sekoia.io/raccoon-stealer-v2-part-1-the-return-of-the-dead/
            - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0' # Quasar RAT UA https://twitter.com/malmoeb/status/1559994820692672519?s=20&t=g3tkNL09dZZWbFN10qDVjg
            - 'Havana/0.1' # https://www.cybereason.com/blog/threat-alert-havanacrypt-ransomware-masquerading-as-google-update
            - 'antSword/v2.1' # AntSword Webshell UA
            - 'rqwrwqrqwrqw'  # Racoon Stealer
            - 'qwrqrwrqwrqwr'  # Racoon Stealer
            - 'rc2.0/client'  # Racoon Stealer
            - 'TakeMyPainBack'  # Racoon Stealer
            - 'xxx' # Racoon Stealer
            - '20112211' # Racoon Stealer
            - '23591' # Racoon Stealer
            - '901785252112' # Racoon Stealer
            - '1235125521512' # Racoon Stealer
            - '125122112551' # Racoon Stealer
            - 'B1D3N_RIM_MY_ASS' # Racoon Stealer
            - 'AYAYAYAY1337' # Racoon Stealer
            - 'iMightJustPayMySelfForAFeature' # Racoon Stealer
            - 'ForAFeature' # Racoon Stealer
            - 'Ares_ldr_v_*' # AresLoader
            # - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106' # seen used by AresLoader
            - 'Microsoft Internet Explorer' # https://github.com/silence-is-best/c2db
            - 'CLCTR' # https://github.com/silence-is-best/c2db
            - 'uploader' # https://github.com/silence-is-best/c2db
            - 'agent' # https://github.com/silence-is-best/c2db
            - 'License' # https://github.com/silence-is-best/c2db
            - 'vb wininet' # https://github.com/silence-is-best/c2db
            - 'Client' # https://github.com/silence-is-best/c2db
            - 'Lilith-Bot/3.0' # Lilith Stealer - https://twitter.com/suyog41/status/1558051450797690880
            - 'svc/1.0' # SVC Loader - https://twitter.com/suyog41/status/1558051450797690880
            - 'WSHRAT' # WSHRAT - https://twitter.com/suyog41/status/1558051450797690880
            - 'ZeroStresser Botnet/1.5' # Zerobot - https://twitter.com/suyog41/status/1558051450797690880
            - 'OK' # Nymaim - https://twitter.com/suyog41/status/1558051450797690880
            - 'Project1sqlite' # DarkCloud - https://twitter.com/suyog41/status/1558051450797690880
            - 'Project1' # DarkCloud - https://twitter.com/suyog41/status/1558051450797690880
            - 'DuckTales' # Racoon Stealer
            - 'Zadanie' # Racoon Stealer
            - 'GunnaWunnaBlueTips' # Racoon Stealer
            - 'Xlmst' # Racoon Stealer
            - 'GeekingToTheMoon' # Racoon Stealer
            - 'SunShineMoonLight' # Racoon Stealer
            - 'BunnyRequester' # BunnyStealer
            - 'BunnyTasks' # BunnyStealer
            - 'BunnyStealer' # BunnyStealer
            - 'BunnyLoader_Dropper' # BunnyStealer
            - 'BunnyLoader' # BunnyStealer
            - 'BunnyShell' # BunnyStealer
            - 'SPARK-COMMIT' # SparkRAT - https://arcticwolf.com/resources/blog/tellmethetruth-exploitation-of-cve-2023-46604-leading-to-ransomware/
            - '4B4DB4B3' # B4B3RAT - https://twitter.com/naumovax/status/1718956514491130301
            - 'SouthSide' # Racoon Stealer
            - 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tob 1.1)' # Latrodectus loader
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
ManageEngine Endpoint Central Dctask64.EXE Potential Abuse
Detects the execution of "dctask64.exe", a signed binary by ZOHO Corporation part of ManageEngine Endpoint Central. This binary can be abused for DLL injection, arbitrary command and process execution.
status test author Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) ATT&CK sub-technique id 6345b048-8441-43a7-9bed-541133633d7a
carbon_black query
(Image:\\dctask64.exe OR (Hashes:IMPHASH=6834B1B94E49701D77CCB3C0895E1AFD* OR Hashes:IMPHASH=1BB6F93B129F398C7C4A76BB97450BBA* OR Hashes:IMPHASH=FAA2AC19875FADE461C8D89DCF2710A3* OR Hashes:IMPHASH=F1039CED4B91572AB7847D26032E6BBF*)) (CommandLine:\ executecmd64\ * OR CommandLine:\ invokeexe\ * OR CommandLine:\ injectDll\ *)
view Sigma YAML
title: ManageEngine Endpoint Central Dctask64.EXE Potential Abuse
id: 6345b048-8441-43a7-9bed-541133633d7a
status: test
description: |
    Detects the execution of "dctask64.exe", a signed binary by ZOHO Corporation part of ManageEngine Endpoint Central.
    This binary can be abused for DLL injection, arbitrary command and process execution.
references:
    - https://twitter.com/gN3mes1s/status/1222088214581825540
    - https://twitter.com/gN3mes1s/status/1222095963789111296
    - https://twitter.com/gN3mes1s/status/1222095371175911424
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2020-01-28
modified: 2025-01-22
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\dctask64.exe'
        - Hashes|contains:
              - 'IMPHASH=6834B1B94E49701D77CCB3C0895E1AFD'
              - 'IMPHASH=1BB6F93B129F398C7C4A76BB97450BBA'
              - 'IMPHASH=FAA2AC19875FADE461C8D89DCF2710A3'
              - 'IMPHASH=F1039CED4B91572AB7847D26032E6BBF'
    selection_cli:
        CommandLine|contains:
            - ' executecmd64 '
            - ' invokeexe '
            - ' injectDll '
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate Medium FP
Mask System Power Settings Via Systemctl
Detects the use of systemctl mask to disable system power management targets such as suspend, hibernate, or hybrid sleep. Adversaries may mask these targets to prevent a system from entering sleep or shutdown states, ensuring their malicious processes remain active and uninterrupted. This behavior can be associated with persistence or defense evasion, as it impairs normal system power operations to maintain long-term access or avoid termination of malicious activity.
status experimental author Milad Cheraghi, Nasreddine Bencherchali ATT&CK technique id c172b7b5-f3a1-4af2-90b7-822c63df86cb
carbon_black query
(Image:\/systemctl CommandLine:\ mask*) (CommandLine:suspend.target* OR CommandLine:hibernate.target* OR CommandLine:hybrid\-sleep.target*)
view Sigma YAML
title: Mask System Power Settings Via Systemctl
id: c172b7b5-f3a1-4af2-90b7-822c63df86cb
status: experimental
description: |
    Detects the use of systemctl mask to disable system power management targets such as suspend, hibernate, or hybrid sleep.
    Adversaries may mask these targets to prevent a system from entering sleep or shutdown states, ensuring their malicious processes remain active and uninterrupted.
    This behavior can be associated with persistence or defense evasion, as it impairs normal system power operations to maintain long-term access or avoid termination of malicious activity.
author: Milad Cheraghi, Nasreddine Bencherchali
date: 2025-10-17
references:
    - https://www.man7.org/linux/man-pages/man1/systemctl.1.html
    - https://linux-audit.com/systemd/faq/what-is-the-difference-between-systemctl-disable-and-systemctl-mask/
tags:
    - attack.persistence
    - attack.impact
    - attack.t1653
logsource:
    category: process_creation
    product: linux
detection:
    selection_systemctl:
        Image|endswith: '/systemctl'
        CommandLine|contains: ' mask'
    selection_power_options:
        CommandLine|contains:
            - 'suspend.target'
            - 'hibernate.target'
            - 'hybrid-sleep.target'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Moderate Medium FP
Mavinject Inject DLL Into Running Process
Detects process injection using the signed Windows tool "Mavinject" via the "INJECTRUNNING" flag
status test author frack113, Florian Roth ATT&CK sub-technique id 4f73421b-5a0b-4bbf-a892-5a7fb99bea66
carbon_black query
CommandLine:\ \/INJECTRUNNING\ * (-ParentImage:C\:\\Windows\\System32\\AppVClient.exe)
view Sigma YAML
title: Mavinject Inject DLL Into Running Process
id: 4f73421b-5a0b-4bbf-a892-5a7fb99bea66
related:
    - id: 17eb8e57-9983-420d-ad8a-2c4976c22eb8
      type: obsolete
status: test
description: Detects process injection using the signed Windows tool "Mavinject" via the "INJECTRUNNING" flag
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218/T1218.md
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1056.004/T1056.004.md
    - https://posts.specterops.io/mavinject-exe-functionality-deconstructed-c29ab2cf5c0e
    - https://twitter.com/gN3mes1s/status/941315826107510784
    - https://reaqta.com/2017/12/mavinject-microsoft-injector/
    - https://twitter.com/Hexacorn/status/776122138063409152  # Deleted tweet
    - https://github.com/SigmaHQ/sigma/issues/3742
    - https://github.com/keyboardcrunch/SentinelOne-ATTACK-Queries/blob/6a228d23eefe963ca81f2d52f94b815f61ef5ee0/Tactics/DefenseEvasion.md#t1055-process-injection
author: frack113, Florian Roth
date: 2021-07-12
modified: 2022-12-05
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055.001
    - attack.t1218.013
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains: ' /INJECTRUNNING '
    filter:
        ParentImage: 'C:\Windows\System32\AppVClient.exe' # This parent is the expected process to launch "mavinject"
    condition: selection and not filter
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Low FP
Metasploit Or Impacket Service Installation Via SMB PsExec
Detects usage of Metasploit SMB PsExec (exploit/windows/smb/psexec) and Impacket psexec.py by triggering on specific service installation
status test author Bartlomiej Czyz, Relativity ATT&CK sub-technique id 6fb63b40-e02a-403e-9ffd-3bcc1d749442
carbon_black query
(EventID:4697 ServiceFileName:^%systemroot%\\\\[a-zA-Z]{8}\\.exe$ ServiceName:(^[a-zA-Z]{4}$)|(^[a-zA-Z]{8}$)|(^[a-zA-Z]{16}$) ServiceStartType:3 ServiceType:0x10) (-ServiceName:PSEXESVC)
view Sigma YAML
title: Metasploit Or Impacket Service Installation Via SMB PsExec
id: 6fb63b40-e02a-403e-9ffd-3bcc1d749442
related:
    - id: 1a17ce75-ff0d-4f02-9709-2b7bb5618cf0
      type: derived
status: test
description: Detects usage of Metasploit SMB PsExec (exploit/windows/smb/psexec) and Impacket psexec.py by triggering on specific service installation
references:
    - https://bczyz1.github.io/2021/01/30/psexec.html
author: Bartlomiej Czyz, Relativity
date: 2021-01-21
modified: 2022-10-05
tags:
    - attack.lateral-movement
    - attack.t1021.002
    - attack.t1570
    - attack.execution
    - attack.t1569.002
logsource:
    product: windows
    service: security
    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
    selection:
        EventID: 4697
        ServiceFileName|re: '^%systemroot%\\[a-zA-Z]{8}\.exe$'
        ServiceName|re: '(^[a-zA-Z]{4}$)|(^[a-zA-Z]{8}$)|(^[a-zA-Z]{16}$)'
        ServiceStartType: 3  # on-demand start, see https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4697
        ServiceType: '0x10'
    filter:
        ServiceName: 'PSEXESVC'
    condition: selection and not filter
falsepositives:
    - Possible, different agents with a 8 character binary and a 4, 8 or 16 character service name
level: high
Convert to SIEM query
high Strong Medium FP
Metasploit SMB Authentication
Alerts on Metasploit host's authentications on the domain.
status test author Chakib Gzenayi (@Chak092), Hosni Mribah ATT&CK sub-technique id 72124974-a68b-4366-b990-d30e0b2a190d
carbon_black query
((EventID:4625 OR EventID:4624) LogonType:3 AuthenticationPackageName:NTLM WorkstationName:^[A-Za-z0-9]{16}$) OR (EventID:4776 Workstation:^[A-Za-z0-9]{16}$)
view Sigma YAML
title: Metasploit SMB Authentication
id: 72124974-a68b-4366-b990-d30e0b2a190d
status: test
description: Alerts on Metasploit host's authentications on the domain.
references:
    - https://github.com/rapid7/metasploit-framework/blob/1416b5776d963f21b7b5b45d19f3e961201e0aed/lib/rex/proto/smb/client.rb
author: Chakib Gzenayi (@Chak092), Hosni Mribah
date: 2020-05-06
modified: 2024-01-25
tags:
    - attack.lateral-movement
    - attack.t1021.002
logsource:
    product: windows
    service: security
detection:
    selection1:
        EventID:
            - 4625
            - 4624
        LogonType: 3
        AuthenticationPackageName: 'NTLM'
        WorkstationName|re: '^[A-Za-z0-9]{16}$'
    selection2:
        EventID: 4776
        Workstation|re: '^[A-Za-z0-9]{16}$'
    condition: 1 of selection*
falsepositives:
    - Linux hostnames composed of 16 characters.
level: high
Convert to SIEM query
high Strong Medium FP
Meterpreter or Cobalt Strike Getsystem Service Installation - Security
Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting a specific service installation
status test author Teymur Kheirkhabarov, Ecco, Florian Roth (Nextron Systems) ATT&CK sub-technique id ecbc5e16-58e0-4521-9c60-eb9a7ea4ad34
carbon_black query
EventID:4697 (((ServiceFileName:\/c* ServiceFileName:echo* ServiceFileName:\\pipe\\*) (ServiceFileName:cmd* OR ServiceFileName:%COMSPEC%*)) OR (ServiceFileName:rundll32* ServiceFileName:.dll,a* ServiceFileName:\/p\:*) OR ServiceFileName:\\\\127.0.0.1\\ADMIN$\\*)
view Sigma YAML
title: Meterpreter or Cobalt Strike Getsystem Service Installation - Security
id: ecbc5e16-58e0-4521-9c60-eb9a7ea4ad34
related:
    - id: 843544a7-56e0-4dcc-a44f-5cc266dd97d6
      type: derived
status: test
description: Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting a specific service installation
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-privilege-escalation-in-windows-environment
    - https://blog.cobaltstrike.com/2014/04/02/what-happens-when-i-type-getsystem/
author: Teymur Kheirkhabarov, Ecco, Florian Roth (Nextron Systems)
date: 2019-10-26
modified: 2023-11-15
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.001
    - attack.t1134.002
logsource:
    product: windows
    service: security
    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
    selection_eid:
        EventID: 4697
    selection_cli_cmd:
        # meterpreter getsystem technique 1: cmd.exe /c echo 559891bb017 > \\.\pipe\5e120a
        # cobaltstrike getsystem technique 1: %COMSPEC% /c echo 559891bb017 > \\.\pipe\5e120a
        # cobaltstrike getsystem technique 1b (expanded %COMSPEC%): %COMSPEC% /c echo 559891bb017 > \\.\pipe\5e120a
        ServiceFileName|contains|all:
            - '/c'
            - 'echo'
            - '\pipe\'
        ServiceFileName|contains:
            - 'cmd'
            - '%COMSPEC%'
    selection_cli_rundll:
        # meterpreter getsystem technique 2: rundll32.exe C:\Users\test\AppData\Local\Temp\tmexsn.dll,a /p:tmexsn
        ServiceFileName|contains|all:
            - 'rundll32'
            - '.dll,a'
            - '/p:'
    selection_cli_share:
        ServiceFileName|startswith: '\\\\127.0.0.1\\ADMIN$\'  # https://twitter.com/svch0st/status/1413688851877416960?lang=en
    condition: selection_eid and 1 of selection_cli_*
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Strong Medium FP
Meterpreter or Cobalt Strike Getsystem Service Installation - System
Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting a specific service installation
status test author Teymur Kheirkhabarov, Ecco, Florian Roth (Nextron Systems) ATT&CK sub-technique id 843544a7-56e0-4dcc-a44f-5cc266dd97d6
carbon_black query
(Provider_Name:Service\ Control\ Manager EventID:7045) (((ImagePath:\/c* ImagePath:echo* ImagePath:\\pipe\\*) (ImagePath:cmd* OR ImagePath:%COMSPEC%*)) OR (ImagePath:rundll32* ImagePath:.dll,a* ImagePath:\/p\:*) OR ImagePath:\\\\127.0.0.1\\ADMIN$\\*)
view Sigma YAML
title: Meterpreter or Cobalt Strike Getsystem Service Installation - System
id: 843544a7-56e0-4dcc-a44f-5cc266dd97d6
status: test
description: Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting a specific service installation
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-privilege-escalation-in-windows-environment
    - https://blog.cobaltstrike.com/2014/04/02/what-happens-when-i-type-getsystem/
author: Teymur Kheirkhabarov, Ecco, Florian Roth (Nextron Systems)
date: 2019-10-26
modified: 2023-11-15
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.001
    - attack.t1134.002
logsource:
    product: windows
    service: system
detection:
    selection_id:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
    selection_cli_cmd:
        # meterpreter getsystem technique 1: cmd.exe /c echo 559891bb017 > \\.\pipe\5e120a
        # cobaltstrike getsystem technique 1: %COMSPEC% /c echo 559891bb017 > \\.\pipe\5e120a
        # cobaltstrike getsystem technique 1b (expanded %COMSPEC%): %COMSPEC% /c echo 559891bb017 > \\.\pipe\5e120a
        ImagePath|contains|all:
            - '/c'
            - 'echo'
            - '\pipe\'
        ImagePath|contains:
        - 'cmd'
        - '%COMSPEC%'
    selection_cli_rundll:
        # meterpreter getsystem technique 2: rundll32.exe C:\Users\test\AppData\Local\Temp\tmexsn.dll,a /p:tmexsn
        ImagePath|contains|all:
            - 'rundll32'
            - '.dll,a'
            - '/p:'
    selection_cli_share:
        ImagePath|startswith: '\\\\127.0.0.1\\ADMIN$\'  # https://twitter.com/svch0st/status/1413688851877416960?lang=en
    condition: selection_id and 1 of selection_cli_*
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Moderate Medium FP
Microsoft Defender Blocked from Loading Unsigned DLL
Detects Code Integrity (CI) engine blocking Microsoft Defender's processes (MpCmdRun and NisSrv) from loading unsigned DLLs which may be an attempt to sideload arbitrary DLL
status test author Bhabesh Raj ATT&CK sub-technique id 0b0ea3cc-99c8-4730-9c53-45deee2a4c86
carbon_black query
(EventID:11 OR EventID:12) (ProcessPath:\\MpCmdRun.exe OR ProcessPath:\\NisSrv.exe)
view Sigma YAML
title: Microsoft Defender Blocked from Loading Unsigned DLL
id: 0b0ea3cc-99c8-4730-9c53-45deee2a4c86
status: test
description: Detects Code Integrity (CI) engine blocking Microsoft Defender's processes (MpCmdRun and NisSrv) from loading unsigned DLLs which may be an attempt to sideload arbitrary DLL
references:
    - https://www.sentinelone.com/blog/living-off-windows-defender-lockbit-ransomware-sideloads-cobalt-strike-through-microsoft-security-tool
author: Bhabesh Raj
date: 2022-08-02
modified: 2022-09-28
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    product: windows
    service: security-mitigations
detection:
    selection:
        EventID:
            - 11
            - 12 # MDE: ExploitGuardNonMicrosoftSignedBlocked
        ProcessPath|endswith:
            - '\MpCmdRun.exe'
            - '\NisSrv.exe'
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
Microsoft Defender Tamper Protection Trigger
Detects blocked attempts to change any of Defender's settings such as "Real Time Monitoring" and "Behavior Monitoring"
status stable author Bhabesh Raj, Nasreddine Bencherchali ATT&CK technique id 49e5bc24-8b86-49f1-b743-535f332c2856
carbon_black query
EventID:5013 (Value:\\Windows\ Defender\\DisableAntiSpyware OR Value:\\Windows\ Defender\\DisableAntiVirus OR Value:\\Windows\ Defender\\Scan\\DisableArchiveScanning OR Value:\\Windows\ Defender\\Scan\\DisableScanningNetworkFiles OR Value:\\Real\-Time\ Protection\\DisableRealtimeMonitoring OR Value:\\Real\-Time\ Protection\\DisableBehaviorMonitoring OR Value:\\Real\-Time\ Protection\\DisableIOAVProtection OR Value:\\Real\-Time\ Protection\\DisableScriptScanning)
view Sigma YAML
title: Microsoft Defender Tamper Protection Trigger
id: 49e5bc24-8b86-49f1-b743-535f332c2856
status: stable
description: Detects blocked attempts to change any of Defender's settings such as "Real Time Monitoring" and "Behavior Monitoring"
references:
    - https://bhabeshraj.com/post/tampering-with-microsoft-defenders-tamper-protection
    - https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus?view=o365-worldwide
author: Bhabesh Raj, Nasreddine Bencherchali
date: 2021-07-05
modified: 2022-12-06
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    service: windefend
detection:
    selection:
        EventID: 5013 # Tamper protection blocked a change to Microsoft Defender Antivirus. If Tamper protection is enabled then, any attempt to change any of Defender's settings is blocked. Event ID 5013 is generated and states which setting change was blocked.
        Value|endswith:
            - '\Windows Defender\DisableAntiSpyware'
            - '\Windows Defender\DisableAntiVirus'
            - '\Windows Defender\Scan\DisableArchiveScanning'
            - '\Windows Defender\Scan\DisableScanningNetworkFiles'
            - '\Real-Time Protection\DisableRealtimeMonitoring'
            - '\Real-Time Protection\DisableBehaviorMonitoring'
            - '\Real-Time Protection\DisableIOAVProtection'
            - '\Real-Time Protection\DisableScriptScanning'
    condition: selection
falsepositives:
    - Administrator might try to disable defender features during testing (must be investigated)
level: high
Convert to SIEM query
high Moderate High FP
Microsoft IIS Connection Strings Decryption
Detects use of aspnet_regiis to decrypt Microsoft IIS connection strings. An attacker with Microsoft IIS web server access via a webshell or alike can decrypt and dump any hardcoded connection strings, such as the MSSQL service account password using aspnet_regiis command.
status test author Tim Rauch, Elastic (idea) ATT&CK technique id 97dbf6e2-e436-44d8-abee-4261b24d3e41
carbon_black query
(Image:\\aspnet_regiis.exe OR OriginalFileName:aspnet_regiis.exe) (CommandLine:connectionStrings* CommandLine:\ \-pdf*)
view Sigma YAML
title: Microsoft IIS Connection Strings Decryption
id: 97dbf6e2-e436-44d8-abee-4261b24d3e41
status: test
description: Detects use of aspnet_regiis to decrypt Microsoft IIS connection strings. An attacker with Microsoft IIS web server access via a webshell or alike can decrypt and dump any hardcoded connection strings, such as the MSSQL service account password using aspnet_regiis command.
references:
    - https://www.elastic.co/guide/en/security/current/microsoft-iis-connection-strings-decryption.html
author: Tim Rauch, Elastic (idea)
date: 2022-09-28
modified: 2022-12-30
tags:
    - attack.credential-access
    - attack.t1003
logsource:
    category: process_creation
    product: windows
detection:
    selection_name:
        - Image|endswith: '\aspnet_regiis.exe'
        - OriginalFileName: 'aspnet_regiis.exe'
    selection_args:
        CommandLine|contains|all:
            - 'connectionStrings'
            - ' -pdf'
    condition: all of selection*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
Microsoft IIS Service Account Password Dumped
Detects the Internet Information Services (IIS) command-line tool, AppCmd, being used to list passwords
status test author Tim Rauch, Janantha Marasinghe, Elastic (original idea) ATT&CK technique id 2d3cdeec-c0db-45b4-aa86-082f7eb75701
carbon_black query
((Image:\\appcmd.exe OR OriginalFileName:appcmd.exe) CommandLine:list\ *) ((CommandLine:\ \/config* OR CommandLine:\ \/xml* OR CommandLine:\ \-config* OR CommandLine:\ \-xml*) OR ((CommandLine:\ \/@t* OR CommandLine:\ \/text* OR CommandLine:\ \/show* OR CommandLine:\ \-@t* OR CommandLine:\ \-text* OR CommandLine:\ \-show*) (CommandLine:\:\** OR CommandLine:password*)))
view Sigma YAML
title: Microsoft IIS Service Account Password Dumped
id: 2d3cdeec-c0db-45b4-aa86-082f7eb75701
status: test
description: Detects the Internet Information Services (IIS) command-line tool, AppCmd, being used to list passwords
references:
    - https://www.elastic.co/guide/en/security/current/microsoft-iis-service-account-password-dumped.html
    - https://twitter.com/0gtweet/status/1588815661085917186?cxt=HHwWhIDUyaDbzYwsAAAA
    - https://www.netspi.com/blog/technical/network-penetration-testing/decrypting-iis-passwords-to-break-out-of-the-dmz-part-2/
author: Tim Rauch, Janantha Marasinghe, Elastic (original idea)
date: 2022-11-08
modified: 2023-01-22
tags:
    - attack.credential-access
    - attack.t1003
logsource:
    category: process_creation
    product: windows
detection:
    selection_base_name:
        - Image|endswith: '\appcmd.exe'
        - OriginalFileName: 'appcmd.exe'
    selection_base_list:
        CommandLine|contains: 'list '
    selection_standalone:
        CommandLine|contains:
            - ' /config' # https://pbs.twimg.com/media/FgydDAJWIAEio34?format=png&name=900x900
            - ' /xml'
            # We cover the "-" version just in case :)
            - ' -config'
            - ' -xml'
    selection_cmd_flags:
        CommandLine|contains:
            - ' /@t' # Covers both "/@text:*" and "/@t:*"
            - ' /text'
            - ' /show'
            # We cover the "-" version just in case :)
            - ' -@t'
            - ' -text'
            - ' -show'
    selection_cmd_grep:
        CommandLine|contains:
            - ':\*'
            - 'password'
    condition: all of selection_base_* and (selection_standalone or all of selection_cmd_*)
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
Microsoft Malware Protection Engine Crash
This rule detects a suspicious crash of the Microsoft Malware Protection Engine
status test author Florian Roth (Nextron Systems) ATT&CK technique id 545a5da6-f103-4919-a519-e9aec1026ee4
carbon_black query
Provider_Name:Application\ Error EventID:1000 (Data:MsMpEng.exe* Data:mpengine.dll*)
view Sigma YAML
title: Microsoft Malware Protection Engine Crash
id: 545a5da6-f103-4919-a519-e9aec1026ee4
related:
    - id: 6c82cf5c-090d-4d57-9188-533577631108
      type: similar
status: test
description: This rule detects a suspicious crash of the Microsoft Malware Protection Engine
references:
    - https://bugs.chromium.org/p/project-zero/issues/detail?id=1252&desc=5
    - https://technet.microsoft.com/en-us/library/security/4022344
author: Florian Roth (Nextron Systems)
date: 2017-05-09
modified: 2023-04-14
tags:
    - attack.stealth
    - attack.defense-impairment
    - attack.t1211
    - attack.t1685
logsource:
    product: windows
    service: application
    # warning: The 'data' field used in the detection section is the container for the event data as a whole. You may have to adapt the rule for your backend accordingly
detection:
    selection:
        Provider_Name: 'Application Error'
        EventID: 1000
        Data|contains|all:
            - 'MsMpEng.exe'
            - 'mpengine.dll'
    condition: selection
falsepositives:
    - MsMpEng might crash if the "C:\" partition is full
level: high
Convert to SIEM query
high Strong Medium FP
Microsoft Malware Protection Engine Crash - WER
This rule detects a suspicious crash of the Microsoft Malware Protection Engine
status test author Florian Roth (Nextron Systems) ATT&CK technique id 6c82cf5c-090d-4d57-9188-533577631108
carbon_black query
Provider_Name:Windows\ Error\ Reporting EventID:1001 (Data:MsMpEng.exe* Data:mpengine.dll*)
view Sigma YAML
title: Microsoft Malware Protection Engine Crash - WER
id: 6c82cf5c-090d-4d57-9188-533577631108
status: test
description: This rule detects a suspicious crash of the Microsoft Malware Protection Engine
references:
    - https://bugs.chromium.org/p/project-zero/issues/detail?id=1252&desc=5
    - https://technet.microsoft.com/en-us/library/security/4022344
author: Florian Roth (Nextron Systems)
date: 2017-05-09
modified: 2023-04-14
tags:
    - attack.stealth
    - attack.defense-impairment
    - attack.t1211
    - attack.t1685
logsource:
    product: windows
    service: application
    # warning: The 'data' field used in the detection section is the container for the event data as a whole. You may have to adapt the rule for your backend accordingly
detection:
    selection:
        Provider_Name: 'Windows Error Reporting'
        EventID: 1001
        Data|contains|all:
            - 'MsMpEng.exe'
            - 'mpengine.dll'
    condition: selection
falsepositives:
    - MsMpEng might crash if the "C:\" partition is full
level: high
Convert to SIEM query
high Moderate Medium FP
Microsoft Office DLL Sideload
Detects DLL sideloading of DLLs that are part of Microsoft Office from non standard location
status test author Nasreddine Bencherchali (Nextron Systems), Wietze Beukema (project and research) ATT&CK sub-technique id 829a3bdf-34da-4051-9cf4-8ed221a8ae4f
carbon_black query
ImageLoaded:\\outllib.dll (-(ImageLoaded:C\:\\Program\ Files\\Microsoft\ Office\\OFFICE* OR ImageLoaded:C\:\\Program\ Files\ \(x86\)\\Microsoft\ Office\\OFFICE* OR ImageLoaded:C\:\\Program\ Files\\Microsoft\ Office\\Root\\OFFICE* OR ImageLoaded:C\:\\Program\ Files\ \(x86\)\\Microsoft\ Office\\Root\\OFFICE*))
view Sigma YAML
title: Microsoft Office DLL Sideload
id: 829a3bdf-34da-4051-9cf4-8ed221a8ae4f
status: test
description: Detects DLL sideloading of DLLs that are part of Microsoft Office from non standard location
references:
    - https://hijacklibs.net/ # For list of DLLs that could be sideloaded (search for dlls mentioned here in there)
author: Nasreddine Bencherchali (Nextron Systems), Wietze Beukema (project and research)
date: 2022-08-17
modified: 2023-03-15
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|endswith: '\outllib.dll'
    filter:
        ImageLoaded|startswith:
            - 'C:\Program Files\Microsoft Office\OFFICE'
            - 'C:\Program Files (x86)\Microsoft Office\OFFICE'
            - 'C:\Program Files\Microsoft Office\Root\OFFICE'
            - 'C:\Program Files (x86)\Microsoft Office\Root\OFFICE'
    condition: selection and not filter
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Strong Medium FP
Microsoft Office Protected View Disabled
Detects changes to Microsoft Office protected view registry keys with which the attacker disables this feature.
status test author frack113, Nasreddine Bencherchali (Nextron Systems) ATT&CK technique id a5c7a43f-6009-4a8c-80c5-32abf1c53ecc
carbon_black query
(TargetObject:\\SOFTWARE\\Microsoft\\Office\\* TargetObject:\\Security\\ProtectedView\\*) ((Details:DWORD\ \(0x00000001\) (TargetObject:\\DisableAttachementsInPV OR TargetObject:\\DisableInternetFilesInPV OR TargetObject:\\DisableIntranetCheck OR TargetObject:\\DisableUnsafeLocationsInPV)) OR (Details:DWORD\ \(0x00000000\) (TargetObject:\\enabledatabasefileprotectedview OR TargetObject:\\enableforeigntextfileprotectedview)))
view Sigma YAML
title: Microsoft Office Protected View Disabled
id: a5c7a43f-6009-4a8c-80c5-32abf1c53ecc
related:
    - id: 7c637634-c95d-4bbf-b26c-a82510874b34
      type: obsolete
status: test
description: Detects changes to Microsoft Office protected view registry keys with which the attacker disables this feature.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
    - https://unit42.paloaltonetworks.com/unit42-gorgon-group-slithering-nation-state-cybercrime/
    - https://yoroi.company/research/cyber-criminal-espionage-operation-insists-on-italian-manufacturing/
    - https://admx.help/HKCU/software/policies/microsoft/office/16.0/excel/security/protectedview
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2021-06-08
modified: 2023-08-17
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    category: registry_set
detection:
    selection_path:
        TargetObject|contains|all:
            - '\SOFTWARE\Microsoft\Office\'
            - '\Security\ProtectedView\'
    selection_values_1:
        Details: 'DWORD (0x00000001)'
        TargetObject|endswith:
            - '\DisableAttachementsInPV' # Turn off Protected View for attachments opened from Outlook
            - '\DisableInternetFilesInPV' # Turn off Protected View for files downloaded from Internet zone
            - '\DisableIntranetCheck' # Turn off Protected View for file located in UNC paths
            - '\DisableUnsafeLocationsInPV' # Turn off Protected View for unsafe locations
    selection_values_0:
        Details: 'DWORD (0x00000000)'
        TargetObject|endswith:
            - '\enabledatabasefileprotectedview'
            - '\enableforeigntextfileprotectedview'
    condition: selection_path and 1 of selection_values_*
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Strong Medium FP
Mimikatz DC Sync
Detects Mimikatz DC sync security events
status test author Benjamin Delpy, Florian Roth (Nextron Systems), Scott Dermott, Sorina Ionescu ATT&CK sub-technique id 611eab06-a145-4dfa-a295-3ccc5c20f59a
carbon_black query
(EventID:4662 (Properties:Replicating\ Directory\ Changes\ All* OR Properties:1131f6ad\-9c07\-11d1\-f79f\-00c04fc2dcd2* OR Properties:1131f6aa\-9c07\-11d1\-f79f\-00c04fc2dcd2* OR Properties:9923a32a\-3607\-11d2\-b9be\-0000f87a36b2* OR Properties:89e95b76\-444d\-4c62\-991a\-0facbeda640c*) AccessMask:0x100) (-(SubjectDomainName:Window\ Manager OR (SubjectUserName:NT\ AUT* OR SubjectUserName:MSOL_*) OR SubjectUserName:$))
view Sigma YAML
title: Mimikatz DC Sync
id: 611eab06-a145-4dfa-a295-3ccc5c20f59a
status: test
description: Detects Mimikatz DC sync security events
references:
    - https://twitter.com/gentilkiwi/status/1003236624925413376
    - https://gist.github.com/gentilkiwi/dcc132457408cf11ad2061340dcb53c2
    - https://blog.blacklanternsecurity.com/p/detecting-dcsync?s=r
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4662
author: Benjamin Delpy, Florian Roth (Nextron Systems), Scott Dermott, Sorina Ionescu
date: 2018-06-03
modified: 2022-04-26
tags:
    - attack.credential-access
    - attack.s0002
    - attack.t1003.006
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4662
        Properties|contains:
            - 'Replicating Directory Changes All'
            - '1131f6ad-9c07-11d1-f79f-00c04fc2dcd2'
            - '1131f6aa-9c07-11d1-f79f-00c04fc2dcd2'
            - '9923a32a-3607-11d2-b9be-0000f87a36b2'
            - '89e95b76-444d-4c62-991a-0facbeda640c'
        AccessMask: '0x100'
    filter1:
        SubjectDomainName: 'Window Manager'
    filter2:
        SubjectUserName|startswith:
            - 'NT AUT'
            - 'MSOL_'
    filter3:
        SubjectUserName|endswith: '$'
    condition: selection and not 1 of filter*
falsepositives:
    - Valid DC Sync that is not covered by the filters; please report
    - Local Domain Admin account used for Azure AD Connect
level: high
Convert to SIEM query
high Moderate Low FP
Mimikatz Use
This method detects mimikatz keywords in different Eventlogs (some of them only appear in older Mimikatz version that are however still used by different threat groups)
status test author Florian Roth (Nextron Systems), David ANDRE (additional keywords) ATT&CK sub-technique id 06d71506-7beb-4f22-8888-e2e5e2ca7fd8
carbon_black query
("dpapi\:\:masterkey" OR "eo.oe.kiwi" OR "event\:\:clear" OR "event\:\:drop" OR "gentilkiwi.com" OR "kerberos\:\:golden" OR "kerberos\:\:ptc" OR "kerberos\:\:ptt" OR "kerberos\:\:tgt" OR "Kiwi\ Legit\ Printer" OR "lsadump\:\:" OR "mimidrv.sys" OR "\\mimilib.dll" OR "misc\:\:printnightmare" OR "misc\:\:shadowcopies" OR "misc\:\:skeleton" OR "privilege\:\:backup" OR "privilege\:\:debug" OR "privilege\:\:driver" OR "sekurlsa\:\:") (-EventID:15)
view Sigma YAML
title: Mimikatz Use
id: 06d71506-7beb-4f22-8888-e2e5e2ca7fd8
status: test
description: This method detects mimikatz keywords in different Eventlogs (some of them only appear in older Mimikatz version that are however still used by different threat groups)
references:
    - https://tools.thehacker.recipes/mimikatz/modules
author: Florian Roth (Nextron Systems), David ANDRE (additional keywords)
date: 2017-01-10
modified: 2022-01-05
tags:
    - attack.s0002
    - attack.lateral-movement
    - attack.credential-access
    - car.2013-07-001
    - car.2019-04-004
    - attack.t1003.002
    - attack.t1003.004
    - attack.t1003.001
    - attack.t1003.006
logsource:
    product: windows
detection:
    keywords:
        - 'dpapi::masterkey'
        - 'eo.oe.kiwi'
        - 'event::clear'
        - 'event::drop'
        - 'gentilkiwi.com'
        - 'kerberos::golden'
        - 'kerberos::ptc'
        - 'kerberos::ptt'
        - 'kerberos::tgt'
        - 'Kiwi Legit Printer'
        - 'lsadump::'
        - 'mimidrv.sys'
        - '\mimilib.dll'
        - 'misc::printnightmare'
        - 'misc::shadowcopies'
        - 'misc::skeleton'
        - 'privilege::backup'
        - 'privilege::debug'
        - 'privilege::driver'
        - 'sekurlsa::'
    filter:
        EventID: 15  # Sysmon's FileStream Events (could cause false positives when Sigma rules get copied on/to a system)
    condition: keywords and not filter
falsepositives:
    - Naughty administrators
    - AV Signature updates
    - Files with Mimikatz in their filename
level: high
Convert to SIEM query
high Moderate High FP
Mint Sandstorm - Log4J Wstomcat Process Execution
Detects Log4J Wstomcat process execution as seen in Mint Sandstorm activity
status test author Nasreddine Bencherchali (Nextron Systems), MSTIC (idea) ATT&CK tactic-only id 7c97c625-0350-4f0a-8943-f6cadc88125e
carbon_black query
ParentImage:\\ws_tomcatservice.exe (-Image:\\repadmin.exe)
view Sigma YAML
title: Mint Sandstorm - Log4J Wstomcat Process Execution
id: 7c97c625-0350-4f0a-8943-f6cadc88125e
status: test
description: Detects Log4J Wstomcat process execution as seen in Mint Sandstorm activity
references:
    - https://www.microsoft.com/en-us/security/blog/2023/04/18/nation-state-threat-actor-mint-sandstorm-refines-tradecraft-to-attack-high-value-targets/
author: Nasreddine Bencherchali (Nextron Systems), MSTIC (idea)
date: 2023-04-20
modified: 2023-11-29
tags:
    - attack.execution
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\ws_tomcatservice.exe'
    filter_main_repadmin:
        Image|endswith: '\repadmin.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate Low FP
Modification of ld.so.preload
Identifies modification of ld.so.preload for shared object injection. This technique is used by attackers to load arbitrary code into processes.
status test author E.M. Anhaus (originally from Atomic Blue Detections, Tony Lambert), oscd.community ATT&CK sub-technique id 4b3cb710-5e83-4715-8c45-8b2b5b3e5751
carbon_black query
type:PATH name:\/etc\/ld.so.preload
view Sigma YAML
title: Modification of ld.so.preload
id: 4b3cb710-5e83-4715-8c45-8b2b5b3e5751
status: test
description: Identifies modification of ld.so.preload for shared object injection. This technique is used by attackers to load arbitrary code into processes.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1574.006/T1574.006.md
    - https://eqllib.readthedocs.io/en/latest/analytics/fd9b987a-1101-4ed3-bda6-a70300eaf57e.html
author: E.M. Anhaus (originally from Atomic Blue Detections, Tony Lambert), oscd.community
date: 2019-10-24
modified: 2021-11-27
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1574.006
logsource:
    product: linux
    service: auditd
detection:
    selection:
        type: 'PATH'
        name: '/etc/ld.so.preload'
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate Low FP
Modification or Deletion of an AWS RDS Cluster
Detects modifications to an RDS cluster or its deletion, which may indicate potential data exfiltration attempts, unauthorized access, or exposure of sensitive information.
status experimental author Ivan Saakov ATT&CK technique id 457cc9ac-d8e6-4d1d-8c0e-251d0f11a74c
carbon_black query
eventSource:rds.amazonaws.com (eventName:ModifyDBCluster OR eventName:DeleteDBCluster)
view Sigma YAML
title: Modification or Deletion of an AWS RDS Cluster
id: 457cc9ac-d8e6-4d1d-8c0e-251d0f11a74c
status: experimental
description: Detects modifications to an RDS cluster or its deletion, which may indicate potential data exfiltration attempts, unauthorized access, or exposure of sensitive information.
references:
    - https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBCluster.html
    - https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DeleteDBCluster.html
    - https://cloud.hacktricks.xyz/pentesting-cloud/aws-security/aws-privilege-escalation/aws-rds-privesc#rds-modifydbinstance
author: Ivan Saakov
date: 2024-12-06
tags:
    - attack.exfiltration
    - attack.t1020
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: rds.amazonaws.com
        eventName:
            - ModifyDBCluster
            - DeleteDBCluster
    condition: selection
falsepositives:
    - Verify if the modification or deletion was performed by an authorized administrator.
    - Confirm if the modification or deletion was part of a planned change or maintenance activity.
level: high
Convert to SIEM query
high Moderate High FP
Monero Crypto Coin Mining Pool Lookup
Detects suspicious DNS queries to Monero mining pools
status stable author Florian Roth (Nextron Systems) ATT&CK technique id b593fd50-7335-4682-a36c-4edcb68e4641
carbon_black query
query:pool.minexmr.com* OR query:fr.minexmr.com* OR query:de.minexmr.com* OR query:sg.minexmr.com* OR query:ca.minexmr.com* OR query:us\-west.minexmr.com* OR query:pool.supportxmr.com* OR query:mine.c3pool.com* OR query:xmr\-eu1.nanopool.org* OR query:xmr\-eu2.nanopool.org* OR query:xmr\-us\-east1.nanopool.org* OR query:xmr\-us\-west1.nanopool.org* OR query:xmr\-asia1.nanopool.org* OR query:xmr\-jp1.nanopool.org* OR query:xmr\-au1.nanopool.org* OR query:xmr.2miners.com* OR query:xmr.hashcity.org* OR query:xmr.f2pool.com* OR query:xmrpool.eu* OR query:pool.hashvault.pro*
view Sigma YAML
title: Monero Crypto Coin Mining Pool Lookup
id: b593fd50-7335-4682-a36c-4edcb68e4641
status: stable
description: Detects suspicious DNS queries to Monero mining pools
references:
    - https://www.nextron-systems.com/2021/10/24/monero-mining-pool-fqdns/
author: Florian Roth (Nextron Systems)
date: 2021-10-24
tags:
    - attack.impact
    - attack.t1496
    - attack.exfiltration
    - attack.t1567
logsource:
    category: dns
detection:
    selection:
        query|contains:
            - 'pool.minexmr.com'
            - 'fr.minexmr.com'
            - 'de.minexmr.com'
            - 'sg.minexmr.com'
            - 'ca.minexmr.com'
            - 'us-west.minexmr.com'
            - 'pool.supportxmr.com'
            - 'mine.c3pool.com'
            - 'xmr-eu1.nanopool.org'
            - 'xmr-eu2.nanopool.org'
            - 'xmr-us-east1.nanopool.org'
            - 'xmr-us-west1.nanopool.org'
            - 'xmr-asia1.nanopool.org'
            - 'xmr-jp1.nanopool.org'
            - 'xmr-au1.nanopool.org'
            - 'xmr.2miners.com'
            - 'xmr.hashcity.org'
            - 'xmr.f2pool.com'
            - 'xmrpool.eu'
            - 'pool.hashvault.pro'
    condition: selection
falsepositives:
    - Legitimate crypto coin mining
level: high
Convert to SIEM query
high Moderate High FP
MpiExec Lolbin
Detects a certain command line flag combination used by mpiexec.exe LOLBIN from HPC pack that can be used to execute any other binary
status test author Florian Roth (Nextron Systems) ATT&CK technique id 729ce0ea-5d8f-4769-9762-e35de441586d
carbon_black query
(Image:\\mpiexec.exe OR Hashes:IMPHASH=d8b52ef6aaa3a81501bdfff9dbb96217*) (CommandLine:\ \/n\ 1\ * OR CommandLine:\ \-n\ 1\ *)
view Sigma YAML
title: MpiExec Lolbin
id: 729ce0ea-5d8f-4769-9762-e35de441586d
status: test
description: Detects a certain command line flag combination used by mpiexec.exe LOLBIN from HPC pack that can be used to execute any other binary
references:
    - https://twitter.com/mrd0x/status/1465058133303246867
    - https://learn.microsoft.com/en-us/powershell/high-performance-computing/mpiexec?view=hpc19-ps
author: Florian Roth (Nextron Systems)
date: 2022-01-11
modified: 2024-11-23
tags:
    - attack.execution
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection_binary:
        - Image|endswith: '\mpiexec.exe'
        - Hashes|contains: 'IMPHASH=d8b52ef6aaa3a81501bdfff9dbb96217'
    selection_flags:
        CommandLine|contains:
            - ' /n 1 '
            - ' -n 1 '
    condition: all of selection*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
Mshtml.DLL RunHTMLApplication Suspicious Usage
Detects execution of commands that leverage the "mshtml.dll" RunHTMLApplication export to run arbitrary code via different protocol handlers (vbscript, javascript, file, http...)
status test author Nasreddine Bencherchali (Nextron Systems), Florian Roth (Nextron Systems), Josh Nickels, frack113, Zaw Min Htun (ZETA) ATT&CK tactic-only id 4782eb5a-a513-4523-a0ac-f3082b26ac5c
carbon_black query
(CommandLine:\\..\\* CommandLine:mshtml*) (CommandLine:#135* OR CommandLine:RunHTMLApplication*)
view Sigma YAML
title: Mshtml.DLL RunHTMLApplication Suspicious Usage
id: 4782eb5a-a513-4523-a0ac-f3082b26ac5c
related:
    - id: 9f06447a-a33a-4cbe-a94f-a3f43184a7a3
      type: obsolete
    - id: 73fcad2e-ff14-4c38-b11d-4172c8ac86c7
      type: obsolete
status: test
description: |
    Detects execution of commands that leverage the "mshtml.dll" RunHTMLApplication export to run arbitrary code via different protocol handlers (vbscript, javascript, file, http...)
references:
    - https://twitter.com/n1nj4sec/status/1421190238081277959
    - https://hyp3rlinx.altervista.org/advisories/MICROSOFT_WINDOWS_DEFENDER_TROJAN.WIN32.POWESSERE.G_MITIGATION_BYPASS_PART2.txt
    - http://hyp3rlinx.altervista.org/advisories/MICROSOFT_WINDOWS_DEFENDER_DETECTION_BYPASS.txt
author: Nasreddine Bencherchali (Nextron Systems),  Florian Roth (Nextron Systems), Josh Nickels, frack113, Zaw Min Htun (ZETA)
date: 2022-08-14
modified: 2024-02-23
tags:
    - attack.execution
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - '\..\'
            - 'mshtml'
        CommandLine|contains:
            - '#135'
            - 'RunHTMLApplication'
    condition: selection
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Moderate High FP
Mstsc.EXE Execution From Uncommon Parent
Detects potential RDP connection via Mstsc using a local ".rdp" file located in suspicious locations.
status test author Nasreddine Bencherchali (Nextron Systems) ATT&CK tactic-only id ff3b6b39-e765-42f9-bb2c-ea6761e0e0f6
carbon_black query
(ParentImage:\\brave.exe OR ParentImage:\\CCleanerBrowser.exe OR ParentImage:\\chrome.exe OR ParentImage:\\chromium.exe OR ParentImage:\\firefox.exe OR ParentImage:\\iexplore.exe OR ParentImage:\\microsoftedge.exe OR ParentImage:\\msedge.exe OR ParentImage:\\opera.exe OR ParentImage:\\vivaldi.exe OR ParentImage:\\whale.exe OR ParentImage:\\outlook.exe) (Image:\\mstsc.exe OR OriginalFileName:mstsc.exe)
view Sigma YAML
title: Mstsc.EXE Execution From Uncommon Parent
id: ff3b6b39-e765-42f9-bb2c-ea6761e0e0f6
status: test
description: Detects potential RDP connection via Mstsc using a local ".rdp" file located in suspicious locations.
references:
    - https://www.blackhillsinfosec.com/rogue-rdp-revisiting-initial-access-methods/
    - https://web.archive.org/web/20230726144748/https://blog.thickmints.dev/mintsights/detecting-rogue-rdp/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-18
tags:
    - attack.lateral-movement
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith:
            # Covers potential downloads/clicks from browsers
            - '\brave.exe'
            - '\CCleanerBrowser.exe'
            - '\chrome.exe'
            - '\chromium.exe'
            - '\firefox.exe'
            - '\iexplore.exe'
            - '\microsoftedge.exe'
            - '\msedge.exe'
            - '\opera.exe'
            - '\vivaldi.exe'
            - '\whale.exe'
            # Covers potential downloads/clicks from email clients
            - '\outlook.exe'
    selection_img:
        - Image|endswith: '\mstsc.exe'
        - OriginalFileName: 'mstsc.exe'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Moderate High FP
Mustang Panda Dropper
Detects specific process parameters as used by Mustang Panda droppers
status test author Florian Roth (Nextron Systems), oscd.community ATT&CK sub-technique id 2d87d610-d760-45ee-a7e6-7a6f2a65de00
carbon_black query
((CommandLine:Temp\\wtask.exe\ \/create* OR CommandLine:%windir\:\~\-3,1%%PUBLIC\:\~\-9,1%* OR CommandLine:\/tn\ \"Security\ Script\ * OR CommandLine:%windir\:\~\-1,1%*) OR (CommandLine:\/E\:vbscript* CommandLine:C\:\\Users\\* CommandLine:.txt* CommandLine:\/F*)) OR Image:Temp\\winwsh.exe
view Sigma YAML
title: Mustang Panda Dropper
id: 2d87d610-d760-45ee-a7e6-7a6f2a65de00
status: test
description: Detects specific process parameters as used by Mustang Panda droppers
references:
    - https://app.any.run/tasks/7ca5661d-a67b-43ec-98c1-dd7a8103c256/
    - https://app.any.run/tasks/b12cccf3-1c22-4e28-9d3e-c7a6062f3914/
    - https://www.anomali.com/blog/china-based-apt-mustang-panda-targets-minority-groups-public-and-private-sector-organizations
author: Florian Roth (Nextron Systems), oscd.community
date: 2019-10-30
modified: 2021-11-27
tags:
    - attack.t1587.001
    - attack.resource-development
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_cli:
        - CommandLine|contains:
              - 'Temp\wtask.exe /create'
              - '%windir:~-3,1%%PUBLIC:~-9,1%'
              - '/tn "Security Script '
              - '%windir:~-1,1%'
        - CommandLine|contains|all:
              - '/E:vbscript'
              - 'C:\Users\'
              - '.txt'
              - '/F'
    selection_img:
        Image|endswith: 'Temp\winwsh.exe'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Moderate High FP
NET NGenAssemblyUsageLog Registry Key Tamper
Detects changes to the NGenAssemblyUsageLog registry key. .NET Usage Log output location can be controlled by setting the NGenAssemblyUsageLog CLR configuration knob in the Registry or by configuring an environment variable (as described in the next section). By simplify specifying an arbitrary value (e.g. fake output location or junk data) for the expected value, a Usage Log file for the .NET execution context will not be created.
status test author frack113 ATT&CK technique id 28036918-04d3-423d-91c0-55ecf99fb892
carbon_black query
TargetObject:SOFTWARE\\Microsoft\\.NETFramework\\NGenAssemblyUsageLog
view Sigma YAML
title: NET NGenAssemblyUsageLog Registry Key Tamper
id: 28036918-04d3-423d-91c0-55ecf99fb892
status: test
description: |
  Detects changes to the NGenAssemblyUsageLog registry key.
  .NET Usage Log output location can be controlled by setting the NGenAssemblyUsageLog CLR configuration knob in the Registry or by configuring an environment variable (as described in the next section).
  By simplify specifying an arbitrary value (e.g. fake output location or junk data) for the expected value, a Usage Log file for the .NET execution context will not be created.
references:
    - https://bohops.com/2021/03/16/investigating-net-clr-usage-log-tampering-techniques-for-edr-evasion/
author: frack113
date: 2022-11-18
modified: 2023-08-17
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|endswith: 'SOFTWARE\Microsoft\.NETFramework\NGenAssemblyUsageLog'
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
NTDS Exfiltration Filename Patterns
Detects creation of files with specific name patterns seen used in various tools that export the NTDS.DIT for exfiltration.
status test author Florian Roth (Nextron Systems) ATT&CK sub-technique id 3a8da4e0-36c1-40d2-8b29-b3e890d5172a
carbon_black query
TargetFilename:\\All.cab OR TargetFilename:.ntds.cleartext
view Sigma YAML
title: NTDS Exfiltration Filename Patterns
id: 3a8da4e0-36c1-40d2-8b29-b3e890d5172a
status: test
description: Detects creation of files with specific name patterns seen used in various tools that export the NTDS.DIT for exfiltration.
references:
    - https://github.com/rapid7/metasploit-framework/blob/eb6535009f5fdafa954525687f09294918b5398d/modules/post/windows/gather/ntds_grabber.rb
    - https://github.com/rapid7/metasploit-framework/blob/eb6535009f5fdafa954525687f09294918b5398d/data/post/powershell/NTDSgrab.ps1
    - https://github.com/SecureAuthCorp/impacket/blob/7d2991d78836b376452ca58b3d14daa61b67cb40/impacket/examples/secretsdump.py#L2405
author: Florian Roth (Nextron Systems)
date: 2022-03-11
modified: 2023-05-05
tags:
    - attack.credential-access
    - attack.t1003.003
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|endswith:
            - '\All.cab' # https://github.com/rapid7/metasploit-framework/blob/eb6535009f5fdafa954525687f09294918b5398d/data/post/powershell/NTDSgrab.ps1
            - '.ntds.cleartext' # https://github.com/SecureAuthCorp/impacket/blob/7d2991d78836b376452ca58b3d14daa61b67cb40/impacket/examples/secretsdump.py#L2405
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
NTDS.DIT Creation By Uncommon Parent Process
Detects creation of a file named "ntds.dit" (Active Directory Database) by an uncommon parent process or directory
status test author Florian Roth (Nextron Systems) ATT&CK sub-technique id 4e7050dd-e548-483f-b7d6-527ab4fa784d
carbon_black query
TargetFilename:\\ntds.dit ((ParentImage:\\cscript.exe OR ParentImage:\\httpd.exe OR ParentImage:\\nginx.exe OR ParentImage:\\php\-cgi.exe OR ParentImage:\\powershell.exe OR ParentImage:\\pwsh.exe OR ParentImage:\\w3wp.exe OR ParentImage:\\wscript.exe) OR (ParentImage:\\apache* OR ParentImage:\\tomcat* OR ParentImage:\\AppData\\* OR ParentImage:\\Temp\\* OR ParentImage:\\Public\\* OR ParentImage:\\PerfLogs\\*))
view Sigma YAML
title: NTDS.DIT Creation By Uncommon Parent Process
id: 4e7050dd-e548-483f-b7d6-527ab4fa784d
related:
    - id: 11b1ed55-154d-4e82-8ad7-83739298f720
      type: similar
status: test
description: Detects creation of a file named "ntds.dit" (Active Directory Database) by an uncommon parent process or directory
references:
    - https://www.ired.team/offensive-security/credential-access-and-credential-dumping/ntds.dit-enumeration
    - https://www.n00py.io/2022/03/manipulating-user-passwords-without-mimikatz/
    - https://pentestlab.blog/tag/ntds-dit/
    - https://github.com/samratashok/nishang/blob/414ee1104526d7057f9adaeee196d91ae447283e/Gather/Copy-VSS.ps1
author: Florian Roth (Nextron Systems)
date: 2022-03-11
modified: 2023-01-05
tags:
    - attack.credential-access
    - attack.t1003.003
logsource:
    product: windows
    category: file_event
    definition: 'Requirements: The "ParentImage" field is not available by default on EID 11 of Sysmon logs. To be able to use this rule to the full extent you need to enrich the log with additional ParentImage data'
detection:
    selection_file:
        TargetFilename|endswith: '\ntds.dit'
    selection_process_parent:
        # Note: ParentImage is a custom field and is not available by default on Sysmon EID 11
        ParentImage|endswith:
            - '\cscript.exe'
            - '\httpd.exe'
            - '\nginx.exe'
            - '\php-cgi.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\w3wp.exe'
            - '\wscript.exe'
    selection_process_parent_path:
        # Note: ParentImage is a custom field and is not available by default on Sysmon EID 11
        ParentImage|contains:
            - '\apache'
            - '\tomcat'
            - '\AppData\'
            - '\Temp\'
            - '\Public\'
            - '\PerfLogs\'
    condition: selection_file and 1 of selection_process_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate Medium FP
NTDS.DIT Creation By Uncommon Process
Detects creation of a file named "ntds.dit" (Active Directory Database) by an uncommon process or a process located in a suspicious directory
status test author Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) ATT&CK sub-technique id 11b1ed55-154d-4e82-8ad7-83739298f720
carbon_black query
TargetFilename:\\ntds.dit ((Image:\\cmd.exe OR Image:\\cscript.exe OR Image:\\mshta.exe OR Image:\\powershell.exe OR Image:\\pwsh.exe OR Image:\\regsvr32.exe OR Image:\\rundll32.exe OR Image:\\wscript.exe OR Image:\\wsl.exe OR Image:\\wt.exe) OR (Image:\\AppData\\* OR Image:\\Temp\\* OR Image:\\Public\\* OR Image:\\PerfLogs\\*))
view Sigma YAML
title: NTDS.DIT Creation By Uncommon Process
id: 11b1ed55-154d-4e82-8ad7-83739298f720
related:
    - id: 4e7050dd-e548-483f-b7d6-527ab4fa784d
      type: similar
status: test
description: Detects creation of a file named "ntds.dit" (Active Directory Database) by an uncommon process or a process located in a suspicious directory
references:
    - https://stealthbits.com/blog/extracting-password-hashes-from-the-ntds-dit-file/
    - https://adsecurity.org/?p=2398
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2022-01-11
modified: 2022-07-14
tags:
    - attack.credential-access
    - attack.t1003.002
    - attack.t1003.003
logsource:
    product: windows
    category: file_event
detection:
    selection_ntds:
        TargetFilename|endswith: '\ntds.dit'
    selection_process_img:
        Image|endswith:
            # Add more suspicious processes as you see fit
            - '\cmd.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\wscript.exe'
            - '\wsl.exe'
            - '\wt.exe'
    selection_process_paths:
        Image|contains:
            - '\AppData\'
            - '\Temp\'
            - '\Public\'
            - '\PerfLogs\'
    condition: selection_ntds and 1 of selection_process_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
NTFS Alternate Data Stream
Detects writing data into NTFS alternate data streams from powershell. Needs Script Block Logging.
status test author Sami Ruohonen ATT&CK sub-technique id 8c521530-5169-495d-a199-0a3a881ad24e
carbon_black query
(ScriptBlockText:set\-content* OR ScriptBlockText:add\-content*) ScriptBlockText:\-stream*
view Sigma YAML
title: NTFS Alternate Data Stream
id: 8c521530-5169-495d-a199-0a3a881ad24e
status: test
description: Detects writing data into NTFS alternate data streams from powershell. Needs Script Block Logging.
references:
    - https://web.archive.org/web/20220614030603/http://www.powertheshell.com/ntfsstreams/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1564.004/T1564.004.md
author: Sami Ruohonen
date: 2018-07-24
modified: 2022-12-25
tags:
    - attack.stealth
    - attack.t1564.004
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_content:
        ScriptBlockText|contains:
            - set-content
            - add-content
    selection_stream:
        ScriptBlockText|contains: '-stream'
    condition: all of selection*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Low FP
NTFS Vulnerability Exploitation
This the exploitation of a NTFS vulnerability as reported without many details via Twitter
status test author Florian Roth (Nextron Systems) ATT&CK sub-technique id f14719ce-d3ab-4e25-9ce6-2899092260b0
carbon_black query
Provider_Name:Ntfs EventID:55 Origin:File\ System\ Driver (Description:contains\ a\ corrupted\ file\ record* Description:The\ name\ of\ the\ file\ is\ \"\\\"*)
view Sigma YAML
title: NTFS Vulnerability Exploitation
id: f14719ce-d3ab-4e25-9ce6-2899092260b0
status: test
description: This the exploitation of a NTFS vulnerability as reported without many details via Twitter
references:
    - https://twitter.com/jonasLyk/status/1347900440000811010
    - https://twitter.com/wdormann/status/1347958161609809921
    - https://www.bleepingcomputer.com/news/security/windows-10-bug-corrupts-your-hard-drive-on-seeing-this-files-icon/
author: Florian Roth (Nextron Systems)
date: 2021-01-11
modified: 2022-12-25
tags:
    - attack.impact
    - attack.t1499.001
logsource:
    product: windows
    service: system
detection:
    selection:
        Provider_Name: Ntfs
        EventID: 55
        Origin: 'File System Driver'
        Description|contains|all:
            - 'contains a corrupted file record'
            - 'The name of the file is "\"'
    condition: selection
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Strong Medium FP
NTLM Hash Leak Via Curl NTLM Authentication
Detects the use of curl with NTLM authentication and empty credentials (-u :), which can be abused to leak the currently logged-in user's NTLMv2 challenge-response to an attacker-controlled server, enabling offline cracking or relay attacks. When no credentials are provided, the Microsoft-shipped curl passes a NULL identity to Windows SSPI, which automatically falls back to the current user's logon session credentials stored in LSASS — without requiring a plaintext password. This behavior is exclusive to the curl binary shipped by Microsoft (available since Windows 10 / Windows Server 2019), which is built with SSPI support.
status test author Swachchhanda Shrawan Poudel (Nextron Systems) ATT&CK technique id 916eb839-895e-47f8-99ee-3008bf377a3e
carbon_black query
(Image:\\curl.exe OR OriginalFileName:curl.exe) CommandLine:\-\-ntlm* CommandLine:(?i)\\s(-u|--user)\\s*:
view Sigma YAML
title: NTLM Hash Leak Via Curl NTLM Authentication
id: 916eb839-895e-47f8-99ee-3008bf377a3e
status: test
description: |
    Detects the use of curl with NTLM authentication and empty credentials (-u :), which can be abused to leak the currently logged-in user's NTLMv2 challenge-response to an
    attacker-controlled server, enabling offline cracking or relay attacks.
    When no credentials are provided, the Microsoft-shipped curl passes a NULL identity to Windows SSPI, which automatically falls back to the current user's logon session credentials
    stored in LSASS — without requiring a plaintext password.
    This behavior is exclusive to the curl binary shipped by Microsoft (available since Windows 10 / Windows Server 2019), which is built with SSPI support.
references:
    - https://github.com/curl/curl/blob/master/lib/vauth/ntlm_sspi.c#L128-L140
    - https://learn.microsoft.com/en-us/windows/win32/secauthn/acquirecredentialshandle--ntlm
    - https://curl.se/docs/manpage.html#--ntlm
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2026-06-04
tags:
    - attack.credential-access
    - attack.t1187
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\curl.exe'
        - OriginalFileName: 'curl.exe'
    selection_ntlm_flag:
        CommandLine|contains: '--ntlm'
    selection_empty_creds:
        CommandLine|re: '(?i)\s(-u|--user)\s*:'
    condition: all of selection_*
falsepositives:
    - Should be very rare as it's not widely known or used, but could occur in legitimate use cases where curl is used with NTLM authentication and empty credentials, such as in certain scripts or automation tasks.
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_curl_ntlm_hash_leak_attempt/info.yml
Convert to SIEM query
high Moderate Medium FP
Narrator's Feedback-Hub Persistence
Detects abusing Windows 10 Narrator's Feedback-Hub
status test author Dmitriy Lifanov, oscd.community ATT&CK sub-technique id f663a6d9-9d1b-49b8-b2b1-0637914d199a
carbon_black query
(EventType:DeleteValue TargetObject:\\AppXypsaf9f1qserqevf0sws76dx4k9a5206\\Shell\\open\\command\\DelegateExecute) OR TargetObject:\\AppXypsaf9f1qserqevf0sws76dx4k9a5206\\Shell\\open\\command\\\(Default\)
view Sigma YAML
title: Narrator's Feedback-Hub Persistence
id: f663a6d9-9d1b-49b8-b2b1-0637914d199a
status: test
description: Detects abusing Windows 10 Narrator's Feedback-Hub
references:
    - https://giuliocomi.blogspot.com/2019/10/abusing-windows-10-narrators-feedback.html
author: Dmitriy Lifanov, oscd.community
date: 2019-10-25
modified: 2022-03-26
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
logsource:
    category: registry_event
    product: windows
detection:
    selection1:
        EventType: DeleteValue
        TargetObject|endswith: '\AppXypsaf9f1qserqevf0sws76dx4k9a5206\Shell\open\command\DelegateExecute'
    selection2:
        TargetObject|endswith: '\AppXypsaf9f1qserqevf0sws76dx4k9a5206\Shell\open\command\(Default)'
    # Add the payload in the (Default)
    condition: 1 of selection*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
Net WebClient Casing Anomalies
Detects PowerShell command line contents that include a suspicious abnormal casing in the Net.Webclient (e.g. nEt.WEbCliEnT) string as used in obfuscation techniques
status test author Florian Roth (Nextron Systems) ATT&CK sub-technique id c86133ad-4725-4bd0-8170-210788e0a7ba
carbon_black query
((Image:\\powershell.exe OR Image:\\pwsh.exe) OR (OriginalFileName:PowerShell.EXE OR OriginalFileName:pwsh.dll)) (CommandLine:TgBlAFQALgB3AEUAQg* OR CommandLine:4AZQBUAC4AdwBFAEIA* OR CommandLine:OAGUAVAAuAHcARQBCA* OR CommandLine:bgBFAHQALgB3AGUAYg* OR CommandLine:4ARQB0AC4AdwBlAGIA* OR CommandLine:uAEUAdAAuAHcAZQBiA* OR CommandLine:TgBFAHQALgB3AGUAYg* OR CommandLine:OAEUAdAAuAHcAZQBiA* OR CommandLine:bgBlAFQALgB3AGUAYg* OR CommandLine:4AZQBUAC4AdwBlAGIA* OR CommandLine:uAGUAVAAuAHcAZQBiA* OR CommandLine:TgBlAFQALgB3AGUAYg* OR CommandLine:OAGUAVAAuAHcAZQBiA* OR CommandLine:bgBFAFQALgB3AGUAYg* OR CommandLine:4ARQBUAC4AdwBlAGIA* OR CommandLine:uAEUAVAAuAHcAZQBiA* OR CommandLine:bgBlAHQALgBXAGUAYg* OR CommandLine:4AZQB0AC4AVwBlAGIA* OR CommandLine:uAGUAdAAuAFcAZQBiA* OR CommandLine:bgBFAHQALgBXAGUAYg* OR CommandLine:4ARQB0AC4AVwBlAGIA* OR CommandLine:uAEUAdAAuAFcAZQBiA* OR CommandLine:TgBFAHQALgBXAGUAYg* OR CommandLine:OAEUAdAAuAFcAZQBiA* OR CommandLine:bgBlAFQALgBXAGUAYg* OR CommandLine:4AZQBUAC4AVwBlAGIA* OR CommandLine:uAGUAVAAuAFcAZQBiA* OR CommandLine:TgBlAFQALgBXAGUAYg* OR CommandLine:OAGUAVAAuAFcAZQBiA* OR CommandLine:bgBFAFQALgBXAGUAYg* OR CommandLine:4ARQBUAC4AVwBlAGIA* OR CommandLine:uAEUAVAAuAFcAZQBiA* OR CommandLine:bgBlAHQALgB3AEUAYg* OR CommandLine:4AZQB0AC4AdwBFAGIA* OR CommandLine:uAGUAdAAuAHcARQBiA* OR CommandLine:TgBlAHQALgB3AEUAYg* OR CommandLine:OAGUAdAAuAHcARQBiA* OR CommandLine:bgBFAHQALgB3AEUAYg* OR CommandLine:4ARQB0AC4AdwBFAGIA* OR CommandLine:uAEUAdAAuAHcARQBiA* OR CommandLine:TgBFAHQALgB3AEUAYg* OR CommandLine:OAEUAdAAuAHcARQBiA* OR CommandLine:bgBlAFQALgB3AEUAYg* OR CommandLine:4AZQBUAC4AdwBFAGIA* OR CommandLine:uAGUAVAAuAHcARQBiA* OR CommandLine:TgBlAFQALgB3AEUAYg* OR CommandLine:OAGUAVAAuAHcARQBiA* OR CommandLine:bgBFAFQALgB3AEUAYg* OR CommandLine:4ARQBUAC4AdwBFAGIA* OR CommandLine:uAEUAVAAuAHcARQBiA* OR CommandLine:TgBFAFQALgB3AEUAYg* OR CommandLine:OAEUAVAAuAHcARQBiA* OR CommandLine:bgBlAHQALgBXAEUAYg* OR CommandLine:4AZQB0AC4AVwBFAGIA* OR CommandLine:uAGUAdAAuAFcARQBiA* OR CommandLine:TgBlAHQALgBXAEUAYg* OR CommandLine:OAGUAdAAuAFcARQBiA* OR CommandLine:bgBFAHQALgBXAEUAYg* OR CommandLine:4ARQB0AC4AVwBFAGIA* OR CommandLine:uAEUAdAAuAFcARQBiA* OR CommandLine:TgBFAHQALgBXAEUAYg* OR CommandLine:OAEUAdAAuAFcARQBiA* OR CommandLine:bgBlAFQALgBXAEUAYg* OR CommandLine:4AZQBUAC4AVwBFAGIA* OR CommandLine:uAGUAVAAuAFcARQBiA* OR CommandLine:TgBlAFQALgBXAEUAYg* OR CommandLine:OAGUAVAAuAFcARQBiA* OR CommandLine:bgBFAFQALgBXAEUAYg* OR CommandLine:4ARQBUAC4AVwBFAGIA* OR CommandLine:uAEUAVAAuAFcARQBiA* OR CommandLine:TgBFAFQALgBXAEUAYg* OR CommandLine:OAEUAVAAuAFcARQBiA* OR CommandLine:bgBlAHQALgB3AGUAQg* OR CommandLine:4AZQB0AC4AdwBlAEIA* OR CommandLine:uAGUAdAAuAHcAZQBCA* OR CommandLine:TgBlAHQALgB3AGUAQg* OR CommandLine:OAGUAdAAuAHcAZQBCA* OR CommandLine:bgBFAHQALgB3AGUAQg* OR CommandLine:4ARQB0AC4AdwBlAEIA* OR CommandLine:uAEUAdAAuAHcAZQBCA* OR CommandLine:TgBFAHQALgB3AGUAQg* OR CommandLine:OAEUAdAAuAHcAZQBCA* OR CommandLine:bgBlAFQALgB3AGUAQg* OR CommandLine:4AZQBUAC4AdwBlAEIA* OR CommandLine:uAGUAVAAuAHcAZQBCA* OR CommandLine:TgBlAFQALgB3AGUAQg* OR CommandLine:OAGUAVAAuAHcAZQBCA* OR CommandLine:bgBFAFQALgB3AGUAQg* OR CommandLine:4ARQBUAC4AdwBlAEIA* OR CommandLine:uAEUAVAAuAHcAZQBCA* OR CommandLine:TgBFAFQALgB3AGUAQg* OR CommandLine:OAEUAVAAuAHcAZQBCA* OR CommandLine:bgBlAHQALgBXAGUAQg* OR CommandLine:4AZQB0AC4AVwBlAEIA* OR CommandLine:uAGUAdAAuAFcAZQBCA* OR CommandLine:TgBlAHQALgBXAGUAQg* OR CommandLine:OAGUAdAAuAFcAZQBCA* OR CommandLine:bgBFAHQALgBXAGUAQg* OR CommandLine:4ARQB0AC4AVwBlAEIA* OR CommandLine:uAEUAdAAuAFcAZQBCA* OR CommandLine:TgBFAHQALgBXAGUAQg* OR CommandLine:OAEUAdAAuAFcAZQBCA* OR CommandLine:bgBlAFQALgBXAGUAQg* OR CommandLine:4AZQBUAC4AVwBlAEIA* OR CommandLine:uAGUAVAAuAFcAZQBCA* OR CommandLine:TgBlAFQALgBXAGUAQg* OR CommandLine:OAGUAVAAuAFcAZQBCA* OR CommandLine:bgBFAFQALgBXAGUAQg* OR CommandLine:4ARQBUAC4AVwBlAEIA* OR CommandLine:uAEUAVAAuAFcAZQBCA* OR CommandLine:TgBFAFQALgBXAGUAQg* OR CommandLine:OAEUAVAAuAFcAZQBCA* OR CommandLine:bgBlAHQALgB3AEUAQg* OR CommandLine:4AZQB0AC4AdwBFAEIA* OR CommandLine:uAGUAdAAuAHcARQBCA* OR CommandLine:TgBlAHQALgB3AEUAQg* OR CommandLine:OAGUAdAAuAHcARQBCA* OR CommandLine:bgBFAHQALgB3AEUAQg* OR CommandLine:4ARQB0AC4AdwBFAEIA* OR CommandLine:uAEUAdAAuAHcARQBCA* OR CommandLine:TgBFAHQALgB3AEUAQg* OR CommandLine:OAEUAdAAuAHcARQBCA* OR CommandLine:bgBlAFQALgB3AEUAQg* OR CommandLine:uAGUAVAAuAHcARQBCA* OR CommandLine:bgBFAFQALgB3AEUAQg* OR CommandLine:4ARQBUAC4AdwBFAEIA* OR CommandLine:uAEUAVAAuAHcARQBCA* OR CommandLine:TgBFAFQALgB3AEUAQg* OR CommandLine:OAEUAVAAuAHcARQBCA* OR CommandLine:TgBlAHQALgBXAEUAQg* OR CommandLine:4AZQB0AC4AVwBFAEIA* OR CommandLine:OAGUAdAAuAFcARQBCA* OR CommandLine:bgBFAHQALgBXAEUAQg* OR CommandLine:4ARQB0AC4AVwBFAEIA* OR CommandLine:uAEUAdAAuAFcARQBCA* OR CommandLine:TgBFAHQALgBXAEUAQg* OR CommandLine:OAEUAdAAuAFcARQBCA* OR CommandLine:bgBlAFQALgBXAEUAQg* OR CommandLine:4AZQBUAC4AVwBFAEIA* OR CommandLine:uAGUAVAAuAFcARQBCA* OR CommandLine:TgBlAFQALgBXAEUAQg* OR CommandLine:OAGUAVAAuAFcARQBCA* OR CommandLine:bgBFAFQALgBXAEUAQg* OR CommandLine:4ARQBUAC4AVwBFAEIA* OR CommandLine:uAEUAVAAuAFcARQBCA*)
view Sigma YAML
title: Net WebClient Casing Anomalies
id: c86133ad-4725-4bd0-8170-210788e0a7ba
status: test
description: Detects PowerShell command line contents that include a suspicious abnormal casing in the Net.Webclient (e.g. nEt.WEbCliEnT) string as used in obfuscation techniques
references:
    - https://app.any.run/tasks/b9040c63-c140-479b-ad59-f1bb56ce7a97/
author: Florian Roth (Nextron Systems)
date: 2022-05-24
modified: 2023-01-05
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_encoded:
        CommandLine|contains:
            - 'TgBlAFQALgB3AEUAQg'
            - '4AZQBUAC4AdwBFAEIA'
            - 'OAGUAVAAuAHcARQBCA'
            - 'bgBFAHQALgB3AGUAYg'
            - '4ARQB0AC4AdwBlAGIA'
            - 'uAEUAdAAuAHcAZQBiA'
            - 'TgBFAHQALgB3AGUAYg'
            - 'OAEUAdAAuAHcAZQBiA'
            - 'bgBlAFQALgB3AGUAYg'
            - '4AZQBUAC4AdwBlAGIA'
            - 'uAGUAVAAuAHcAZQBiA'
            - 'TgBlAFQALgB3AGUAYg'
            - 'OAGUAVAAuAHcAZQBiA'
            - 'bgBFAFQALgB3AGUAYg'
            - '4ARQBUAC4AdwBlAGIA'
            - 'uAEUAVAAuAHcAZQBiA'
            - 'bgBlAHQALgBXAGUAYg'
            - '4AZQB0AC4AVwBlAGIA'
            - 'uAGUAdAAuAFcAZQBiA'
            - 'bgBFAHQALgBXAGUAYg'
            - '4ARQB0AC4AVwBlAGIA'
            - 'uAEUAdAAuAFcAZQBiA'
            - 'TgBFAHQALgBXAGUAYg'
            - 'OAEUAdAAuAFcAZQBiA'
            - 'bgBlAFQALgBXAGUAYg'
            - '4AZQBUAC4AVwBlAGIA'
            - 'uAGUAVAAuAFcAZQBiA'
            - 'TgBlAFQALgBXAGUAYg'
            - 'OAGUAVAAuAFcAZQBiA'
            - 'bgBFAFQALgBXAGUAYg'
            - '4ARQBUAC4AVwBlAGIA'
            - 'uAEUAVAAuAFcAZQBiA'
            - 'bgBlAHQALgB3AEUAYg'
            - '4AZQB0AC4AdwBFAGIA'
            - 'uAGUAdAAuAHcARQBiA'
            - 'TgBlAHQALgB3AEUAYg'
            - 'OAGUAdAAuAHcARQBiA'
            - 'bgBFAHQALgB3AEUAYg'
            - '4ARQB0AC4AdwBFAGIA'
            - 'uAEUAdAAuAHcARQBiA'
            - 'TgBFAHQALgB3AEUAYg'
            - 'OAEUAdAAuAHcARQBiA'
            - 'bgBlAFQALgB3AEUAYg'
            - '4AZQBUAC4AdwBFAGIA'
            - 'uAGUAVAAuAHcARQBiA'
            - 'TgBlAFQALgB3AEUAYg'
            - 'OAGUAVAAuAHcARQBiA'
            - 'bgBFAFQALgB3AEUAYg'
            - '4ARQBUAC4AdwBFAGIA'
            - 'uAEUAVAAuAHcARQBiA'
            - 'TgBFAFQALgB3AEUAYg'
            - 'OAEUAVAAuAHcARQBiA'
            - 'bgBlAHQALgBXAEUAYg'
            - '4AZQB0AC4AVwBFAGIA'
            - 'uAGUAdAAuAFcARQBiA'
            - 'TgBlAHQALgBXAEUAYg'
            - 'OAGUAdAAuAFcARQBiA'
            - 'bgBFAHQALgBXAEUAYg'
            - '4ARQB0AC4AVwBFAGIA'
            - 'uAEUAdAAuAFcARQBiA'
            - 'TgBFAHQALgBXAEUAYg'
            - 'OAEUAdAAuAFcARQBiA'
            - 'bgBlAFQALgBXAEUAYg'
            - '4AZQBUAC4AVwBFAGIA'
            - 'uAGUAVAAuAFcARQBiA'
            - 'TgBlAFQALgBXAEUAYg'
            - 'OAGUAVAAuAFcARQBiA'
            - 'bgBFAFQALgBXAEUAYg'
            - '4ARQBUAC4AVwBFAGIA'
            - 'uAEUAVAAuAFcARQBiA'
            - 'TgBFAFQALgBXAEUAYg'
            - 'OAEUAVAAuAFcARQBiA'
            - 'bgBlAHQALgB3AGUAQg'
            - '4AZQB0AC4AdwBlAEIA'
            - 'uAGUAdAAuAHcAZQBCA'
            - 'TgBlAHQALgB3AGUAQg'
            - 'OAGUAdAAuAHcAZQBCA'
            - 'bgBFAHQALgB3AGUAQg'
            - '4ARQB0AC4AdwBlAEIA'
            - 'uAEUAdAAuAHcAZQBCA'
            - 'TgBFAHQALgB3AGUAQg'
            - 'OAEUAdAAuAHcAZQBCA'
            - 'bgBlAFQALgB3AGUAQg'
            - '4AZQBUAC4AdwBlAEIA'
            - 'uAGUAVAAuAHcAZQBCA'
            - 'TgBlAFQALgB3AGUAQg'
            - 'OAGUAVAAuAHcAZQBCA'
            - 'bgBFAFQALgB3AGUAQg'
            - '4ARQBUAC4AdwBlAEIA'
            - 'uAEUAVAAuAHcAZQBCA'
            - 'TgBFAFQALgB3AGUAQg'
            - 'OAEUAVAAuAHcAZQBCA'
            - 'bgBlAHQALgBXAGUAQg'
            - '4AZQB0AC4AVwBlAEIA'
            - 'uAGUAdAAuAFcAZQBCA'
            - 'TgBlAHQALgBXAGUAQg'
            - 'OAGUAdAAuAFcAZQBCA'
            - 'bgBFAHQALgBXAGUAQg'
            - '4ARQB0AC4AVwBlAEIA'
            - 'uAEUAdAAuAFcAZQBCA'
            - 'TgBFAHQALgBXAGUAQg'
            - 'OAEUAdAAuAFcAZQBCA'
            - 'bgBlAFQALgBXAGUAQg'
            - '4AZQBUAC4AVwBlAEIA'
            - 'uAGUAVAAuAFcAZQBCA'
            - 'TgBlAFQALgBXAGUAQg'
            - 'OAGUAVAAuAFcAZQBCA'
            - 'bgBFAFQALgBXAGUAQg'
            - '4ARQBUAC4AVwBlAEIA'
            - 'uAEUAVAAuAFcAZQBCA'
            - 'TgBFAFQALgBXAGUAQg'
            - 'OAEUAVAAuAFcAZQBCA'
            - 'bgBlAHQALgB3AEUAQg'
            - '4AZQB0AC4AdwBFAEIA'
            - 'uAGUAdAAuAHcARQBCA'
            - 'TgBlAHQALgB3AEUAQg'
            - 'OAGUAdAAuAHcARQBCA'
            - 'bgBFAHQALgB3AEUAQg'
            - '4ARQB0AC4AdwBFAEIA'
            - 'uAEUAdAAuAHcARQBCA'
            - 'TgBFAHQALgB3AEUAQg'
            - 'OAEUAdAAuAHcARQBCA'
            - 'bgBlAFQALgB3AEUAQg'
            - 'uAGUAVAAuAHcARQBCA'
            - 'bgBFAFQALgB3AEUAQg'
            - '4ARQBUAC4AdwBFAEIA'
            - 'uAEUAVAAuAHcARQBCA'
            - 'TgBFAFQALgB3AEUAQg'
            - 'OAEUAVAAuAHcARQBCA'
            - 'TgBlAHQALgBXAEUAQg'
            - '4AZQB0AC4AVwBFAEIA'
            - 'OAGUAdAAuAFcARQBCA'
            - 'bgBFAHQALgBXAEUAQg'
            - '4ARQB0AC4AVwBFAEIA'
            - 'uAEUAdAAuAFcARQBCA'
            - 'TgBFAHQALgBXAEUAQg'
            - 'OAEUAdAAuAFcARQBCA'
            - 'bgBlAFQALgBXAEUAQg'
            - '4AZQBUAC4AVwBFAEIA'
            - 'uAGUAVAAuAFcARQBCA'
            - 'TgBlAFQALgBXAEUAQg'
            - 'OAGUAVAAuAFcARQBCA'
            - 'bgBFAFQALgBXAEUAQg'
            - '4ARQBUAC4AVwBFAEIA'
            - 'uAEUAVAAuAFcARQBCA'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate Medium FP
NetNTLM Downgrade Attack
Detects NetNTLM downgrade attack
status test author Florian Roth (Nextron Systems), wagga ATT&CK technique id d3abac66-f11c-4ed0-8acb-50cc29c97eed
carbon_black query
EventID:4657 (ObjectName:\\REGISTRY\\MACHINE\\SYSTEM* ObjectName:ControlSet* ObjectName:\\Control\\Lsa*) (ObjectValueName:LmCompatibilityLevel OR ObjectValueName:NtlmMinClientSec OR ObjectValueName:RestrictSendingNTLMTraffic)
view Sigma YAML
title: NetNTLM Downgrade Attack
id: d3abac66-f11c-4ed0-8acb-50cc29c97eed
related:
    - id: d67572a0-e2ec-45d6-b8db-c100d14b8ef2
      type: derived
status: test
description: Detects NetNTLM downgrade attack
references:
    - https://www.optiv.com/blog/post-exploitation-using-netntlm-downgrade-attacks
author: Florian Roth (Nextron Systems), wagga
date: 2018-03-20
modified: 2022-10-09
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1685
    - attack.t1112
logsource:
    product: windows
    service: security
    definition: 'Requirements: Audit Policy : Object Access > Audit Registry (Success)'
detection:
    selection:
        EventID: 4657
        ObjectName|contains|all:
            - '\REGISTRY\MACHINE\SYSTEM'
            - 'ControlSet'
            - '\Control\Lsa'
        ObjectValueName:
            - 'LmCompatibilityLevel'
            - 'NtlmMinClientSec'
            - 'RestrictSendingNTLMTraffic'
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
NetNTLM Downgrade Attack - Registry
Detects NetNTLM downgrade attack
status test author Florian Roth (Nextron Systems), wagga, Nasreddine Bencherchali (Splunk STRT) ATT&CK technique id d67572a0-e2ec-45d6-b8db-c100d14b8ef2
carbon_black query
(TargetObject:SYSTEM\\* TargetObject:ControlSet* TargetObject:\\Control\\Lsa*) ((TargetObject:\\lmcompatibilitylevel (Details:DWORD\ \(0x00000000\) OR Details:DWORD\ \(0x00000001\) OR Details:DWORD\ \(0x00000002\))) OR (TargetObject:\\NtlmMinClientSec (Details:DWORD\ \(0x00000000\) OR Details:DWORD\ \(0x00000010\) OR Details:DWORD\ \(0x00000020\) OR Details:DWORD\ \(0x00000030\))) OR TargetObject:\\RestrictSendingNTLMTraffic)
view Sigma YAML
title: NetNTLM Downgrade Attack - Registry
id: d67572a0-e2ec-45d6-b8db-c100d14b8ef2
status: test
description: Detects NetNTLM downgrade attack
references:
    - https://web.archive.org/web/20171113231705/https://www.optiv.com/blog/post-exploitation-using-netntlm-downgrade-attacks
    - https://www.ultimatewindowssecurity.com/wiki/page.aspx?spid=NSrpcservers
author: Florian Roth (Nextron Systems), wagga, Nasreddine Bencherchali (Splunk STRT)
date: 2018-03-20
modified: 2024-12-03
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1685
    - attack.t1112
logsource:
    product: windows
    category: registry_event
detection:
    selection_regkey:
        TargetObject|contains|all:
            - 'SYSTEM\'
            - 'ControlSet'
            - '\Control\Lsa'
    selection_value_lmcompatibilitylevel:
        TargetObject|endswith: '\lmcompatibilitylevel'
        Details:
            - 'DWORD (0x00000000)'
            - 'DWORD (0x00000001)'
            - 'DWORD (0x00000002)'
    selection_value_ntlmminclientsec:
        TargetObject|endswith: '\NtlmMinClientSec'
        Details:
            - 'DWORD (0x00000000)' # No Security
            - 'DWORD (0x00000010)' # Only Integrity
            - 'DWORD (0x00000020)' # Only confidentiality
            - 'DWORD (0x00000030)' # Both Integrity and confidentiality
    selection_value_restrictsendingntlmtraffic:
        # Note: The obvious values with issues are 0x00000000 (allow all) and 0x00000001 (audit).
        # 0x00000002 can be secure but only if "ClientAllowedNTLMServers" is properly configured
        # Hence all values should be monitored and investigated
        TargetObject|endswith: '\RestrictSendingNTLMTraffic'
    condition: selection_regkey and 1 of selection_value_*
falsepositives:
    - Services or tools that set the values to more restrictive values
level: high
Convert to SIEM query
high Strong Medium FP
Network Communication Initiated To File Sharing Domains From Process Located In Suspicious Folder
Detects executables located in potentially suspicious directories initiating network connections towards file sharing domains.
status test author Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) ATT&CK technique id e0f8ab85-0ac9-423b-a73a-81b3c7b1aa97
carbon_black query
(Image:\:\\$Recycle.bin* OR Image:\:\\Perflogs\\* OR Image:\:\\Temp\\* OR Image:\:\\Users\\Default\\* OR Image:\:\\Users\\Public\\* OR Image:\:\\Windows\\Fonts\\* OR Image:\:\\Windows\\IME\\* OR Image:\:\\Windows\\System32\\Tasks\\* OR Image:\:\\Windows\\Tasks\\* OR Image:\:\\Windows\\Temp\\* OR Image:\\AppData\\Temp\\* OR Image:\\config\\systemprofile\\* OR Image:\\Windows\\addins\\*) (Initiated:true (DestinationHostname:.githubusercontent.com OR DestinationHostname:anonfiles.com OR DestinationHostname:cdn.discordapp.com OR DestinationHostname:ddns.net OR DestinationHostname:dl.dropboxusercontent.com OR DestinationHostname:ghostbin.co OR DestinationHostname:github.com OR DestinationHostname:glitch.me OR DestinationHostname:gofile.io OR DestinationHostname:hastebin.com OR DestinationHostname:mediafire.com OR DestinationHostname:mega.co.nz OR DestinationHostname:mega.nz OR DestinationHostname:onrender.com OR DestinationHostname:pages.dev OR DestinationHostname:paste.ee OR DestinationHostname:pastebin.com OR DestinationHostname:pastebin.pl OR DestinationHostname:pastetext.net OR DestinationHostname:pixeldrain.com OR DestinationHostname:privatlab.com OR DestinationHostname:privatlab.net OR DestinationHostname:send.exploit.in OR DestinationHostname:sendspace.com OR DestinationHostname:storage.googleapis.com OR DestinationHostname:storjshare.io OR DestinationHostname:supabase.co OR DestinationHostname:temp.sh OR DestinationHostname:transfer.sh OR DestinationHostname:trycloudflare.com OR DestinationHostname:ufile.io OR DestinationHostname:w3spaces.com OR DestinationHostname:workers.dev))
view Sigma YAML
title: Network Communication Initiated To File Sharing Domains From Process Located In Suspicious Folder
id: e0f8ab85-0ac9-423b-a73a-81b3c7b1aa97
related:
    - id: 635dbb88-67b3-4b41-9ea5-a3af2dd88153
      type: obsolete
status: test
description: Detects executables located in potentially suspicious directories initiating network connections towards file sharing domains.
references:
    - https://twitter.com/M_haggis/status/900741347035889665
    - https://twitter.com/M_haggis/status/1032799638213066752
    - https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/ransomware-hive-conti-avoslocker
    - https://www.cisa.gov/uscert/ncas/alerts/aa22-321a
    - https://github.com/EmpireProject/Empire/blob/e37fb2eef8ff8f5a0a689f1589f424906fe13055/data/module_source/exfil/Invoke-ExfilDataToGitHub.ps1
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2018-08-30
modified: 2025-12-10
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: network_connection
    product: windows
detection:
    selection_paths:
        Image|contains:
            - ':\$Recycle.bin'
            - ':\Perflogs\'
            - ':\Temp\'
            - ':\Users\Default\'
            - ':\Users\Public\'
            - ':\Windows\Fonts\'
            - ':\Windows\IME\'
            - ':\Windows\System32\Tasks\'
            - ':\Windows\Tasks\'
            - ':\Windows\Temp\'
            - '\AppData\Temp\'
            - '\config\systemprofile\'
            - '\Windows\addins\'
    selection_domains:
        Initiated: 'true'
        DestinationHostname|endswith:
            - '.githubusercontent.com'       # Includes both gists and github repositories / Michael Haag (idea)
            - 'anonfiles.com'
            - 'cdn.discordapp.com'
            - 'ddns.net'
            - 'dl.dropboxusercontent.com'
            - 'ghostbin.co'
            - 'github.com'
            - 'glitch.me'
            - 'gofile.io'
            - 'hastebin.com'
            - 'mediafire.com'
            - 'mega.co.nz'
            - 'mega.nz'
            - 'onrender.com'
            - 'pages.dev'
            - 'paste.ee'
            - 'pastebin.com'
            - 'pastebin.pl'
            - 'pastetext.net'
            - 'pixeldrain.com'
            - 'privatlab.com'
            - 'privatlab.net'
            - 'send.exploit.in'
            - 'sendspace.com'
            - 'storage.googleapis.com'
            - 'storjshare.io'
            - 'supabase.co'
            - 'temp.sh'
            - 'transfer.sh'
            - 'trycloudflare.com'
            - 'ufile.io'
            - 'w3spaces.com'
            - 'workers.dev'
    condition: all of selection_*
falsepositives:
    - Some installers located in the temp directory might communicate with the Github domains in order to download additional software. Baseline these cases or move the github domain to a lower level hunting rule.
level: high
Convert to SIEM query
high Moderate Medium FP
Network Communication With Crypto Mining Pool
Detects initiated network connections to crypto mining pools
status stable author Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) ATT&CK technique id fa5b1358-b040-4403-9868-15f7d9ab6329
carbon_black query
DestinationHostname:alimabi.cn OR DestinationHostname:ap.luckpool.net OR DestinationHostname:bcn.pool.minergate.com OR DestinationHostname:bcn.vip.pool.minergate.com OR DestinationHostname:bohemianpool.com OR DestinationHostname:ca\-aipg.miningocean.org OR DestinationHostname:ca\-dynex.miningocean.org OR DestinationHostname:ca\-neurai.miningocean.org OR DestinationHostname:ca\-qrl.miningocean.org OR DestinationHostname:ca\-upx.miningocean.org OR DestinationHostname:ca\-zephyr.miningocean.org OR DestinationHostname:ca.minexmr.com OR DestinationHostname:ca.monero.herominers.com OR DestinationHostname:cbd.monerpool.org OR DestinationHostname:cbdv2.monerpool.org OR DestinationHostname:cryptmonero.com OR DestinationHostname:crypto\-pool.fr OR DestinationHostname:crypto\-pool.info OR DestinationHostname:cryptonight\-hub.miningpoolhub.com OR DestinationHostname:d1pool.ddns.net OR DestinationHostname:d5pool.us OR DestinationHostname:daili01.monerpool.org OR DestinationHostname:de\-aipg.miningocean.org OR DestinationHostname:de\-dynex.miningocean.org OR DestinationHostname:de\-zephyr.miningocean.org OR DestinationHostname:de.minexmr.com OR DestinationHostname:dl.nbminer.com OR DestinationHostname:donate.graef.in OR DestinationHostname:donate.ssl.xmrig.com OR DestinationHostname:donate.v2.xmrig.com OR DestinationHostname:donate.xmrig.com OR DestinationHostname:donate2.graef.in OR DestinationHostname:drill.moneroworld.com OR DestinationHostname:dwarfpool.com OR DestinationHostname:emercoin.com OR DestinationHostname:emercoin.net OR DestinationHostname:emergate.net OR DestinationHostname:ethereumpool.co OR DestinationHostname:eu.luckpool.net OR DestinationHostname:eu.minerpool.pw OR DestinationHostname:fcn\-xmr.pool.minergate.com OR DestinationHostname:fee.xmrig.com OR DestinationHostname:fr\-aipg.miningocean.org OR DestinationHostname:fr\-dynex.miningocean.org OR DestinationHostname:fr\-neurai.miningocean.org OR DestinationHostname:fr\-qrl.miningocean.org OR DestinationHostname:fr\-upx.miningocean.org OR DestinationHostname:fr\-zephyr.miningocean.org OR DestinationHostname:fr.minexmr.com OR DestinationHostname:hellominer.com OR DestinationHostname:herominers.com OR DestinationHostname:hk\-aipg.miningocean.org OR DestinationHostname:hk\-dynex.miningocean.org OR DestinationHostname:hk\-neurai.miningocean.org OR DestinationHostname:hk\-qrl.miningocean.org OR DestinationHostname:hk\-upx.miningocean.org OR DestinationHostname:hk\-zephyr.miningocean.org OR DestinationHostname:huadong1\-aeon.ppxxmr.com OR DestinationHostname:iwanttoearn.money OR DestinationHostname:jw\-js1.ppxxmr.com OR DestinationHostname:koto\-pool.work OR DestinationHostname:lhr.nbminer.com OR DestinationHostname:lhr3.nbminer.com OR DestinationHostname:linux.monerpool.org OR DestinationHostname:lokiturtle.herominers.com OR DestinationHostname:luckpool.net OR DestinationHostname:masari.miner.rocks OR DestinationHostname:mine.c3pool.com OR DestinationHostname:mine.moneropool.com OR DestinationHostname:mine.ppxxmr.com OR DestinationHostname:mine.zpool.ca OR DestinationHostname:mine1.ppxxmr.com OR DestinationHostname:minemonero.gq OR DestinationHostname:miner.ppxxmr.com OR DestinationHostname:miner.rocks OR DestinationHostname:minercircle.com OR DestinationHostname:minergate.com OR DestinationHostname:minerpool.pw OR DestinationHostname:minerrocks.com OR DestinationHostname:miners.pro OR DestinationHostname:minerxmr.ru OR DestinationHostname:minexmr.cn OR DestinationHostname:minexmr.com OR DestinationHostname:mining\-help.ru OR DestinationHostname:miningpoolhub.com OR DestinationHostname:mixpools.org OR DestinationHostname:moner.monerpool.org OR DestinationHostname:moner1min.monerpool.org OR DestinationHostname:monero\-master.crypto\-pool.fr OR DestinationHostname:monero.crypto\-pool.fr OR DestinationHostname:monero.hashvault.pro OR DestinationHostname:monero.herominers.com OR DestinationHostname:monero.lindon\-pool.win OR DestinationHostname:monero.miners.pro OR DestinationHostname:monero.riefly.id OR DestinationHostname:monero.us.to OR DestinationHostname:monerocean.stream OR DestinationHostname:monerogb.com OR DestinationHostname:monerohash.com OR DestinationHostname:moneroocean.stream OR DestinationHostname:moneropool.com OR DestinationHostname:moneropool.nl OR DestinationHostname:monerorx.com OR DestinationHostname:monerpool.org OR DestinationHostname:moriaxmr.com OR DestinationHostname:mro.pool.minergate.com OR DestinationHostname:multipool.us OR DestinationHostname:myxmr.pw OR DestinationHostname:na.luckpool.net OR DestinationHostname:nanopool.org OR DestinationHostname:nbminer.com OR DestinationHostname:node3.luckpool.net OR DestinationHostname:noobxmr.com OR DestinationHostname:pangolinminer.comgandalph3000.com OR DestinationHostname:pool.4i7i.com OR DestinationHostname:pool.armornetwork.org OR DestinationHostname:pool.cortins.tk OR DestinationHostname:pool.gntl.co.uk OR DestinationHostname:pool.hashvault.pro OR DestinationHostname:pool.minergate.com OR DestinationHostname:pool.minexmr.com OR DestinationHostname:pool.monero.hashvault.pro OR DestinationHostname:pool.ppxxmr.com OR DestinationHostname:pool.somec.cc OR DestinationHostname:pool.support OR DestinationHostname:pool.supportxmr.com OR DestinationHostname:pool.usa\-138.com OR DestinationHostname:pool.xmr.pt OR DestinationHostname:pool.xmrfast.com OR DestinationHostname:pool2.armornetwork.org OR DestinationHostname:poolchange.ppxxmr.com OR DestinationHostname:pooldd.com OR DestinationHostname:poolmining.org OR DestinationHostname:poolto.be OR DestinationHostname:ppxvip1.ppxxmr.com OR DestinationHostname:ppxxmr.com OR DestinationHostname:prohash.net OR DestinationHostname:r.twotouchauthentication.online OR DestinationHostname:randomx.xmrig.com OR DestinationHostname:ratchetmining.com OR DestinationHostname:seed.emercoin.com OR DestinationHostname:seed.emercoin.net OR DestinationHostname:seed.emergate.net OR DestinationHostname:seed1.joulecoin.org OR DestinationHostname:seed2.joulecoin.org OR DestinationHostname:seed3.joulecoin.org OR DestinationHostname:seed4.joulecoin.org OR DestinationHostname:seed5.joulecoin.org OR DestinationHostname:seed6.joulecoin.org OR DestinationHostname:seed7.joulecoin.org OR DestinationHostname:seed8.joulecoin.org OR DestinationHostname:sg\-aipg.miningocean.org OR DestinationHostname:sg\-dynex.miningocean.org OR DestinationHostname:sg\-neurai.miningocean.org OR DestinationHostname:sg\-qrl.miningocean.org OR DestinationHostname:sg\-upx.miningocean.org OR DestinationHostname:sg\-zephyr.miningocean.org OR DestinationHostname:sg.minexmr.com OR DestinationHostname:sheepman.mine.bz OR DestinationHostname:siamining.com OR DestinationHostname:sumokoin.minerrocks.com OR DestinationHostname:supportxmr.com OR DestinationHostname:suprnova.cc OR DestinationHostname:teracycle.net OR DestinationHostname:trtl.cnpool.cc OR DestinationHostname:trtl.pool.mine2gether.com OR DestinationHostname:turtle.miner.rocks OR DestinationHostname:us\-aipg.miningocean.org OR DestinationHostname:us\-dynex.miningocean.org OR DestinationHostname:us\-neurai.miningocean.org OR DestinationHostname:us\-west.minexmr.com OR DestinationHostname:us\-zephyr.miningocean.org OR DestinationHostname:usxmrpool.com OR DestinationHostname:viaxmr.com OR DestinationHostname:webservicepag.webhop.net OR DestinationHostname:xiazai.monerpool.org OR DestinationHostname:xiazai1.monerpool.org OR DestinationHostname:xmc.pool.minergate.com OR DestinationHostname:xmo.pool.minergate.com OR DestinationHostname:xmr\-asia1.nanopool.org OR DestinationHostname:xmr\-au1.nanopool.org OR DestinationHostname:xmr\-eu1.nanopool.org OR DestinationHostname:xmr\-eu2.nanopool.org OR DestinationHostname:xmr\-jp1.nanopool.org OR DestinationHostname:xmr\-us\-east1.nanopool.org OR DestinationHostname:xmr\-us\-west1.nanopool.org OR DestinationHostname:xmr\-us.suprnova.cc OR DestinationHostname:xmr\-usa.dwarfpool.com OR DestinationHostname:xmr.2miners.com OR DestinationHostname:xmr.5b6b7b.ru OR DestinationHostname:xmr.alimabi.cn OR DestinationHostname:xmr.bohemianpool.com OR DestinationHostname:xmr.crypto\-pool.fr OR DestinationHostname:xmr.crypto\-pool.info OR DestinationHostname:xmr.f2pool.com OR DestinationHostname:xmr.hashcity.org OR DestinationHostname:xmr.hex7e4.ru OR DestinationHostname:xmr.ip28.net OR DestinationHostname:xmr.monerpool.org OR DestinationHostname:xmr.mypool.online OR DestinationHostname:xmr.nanopool.org OR DestinationHostname:xmr.pool.gntl.co.uk OR DestinationHostname:xmr.pool.minergate.com OR DestinationHostname:xmr.poolto.be OR DestinationHostname:xmr.ppxxmr.com OR DestinationHostname:xmr.prohash.net OR DestinationHostname:xmr.simka.pw OR DestinationHostname:xmr.somec.cc OR DestinationHostname:xmr.suprnova.cc OR DestinationHostname:xmr.usa\-138.com OR DestinationHostname:xmr.vip.pool.minergate.com OR DestinationHostname:xmr1min.monerpool.org OR DestinationHostname:xmrf.520fjh.org OR DestinationHostname:xmrf.fjhan.club OR DestinationHostname:xmrfast.com OR DestinationHostname:xmrigcc.graef.in OR DestinationHostname:xmrminer.cc OR DestinationHostname:xmrpool.de OR DestinationHostname:xmrpool.eu OR DestinationHostname:xmrpool.me OR DestinationHostname:xmrpool.net OR DestinationHostname:xmrpool.xyz OR DestinationHostname:xx11m.monerpool.org OR DestinationHostname:xx11mv2.monerpool.org OR DestinationHostname:xxx.hex7e4.ru OR DestinationHostname:zarabotaibitok.ru OR DestinationHostname:zer0day.ru
view Sigma YAML
title: Network Communication With Crypto Mining Pool
id: fa5b1358-b040-4403-9868-15f7d9ab6329
status: stable
description: Detects initiated network connections to crypto mining pools
references:
    - https://www.poolwatch.io/coin/monero
    - https://github.com/stamparm/maltrail/blob/3ea70459b9559134449423c0a7d8b965ac5c40ea/trails/static/suspicious/crypto_mining.txt
    - https://www.virustotal.com/gui/search/behaviour_network%253A*.miningocean.org/files
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2021-10-26
modified: 2024-01-19
tags:
    - attack.impact
    - attack.t1496
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        DestinationHostname:
            - 'alimabi.cn'
            - 'ap.luckpool.net'
            - 'bcn.pool.minergate.com'
            - 'bcn.vip.pool.minergate.com'
            - 'bohemianpool.com'
            - 'ca-aipg.miningocean.org'
            - 'ca-dynex.miningocean.org'
            - 'ca-neurai.miningocean.org'
            - 'ca-qrl.miningocean.org'
            - 'ca-upx.miningocean.org'
            - 'ca-zephyr.miningocean.org'
            - 'ca.minexmr.com'
            - 'ca.monero.herominers.com'
            - 'cbd.monerpool.org'
            - 'cbdv2.monerpool.org'
            - 'cryptmonero.com'
            - 'crypto-pool.fr'
            - 'crypto-pool.info'
            - 'cryptonight-hub.miningpoolhub.com'
            - 'd1pool.ddns.net'
            - 'd5pool.us'
            - 'daili01.monerpool.org'
            - 'de-aipg.miningocean.org'
            - 'de-dynex.miningocean.org'
            - 'de-zephyr.miningocean.org'
            - 'de.minexmr.com'
            - 'dl.nbminer.com'
            - 'donate.graef.in'
            - 'donate.ssl.xmrig.com'
            - 'donate.v2.xmrig.com'
            - 'donate.xmrig.com'
            - 'donate2.graef.in'
            - 'drill.moneroworld.com'
            - 'dwarfpool.com'
            - 'emercoin.com'
            - 'emercoin.net'
            - 'emergate.net'
            - 'ethereumpool.co'
            - 'eu.luckpool.net'
            - 'eu.minerpool.pw'
            - 'fcn-xmr.pool.minergate.com'
            - 'fee.xmrig.com'
            - 'fr-aipg.miningocean.org'
            - 'fr-dynex.miningocean.org'
            - 'fr-neurai.miningocean.org'
            - 'fr-qrl.miningocean.org'
            - 'fr-upx.miningocean.org'
            - 'fr-zephyr.miningocean.org'
            - 'fr.minexmr.com'
            - 'hellominer.com'
            - 'herominers.com'
            - 'hk-aipg.miningocean.org'
            - 'hk-dynex.miningocean.org'
            - 'hk-neurai.miningocean.org'
            - 'hk-qrl.miningocean.org'
            - 'hk-upx.miningocean.org'
            - 'hk-zephyr.miningocean.org'
            - 'huadong1-aeon.ppxxmr.com'
            - 'iwanttoearn.money'
            - 'jw-js1.ppxxmr.com'
            - 'koto-pool.work'
            - 'lhr.nbminer.com'
            - 'lhr3.nbminer.com'
            - 'linux.monerpool.org'
            - 'lokiturtle.herominers.com'
            - 'luckpool.net'
            - 'masari.miner.rocks'
            - 'mine.c3pool.com'
            - 'mine.moneropool.com'
            - 'mine.ppxxmr.com'
            - 'mine.zpool.ca'
            - 'mine1.ppxxmr.com'
            - 'minemonero.gq'
            - 'miner.ppxxmr.com'
            - 'miner.rocks'
            - 'minercircle.com'
            - 'minergate.com'
            - 'minerpool.pw'
            - 'minerrocks.com'
            - 'miners.pro'
            - 'minerxmr.ru'
            - 'minexmr.cn'
            - 'minexmr.com'
            - 'mining-help.ru'
            - 'miningpoolhub.com'
            - 'mixpools.org'
            - 'moner.monerpool.org'
            - 'moner1min.monerpool.org'
            - 'monero-master.crypto-pool.fr'
            - 'monero.crypto-pool.fr'
            - 'monero.hashvault.pro'
            - 'monero.herominers.com'
            - 'monero.lindon-pool.win'
            - 'monero.miners.pro'
            - 'monero.riefly.id'
            - 'monero.us.to'
            - 'monerocean.stream'
            - 'monerogb.com'
            - 'monerohash.com'
            - 'moneroocean.stream'
            - 'moneropool.com'
            - 'moneropool.nl'
            - 'monerorx.com'
            - 'monerpool.org'
            - 'moriaxmr.com'
            - 'mro.pool.minergate.com'
            - 'multipool.us'
            - 'myxmr.pw'
            - 'na.luckpool.net'
            - 'nanopool.org'
            - 'nbminer.com'
            - 'node3.luckpool.net'
            - 'noobxmr.com'
            - 'pangolinminer.comgandalph3000.com'
            - 'pool.4i7i.com'
            - 'pool.armornetwork.org'
            - 'pool.cortins.tk'
            - 'pool.gntl.co.uk'
            - 'pool.hashvault.pro'
            - 'pool.minergate.com'
            - 'pool.minexmr.com'
            - 'pool.monero.hashvault.pro'
            - 'pool.ppxxmr.com'
            - 'pool.somec.cc'
            - 'pool.support'
            - 'pool.supportxmr.com'
            - 'pool.usa-138.com'
            - 'pool.xmr.pt'
            - 'pool.xmrfast.com'
            - 'pool2.armornetwork.org'
            - 'poolchange.ppxxmr.com'
            - 'pooldd.com'
            - 'poolmining.org'
            - 'poolto.be'
            - 'ppxvip1.ppxxmr.com'
            - 'ppxxmr.com'
            - 'prohash.net'
            - 'r.twotouchauthentication.online'
            - 'randomx.xmrig.com'
            - 'ratchetmining.com'
            - 'seed.emercoin.com'
            - 'seed.emercoin.net'
            - 'seed.emergate.net'
            - 'seed1.joulecoin.org'
            - 'seed2.joulecoin.org'
            - 'seed3.joulecoin.org'
            - 'seed4.joulecoin.org'
            - 'seed5.joulecoin.org'
            - 'seed6.joulecoin.org'
            - 'seed7.joulecoin.org'
            - 'seed8.joulecoin.org'
            - 'sg-aipg.miningocean.org'
            - 'sg-dynex.miningocean.org'
            - 'sg-neurai.miningocean.org'
            - 'sg-qrl.miningocean.org'
            - 'sg-upx.miningocean.org'
            - 'sg-zephyr.miningocean.org'
            - 'sg.minexmr.com'
            - 'sheepman.mine.bz'
            - 'siamining.com'
            - 'sumokoin.minerrocks.com'
            - 'supportxmr.com'
            - 'suprnova.cc'
            - 'teracycle.net'
            - 'trtl.cnpool.cc'
            - 'trtl.pool.mine2gether.com'
            - 'turtle.miner.rocks'
            - 'us-aipg.miningocean.org'
            - 'us-dynex.miningocean.org'
            - 'us-neurai.miningocean.org'
            - 'us-west.minexmr.com'
            - 'us-zephyr.miningocean.org'
            - 'usxmrpool.com'
            - 'viaxmr.com'
            - 'webservicepag.webhop.net'
            - 'xiazai.monerpool.org'
            - 'xiazai1.monerpool.org'
            - 'xmc.pool.minergate.com'
            - 'xmo.pool.minergate.com'
            - 'xmr-asia1.nanopool.org'
            - 'xmr-au1.nanopool.org'
            - 'xmr-eu1.nanopool.org'
            - 'xmr-eu2.nanopool.org'
            - 'xmr-jp1.nanopool.org'
            - 'xmr-us-east1.nanopool.org'
            - 'xmr-us-west1.nanopool.org'
            - 'xmr-us.suprnova.cc'
            - 'xmr-usa.dwarfpool.com'
            - 'xmr.2miners.com'
            - 'xmr.5b6b7b.ru'
            - 'xmr.alimabi.cn'
            - 'xmr.bohemianpool.com'
            - 'xmr.crypto-pool.fr'
            - 'xmr.crypto-pool.info'
            - 'xmr.f2pool.com'
            - 'xmr.hashcity.org'
            - 'xmr.hex7e4.ru'
            - 'xmr.ip28.net'
            - 'xmr.monerpool.org'
            - 'xmr.mypool.online'
            - 'xmr.nanopool.org'
            - 'xmr.pool.gntl.co.uk'
            - 'xmr.pool.minergate.com'
            - 'xmr.poolto.be'
            - 'xmr.ppxxmr.com'
            - 'xmr.prohash.net'
            - 'xmr.simka.pw'
            - 'xmr.somec.cc'
            - 'xmr.suprnova.cc'
            - 'xmr.usa-138.com'
            - 'xmr.vip.pool.minergate.com'
            - 'xmr1min.monerpool.org'
            - 'xmrf.520fjh.org'
            - 'xmrf.fjhan.club'
            - 'xmrfast.com'
            - 'xmrigcc.graef.in'
            - 'xmrminer.cc'
            - 'xmrpool.de'
            - 'xmrpool.eu'
            - 'xmrpool.me'
            - 'xmrpool.net'
            - 'xmrpool.xyz'
            - 'xx11m.monerpool.org'
            - 'xx11mv2.monerpool.org'
            - 'xxx.hex7e4.ru'
            - 'zarabotaibitok.ru'
            - 'zer0day.ru'
    condition: selection
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Moderate Medium FP
Network Connection Initiated By AddinUtil.EXE
Detects a network connection initiated by the Add-In deployment cache updating utility "AddInutil.exe". This could indicate a potential command and control communication as this tool doesn't usually initiate network activity.
status test author Michael McKinley (@McKinleyMike), Tony Latteri (@TheLatteri) ATT&CK technique id 5205613d-2a63-4412-a895-3a2458b587b3
carbon_black query
Initiated:true Image:\\addinutil.exe
view Sigma YAML
title: Network Connection Initiated By AddinUtil.EXE
id: 5205613d-2a63-4412-a895-3a2458b587b3
status: test
description: |
    Detects a network connection initiated by the Add-In deployment cache updating utility "AddInutil.exe".
    This could indicate a potential command and control communication as this tool doesn't usually initiate network activity.
references:
    - https://www.blue-prints.blog/content/blog/posts/lolbin/addinutil-lolbas.html
author: Michael McKinley (@McKinleyMike), Tony Latteri (@TheLatteri)
date: 2023-09-18
modified: 2024-07-16
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        Image|endswith: '\addinutil.exe'
    condition: selection
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Moderate High FP
Network Connection Initiated By Eqnedt32.EXE
Detects network connections from the Equation Editor process "eqnedt32.exe".
status test author Max Altgelt (Nextron Systems) ATT&CK technique id a66bc059-c370-472c-a0d7-f8fd1bf9d583
carbon_black query
Image:\\eqnedt32.exe
view Sigma YAML
title: Network Connection Initiated By Eqnedt32.EXE
id: a66bc059-c370-472c-a0d7-f8fd1bf9d583
status: test
description: Detects network connections from the Equation Editor process "eqnedt32.exe".
references:
    - https://twitter.com/forensicitguy/status/1513538712986079238
    - https://forensicitguy.github.io/xloader-formbook-velvetsweatshop-spreadsheet/
    - https://news.sophos.com/en-us/2019/07/18/a-new-equation-editor-exploit-goes-commercial-as-maldoc-attacks-using-it-spike/
author: Max Altgelt (Nextron Systems)
date: 2022-04-14
modified: 2024-05-31
tags:
    - attack.execution
    - attack.t1203
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Image|endswith: '\eqnedt32.exe'
    condition: selection
falsepositives:
    - Unlikely
level: high
Convert to SIEM query
high Strong Medium FP
Network Connection Initiated By IMEWDBLD.EXE
Detects a network connection initiated by IMEWDBLD.EXE. This might indicate potential abuse of the utility as a LOLBIN in order to download arbitrary files or additional payloads.
status test author frack113 ATT&CK technique id 8d7e392e-9b28-49e1-831d-5949c6281228
carbon_black query
Initiated:true Image:\\IMEWDBLD.exe
view Sigma YAML
title: Network Connection Initiated By IMEWDBLD.EXE
id: 8d7e392e-9b28-49e1-831d-5949c6281228
related:
    - id: 863218bd-c7d0-4c52-80cd-0a96c09f54af
      type: derived
status: test
description: |
    Detects a network connection initiated by IMEWDBLD.EXE. This might indicate potential abuse of the utility as a LOLBIN in order to download arbitrary files or additional payloads.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1105/T1105.md#atomic-test-10---windows---powershell-download
    - https://lolbas-project.github.io/lolbas/Binaries/IMEWDBLD/
author: frack113
date: 2022-01-22
modified: 2023-11-09
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        Image|endswith: '\IMEWDBLD.exe'
    condition: selection
falsepositives:
    - Unknown
# Note: Please reduce this to medium if you find legitimate connections
level: high
Convert to SIEM query
high Moderate Medium FP
Network Connection Initiated From Process Located In Potentially Suspicious Or Uncommon Location
Detects a network connection initiated by programs or processes running from suspicious or uncommon files system locations.
status test author Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) ATT&CK technique id 7b434893-c57d-4f41-908d-6a17bf1ae98f
carbon_black query
(Initiated:true (Image:\:\\$Recycle.bin* OR Image:\:\\Perflogs\\* OR Image:\:\\Temp\\* OR Image:\:\\Users\\Default\\* OR Image:\:\\Users\\Public\\* OR Image:\:\\Windows\\Fonts\\* OR Image:\:\\Windows\\IME\\* OR Image:\:\\Windows\\System32\\Tasks\\* OR Image:\:\\Windows\\Tasks\\* OR Image:\\config\\systemprofile\\* OR Image:\\Contacts\\* OR Image:\\Favorites\\* OR Image:\\Favourites\\* OR Image:\\Music\\* OR Image:\\Pictures\\* OR Image:\\Videos\\* OR Image:\\Windows\\addins\\*)) (-(DestinationHostname:.githubusercontent.com OR DestinationHostname:anonfiles.com OR DestinationHostname:cdn.discordapp.com OR DestinationHostname:ddns.net OR DestinationHostname:dl.dropboxusercontent.com OR DestinationHostname:ghostbin.co OR DestinationHostname:github.com OR DestinationHostname:glitch.me OR DestinationHostname:gofile.io OR DestinationHostname:hastebin.com OR DestinationHostname:mediafire.com OR DestinationHostname:mega.co.nz OR DestinationHostname:mega.nz OR DestinationHostname:onrender.com OR DestinationHostname:pages.dev OR DestinationHostname:paste.ee OR DestinationHostname:pastebin.com OR DestinationHostname:pastebin.pl OR DestinationHostname:pastetext.net OR DestinationHostname:portmap.io OR DestinationHostname:privatlab.com OR DestinationHostname:privatlab.net OR DestinationHostname:send.exploit.in OR DestinationHostname:sendspace.com OR DestinationHostname:storage.googleapis.com OR DestinationHostname:storjshare.io OR DestinationHostname:supabase.co OR DestinationHostname:temp.sh OR DestinationHostname:transfer.sh OR DestinationHostname:trycloudflare.com OR DestinationHostname:ufile.io OR DestinationHostname:w3spaces.com OR DestinationHostname:workers.dev))
view Sigma YAML
title: Network Connection Initiated From Process Located In Potentially Suspicious Or Uncommon Location
id: 7b434893-c57d-4f41-908d-6a17bf1ae98f
status: test
description: |
    Detects a network connection initiated by programs or processes running from suspicious or uncommon files system locations.
references:
    - https://docs.google.com/spreadsheets/d/17pSTDNpa0sf6pHeRhusvWG6rThciE8CsXTSlDUAZDyo
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2017-03-19
modified: 2025-12-10
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        Image|contains:
            - ':\$Recycle.bin'
            - ':\Perflogs\'
            - ':\Temp\'
            - ':\Users\Default\'
            - ':\Users\Public\'
            - ':\Windows\Fonts\'
            - ':\Windows\IME\'
            - ':\Windows\System32\Tasks\'
            - ':\Windows\Tasks\'
            - '\config\systemprofile\'
            - '\Contacts\'
            - '\Favorites\'
            - '\Favourites\'
            - '\Music\'
            - '\Pictures\'
            - '\Videos\'
            - '\Windows\addins\'
    filter_main_domains:
        # Note: We exclude these domains to avoid duplicate filtering from e0f8ab85-0ac9-423b-a73a-81b3c7b1aa97
        DestinationHostname|endswith:
            - '.githubusercontent.com'       # Includes both gists and github repositories / Michael Haag (idea)
            - 'anonfiles.com'
            - 'cdn.discordapp.com'
            - 'ddns.net'
            - 'dl.dropboxusercontent.com'
            - 'ghostbin.co'
            - 'github.com'
            - 'glitch.me'
            - 'gofile.io'
            - 'hastebin.com'
            - 'mediafire.com'
            - 'mega.co.nz'
            - 'mega.nz'
            - 'onrender.com'
            - 'pages.dev'
            - 'paste.ee'
            - 'pastebin.com'
            - 'pastebin.pl'
            - 'pastetext.net'
            - 'portmap.io'  # https://pro.twitter.com/JaromirHorejsi/status/1795001037746761892/photo/2
            - 'privatlab.com'
            - 'privatlab.net'
            - 'send.exploit.in'
            - 'sendspace.com'
            - 'storage.googleapis.com'
            - 'storjshare.io'
            - 'supabase.co'
            - 'temp.sh'
            - 'transfer.sh'
            - 'trycloudflare.com'
            - 'ufile.io'
            - 'w3spaces.com'
            - 'workers.dev'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high
Convert to SIEM query
high Strong Medium FP
Network Connection Initiated Via Notepad.EXE
Detects a network connection that is initiated by the "notepad.exe" process. This might be a sign of process injection from a beacon process or something similar. Notepad rarely initiates a network communication except when printing documents for example.
status test author EagleEye Team ATT&CK technique id e81528db-fc02-45e8-8e98-4e84aba1f10b
carbon_black query
Image:\\notepad.exe (-DestinationPort:9100)
view Sigma YAML
title: Network Connection Initiated Via Notepad.EXE
id: e81528db-fc02-45e8-8e98-4e84aba1f10b
status: test
description: |
    Detects a network connection that is initiated by the "notepad.exe" process.
    This might be a sign of process injection from a beacon process or something similar.
    Notepad rarely initiates a network communication except when printing documents for example.
references:
    - https://web.archive.org/web/20200219102749/https://www.sans.org/cyber-security-summit/archives/file/summit-archive-1492186586.pdf
    - https://www.cobaltstrike.com/blog/why-is-notepad-exe-connecting-to-the-internet
author: EagleEye Team
date: 2020-05-14
modified: 2024-02-02
tags:
    - attack.privilege-escalation
    - attack.command-and-control
    - attack.execution
    - attack.stealth
    - attack.t1055
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Image|endswith: '\notepad.exe'
    filter_optional_printing:
        DestinationPort: 9100
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Printing documents via notepad might cause communication with the printer via port 9100 or similar.
level: high
Convert to SIEM query
Showing 601-650 of 1,677