Disable IIS decoders

105 views
Skip to first unread message

George Paun

unread,
Jan 8, 2026, 2:20:33 AMJan 8
to Wazuh | Mailing List
Hi guys,

I need to take from scratch with decoders for IIS.
How can i disable the default decoders?

I made another decoders and i whant to test this ones. I f you check this ones if are ok. Logs i can't give you because policy

Thamks,
George

IIS decoders.txt

Bony V John

unread,
Jan 8, 2026, 2:37:33 AMJan 8
to Wazuh | Mailing List
Hi,

Please allow me some time, I'm working on this and will get back to you with an update as soon as possible.

Bony V John

unread,
Jan 8, 2026, 4:52:17 AMJan 8
to Wazuh | Mailing List
Hi,

You can exclude default decoders by adding a decoder exclude configuration in the Wazuh Manager ossec.conf file, as shown below:  
<decoder_exclude>ruleset/decoders/<decoder-file-name>.xml</decoder_exclude>

This configuration must be added inside the <ruleset> tag, and you need to specify the exact default decoder file name in <decoder-file-name>.xml.

However, in your case, you are talking about disabling a default decoder file, and it seems you are referring to 0380-windows_decoders.xml. This file contains multiple decoders, not just a single one.

In this situation, I recommend the following approach instead of disabling the entire decoder file directly:

1. Copy the default decoder file to the local decoders directory  

cp /var/ossec/ruleset/decoders/ 0380-windows_decoders.xml  /var/ossec/etc/decoders/local-windows_decoders.xml

2. Edit the copied decoder file (modify only required decoders and don't change the parent decoders names)
vi /var/ossec/etc/decoders/local-windows_decoders.xml
Modify only the required decoders or add your custom decoders in this file.  
Note: - I do not recommend removing all decoders from this file. The 0380-windows_decoders.xml file contains multiple decoders that are mapped to default Wazuh rules. Removing them entirely can break rule dependencies and may cause the Wazuh Manager to behave unexpectedly.  

These documents can be helpful for writing the decoders.

3. Next, change the file permission of the custom decoder file.
chmod 660 /var/ossec/etc/decoders/ local-windows_decoders.xml
chown wazuh:wazuh /var/ossec/etc/decoders/local-windows_decoders.xml

4. After that go to the manager’s ossec.conf
vi /var/ossec/etc/ossec.conf

Under the
<ruleset>

5. Add this line to exclude the default decoder file.
<decoder_exclude>ruleset/decoders/0380-windows_decoders.xml</decoder_exclude>

6. Now restart the Wazuh manager.
systemctl restart wazuh-manager

Check this document to learn more about modifying the existing decoder:
https://documentation.wazuh.com/current/user-manual/ruleset/decoders/custom.html#modify-default-decoders

Regarding the shared custom decoder, there was an issue related to newline character, I have updated that and attached the decoder file here. The decoder looks fine syntactically, but I cannot fully confirm its correctness because the regex patterns depend on the exact log format being processed.
IIS decoders.txt

George Paun

unread,
Jan 8, 2026, 5:14:19 AMJan 8
to Wazuh | Mailing List
Thanks Bony for steps to disable the default decoders. Can you look at the decoders i made?
Do you have another sugestions? I need to extract all information i can from IIS , including which link is access

Thanks,
George

Bony V John

unread,
Jan 8, 2026, 10:56:56 PMJan 8
to Wazuh | Mailing List
Hi,

I have already gone through the decoder file you shared, and I provided the updated decoder file in my previous response. In the decoder file you shared, there were newline characters inside the <order> tag, which caused the issue. I have corrected that in the updated decoder and shared it with you. 

Additionally, I would like to suggest not replacing the entire default decoder file 0380-windows_decoders.xml with the custom decoder you shared. Replacing the full default decoder file can affect default rule dependencies and may cause the Wazuh manager to fail when those default decoders are excluded.

Instead, I recommend following the steps I shared earlier:

  • Copy the default 0380-windows_decoders.xml file to a custom decoder file.

  • Modify the required decoder or add your new custom decoder in the copied file.

  • If needed, adjust the existing decoder regex in that copied file based on your requirements.

This approach ensures that default rule dependencies remain intact and avoids stability issues on the Wazuh manager.

You can refer to the Wazuh decoder syntax documentation for creating or modifying decoders.

Please let me know if you have any further questions.

George Paun

unread,
Mar 12, 2026, 7:13:42 AM (4 days ago) Mar 12
to Wazuh | Mailing List
Hy Bony,

I made the decoders( 2 different sets) , rules, but they don't trigger in wazuh. I attached the decoders, the rules, the test, the sanitazed log and the moddify i made in ossec.
I don't know what to do.

Thx, George

rules+test+log.txt
decoders 1.txt
ossec.jpg
decoders2.txt

Bony V John

unread,
Mar 13, 2026, 2:00:51 AM (4 days ago) Mar 13
to Wazuh | Mailing List

Hi,

Based on the shared ossec.conf file on the Wazuh agent, the configuration is correct. Also, the log you shared is from the archives log file on the Wazuh Manager, which confirms that the events are being ingested into the Wazuh Manager for analysis.

The reason the alerts are not being triggered based on your rule is that this is a Windows Event Channel log. For Event Channel logs, a custom decoder is not required, because Wazuh already has a default built-in decoder for Windows Event Channel events. So there is no need to create a custom decoder for this.

Also, the event is already being decoded and is matching a default Wazuh rule with rule ID 60009. Because of that rule’s level, it is not being shown on the dashboard, since rules with a level below 3 are not displayed there.

So, I modified your custom rule as a child rule of rule ID 60009, so it can analyze the events correctly and trigger alerts when the conditions are matched.

You can try the updated rule below on your end and check whether it is triggering alerts:


<group name="iis,web,attack,soar">

    <rule id="140000" level="3">
      <if_sid>60009</if_sid>
      <description>IIS logging event detected.</description>
      <group>iis,web</group>
    </rule>
   
    <rule id="140001" level="5">
      <if_sid>140000</if_sid>
      <field name="win.eventdata.cs-method">GET</field>
      <description>IIS GET request detected</description>
      <group>iis,web</group>
    </rule>
   
    <rule id="140002" level="5">
      <if_sid>140000</if_sid>
      <field name="win.eventdata.cs-method">POST</field>
      <description>IIS POST request detected</description>
      <group>iis,web</group>
    </rule>

</group>

I replaced the <match> tag with the <field> tag so the field name and value are matched more accurately, which helps avoid unwanted mismatches.

You can refer to the Wazuh rules syntax documentation for more details about custom rule creation.

After applying the rules, restart the Wazuh Manager service:

systemctl restart wazuh-manager

Then trigger the event again on the endpoint and check whether the alerts are being generated.

Since this is a Windows Event Channel log, you cannot test it directly using the Wazuh logtest tool.

George Paun

unread,
Mar 13, 2026, 6:23:30 AM (3 days ago) Mar 13
to Wazuh | Mailing List
Hi Bony,

Then i need to activate back the IIS decoders from  0380-windows_decoders.xml?
The ideea of new decoders is i need to show me the all URL : hhttp://google.com/page/page/shdjashdjashdjas

Thx,
George

George Paun

unread,
Mar 13, 2026, 7:51:39 AM (3 days ago) Mar 13
to Wazuh | Mailing List
I work with 60009 for informational. But for the rest of the rules i need to use 60010 & 60011 for scan , or 500 error or  404 - broker links/scanning ?

Thx, George

Bony V John

unread,
Mar 13, 2026, 7:59:27 AM (3 days ago) Mar 13
to Wazuh | Mailing List

Hi,

Please do not disable the 0380-windows_decoders.xml decoder, as it may affect the analysis of other events and it is not recommended to disable it.

Instead, it is better to use the default Windows Event Channel decoder, and it appears that the URL is already being decoded by the default Windows Event Channel log decoder in the field win.eventdata.csReferer.

Please try the updated custom rule I shared earlier and check if it works correctly.

Regarding rules 60010 and 60011, these correspond to Windows Event Channel warning and error severity rules. Please ensure that these are the correct parent rule IDs for your requirement by verifying them using the logtest tool.

Please let me know if you need any further assistance, and also share the sample logs with us so we can review them from our end.

George Paun

unread,
Mar 13, 2026, 8:02:30 AM (3 days ago) Mar 13
to Bony V John, Wazuh | Mailing List
You tell me to use 60009 for all iis rules? For the first and then to link all the rules from that?

--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/YGxAeMRK5KI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wazuh/ee539d26-b5c1-4978-889e-03b98a79e5cfn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages