Skip to content

[New] Block User Credentials - Ransomware over SMB - #24

Open
Samirbous wants to merge 2 commits into
elastic:mainfrom
Samirbous:ransomware_smb
Open

[New] Block User Credentials - Ransomware over SMB#24
Samirbous wants to merge 2 commits into
elastic:mainfrom
Samirbous:ransomware_smb

Conversation

@Samirbous

@Samirbous Samirbous commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Designed for ransomware over SMB detection rules such as `Potential Ransomware Note File Dropped via SMB" and Suspicious File Renamed via SMB.

https://www.elastic.co/guide/en/security/8.19/potential-ransomware-note-file-dropped-via-smb.html https://www.elastic.co/guide/en/security/8.19/suspicious-file-renamed-via-smb.html

Extracts user.id (SID) from the triggering alert and denies network logon for that principal on the victim host (SeDenyNetworkLogonRight via secedit). Works for domain and local accounts. Also closes existing SMB sessions and open # Also closes existing SMB sessions via net session before applying the deny.

image image

Samirbous added 2 commits July 7, 2026 17:58
Designed for SMB ransomware rules such as "Potential Ransomware Note File Dropped via SMB" and Suspicious File Renamed via SMB.

https://www.elastic.co/guide/en/security/8.19/potential-ransomware-note-file-dropped-via-smb.html
https://www.elastic.co/guide/en/security/8.19/suspicious-file-renamed-via-smb.html

Extracts
# user.id (SID) from the triggering alert and denies network logon for that
# principal on the victim host (SeDenyNetworkLogonRight via secedit). Works
# for domain and local accounts. Also closes existing SMB sessions and open
# Also closes existing SMB sessions via net session before applying the deny.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant