<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Wazuh_Logs_%C3%BCberwachen</id>
	<title>Wazuh Logs überwachen - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Wazuh_Logs_%C3%BCberwachen"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Wazuh_Logs_%C3%BCberwachen&amp;action=history"/>
	<updated>2026-12-04T14:24:35Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Wazuh_Logs_%C3%BCberwachen&amp;diff=59597&amp;oldid=prev</id>
		<title>Thomas.will am 11. März 2025 um 18:52 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Wazuh_Logs_%C3%BCberwachen&amp;diff=59597&amp;oldid=prev"/>
		<updated>2025-03-11T18:52:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 11. März 2025, 18:52 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l106&quot;&gt;Zeile 106:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 106:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The attacker endpoint connects to the victim&amp;#039;s web servers the first time. After the first connection, the Wazuh Active Response module temporarily blocks any successive connection to the web servers for 60 seconds.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The attacker endpoint connects to the victim&amp;#039;s web servers the first time. After the first connection, the Wazuh Active Response module temporarily blocks any successive connection to the web servers for 60 seconds.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:WAZUH]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-58691:rev-59597:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Wazuh_Logs_%C3%BCberwachen&amp;diff=58691&amp;oldid=prev</id>
		<title>Maximilian.pottgiesser: Die Seite wurde neu angelegt: „Ubuntu Server Add the following to /var/ossec/etc/ossec.conf file to configure the Wazuh agent and monitor the Apache access logs:  &lt;localfile&gt;   &lt;log_format&gt;s…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Wazuh_Logs_%C3%BCberwachen&amp;diff=58691&amp;oldid=prev"/>
		<updated>2024-12-18T15:44:47Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Ubuntu Server Add the following to /var/ossec/etc/ossec.conf file to configure the Wazuh agent and monitor the Apache access logs:  &amp;lt;localfile&amp;gt;   &amp;lt;log_format&amp;gt;s…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Ubuntu Server&lt;br /&gt;
Add the following to /var/ossec/etc/ossec.conf file to configure the Wazuh agent and monitor the Apache access logs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;localfile&amp;gt;&lt;br /&gt;
  &amp;lt;log_format&amp;gt;syslog&amp;lt;/log_format&amp;gt;&lt;br /&gt;
  &amp;lt;location&amp;gt;/var/log/apache2/access.log&amp;lt;/location&amp;gt;&lt;br /&gt;
&amp;lt;/localfile&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wazu Manager&lt;br /&gt;
&lt;br /&gt;
Download the Alienvault IP reputation database:&lt;br /&gt;
&lt;br /&gt;
sudo wget https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/alienvault_reputation.ipset -O /var/ossec/etc/lists/alienvault_reputation.ipset&lt;br /&gt;
&lt;br /&gt;
Append the IP address of the attacker endpoint to the IP reputation database. Replace &amp;lt;ATTACKER_IP&amp;gt; with the RHEL IP address in the command below:&lt;br /&gt;
&lt;br /&gt;
sudo echo &amp;quot;&amp;lt;ATTACKER_IP&amp;gt;&amp;quot; &amp;gt;&amp;gt; /var/ossec/etc/lists/alienvault_reputation.ipset&lt;br /&gt;
&lt;br /&gt;
Download a script to convert from the .ipset format to the .cdb list format:&lt;br /&gt;
&lt;br /&gt;
sudo wget https://wazuh.com/resources/iplist-to-cdblist.py -O /tmp/iplist-to-cdblist.py&lt;br /&gt;
&lt;br /&gt;
Convert the alienvault_reputation.ipset file to a .cdb format using the previously downloaded script:&lt;br /&gt;
&lt;br /&gt;
sudo /var/ossec/framework/python/bin/python3 /tmp/iplist-to-cdblist.py /var/ossec/etc/lists/alienvault_reputation.ipset /var/ossec/etc/lists/blacklist-alienvault&lt;br /&gt;
&lt;br /&gt;
Optional: Remove the alienvault_reputation.ipset file and the iplist-to-cdblist.py script, as they are no longer needed:&lt;br /&gt;
&lt;br /&gt;
sudo rm -rf /var/ossec/etc/lists/alienvault_reputation.ipset&lt;br /&gt;
&lt;br /&gt;
sudo rm -rf /tmp/iplist-to-cdblist.py&lt;br /&gt;
&lt;br /&gt;
Assign the right permissions and ownership to the generated file:&lt;br /&gt;
&lt;br /&gt;
    sudo chown wazuh:wazuh /var/ossec/etc/lists/blacklist-alienvault&lt;br /&gt;
&lt;br /&gt;
Configure the Active Response module to block the malicious IP address&lt;br /&gt;
&lt;br /&gt;
Add a custom rule to trigger a Wazuh active response script. Do this in the Wazuh server /var/ossec/etc/rules/local_rules.xml custom ruleset file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;group name=&amp;quot;attack,&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;rule id=&amp;quot;100100&amp;quot; level=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;if_group&amp;gt;web|attack|attacks&amp;lt;/if_group&amp;gt;&lt;br /&gt;
    &amp;lt;list field=&amp;quot;srcip&amp;quot; lookup=&amp;quot;address_match_key&amp;quot;&amp;gt;etc/lists/blacklist-alienvault&amp;lt;/list&amp;gt;&lt;br /&gt;
    &amp;lt;description&amp;gt;IP address found in AlienVault reputation database.&amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;/rule&amp;gt;&lt;br /&gt;
&amp;lt;/group&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit the Wazuh server /var/ossec/etc/ossec.conf configuration file and add the etc/lists/blacklist-alienvault list to the &amp;lt;ruleset&amp;gt; section:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ossec_config&amp;gt;&lt;br /&gt;
  &amp;lt;ruleset&amp;gt;&lt;br /&gt;
    &amp;lt;!-- Default ruleset --&amp;gt;&lt;br /&gt;
    &amp;lt;decoder_dir&amp;gt;ruleset/decoders&amp;lt;/decoder_dir&amp;gt;&lt;br /&gt;
    &amp;lt;rule_dir&amp;gt;ruleset/rules&amp;lt;/rule_dir&amp;gt;&lt;br /&gt;
    &amp;lt;rule_exclude&amp;gt;0215-policy_rules.xml&amp;lt;/rule_exclude&amp;gt;&lt;br /&gt;
    &amp;lt;list&amp;gt;etc/lists/audit-keys&amp;lt;/list&amp;gt;&lt;br /&gt;
    &amp;lt;list&amp;gt;etc/lists/amazon/aws-eventnames&amp;lt;/list&amp;gt;&lt;br /&gt;
    &amp;lt;list&amp;gt;etc/lists/security-eventchannel&amp;lt;/list&amp;gt;&lt;br /&gt;
    &amp;lt;list&amp;gt;etc/lists/blacklist-alienvault&amp;lt;/list&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- User-defined ruleset --&amp;gt;&lt;br /&gt;
    &amp;lt;decoder_dir&amp;gt;etc/decoders&amp;lt;/decoder_dir&amp;gt;&lt;br /&gt;
    &amp;lt;rule_dir&amp;gt;etc/rules&amp;lt;/rule_dir&amp;gt;&lt;br /&gt;
  &amp;lt;/ruleset&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ossec_config&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the Active Response block to the Wazuh server /var/ossec/etc/ossec.conf file:&lt;br /&gt;
&lt;br /&gt;
For the Ubuntu endpoint&lt;br /&gt;
&lt;br /&gt;
The firewall-drop command integrates with the Ubuntu local iptables firewall and drops incoming network connection from the attacker endpoint for 60 seconds:&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;ossec_config&amp;gt;&lt;br /&gt;
      &amp;lt;active-response&amp;gt;&lt;br /&gt;
        &amp;lt;command&amp;gt;firewall-drop&amp;lt;/command&amp;gt;&lt;br /&gt;
        &amp;lt;location&amp;gt;local&amp;lt;/location&amp;gt;&lt;br /&gt;
        &amp;lt;rules_id&amp;gt;100100&amp;lt;/rules_id&amp;gt;&lt;br /&gt;
        &amp;lt;timeout&amp;gt;60&amp;lt;/timeout&amp;gt;&lt;br /&gt;
      &amp;lt;/active-response&amp;gt;&lt;br /&gt;
    &amp;lt;/ossec_config&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the Windows endpoint&lt;br /&gt;
&lt;br /&gt;
The active response script uses the netsh command to block the attacker&amp;#039;s IP address on the Windows endpoint. It runs for 60 seconds:&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;ossec_config&amp;gt;&lt;br /&gt;
      &amp;lt;active-response&amp;gt;&lt;br /&gt;
        &amp;lt;command&amp;gt;netsh&amp;lt;/command&amp;gt;&lt;br /&gt;
        &amp;lt;location&amp;gt;local&amp;lt;/location&amp;gt;&lt;br /&gt;
        &amp;lt;rules_id&amp;gt;100100&amp;lt;/rules_id&amp;gt;&lt;br /&gt;
        &amp;lt;timeout&amp;gt;60&amp;lt;/timeout&amp;gt;&lt;br /&gt;
      &amp;lt;/active-response&amp;gt;&lt;br /&gt;
    &amp;lt;/ossec_config&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart the Wazuh manager to apply the changes:&lt;br /&gt;
&lt;br /&gt;
    sudo systemctl restart wazuh-manager&lt;br /&gt;
&lt;br /&gt;
Attack emulation&lt;br /&gt;
&lt;br /&gt;
Access any of the web servers from the RHEL endpoint using the corresponding IP address. Replace &amp;lt;WEBSERVER_IP&amp;gt; with the appropriate value and execute the following command from the attacker endpoint:&lt;br /&gt;
&lt;br /&gt;
    curl http://&amp;lt;WEBSERVER_IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The attacker endpoint connects to the victim&amp;#039;s web servers the first time. After the first connection, the Wazuh Active Response module temporarily blocks any successive connection to the web servers for 60 seconds.&lt;/div&gt;</summary>
		<author><name>Maximilian.pottgiesser</name></author>
	</entry>
</feed>