mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.6 KiB
ReStructuredText
77 lines
1.6 KiB
ReStructuredText
SMB Keywords
|
|
==============
|
|
|
|
.. role:: example-rule-options
|
|
|
|
SMB keywords used in both SMB1 and SMB2 protocols.
|
|
|
|
smb.named_pipe
|
|
--------------
|
|
|
|
Match on SMB named pipe in tree connect.
|
|
|
|
Examples::
|
|
|
|
smb.named_pipe; content:"IPC"; endswith;
|
|
smb.named_pipe; content:"strange"; nocase; pcre:"/really$/";
|
|
|
|
``smb.named_pipe`` is a 'sticky buffer'.
|
|
|
|
``smb.named_pipe`` can be used as ``fast_pattern``.
|
|
|
|
smb.share
|
|
---------
|
|
|
|
Match on SMB share name in tree connect.
|
|
|
|
Examples::
|
|
|
|
smb.share; content:"shared"; endswith;
|
|
smb.share; content:"strange"; nocase; pcre:"/really$/";
|
|
|
|
``smb.share`` is a 'sticky buffer'.
|
|
|
|
``smb.share`` can be used as ``fast_pattern``.
|
|
|
|
smb.ntlmssp_user
|
|
----------------
|
|
|
|
Match on SMB ntlmssp user in session setup.
|
|
|
|
Examples::
|
|
|
|
smb.ntlmssp_user; content:"doe"; endswith;
|
|
smb.ntlmssp_user; content:"doe"; nocase; pcre:"/j(ohn|ane).*doe$/";
|
|
|
|
``smb.ntlmssp_user`` is a 'sticky buffer'.
|
|
|
|
``smb.ntlmssp_user`` can be used as ``fast_pattern``.
|
|
|
|
smb.ntlmssp_domain
|
|
------------------
|
|
|
|
Match on SMB ntlmssp domain in session setup.
|
|
|
|
Examples::
|
|
|
|
smb.ntlmssp_domain; content:"home"; endswith;
|
|
smb.ntlmssp_domain; content:"home"; nocase; pcre:"/home(sweet)*$/";
|
|
|
|
``smb.ntlmssp_domain`` is a 'sticky buffer'.
|
|
|
|
``smb.ntlmssp_domain`` can be used as ``fast_pattern``.
|
|
|
|
file.name
|
|
---------
|
|
|
|
The ``file.name`` keyword can be used at the SMB application level.
|
|
|
|
Signature Example:
|
|
|
|
.. container:: example-rule
|
|
|
|
alert smb any any -> any any (msg:"SMB file.name usage"; \
|
|
:example-rule-options:`file.name; content:"file.txt";` \
|
|
classtype:bad-unknown; sid:1; rev:1;)
|
|
|
|
For additional information on the ``file.name`` keyword, see :doc:`file-keywords`. |