]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/transform: Document case-changing transforms.
authorJeff Lucovsky <jlucovsky@oisf.net>
Thu, 9 Nov 2023 11:22:55 +0000 (06:22 -0500)
committerVictor Julien <victor@inliniac.net>
Thu, 16 Nov 2023 20:36:34 +0000 (21:36 +0100)
Issue: 6439

doc/userguide/rules/transforms.rst

index 91ab2ef5fc9ebe7fb930d6adcd8757663364a2c2..f52bac7f3eea0157fae8dc04e04f033ec0bd13b9 100644 (file)
@@ -68,6 +68,18 @@ compress_whitespace
 
 Compresses all consecutive whitespace into a single space.
 
+to_lowercase
+------------
+
+Converts the buffer to lowercase and passes the value on.
+
+This example alerts if ``http.uri`` contains ``this text has been converted to lowercase``
+
+Example::
+
+    alert http any any -> any any (http.uri; to_lowercase; \
+        content:"this text has been converted to lowercase"; sid:1;)
+
 to_md5
 ------
 
@@ -79,6 +91,18 @@ Example::
     alert http any any -> any any (http_request_line; to_md5; \
         content:"|54 A9 7A 8A B0 9C 1B 81 37 25 22 14 51 D3 F9 97|"; sid:1;)
 
+to_uppercase
+------------
+
+Converts the buffer to uppercase and passes the value on.
+
+This example alerts if ``http.uri`` contains ``THIS TEXT HAS BEEN CONVERTED TO LOWERCASE``
+
+Example::
+
+    alert http any any -> any any (http.uri; to_uppercase; \
+        content:"THIS TEXT HAS BEEN CONVERTED TO UPPERCASE"; sid:1;)
+
 to_sha1
 ---------
 
@@ -134,3 +158,4 @@ Example::
 
     alert http any any -> any any (msg:"HTTP with xor"; http.uri; \
         xor:"0d0ac8ff"; content:"password="; sid:1;)
+