From 7bff2f77aa4bbbb267de5667db0cf4de8cd7467b Mon Sep 17 00:00:00 2001 From: Eduardo Arias Date: Tue, 23 Apr 2024 16:35:37 -0300 Subject: [PATCH] Updated references to coreruleset repository - For OWASP v2 rules, switch to a v2 tag for the paths referenced in the rest of the script to apply. --- test/benchmark/download-owasp-v2-rules.sh | 5 ++++- test/benchmark/download-owasp-v3-rules.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/benchmark/download-owasp-v2-rules.sh b/test/benchmark/download-owasp-v2-rules.sh index facc48d3..dd1623e7 100755 --- a/test/benchmark/download-owasp-v2-rules.sh +++ b/test/benchmark/download-owasp-v2-rules.sh @@ -2,7 +2,10 @@ # # -git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git owasp-v2 +git clone https://github.com/coreruleset/coreruleset.git owasp-v2 +cd owasp-v2 +git checkout 2.2.9 -b tag2.2.9 +cd - echo 'Include "owasp-v2/base_rules/*.conf"' >> basic_rules.conf echo 'Include "owasp-v2/optional_rules/*.conf"' >> basic_rules.conf diff --git a/test/benchmark/download-owasp-v3-rules.sh b/test/benchmark/download-owasp-v3-rules.sh index c3bc0dfa..d0d9f809 100755 --- a/test/benchmark/download-owasp-v3-rules.sh +++ b/test/benchmark/download-owasp-v3-rules.sh @@ -1,7 +1,7 @@ #!/bin/bash -git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git owasp-v3 +git clone https://github.com/coreruleset/coreruleset.git owasp-v3 cd owasp-v3 git checkout v3.0.2 -b tag3.0.2 cd -