Potential Ransomware Note File via SMB
Description
Identifies an incoming SMB connection followed by the creation of a file with a name similar to ransomware note files. This may indicate a remote ransomware attack via the SMB protocol.
Query · eql
sequence with maxspan=3s
[network where event.action == "connection_accepted" and destination.port == 445 and source.port >= 49152 and
process.pid == 4 and network.type == "ipv4" and not endswith(source.address, destination.address) and
source.ip != "127.0.0.1" and source.ip != "::1" ]
[file where event.action == "creation" and process.pid == 4 and user.id like ("S-1-5-21*", "S-1-12-*") and
file.extension : ("hta", "txt", "readme", "htm*") and file.path : "C:\\Users\\*" and
/* ransom file name keywords */
file.name : ("*read*me*", "*lock*", "*@*", "*RECOVER*", "*decrypt*", "*restore*file*", "*FILES_BACK*", "*how*to*") and
not file.name : "*:Zone.Identifier"]
[file where event.action == "creation" and process.pid == 4 and user.id like ("S-1-5-21*", "S-1-12-*") and
file.extension : ("hta", "txt", "readme", "htm*") and file.path : "C:\\Users\\*" and
/* ransom file name keywords */
file.name : ("*read*me*", "*lock*", "*@*", "*RECOVER*", "*decrypt*", "*restore*file*", "*FILES_BACK*", "*how*to*") and
not file.name : "*:Zone.Identifier"]