I started writing rules. I am trying to understand logically. I started by copying the Windows rule.
But I want to write a special rule according to the log I have received.
Can you help me
or can you say my wrong points
sorry for broken english
Log :
172.20.10.6 - - [18/Jun/2020:11:30:38 +0000] "HEAD /sitecore/admin/ShowConfig.aspx HTTP/1.1" 404 1824 "-" "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)"
decoder:
<decoder name="example">
<program_name>^example</program_name>
</decoder>
<decoder name="example">
<type>web-log</type>
<parent>example</parent>
<prematch>\W*((?i)Nmap Scripting Engine(?-i))\W*</prematch>
<regex>\W*((?i)Nmap Scripting Engine(?-i))\W*</regex>
<order>nmap, webatacck</order>
</decoder>
rule :
<group name="example,">
<rule id="100010" level=“5”>
<program_name>example</program_name>
<regex>"[NHTTP]\w\W\w\S\w\S....."</regex>
<description>Nmap Scripting Web Attack</description>
<group>attack,pci_dss_11.4,gdpr_IV_35.7.d,nist_800_53_SI.4,</group>
</rule>
</group>