]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: add documentation for SSH keywords
authorMats Klepsland <mats.klepsland@gmail.com>
Tue, 16 Oct 2018 19:48:32 +0000 (21:48 +0200)
committerMats Klepsland <mats.klepsland@gmail.com>
Tue, 16 Oct 2018 19:48:32 +0000 (21:48 +0200)
doc/userguide/rules/index.rst
doc/userguide/rules/ssh-keywords.rst [new file with mode: 0644]

index 2fa4e639b83f5022ea2d4b633b1c67a54982a65f..ed1cdaceb38ca9a697346f5c0f4f011872a97098 100644 (file)
@@ -13,6 +13,7 @@ Suricata Rules
    file-keywords
    dns-keywords
    tls-keywords
+   ssh-keywords
    ja3-keywords
    modbus-keyword
    dnp3-keywords
diff --git a/doc/userguide/rules/ssh-keywords.rst b/doc/userguide/rules/ssh-keywords.rst
new file mode 100644 (file)
index 0000000..ac0d74e
--- /dev/null
@@ -0,0 +1,60 @@
+SSH Keywords
+============
+
+Suricata comes with several rule keywords to match on SSH connections.
+
+ssh_proto
+---------
+
+Match on the version of the SSH protocol used.
+
+Example::
+
+  alert ssh any any -> any any (msg:"match SSH protocol version"; \
+      ssh_proto; content:"2.0"; sid:1000010;)
+
+The example above matches on SSH connections with SSH version 2.
+
+``ssh_proto`` is a 'Sticky buffer'.
+
+``ssh_proto`` can be used as ``fast_pattern``.
+
+ssh_version
+-----------
+
+Match on the software string from the SSH banner.
+
+Example::
+
+  alert ssh any any -> any any (msg:"match SSH software string"; \
+      ssh_software: content:"openssh"; nocase; sid:1000020;)
+
+The example above matches on SSH connections where the software string contains "openssh".
+
+``ssh_software`` is a 'Sticky buffer'.
+
+``ssh_software`` can be used as ``fast_pattern``.
+
+ssh.protoversion
+----------------
+
+This is a legacy keyword. Use ``ssh_proto`` instead!
+
+Match on the version of the SSH protocol used.
+
+Example::
+
+  alert ssh any any -> any any (msg:"match SSH protocol version"; \
+      ssh.protoversion:"2.0"; sid:1000030;)
+
+ssh.softwareversion
+-------------------
+
+This is a legacy keyword. Use ``ssh_software`` instead!
+
+Match on the software string from the SSH banner.
+
+Example::
+
+  alert ssh any any -> any any (msg:"match SSH software string"; \
+      ssh.softwareversion:"OpenSSH"; sid:10000040;)