<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Maryamliaqat on Medium]]></title>
        <description><![CDATA[Stories by Maryamliaqat on Medium]]></description>
        <link>https://medium.com/@maryamliaqat4583?source=rss-d497b57b221e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bkskvZW9m-9rjF_H</url>
            <title>Stories by Maryamliaqat on Medium</title>
            <link>https://medium.com/@maryamliaqat4583?source=rss-d497b57b221e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:50:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maryamliaqat4583/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Cloud SOC Lab on AWS]]></title>
            <link>https://medium.com/@maryamliaqat4583/building-a-cloud-soc-lab-on-aws-2759bc5827b6?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2759bc5827b6</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[the-hive]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 19:29:22 GMT</pubDate>
            <atom:updated>2026-11-05T19:29:22.191Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Wazuh + TheHive + Cortex</strong></p><p>From an SSH attack to an enriched case: a detection and response pipeline built on Wazuh and Cortex (open source) and TheHive (free community licence), validated with real internet scanner traffic.</p><p>Prepared By: <strong>Maryam Liaqat</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*L9cIsW9THjSSbhyNMd1CKw.png" /></figure><h3>About this report</h3><p>This report documents a complete, reproducible security-operations lab: <strong>Wazuh</strong> for detection, TheHive for case management and Cortex for enrichment, deployed on AWS and connected end to end. It is written for the <strong>Wazuh</strong> community and includes the real problems that came up, because those are usually the most useful part of a lab write-up.</p><p><strong>What you will find inside</strong></p><p>1. Overview and objectives</p><p>2. Architecture and data flow</p><p>3. Why <strong>Wazuh</strong> is the detection core</p><p>4. Phase 1: AWS foundation</p><p>5. Phase 2: Deploying <strong>Wazuh</strong> and enrolling an agent</p><p>6. Phase 3: TheHive 6 on Docker</p><p>7. Phase 4: Cortex and threat-intel analyzers</p><p>8. Phase 5: Connecting TheHive to Cortex</p><p>9. Phase 6: The <strong>Wazuh</strong> to TheHive integration</p><p>10. Phase 7: Validation against a real attacker</p><p>11. Troubleshooting log</p><p>12. Security hardening checklist</p><p>13. Cost control, cleanup and next steps</p><p>Appendix: integration script listing</p><h3>1. Overview and objectives</h3><p>A security operations centre does not rely on one tool. It detects, triages, investigates and responds across several systems, and the quality of that pipeline depends on how well those systems exchange information. This lab connects three platforms into a single workflow:</p><p>• <strong>Wazuh</strong> (open source) watches endpoints and raises rule-based alerts that are mapped to MITRE ATT&amp;CK.</p><p>• <strong>TheHive</strong> (free community licence) receives those alerts and gives analysts a place to triage and investigate them as cases.</p><p>• <strong>Cortex</strong> (open source) enriches indicators such as IP addresses with threat intelligence, using analyzers for AbuseIPDB, VirusTotal and Abuse_Finder.</p><p>The lab was built from scratch, tested with deliberate SSH attacks, and then validated when real internet scanners brute-forced SSH while it was temporarily exposed (see the note in Section 4).</p><p><strong>A note on licensing.</strong> <strong>Wazuh</strong> and Cortex are open source. TheHive 5 and 6 are distributed by StrangeBee as a commercial product with a free Community licence tier; TheHive 3 and 4 are no longer publicly distributed. This lab ran TheHive 6.0.0 on the 15-day Platinum trial that a new installation starts with, and a Community licence can be requested for continued use.</p><p><strong>Objectives</strong></p><p>• Deploy a <strong>Wazuh</strong> 4.14.9 all-in-one server and enrol an endpoint agent.</p><p>• Run TheHive 6.0.0 and Cortex 4.1.0 with Docker Compose on right-sized EC2 instances.</p><p>• Forward <strong>Wazuh</strong> alerts to TheHive with a lightweight custom integration.</p><p>• Enrich observables with Cortex and validate the pipeline against a real attacker.</p><p><strong>WAZUH SPOTLIGHT Wazuh sits at the centre of this pipeline</strong></p><p>Every alert in TheHive in this lab started as a <strong>Wazuh</strong> rule match. The integration uses <strong>Wazuh</strong>’s native integrator daemon, so nothing in the <strong>Wazuh</strong> core was modified: one script in /var/ossec/integrations and one &lt;integration&gt; block in ossec.conf were enough to connect it to a case-management platform.</p><h3>2. Architecture and data flow</h3><p>Four Ubuntu 24.04 LTS EC2 instances share one VPC in ap-southeast-2 and communicate over private IP addresses. Security groups allow only the traffic each hop needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*_LCuK3c_ZCn36LsddJ_Cew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*ZLRtIDjvXEvdyrOFHNi6gQ.png" /></figure><p>Private IP addresses are shown as placeholders: substitute your own. Screenshots may show the lab’s RFC 1918 addresses, which are not routable from the internet.</p><p><strong>End-to-end data flow</strong></p><p><strong>1.</strong> An SSH login fails on a monitored host and is written to the authentication log.</p><p><strong>2.</strong> The <strong>Wazuh</strong> agent ships the event to the <strong>Wazuh</strong> manager over 1514/tcp.</p><p><strong>3.</strong> The manager decodes the event, matches a rule (for example 5710 or 5712) and adds MITRE ATT&amp;CK tags.</p><p><strong>4.</strong> The custom-thehive integration posts the alert to the TheHive REST API (9000/tcp), with the source IP as an observable.</p><p><strong>5.</strong> An analyst opens the alert in TheHive and runs Cortex analyzers on the observable (TheHive to Cortex, 9001/tcp).</p><p><strong>6.</strong> Cortex starts analyzer containers that query AbuseIPDB, VirusTotal and Abuse_Finder, and returns reports and tags to TheHive.</p><h3>3. Why Wazuh is the detection core</h3><p>Everything downstream depends on the quality of <strong>Wazuh</strong> detections. The table lists the <strong>Wazuh</strong> capabilities that were exercised in this lab and where they showed up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*hGgX80JjscHO5gzqKHuYhg.png" /></figure><h3>4. Phase 1: AWS foundation</h3><p>All hosts run in one region and one VPC so they can reach each other on private IPs. Elastic IPs keep the browser-facing addresses stable across stop and start cycles, and an AWS Budget alert guards against surprise bills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*AA3J4QLkkWa_3IYijmebiA.png" /></figure><p><strong>Security groups: recommended baseline.</strong> Service-to-service rules reference other security groups rather than IP ranges, and every management port is scoped to the administrator’s own IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*8rCrwZVUTx4BlhQOkb0UFQ.png" /></figure><p><strong>LAB DEVIATION Deviation in this lab: SSH was temporarily open to the internet</strong></p><p>The baseline above is what you should deploy. The lab itself deviated from it. So that AWS’s browser-based terminal (EC2 Instance Connect), which connects from AWS address ranges rather than your own IP, could be used, port 22 was temporarily opened to 0.0.0.0/0 on the victim-agent, the Cortex host and the <strong>Wazuh</strong> manager host. The Cortex HTTPS port (443) was also left open to the internet for a time. That exposure is why real scanners reached the lab and produced the alerts described in Section 10.</p><p><strong>Do not copy that exposure.</strong> To observe real attackers on purpose, expose only the victim endpoint, as a deliberate honeypot, and never the <strong>Wazuh</strong> manager. For administration, allow only AWS’s published EC2 Instance Connect address ranges, or use SSM Session Manager or an EC2 Instance Connect Endpoint so that no public SSH is needed.</p><h3>5. Phase 2: Deploying Wazuh and enrolling an agent</h3><p><strong>Wazuh</strong> was installed with the official installation assistant. Run it inside tmux so a dropped SSH session cannot interrupt the installation.</p><blockquote>curl -sO <a href="https://packages.wazuh.com/4.14/wazuh-install.sh">https://packages.wazuh.com/4.14/wazuh-install.sh</a></blockquote><blockquote>sudo bash ./wazuh-install.sh -a</blockquote><p>At the end of the run the installer prints the dashboard admin password. Save it immediately. Afterwards, disable the <strong>Wazuh</strong> apt repository so a routine apt upgrade cannot move the stack to a different version:</p><blockquote>sudo sed -i “s/^deb/#deb/” /etc/apt/sources.list.d/wazuh.list</blockquote><blockquote>sudo systemctl status wazuh-manager wazuh-indexer wazuh-dashboard — no-pager</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEbjnOR0kfCZj0DBZzMqIQ.png" /></figure><p><strong>Enrolling the endpoint.</strong> In the dashboard open <strong>Agents, then Deploy new agent</strong>. Choose DEB amd64, enter the manager’s <strong>private</strong> IP as the server address, name the agent victim-agent and run the generated command on the endpoint. Then enable the service:</p><blockquote>sudo systemctl daemon-reload</blockquote><blockquote>sudo systemctl enable — now wazuh-agent</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owht7R66brMlAt0XdsL0tg.png" /></figure><p><strong>First validation.</strong> A deliberate failed SSH login on the endpoint (ssh fakeuser@localhost) produced rule 5710 events in Threat Hunting within seconds. The same view also showed SCA results from the CIS Ubuntu 24.04 benchmark scan that runs when a new agent starts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-iA67buHpGg1mOOMVjTsA.png" /></figure><p><strong>WAZUH SPOTLIGHT Keep agent and manager versions aligned</strong></p><p>An agent must not be newer than its manager. Pinning the agent package to the manager’s exact version (here 4.14.9) avoids silent enrolment problems.</p><h3>6. Phase 3: TheHive 6 on Docker</h3><p>TheHive 6.0.0 was deployed from StrangeBee’s official Docker repository, using the single-server production profile (Cassandra, Elasticsearch, TheHive and an Nginx reverse proxy).</p><blockquote>git clone <a href="https://github.com/StrangeBeeCorp/docker.git">https://github.com/StrangeBeeCorp/docker.git</a></blockquote><blockquote>cd docker/prod1-thehive</blockquote><blockquote>bash ./scripts/init.sh # answer y to fix permissions; set the server name</blockquote><blockquote>docker compose up -d</blockquote><p><strong>Right-sizing.</strong> The production profile assumes a large host. On a 2 vCPU, 8 GB instance the first docker compose up failed with range of CPUs is from 0.01 to 2.00. The limits were reduced before the first start, a 4 GB swap file was added and vm.max_map_count was set to 262144 for Elasticsearch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ebUBxYF5afrNzZRkXuTlqw.png" /></figure><p>First start takes two to five minutes while Cassandra and Elasticsearch become healthy and TheHive imports the MITRE ATT&amp;CK catalogue; Nginx answers <strong>502 Bad Gateway</strong> until TheHive is ready. The UI is reached over HTTPS with the self-signed certificate (a browser warning is expected). Sign in with the documented default platform administrator and <strong>change the password immediately</strong>. The first start also activates a 15-day Platinum trial license.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_onOY2Xn_oa3y9Nw0TS3gg.png" /></figure><p><strong>Organisations and users.</strong> The platform admin organisation only manages the platform; alerts and cases live in a separate organisation. A soc-lab organisation was created with two users: an analyst with the org-admin profile, and a dedicated integration user (wazuh@soc.lab) with the analyst profile and an API key. Using a separate identity for the integration keeps its permissions minimal and its key easy to rotate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wOnKUP4yR9jj1_HtGUA9TA.png" /></figure><h3>7. Phase 4: Cortex and threat-intel analyzers</h3><p>Cortex was originally planned on the TheHive host. Measurements showed that this would not fit: the TheHive stack alone used about 5.9 GB of 7.6 GB RAM, with the TheHive container at 99 percent of its memory limit. Cortex, which needs its own Elasticsearch, was therefore deployed on a dedicated instance using the prod1-cortex profile from the same repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*ZQhW4dzkdYJXPe-_qJEAQw.png" /></figure><p><strong>Initial configuration.</strong> On first access Cortex asks for a superadmin account. A soc-lab organisation was then created with a user holding the read, analyze and orgadmin roles, and an API key was generated for that user. TheHive will use this key to talk to Cortex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6zizpw6VlS0T1A7nbkdwbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wIIbHWkPECHZIQTZFB-A_g.png" /></figure><p>Analyzers. The Cortex catalogue offers 288 analyzers. Three were enabled for the soc-lab organisation: AbuseIPDB_2_0, VirusTotal_GetReport_3_1 and Abuse_Finder_3_0. AbuseIPDB and VirusTotal need free API keys from their websites; Abuse_Finder needs none. Abuse_Finder is not a general WHOIS tool: it finds the abuse contact for an IP address, domain, URL or e-mail address, using regional registry (WHOIS) records to do so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOURVUNrDC_sIGXGoh9aBw.png" /></figure><p>First run failed, and why. All three jobs failed within seconds, including Abuse_Finder, which needs no key. That ruled out API keys and pointed at the runtime. The Cortex log showed AccessDeniedException on /tmp/cortex-jobs: the host folder behind that path belonged to root while Cortex runs as uid 1001. One command fixed it:</p><blockquote>sudo chown -R 1001:1001 cortex/cortex-jobs</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IkBgL0VRdZPPmU-et0eBSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81LC1P83l2iclptmqdq2Dg.png" /></figure><h3>8. Phase 5: Connecting TheHive to Cortex</h3><p>Connecting the two platforms is a platform-administrator task in TheHive.</p><ol><li>Sign in to TheHive as the platform administrator.</li></ol><p>2. Open Platform Management, then Connectors, then the Cortex tab and add a server.</p><p>3. Server name Cortex1, URL http://&lt;CORTEX_PRIVATE_IP&gt;:9001 (private IP, plain HTTP, so no certificate trust setup is needed) and the API key created in Cortex.</p><p>4. Select Test server connection, then Add this server, and confirm the save bar at the bottom of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g1Xk81RC3UyZ4lrpUUqdfw.png" /></figure><p>To prove the chain, a test case with an ip observable (8.8.8.8) was created in TheHive and all three analyzers were run from the observable page. Reports and tags came back to TheHive: VirusTotal 0/92 detections, AbuseIPDB confidence 0 with the address whitelisted, and the abuse contact from Abuse_Finder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLLayvc5Tgp9bKCMeswj4A.png" /></figure><h3>9. Phase 6: The Wazuh to TheHive integration</h3><p>Wazuh’s integrator daemon runs executables named custom-* from /var/ossec/integrations for every alert at or above a configured level, passing the alert file, an API key and a hook URL as arguments. The popular community script (custom-w2thive) targets TheHive 4.x and the legacy thehive4py 1.8.1 library, so for TheHive 6 a compact script was written against TheHive’s current REST endpoint, POST /api/v1/alert. It uses the requests module that already ships in Wazuh’s embedded Python, so no extra package is installed. The full listing is in the appendix.<br><strong>Test the API before touching Wazuh.</strong> From the manager, confirm the integration user’s key works and that an alert can be created. This isolates network and permission problems from integration problems:</p><blockquote>curl -s -H “Authorization: Bearer $TH_KEY” http://&lt;THEHIVE_PRIVATE_IP&gt;:9000/api/v1/user/current</blockquote><blockquote>curl -s -X POST http://&lt;THEHIVE_PRIVATE_IP&gt;:9000/api/v1/alert \</blockquote><blockquote>-H “Authorization: Bearer $TH_KEY” -H “Content-Type: application/json” \</blockquote><blockquote>-d ‘{“type”:”wazuh”,”source”:”wazuh”,”sourceRef”:”manual-test-001&quot;,”title”:”Manual test alert”,”description”:”test”,”severity”:2}’</blockquote><p>Then install custom-thehive and its wrapper into /var/ossec/integrations (owner root:wazuh, mode 750) and add the integration block to /var/ossec/etc/ossec.conf:</p><blockquote>&lt;ossec_config&gt;</blockquote><blockquote>&lt;integration&gt;</blockquote><blockquote>&lt;name&gt;custom-thehive&lt;/name&gt;</blockquote><blockquote>&lt;hook_url&gt;http://&lt;THEHIVE_PRIVATE_IP&gt;:9000&lt;/hook_url&gt;</blockquote><blockquote>&lt;api_key&gt;YOUR_THEHIVE_API_KEY&lt;/api_key&gt;</blockquote><blockquote>&lt;level&gt;5&lt;/level&gt;</blockquote><blockquote>&lt;alert_format&gt;json&lt;/alert_format&gt;</blockquote><blockquote>&lt;/integration&gt;</blockquote><blockquote>&lt;/ossec_config&gt;</blockquote><blockquote>sudo /var/ossec/bin/wazuh-analysisd -t &amp;&amp; echo CONFIG_OK</blockquote><blockquote>sudo systemctl restart wazuh-manager</blockquote><blockquote>sudo tail -n 5 /var/ossec/logs/integrations.log # expect: alert created: ~…</blockquote><h4><strong>How a Wazuh alert becomes a TheHive alert</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G02PfctIkkrUr1L_s2rLng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZPuF2KFi4CRuozYceVJAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXsSqnyyAOcl8TVaj0Payg.png" /></figure><p>Filtering unhelpful addresses. In early tests, alerts raised by the endpoint itself carried 127.0.0.1 as the source, an observable Cortex cannot usefully enrich. The final script uses Python’s ipaddress module and only creates an observable when the address is globally routable, so loopback, RFC 1918 private, link-local and other reserved addresses are skipped. That also keeps internal addresses from being sent to VirusTotal and AbuseIPDB through Cortex.</p><p>Field coverage and its limits. Different decoders put the source address in different fields. The script checks data.srcip (sshd and most Linux decoders), data.src_ip (Suricata EVE) and data.win.eventdata.ipAddress (Windows logons). Anything else is not extracted: add the field path to the IP_FIELDS list before relying on the integration for a new log source.</p><p>LAB SHORTCUT Lab shortcut: API key in ossec.conf and plain HTTP</p><p>The TheHive API key sits in clear text in ossec.conf and is sent as a Bearer token over unencrypted HTTP to port 9000, which bypasses Nginx. Inside a private VPC lab, with port 9000 reachable only from the Wazuh security group, that is acceptable. Beyond a lab: send integration traffic over HTTPS through Nginx (and make the script verify the certificate), keep ossec.conf readable only by root and the wazuh group, make sure port 9000 is not reachable from anywhere else, and rotate the key regularly.</p><h3>10. Phase 7: Validation against a real attacker</h3><p>Because SSH was temporarily reachable from the internet (see the note in Section 4), automated scanners began brute-forcing the lab. Wazuh detected it, and TheHive’s alert queue grew to 175 alerts, including Wazuh rule 5712 at level 10, displayed as High severity and tagged T1110 (brute force).</p><p>Context for the analyst. Password authentication is disabled by default on Ubuntu AWS images, so these attempts could not succeed. Rules 5710 and 5712 therefore represent reconnaissance noise here, not incidents. Their value in this lab is that they exercised the whole pipeline with real traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRO4ka435NGV9RU9WKapIA.png" /></figure><p>One alert, a failed login against the manager host, carried the source address 192.252.215.125 as an observable. Running the Cortex analyzers on it gave a clear picture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0l2VwmgXPxd5D89E2trHew.png" /></figure><p>The analyzer’s report counts are lower than the website’s all-time totals, most likely because the analyzer queries a limited look-back window.</p><p>Dating and scope. The verdict reflects reputation data on the stated dates (VirusTotal last analysis 24 October 2026; AbuseIPDB data up to 26 October 2026). Hosting IP addresses are frequently reassigned, so this address may not be hostile today. It is shown only to illustrate the workflow, not as a statement about the network that owns it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pESxi3KS705UEoDY0wGDng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n79gYCaEYnKs-BJBAEtXwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RvAp06fAnFI5RdijQ34gFQ.png" /></figure><p><strong>ANALYST NOTES Analyst verdict and response</strong></p><p>Reputation data rates the source as highly abusive, and its attempts could not succeed because password authentication is disabled, so nothing needs remediating on the lab beyond hygiene. In a production SOC the follow-up would be: block the address at the firewall or security group (<strong>Wazuh</strong> Active Response can automate this), search <strong>Wazuh</strong> for any successful authentication from the same IP, optionally report it to the abuse contact in the registry record, and close SSH to the internet so the noise never reaches the host.</p><h3>11. Troubleshooting log</h3><p>Every problem below actually occurred during the build. Each one is a good example of reasoning from a symptom to a root cause.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*qpsZ3uR1pi4Z0HRsIp9v3w.png" /></figure><h3>12. Security hardening checklist</h3><p>LESSON Lesson learned: exposed services are found quickly</p><p>Cortex logs showed unsolicited requests from internet scanners soon after the instance went online, while its HTTPS port was open to the internet, and the exposed SSH service attracted brute-force attempts. The security group, not the application, is the first line of defence.</p><ul><li>Scope every management port (22, 443, 9000, 9001) to a specific IP or security group, never to 0.0.0.0/0, except for a deliberate honeypot endpoint.</li><li>Never expose the Wazuh manager to the internet. To observe real attackers, expose only the victim endpoint, on purpose, and monitor it with Wazuh.</li><li>Change all default credentials on first login (TheHive admin, Cortex and Wazuh admin accounts).</li><li>Give integrations their own users and API keys, and rotate a key as soon as it appears in a chat, ticket or screenshot.</li><li>Never type secrets on a command line that is saved in shell history; read them silently and verify them before writing configuration.</li><li>Keep password authentication disabled (the default on Ubuntu AWS images) and use key-only access. That is why the brute-force attempts in this lab could not succeed.</li><li>Set the <strong>Wazuh</strong> integration threshold deliberately: level 5 gives maximum visibility in a lab; 7 to 10 keeps production queues manageable.</li><li>Beyond a lab, send integration traffic over HTTPS through Nginx and restrict ossec.conf (it holds the TheHive API key) to root and the wazuh group.</li><li>Remember that Cortex mounts the Docker socket and can start containers on its host: isolate it and expose it to as few peers as possible.</li></ul><h3>13. Cost control, cleanup and next steps</h3><p><strong>Cost and cleanup.</strong> Create an AWS Budget alert before launching anything, stop all instances when you are not working, and release unused Elastic IPs, because public IPv4 addresses are billed. TheHive’s Platinum trial is time-limited; register for a community license if the lab will keep running.</p><p><strong>Where to go next</strong></p><ul><li><strong>Wazuh Active Response:</strong> let the manager firewall-block IPs that trigger rule 5712, closing the loop from detection to response.</li><li>Detection coverage: run Atomic Red Team or MITRE Caldera against the endpoint and measure which techniques <strong>Wazuh</strong> detects.</li><li>Threat-intel feeds: import MISP indicators into <strong>Wazuh</strong> CDB lists for known-bad IP matching.</li><li>Automation: add a SOAR such as Shuffle, or TheHive automations, to run analyzers as soon as an alert arrives.</li><li>Network visibility: forward Suricata EVE logs to <strong>Wazuh</strong> for combined host and network detection.</li><li>Metrics: build <strong>Wazuh</strong> dashboards for MITRE ATT&amp;CK coverage and alert volume by agent.</li></ul><blockquote>Appendix: integration script listing</blockquote><blockquote>The script creates an ip observable only for public addresses found in the fields listed in IP_FIELDS. Replace the placeholder values in your own ossec.conf; never commit a real API key.</blockquote><blockquote><strong>/var/ossec/integrations/custom-thehive</strong> (wrapper, mode 750, owner root:wazuh)</blockquote><blockquote>#!/bin/sh</blockquote><blockquote>WPYTHON_BIN=”framework/python/bin/python3&quot;</blockquote><blockquote>SCRIPT_PATH_NAME=”$0&quot;</blockquote><blockquote>DIR_NAME=”$(cd $(dirname ${SCRIPT_PATH_NAME}); pwd -P)”</blockquote><blockquote>SCRIPT_NAME=”$(basename ${SCRIPT_PATH_NAME})”</blockquote><blockquote>WAZUH_PATH=”$(cd ${DIR_NAME}/..; pwd)”</blockquote><blockquote>PYTHON_SCRIPT=”${DIR_NAME}/${SCRIPT_NAME}.py”</blockquote><blockquote>${WAZUH_PATH}/${WPYTHON_BIN} ${PYTHON_SCRIPT} “$@”</blockquote><blockquote><strong>/var/ossec/integrations/custom-thehive.py</strong> (mode 750, owner root:wazuh)</blockquote><blockquote>#!/var/ossec/framework/python/bin/python3</blockquote><blockquote>import sys</blockquote><blockquote>import json</blockquote><blockquote>import time</blockquote><blockquote>import ipaddress</blockquote><blockquote>import requests</blockquote><blockquote>LOG_FILE = ‘/var/ossec/logs/integrations.log’</blockquote><blockquote># Alert fields that can carry a source address. Extend this list for other decoders.</blockquote><blockquote>IP_FIELDS = [</blockquote><blockquote>(‘srcip’,), # sshd and most Linux decoders</blockquote><blockquote>(‘src_ip’,), # Suricata EVE</blockquote><blockquote>(‘win’, ‘eventdata’, ‘ipAddress’), # Windows logon events</blockquote><blockquote>]</blockquote><blockquote>def log(msg):</blockquote><blockquote>with open(LOG_FILE, ‘a’) as f:</blockquote><blockquote>f.write(‘{} custom-thehive: {}\n’.format(time.strftime(‘%Y/%m/%d %H:%M:%S’), msg))</blockquote><blockquote>def is_public_ip(value):</blockquote><blockquote># Only globally routable addresses are worth sending to threat-intel services.</blockquote><blockquote># Loopback, RFC 1918 private, link-local and other reserved ranges are skipped.</blockquote><blockquote>try:</blockquote><blockquote>return ipaddress.ip_address(str(value).strip()).is_global</blockquote><blockquote>except ValueError:</blockquote><blockquote>return False</blockquote><blockquote>def get_path(obj, path):</blockquote><blockquote>for key in path:</blockquote><blockquote>if not isinstance(obj, dict):</blockquote><blockquote>return None</blockquote><blockquote>obj = obj.get(key)</blockquote><blockquote>return obj</blockquote><blockquote>def severity(level):</blockquote><blockquote>if level &gt;= 12:</blockquote><blockquote>return 4</blockquote><blockquote>if level &gt;= 9:</blockquote><blockquote>return 3</blockquote><blockquote>if level &gt;= 6:</blockquote><blockquote>return 2</blockquote><blockquote>return 1</blockquote><blockquote>def main():</blockquote><blockquote>if len(sys.argv) &lt; 4:</blockquote><blockquote>log(‘usage: custom-thehive &lt;alert_file&gt; &lt;api_key&gt; &lt;hook_url&gt;’)</blockquote><blockquote>sys.exit(1)</blockquote><blockquote>alert_file, api_key, hook_url = sys.argv[1], sys.argv[2], sys.argv[3].rstrip(‘/’)</blockquote><blockquote>with open(alert_file) as f:</blockquote><blockquote>alert = json.load(f)</blockquote><blockquote>rule = alert.get(‘rule’, {})</blockquote><blockquote>agent = alert.get(‘agent’, {})</blockquote><blockquote>data = alert.get(‘data’, {})</blockquote><blockquote>level = int(rule.get(‘level’, 0))</blockquote><blockquote>rule_id = str(rule.get(‘id’, ‘?’))</blockquote><blockquote>agent_name = agent.get(‘name’, ‘unknown’)</blockquote><blockquote>tags = [‘wazuh’, ‘rule:’ + rule_id, ‘agent:’ + agent_name]</blockquote><blockquote>mitre = rule.get(‘mitre’, {}).get(‘id’, [])</blockquote><blockquote>if isinstance(mitre, list):</blockquote><blockquote>tags += [‘mitre:’ + str(t) for t in mitre]</blockquote><blockquote>description = (</blockquote><blockquote>‘#### Wazuh alert\n\n’</blockquote><blockquote>‘- **Rule:** {} (level {})\n’</blockquote><blockquote>‘- **Agent:** {} ({})\n’</blockquote><blockquote>‘- **Time:** {}\n\n’</blockquote><blockquote>‘```\n{}\n```’</blockquote><blockquote>).format(</blockquote><blockquote>rule.get(‘description’, ‘’), level,</blockquote><blockquote>agent_name, agent.get(‘ip’, ‘?’),</blockquote><blockquote>alert.get(‘timestamp’, ‘’),</blockquote><blockquote>str(alert.get(‘full_log’, ‘’))[:3000],</blockquote><blockquote>)</blockquote><blockquote>observables, seen = [], set()</blockquote><blockquote>for path in IP_FIELDS:</blockquote><blockquote>value = get_path(data, path)</blockquote><blockquote>if value and value not in seen and is_public_ip(value):</blockquote><blockquote>seen.add(value)</blockquote><blockquote>observables.append({‘dataType’: ‘ip’, ‘data’: value, ‘message’: ‘Source IP from Wazuh’, ‘tags’: [‘wazuh’]})</blockquote><blockquote>body = {</blockquote><blockquote>‘type’: ‘wazuh’,</blockquote><blockquote>‘source’: ‘wazuh’,</blockquote><blockquote>‘sourceRef’: str(alert.get(‘id’, int(time.time() * 1000))),</blockquote><blockquote>‘title’: ‘[Wazuh] {} on {}’.format(rule.get(‘description’, ‘alert’), agent_name),</blockquote><blockquote>‘description’: description,</blockquote><blockquote>‘severity’: severity(level),</blockquote><blockquote>‘tags’: tags,</blockquote><blockquote>‘observables’: observables,</blockquote><blockquote>}</blockquote><blockquote>try:</blockquote><blockquote>r = requests.post(</blockquote><blockquote>hook_url + ‘/api/v1/alert’,</blockquote><blockquote>headers={‘Authorization’: ‘Bearer ‘ + api_key, ‘Content-Type’: ‘application/json’},</blockquote><blockquote>json=body,</blockquote><blockquote>timeout=15,</blockquote><blockquote>)</blockquote><blockquote>if r.status_code in (200, 201):</blockquote><blockquote>log(‘alert created: {}’.format(r.json().get(‘_id’, ‘?’)))</blockquote><blockquote>else:</blockquote><blockquote>log(‘ERROR {} {}’.format(r.status_code, r.text[:300]))</blockquote><blockquote>except Exception as e:</blockquote><blockquote>log(‘EXCEPTION {}’.format(e))</blockquote><blockquote>if __name__ == ‘__main__’:</blockquote><blockquote>main()</blockquote><p>Prepared by <strong>Maryam</strong>, <strong>Wazuh Ambassador</strong>. Built with Wazuh and Cortex (open source), TheHive (free community licence), and reputation data from AbuseIPDB and VirusTotal.</p><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors%20program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2759bc5827b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WAZUH SIEM Ransomware Protection]]></title>
            <link>https://medium.com/@maryamliaqat4583/wazuh-siem-ransomware-protection-ff60aa840b7c?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff60aa840b7c</guid>
            <category><![CDATA[ransomware-protection]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 17:15:11 GMT</pubDate>
            <atom:updated>2026-09-21T17:15:11.661Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>1. Lab Objective</strong></h3><p>This lab demonstrates how Wazuh SIEM detects and responds to real ransomware activity on a Windows endpoint. The lab follows the official Wazuh blog methodology and covers:</p><p>• <strong>Pre-Execution Detection:</strong> VirusTotal integration scans files written to disk</p><p>• <strong>Active Response:</strong> Automatically removes detected malware before execution</p><p>• <strong>Sysmon Monitoring:</strong> Detects ransomware behaviors (shadow copy deletion, firewall changes)</p><p>• <strong>FIM Monitoring:</strong> Real-time file integrity monitoring on Documents, Downloads, Desktop</p><p>• <strong>Custom Rules:</strong> Targeting MITRE ATT&amp;CK T1486, T1490, T1562</p><h3><strong>2. Lab Environment</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*dH5xzbk_8taQ3-DF8SPEfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TmUEfYnBIsnNkMO3oTx1Vg.png" /></figure><h3><strong>3. Windows Agent Configuration</strong></h3><h4>3.1 FIM Configuration (ossec.conf)</h4><p>The following directories were added inside the &lt;syscheck&gt; block in the Windows agent ossec.conf file for real-time file monitoring:</p><blockquote>&lt;directories realtime=”yes”&gt;C:\Users\*\Downloads&lt;/directories&gt;</blockquote><blockquote>&lt;directories realtime=”yes”&gt;C:\Users\*\Documents&lt;/directories&gt;</blockquote><blockquote>&lt;directories realtime=”yes”&gt;C:\Users\*\Desktop&lt;/directories&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*7uHV5_WSfwF-XR6J4eBXcw.png" /></figure><h3>3.2 Active Response Script (remove-threat.py)</h3><p>A Python script was created at the following path to automatically remove files detected as malicious by VirusTotal:</p><blockquote>C:\Program Files (x86)\ossec-agent\active-response\bin\remove-threat.py</blockquote><p>The script was created using PowerShell Here-String and then compiled to .exe using PyInstaller:</p><blockquote>pip install pyinstaller</blockquote><blockquote>cd C:\Users\Administrator</blockquote><blockquote>pyinstaller -F “C:\Program Files (x86)\ossec-agent\active-response\bin\remove-threat.py”</blockquote><blockquote>Copy-Item “.\dist\remove-threat.exe” “C:\Program Files (x86)\ossec-agent\active-response\bin\”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXF0V6m7I5KB0GMzAf4Wdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*PAH60eytdKarwjJC7_5XrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTlBQp0Nd149brslSnMEFA.png" /></figure><h3>3.3 Sysmon Installation</h3><p>Sysmon was installed on the Windows agent to capture detailed process and event logs:</p><blockquote>New-Item -ItemType Directory -Path C:\Temp -Force</blockquote><blockquote>Invoke-WebRequest -Uri “https://download.sysinternals.com/files/Sysmon.zip&quot; -OutFile “C:\Temp\Sysmon.zip”</blockquote><blockquote>Expand-Archive -Path “C:\Temp\Sysmon.zip” -DestinationPath “C:\Temp”</blockquote><blockquote>&amp; “C:\Temp\Sysmon64.exe” -accepteula -i “C:\Temp\sysmonconfig.xml”</blockquote><p>The following localfile block was added to ossec.conf to forward Sysmon logs to Wazuh:</p><blockquote>&lt;localfile&gt;</blockquote><blockquote>&lt;location&gt;Microsoft-Windows-Sysmon/Operational&lt;/location&gt;</blockquote><blockquote>&lt;log_format&gt;eventchannel&lt;/log_format&gt;</blockquote><blockquote>&lt;/localfile&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2PmS1e5Z0Oug_ObJb1FP_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*8ZkSeuNcsn5uEqjhSwp2sw.png" /></figure><h3><strong>4. Wazuh Server Configuration</strong></h3><h4>4.1 VirusTotal Integration</h4><p>The following configuration was added to /var/ossec/etc/ossec.conf on the Wazuh Manager:</p><blockquote>&lt;integration&gt;</blockquote><blockquote>&lt;name&gt;virustotal&lt;/name&gt;</blockquote><blockquote>&lt;api_key&gt;YOUR_VIRUSTOTAL_API_KEY&lt;/api_key&gt;</blockquote><blockquote>&lt;rule_id&gt;554,550&lt;/rule_id&gt;</blockquote><blockquote>&lt;alert_format&gt;json&lt;/alert_format&gt;</blockquote><blockquote>&lt;/integration&gt;</blockquote><h3>4.2 Active Response Configuration</h3><blockquote>&lt;command&gt;</blockquote><blockquote>&lt;name&gt;remove-threat&lt;/name&gt;</blockquote><blockquote>&lt;executable&gt;remove-threat.exe&lt;/executable&gt;</blockquote><blockquote>&lt;timeout_allowed&gt;no&lt;/timeout_allowed&gt;</blockquote><blockquote>&lt;/command&gt;</blockquote><blockquote>&lt;active-response&gt;</blockquote><blockquote>&lt;disabled&gt;no&lt;/disabled&gt;</blockquote><blockquote>&lt;command&gt;remove-threat&lt;/command&gt;</blockquote><blockquote>&lt;location&gt;local&lt;/location&gt;</blockquote><blockquote>&lt;rules_id&gt;87105&lt;/rules_id&gt;</blockquote><blockquote>&lt;/active-response&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*THM-J-ekSioOh-N4Q_y5Xg.png" /></figure><h3>4.3 Custom Detection Rules</h3><h4>virustotal_rules.xml</h4><blockquote>&lt;group name=”virustotal,”&gt;</blockquote><blockquote>&lt;rule id=”100092&quot; level=”12&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;657&lt;/if_sid&gt;</blockquote><blockquote>&lt;match&gt;Successfully removed threat&lt;/match&gt;</blockquote><blockquote>&lt;description&gt;Threat removed: $(parameters.alert.data.virustotal.source.file)&lt;/description&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;rule id=”100093&quot; level=”12&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;657&lt;/if_sid&gt;</blockquote><blockquote>&lt;match&gt;Error removing threat&lt;/match&gt;</blockquote><blockquote>&lt;description&gt;Error removing threat file&lt;/description&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;/group&gt;</blockquote><h4>ransomware_rules.xml</h4><blockquote>&lt;group name=”malware,ransomware”&gt;</blockquote><blockquote>&lt;rule id=”100615&quot; level=”12&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;61603&lt;/if_sid&gt;</blockquote><blockquote>&lt;field name=”win.eventdata.CommandLine” type=”pcre2&quot;&gt;(?i)vssadmin.*delete.*shadows&lt;/field&gt;</blockquote><blockquote>&lt;description&gt;Volume shadow copy deleted. Potential ransomware.&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1490&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;rule id=”100603&quot; level=”10&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;92042&lt;/if_sid&gt;</blockquote><blockquote>&lt;field name=”win.eventdata.CommandLine” type=”pcre2&quot;&gt;netsh advfirewall set currentprofile state off&lt;/field&gt;</blockquote><blockquote>&lt;description&gt;Windows firewall disabled.&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1562&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;rule id=”100620&quot; level=”12&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;61603&lt;/if_sid&gt;</blockquote><blockquote>&lt;field name=”win.eventdata.CommandLine” type=”pcre2&quot;&gt;(?i)bcdedit.*recoveryenabled.*No&lt;/field&gt;</blockquote><blockquote>&lt;description&gt;System recovery disabled. Possible ransomware.&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1059&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;rule id=”100201&quot; level=”14&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;91802&lt;/if_sid&gt;</blockquote><blockquote>&lt;field name=”win.eventdata.scriptBlockText” type=”pcre2&quot;&gt;(?i)README_FOR_DECRYPT|YOUR FILES ARE ENCRYPTED&lt;/field&gt;</blockquote><blockquote>&lt;description&gt;Ransomware: Ransom note created via PowerShell&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1486&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;rule id=”100200&quot; level=”12&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;91802&lt;/if_sid&gt;</blockquote><blockquote>&lt;field name=”win.eventdata.scriptBlockText” type=”pcre2&quot;&gt;(?i)\.(wannacry|locked|encrypted)|New-Item.*wannacry&lt;/field&gt;</blockquote><blockquote>&lt;description&gt;Ransomware: Suspicious file extension via PowerShell&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1486&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;/group&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1Gpx8Usw3Ghg0G5wxBAUw.png" /></figure><h3><strong>5. Ransomware Simulation</strong></h3><h4>5.1 Simulation Commands (Windows PowerShell — Admin)</h4><p>The following commands were executed on the Windows agent to simulate ransomware behavior:</p><h4>Step 1 — Environment Cleanup</h4><blockquote>Restart-Service WazuhSvc</blockquote><blockquote>Start-Sleep -Seconds 10</blockquote><blockquote>Remove-Item “C:\Users\Administrator\Documents\RansomwareSim” -Recurse -Force -ErrorAction SilentlyContinue</blockquote><blockquote>Remove-Item “C:\Users\Administrator\Downloads\test-malware.exe” -Force -ErrorAction SilentlyContinue</blockquote><h4>Step 2 — EICAR Test File Creation (VirusTotal Trigger)</h4><blockquote># Create the official EICAR test file (safe, industry-standard AV test string)</blockquote><blockquote>$eicarString = “X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*”</blockquote><blockquote>Set-Content -Path “C:\Users\Administrator\Downloads\test-malware.exe” -Value $eicarString -NoNewline -Encoding ASCII</blockquote><blockquote># VirusTotal recognizes the EICAR signature and returns a positive detection (Rule 87105)</blockquote><blockquote># This automatically triggers the remove-threat.exe Active Response, which deletes the file (Rule 100092)</blockquote><blockquote>Start-Sleep -Seconds 60</blockquote><h4>Step 3 — Ransomware Behavior Simulation</h4><blockquote># Disable firewall — triggers Rule 100603</blockquote><blockquote>netsh advfirewall set currentprofile state off</blockquote><blockquote># Delete shadow copies — triggers Rule 100615</blockquote><blockquote>vssadmin delete shadows /all /quiet</blockquote><blockquote># Disable system recovery — triggers Rule 100620</blockquote><blockquote>bcdedit /set {default} recoveryenabled No</blockquote><blockquote># Simulate mass file encryption across many folders — reflects real-world ransomware behavior</blockquote><blockquote>$baseDir = “C:\Users\Administrator\Documents\RansomwareSim”</blockquote><blockquote>New-Item -Path $baseDir -ItemType Directory -Force</blockquote><blockquote>$extensions = @(“.locked”, “.encrypted”, “.wannacry”)</blockquote><blockquote>for ($i = 1; $i -le 20; $i++) {</blockquote><blockquote>$subDir = Join-Path $baseDir “Folder_$i”</blockquote><blockquote>New-Item -Path $subDir -ItemType Directory -Force</blockquote><blockquote>$ext = $extensions[$i % $extensions.Count]</blockquote><blockquote>for ($j = 1; $j -le 5; $j++) {</blockquote><blockquote>$file = Join-Path $subDir “document_$j$ext”</blockquote><blockquote>Set-Content -Path $file -Value “ENCRYPTED — $(Get-Date)”</blockquote><blockquote>}</blockquote><blockquote># Ransom note dropped in every folder — triggers Rule 100201 x20</blockquote><blockquote>$note = Join-Path $subDir “README_FOR_DECRYPT.txt”</blockquote><blockquote>Set-Content -Path $note -Value “YOUR FILES ARE ENCRYPTED! PAY NOW — TEST ONLY”</blockquote><blockquote>}</blockquote><blockquote># Result: 20 directories, 100 encrypted files (mixed extensions), 20 ransom notes</blockquote><blockquote># Triggers FIM Rule 554/550 at volume + Rule 100200 (extension pattern) + Rule 100201 (ransom note)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*q4zmyG80PCY_hoDFzPgXQA.png" /></figure><p>Step 4 — Restore System After Test</p><blockquote>netsh advfirewall set currentprofile state on</blockquote><blockquote>bcdedit /set {default} recoveryenabled Yes</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*c9x2TFz--P03Bm1oRssSdw.png" /></figure><h3><strong>6. Detection Results &amp; Alerts</strong></h3><p><em>Note: The alerts, screenshots, and totals below were captured using the original single-file simulation (Section 5, prior version), before the EICAR test file and the expanded multi-directory simulation were added to Section 5. As the AWS lab environment (Wazuh Manager and Windows Agent) has since been decommissioned, these results were not re-captured. Based on the detection logic already configured (Sections 4.1–4.3), the updated simulation would be theoretically expected to additionally generate: Rule 87105 (positive VirusTotal detection on the EICAR file), Rule 100092 (Active Response successfully removing the detected file), Rule 100200/100201 (suspicious extension and ransom note detection across 20 directories), and a substantially higher volume of Rule 554/550 FIM events (up to ~120 events) from the mass file and directory creation.</em></p><h3>6.1 Alerts Generated in Wazuh Dashboard</h3><p>The following alerts were successfully triggered after the simulation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*kKVX1bGQc3wjYdn0XMtQMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*Lz4EdnLcAXocKMSxW0nUNQ.png" /></figure><h3>6.2 Key Alert Details</h3><h4>Rule 100620 — System Recovery Disabled</h4><p>This alert confirmed that ransomware’s attempt to disable system recovery was successfully detected:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*LIwv9JOHzfXHiXhy4u_VcQ.png" /></figure><h4>Rule 554 — FIM File Detection</h4><p>Wazuh FIM detected creation of both the .wannacry file and README_FOR_DECRYPT.txt in real-time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*qFsCBk3JF9zDjCZRYnFbYg.png" /></figure><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff60aa840b7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated CVE & Vulnerability Intelligence Tracking Pipeline]]></title>
            <link>https://medium.com/@maryamliaqat4583/automated-cve-vulnerability-intelligence-tracking-pipeline-eaf0b7e24cc5?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaf0b7e24cc5</guid>
            <category><![CDATA[cve]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 07:42:05 GMT</pubDate>
            <atom:updated>2026-08-08T07:42:05.489Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Built using n8n Workflow Automation</em></p><h3>1. Introduction</h3><p>Vulnerability Management is a core pillar of any organization’s cyber security posture. New Common Vulnerabilities and Exposures (CVEs) are published every day, and manually tracking which of these affect an organization’s software stack is time-consuming and error-prone. This task delivers an automated pipeline, built on the n8n workflow automation platform, that continuously fetches newly disclosed vulnerabilities from multiple authoritative sources, cross-references known-exploited and publicly exploitable vulnerabilities, normalizes the data, and produces a ready-to-consume report.</p><p>The objective is to ensure the organization stays up to date on any CVEs affecting its assets — including those with public exploits available — so that patches can be applied in a timely manner, reducing the window of exposure to attackers.</p><h3>2. Objective &amp; Purpose</h3><p><strong>Domain: Vulnerability Management &amp; Assessment</strong></p><p>Purpose: To keep the organization continuously updated on newly disclosed CVEs (including public Proof-of-Concept exploits and affected product versions) so that vulnerable applications and devices can be patched in a timely manner, minimizing exposure to active threats.</p><p><strong>Key goals of the automation:</strong></p><p>• Automatically fetch newly published CVEs on a recurring schedule (no manual checking required).</p><p>• Pull vulnerability intelligence in parallel from multiple independent sources — NVD, CISA KEV, CIRCL, and Exploit-DB — for broader coverage.</p><p>• Identify which CVEs have a publicly available exploit / Proof-of-Concept (PoC), using both CISA’s confirmed-exploitation data and Exploit-DB’s exploit catalog.</p><p>• Normalize and merge the multi-source data into a single, consistent dataset.</p><p>• Deliver the final, consolidated dataset in a clean, shareable Excel (.xlsx) report.</p><h3>3. Data Sources / Platforms Used</h3><p>The workflow pulls vulnerability intelligence from four authoritative, publicly accessible platforms, queried in parallel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*BlhHM2W4mTsYi5bJevg65w.png" /></figure><p>Combining a government-maintained feed (NVD, CISA) with community/CERT sources (CIRCL, Exploit-DB) broadens coverage and improves confidence that CVEs with real-world exploitation risk are not missed.</p><h3>4. Tools &amp; Technology</h3><p>• n8n — low-code workflow automation platform used to orchestrate the entire pipeline.</p><p>• HTTP Request nodes — used to call the NVD, CISA KEV, CIRCL, and Exploit-DB endpoints.</p><p>• JavaScript Code node (Normalize CVE Data) — used to merge and reshape the raw responses from all four sources into a single, uniform dataset.</p><p>• Convert to File node — used to export the final normalized dataset as an .xlsx report.</p><p>• Schedule Trigger node — used to run the workflow automatically on a recurring interval.</p><h3>5. Workflow Architecture</h3><p>The diagram below shows the current end-to-end workflow as built in n8n. The pipeline runs on a schedule and fetches data from four sources in parallel — NVD, CISA KEV, CIRCL, and Exploit-DB — before normalizing all of it into one dataset and exporting the result to Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*rnjov8AcBcpJGUBeNp4KaA.png" /></figure><p><strong>Pipeline stages, in order:</strong></p><p>• Schedule Trigger — starts the workflow automatically on a recurring interval.</p><p>• HTTP Request — fetches the latest published CVEs from the NVD API.</p><p>• HTTP Request1 — fetches the current CISA Known Exploited Vulnerabilities catalog.</p><p>• HTTP Request2 (CIRCL) — fetches the most recently published/modified CVE records from the CIRCL vulnerability database.</p><p>• HTTP Request4 (Exploit-DB) — downloads the Exploit-DB exploit index (files_exploits.csv) to cross-reference CVEs with publicly available exploits.</p><p>• Normalize CVE Data (Code node) — merges and reshapes the four source responses into one consistent set of fields (CVE ID, severity, CVSS score, affected products, exploit references).</p><p>• Convert to File — generates the final .xlsx report, ready for download and sharing with the patching team.</p><h3>6. Node-by-Node Breakdown</h3><h3>6.1 Schedule Trigger</h3><p>Triggers the workflow automatically at a fixed interval so vulnerability data is refreshed continuously without manual intervention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*LhkYJMM8WBqtXU3qteNMMw.png" /></figure><h3>6.2 HTTP Request — NVD (Fetch CVEs)</h3><p>Calls the NVD REST API (services.nvd.nist.gov) to retrieve the most recently published CVEs, including their CVSS score, severity, and affected product configurations (CPEs).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*yYNxbSZjlh91xmMUipmB9Q.png" /></figure><h3>6.3 HTTP Request1 — CISA KEV Catalog</h3><p>Calls the CISA Known Exploited Vulnerabilities feed to cross-reference which CVEs are confirmed to be actively exploited in the wild a strong signal for patch prioritization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*SWYajZhbdlH03Qu0njIDUg.png" /></figure><h3>6.4 HTTP Request2 — CIRCL</h3><p>A GET request to vulnerability.circl.lu/api/last, pulling the most recently published or modified CVE records from CIRCL’s independent vulnerability database. Each record includes the CVE ID, aliases (e.g. GHSA identifiers), publish/modified timestamps, and a detailed technical description as shown below, this run returned 30 items.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*3Z83j0G4yliefSwZXsKstw.png" /></figure><h3>6.5 HTTP Request4 — Exploit-DB</h3><p>Downloads the Exploit-DB exploit index directly from its GitLab mirror (files_exploits.csv), returned as a file. This dataset is used to flag CVEs that already have a publicly documented exploit, strengthening prioritization alongside the CISA KEV signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*7rumMj0hcNwR96jMSQlbmQ.png" /></figure><h3>6.6 Code Node — Normalize CVE Data</h3><p>A JavaScript Code node merges and reshapes the raw responses from all four sources — NVD, CISA KEV, CIRCL, and Exploit-DB — into a flat, uniform structure with the fields needed downstream: CVE ID, publish date, description, CVSS score, severity, affected products, and exploit/reference links.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*0rKTchavf16jUrbPOY10rA.png" /></figure><h3>6.7 Convert to File — Excel Export</h3><p>Converts the final, normalized multi-source dataset into a downloadable Excel (.xlsx) file, giving the security/patching team a clean, shareable report of the CVEs that require attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*VocqMdYvXqdJV4qPkQHy4w.png" /></figure><h3>7. Sample Output</h3><p>The updated workflow was executed end-to-end and completed successfully across all nodes, now pulling and merging data from four independent sources instead of two. A sample record from the original validation run (CVE-1999–0095) demonstrates the normalized schema:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*94aEGEBZSIeHv1zpELtjBg.png" /></figure><p>With CIRCL added, a single scheduled run now also pulls 30 additional recently-published/modified CVE records directly from CIRCL (see Figure 5), and the Exploit-DB source contributes a continuously updated exploit index (~10.2 MB CSV) that the Normalize step cross-references against incoming CVEs to flag those with known public exploits.</p><p>The final workflow execution completed with all nodes reporting success, and the Excel report was generated and made available for download via the Convert to File node.</p><h3>8. Conclusion</h3><p>This automation gives the organization a continuously refreshed feed of relevant CVEs, now drawing on four independent, complementary sources — NVD and CISA KEV for authoritative government-grade data, and CIRCL and Exploit-DB for broader community-driven coverage and exploit visibility. By running on an automatic schedule, merging multi-source intelligence, and exporting a clean Excel report, it removes the manual burden of vulnerability tracking and directly supports faster, better-prioritized patching decisions.</p><h3>Recommendations for Future Enhancement</h3><p>• Add product-specific matching (e.g., automatically flag only CVEs affecting the organization’s actual software/hardware inventory).</p><p>• Send automated Slack/Email/Teams alerts for newly discovered Critical CVEs with public exploits.</p><p>• Integrate directly with a ticketing system (e.g., Jira) to auto-create patch tickets.</p><p>• Store historical CVE data in a database for trend analysis and reporting over time.</p><p>• Re-introduce an explicit severity filtering step (High/Critical only) within or after the Normalize node, now that four sources are merged.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaf0b7e24cc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOC Aggregation Automation]]></title>
            <link>https://medium.com/@maryamliaqat4583/ioc-aggregation-automation-6efbcb99070a?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6efbcb99070a</guid>
            <category><![CDATA[ioc-automation]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 07:35:51 GMT</pubDate>
            <atom:updated>2026-08-08T07:35:51.461Z</atom:updated>
            <content:encoded><![CDATA[<p>An n8n Workflow Aggregating 9 Threat Intelligence Sources</p><h3>1. Purpose</h3><p>Security Operations teams need continuous visibility into newly published Indicators of Compromise (IOCs) — malicious IPs, domains, URLs, and file hashes — to detect and block threats proactively. This workflow automates the collection of IOCs from nine independent, free/open threat-intelligence feeds, normalizes them into one consistent structure, removes duplicates, and exports the result as an Excel-compatible spreadsheet for the SOC/Threat Intel team.</p><h3>2. Platform &amp; Tools Used</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*ZvOO5hJyBAKId4oT_gq9jA.png" /></figure><h3>3. Data Sources Used (9 Total)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*MC0aPMVlf7MdwLbFpvyMjw.png" /></figure><p>AlienVault OTX: <a href="https://otx.alienvault.com/">https://otx.alienvault.com/</a></p><p>ThreatFox / URLhaus / Feodo Tracker / MalwareBazaar: <a href="https://abuse.ch/">https://abuse.ch/</a></p><p>Blocklist.de: <a href="https://www.blocklist.de/">https://www.blocklist.de/</a></p><p>Spamhaus DROP: <a href="https://www.spamhaus.org/drop/">https://www.spamhaus.org/drop/</a></p><p>OpenPhish: <a href="https://openphish.com/">https://openphish.com/</a></p><p>CINS Army List: <a href="http://cinsscore.com/">http://cinsscore.com/</a></p><h3>4. Architecture Overview</h3><p>The workflow runs automatically on a schedule and executes the following stages:</p><p>● Schedule Trigger — runs the workflow automatically every 6 hours.</p><p>● 9 parallel/chained HTTP Request nodes — one per source above, each calling that platform’s public API or feed URL (with a free Auth-Key/API key where required).</p><p>● A single consolidated Code (JavaScript) node — reads the raw output of all 9 upstream nodes (using n8n’s $(‘Node Name’) expression), normalizes every source into one common schema, merges everything into one list, and removes duplicate IOC values.</p><p>● Convert to File — converts the final deduplicated list into a downloadable .xlsx spreadsheet.</p><p>On its most recent run, the workflow processed all 9 sources and produced 42,922 unique, deduplicated IOC records in a single execution.</p><h3>5. Step-by-Step Implementation</h3><h3>5.1 Provisioning n8n on AWS EC2</h3><p>An Ubuntu EC2 instance was launched on AWS, and Docker was installed to host n8n in a container, exposed on port 5678.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*VxFyMI9arAKGQFZ3vLRpTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*8ttoST7ZdL-na0cjOHPr9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*8JtWjj_tDJmbZixMlMrfPA.png" /></figure><h3>5.2 Configuring Each Source Node</h3><p>Each of the 9 sources was added as its own HTTP Request node, configured with the correct method, endpoint, and (where required) an Auth-Key/API-key header obtained from a free account on that platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*4wfDWPPCzpcjduWcxZ99tw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*E-vRq3WDlby0nnqK_-WWVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*sTWTMsRQmoz304qHhUSddA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*G_LcChyqNEl2k7UozDlUMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*2QYJ9Rjf0KkofYAwIEXSFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*Tz1ANQvNorjLXUJfVAtOMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*P5Y_srIsejSuQFAe1lMUyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*PrtTw3yOFEQodw11cxQ5Kw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*L9nukvusNIYag_IaARhRbw.png" /></figure><h3>5.3 Consolidating and Normalizing All Sources</h3><p>A single Code node references every upstream HTTP node by name, extracts the relevant indicator fields from each source’s unique response format, tags each record with its originating source, merges all 9 lists together, and removes duplicate IOC values before passing the result downstream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*RPty0_mYQ9O4Ixa2Pp8I-A.png" /></figure><h3>5.4 Complete Pipeline &amp; Output</h3><p>All nodes were connected end-to-end, tested, and the workflow was published so it now runs automatically every 6 hours, producing a fresh, deduplicated Excel export on every run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*BAqxdNoPT7UVHjg0sxXkbw.png" /></figure><h3>6. Excel Output Schema</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*1zWNrA_Hs62GFJccYfMnHg.png" /></figure><h3>7. Results</h3><p>On its most recent execution, the workflow successfully queried all 9 threat-intelligence sources in a single run and produced 42,922 unique, deduplicated IOC records, confirming the pipeline is stable and ready for continued unattended, scheduled operation.</p><h3>8. Future Enhancements</h3><p>● Automatically email or upload the generated Excel file to the SOC team after every scheduled run, removing the need for manual download.</p><p>● Persist historical IOCs across runs (append rather than regenerate) by writing to a cloud spreadsheet or database, so trend analysis over time is possible.</p><p>● Add a confidence-scoring step to prioritize which IOCs should be pushed into firewalls/SIEM block-lists automatically versus reviewed manually.</p><p>● Add alerting (Slack/Teams/email) for newly seen indicators matching the organization’s own asset/IP ranges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6efbcb99070a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Weekly Vulnerability& Patch Report Pipeline]]></title>
            <link>https://medium.com/@maryamliaqat4583/automated-weekly-vulnerability-patch-report-pipeline-11c794ef4664?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/11c794ef4664</guid>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[n8n-workflow-automation]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 05:49:50 GMT</pubDate>
            <atom:updated>2026-07-30T05:49:50.045Z</atom:updated>
            <content:encoded><![CDATA[<p><em>End-to-End Implementation Using Wazuh, n8n, Ollama, and Slack</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3H-LLS2qn6pf6JzC_TJOIQ.png" /></figure><h3>1. Project Overview</h3><p>This document describes the design and implementation of a fully automated weekly vulnerability management pipeline. The system continuously monitors endpoints using the Wazuh SIEM platform, enriches detected vulnerabilities with authoritative threat intelligence, ranks them by real-world risk, generates AI-written remediation guidance, and delivers a polished PDF report directly to a Slack channel every week — with no manual intervention required.</p><p>The pipeline combines four core technologies:</p><p>• Wazuh — open-source SIEM and endpoint agent platform used for vulnerability detection across monitored hosts.</p><p>• n8n — a self-hosted workflow automation engine that orchestrates every step of the pipeline.</p><p>• Ollama (running a local LLaMA model) — a locally hosted large language model that generates remediation recommendations, keeping all vulnerability data on-premises.</p><p>• Slack — the delivery channel where the finished report and summary are posted automatically.</p><p>The remainder of this document walks through the implementation in the order it was built: infrastructure setup, data collection, enrichment, risk scoring, AI-assisted remediation, report generation, and final delivery.</p><h3>2. Wazuh SIEM Setup &amp; Agent Deployment</h3><p>The foundation of the pipeline is Wazuh’s vulnerability detection module, which scans installed packages on each monitored endpoint and cross-references them against known vulnerability databases. This required enabling the module on the Wazuh manager and deploying agents to the endpoints being monitored.</p><h3>2.1 Enabling Vulnerability Detection</h3><p>The Wazuh manager configuration file (ossec.conf) was edited to enable the vulnerability-detection module, along with index status reporting and a periodic feed-update interval so the vulnerability database stays current.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*ysCGtCBr3HmbgKj15HoALQ.png" /></figure><p>After restarting the manager, the Wazuh logs were monitored to confirm the vulnerability scanner module started successfully and completed its initial database decompression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*ThKYQefUsTJ-ybb3zxf_TQ.png" /></figure><h3>2.2 Deploying Agents</h3><p>Two endpoints were enrolled as monitored agents: a Linux server and a Windows server. Each agent was installed and pointed at the Wazuh manager’s private IP so it could report back detected packages and vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*p-zcmhFrbUCCg1RdnnAyaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*0aFt_dhxpqQPxrPeofmJIw.png" /></figure><p>Once both agents were online, the Wazuh dashboard confirmed both endpoints were actively connected and reporting, which is the prerequisite for any vulnerability data to flow into the automation pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*g-LqrL12gpTUY0UvP_emGg.png" /></figure><h3>3. Automation Platform &amp; Local AI Setup</h3><p>With vulnerability data being collected by Wazuh, the next step was standing up the automation engine (n8n) and a locally hosted language model (Ollama) that would later be used to draft remediation guidance without sending sensitive vulnerability data to an external AI provider.</p><h3>3.1 Deploying n8n</h3><p>n8n was deployed as a Docker container on the same EC2 instance, with its data volume persisted to disk and the editor exposed on port 5678.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*cRAxkOu7lZKcUBoC4GHt1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*maGY6lIlvLxartcg0axAIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*OaKqpTpdE48hq90yTsvEZA.png" /></figure><h3>3.2 Installing Ollama and a Local Language Model</h3><p>Ollama was installed directly on the host to serve a local LLM. Because the EC2 instance has no GPU, Ollama automatically fell back to CPU-only inference mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*BKWOSxiGVzWTKBZiV4Y3mw.png" /></figure><p>Since n8n runs inside a Docker container while Ollama runs on the host, Ollama’s systemd service was reconfigured to listen on all network interfaces (0.0.0.0) rather than just localhost, so that requests from inside the Docker container could reach it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*hwnf80XJSzabzIIVWQ91GA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*sQpWtyZoON3dks9pVsM-Bw.png" /></figure><p>A quick sanity check confirmed the model was installed and could generate a response through the API before it was wired into the n8n workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*N0VlOJqE-hgvgmzLy_iA0w.png" /></figure><h3>4. Vulnerability Data Collection Workflow</h3><p>With the infrastructure in place, the n8n workflow itself was built. The workflow is triggered automatically every Monday at 8 AM and begins by pulling raw vulnerability data from Wazuh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*5whGzVaNNyP2bwIeZzuB-g.png" /></figure><p>For context, the underlying Wazuh dashboard shows the overall scale of what is being monitored — in this environment, thousands of individual vulnerability findings across severity levels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*KVpbtUsdqIJXAQMuir2e4w.png" /></figure><p>Because a single package vulnerability can be reported once per affected host, the raw results were deduplicated and the affected hosts merged into a single record per CVE, reducing noise before further processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*0NrnHoBVr5knBB9aONq4Qg.png" /></figure><p>A Limit node was included in the workflow to cap how many deduplicated CVEs are carried forward into the downstream enrichment steps, keeping processing time and API usage predictable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*NNhpVsgX17eyAolSZ8BSiQ.png" /></figure><h3>5. Known Exploited Vulnerabilities (KEV) Enrichment</h3><p>Not all vulnerabilities carry the same real-world urgency. CISA maintains a public catalog of vulnerabilities that are known to be actively exploited in the wild. Flagging matches against this catalog is one of the strongest signals for prioritization, so the workflow fetches this catalog directly from CISA’s GitHub repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*MxAKebf_7aqCwNdaTG6KbQ.png" /></figure><p>A Code node parses the raw catalog JSON and extracts the set of CVE IDs it contains, which is then used as a fast lookup table for matching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*wYMTnJyk_FONN1zAySmhig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*PH29Sy2fej3WNDJNJzU70Q.png" /></figure><p>The deduplicated Wazuh findings are then matched against the KEV set, and every CVE record is tagged with an isKev flag indicating whether it is a confirmed actively exploited vulnerability — this flag later drives both risk scoring and the priority callouts in the final report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*4U0HI6aDpMh046tXjfna5Q.png" /></figure><h3>6. NVD Data Enrichment</h3><p>Wazuh’s raw output does not always include a full human-readable description or an up-to-date CVSS vector for each CVE. To fill this gap, the workflow loops through every CVE and queries the National Vulnerability Database (NVD) individually for its official description, CVSS base score, and severity rating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*K5QN_wNbfKQisNu7yhkLRA.png" /></figure><p>An NVD API key was requested and activated to allow a higher request rate than the anonymous tier permits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2r52EpQxTITihwS2tXw8Rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*GYSjTUs2coc4hgJgQk4sZw.png" /></figure><p>The relevant fields — description, CVSS vector, base score, and severity — are extracted from each NVD response and merged back onto the original CVE record from Wazuh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*ZoSbehV2m8gkU3cWetOfTQ.png" /></figure><p>Because the NVD API enforces strict per-second rate limits, a short wait was inserted between each loop iteration to avoid throttling or request failures during the enrichment loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*6OafoH6MJsPCEH3yp0_koA.png" /></figure><h3>7. Exploit Probability Scoring &amp; Risk Ranking</h3><p>CVSS alone measures theoretical severity, not the likelihood a vulnerability will actually be exploited. To capture that dimension, the workflow queries the EPSS (Exploit Prediction Scoring System) API, which returns a probability score for each CVE based on real-world exploitation data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*xso7YIuGDhKab-eNB-xRoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*yZBeEVSTgo_Gtx-vL6wRkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*2V0lMiN77-Wn3kQjLTeCTA.png" /></figure><p>With CVSS severity, EPSS exploit probability, and the KEV flag all available for every CVE, the workflow computes a composite risk score for each finding and ranks all vulnerabilities to select the top 25 highest-risk items for the weekly report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*cuTztc-FBPKfu7uNYrP2Xg.png" /></figure><p>The top 25 CVEs are then regrouped by the software package they affect, since remediation guidance is most useful when it is organized around “what needs to be patched,” not individual CVE IDs in isolation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*M1ltKegUPw-QkDHLXm7lSA.png" /></figure><h3>8. AI-Generated Remediation Guidance</h3><p>The package-grouped CVE data is sent to the locally hosted Ollama model with a prompt instructing it to act as a security engineer and produce concise, professional remediation guidance for each affected package — including recommended actions and explicit priority flags for any KEV-listed CVE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*25ozYA1cMicqBjw2xmZQUg.png" /></figure><p>During implementation, the larger llama3.1 (8B parameter) model proved too slow and memory-intensive for the CPU-only host, occasionally causing the connection to abort under load. The workflow was switched to the smaller llama3.2:3b model, and the request timeout was extended, which resolved the reliability issue while keeping all AI inference fully on-premises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*_cfKr0j8cKXbeIPNqP9GcA.png" /></figure><h3>9. Report Formatting &amp; PDF Generation</h3><p>A Code node assembles the ranked CVE table, the AI-generated remediation text, and summary statistics into a fully styled HTML document, complete with a header, KPI cards, a color-coded vulnerability table, and a dedicated remediation section — ready to be converted into a shareable report.</p><p>The finished HTML is then converted into a PDF file using the PDFShift API, an external HTML-to-PDF rendering service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KB_8HwwHARsNjrAKUOeFMg.png" /></figure><p>Note: PDFShift authenticates requests using a dedicated X-API-Key HTTP header rather than standard HTTP Basic Authentication. Configuring the HTTP Request node to send the API key via this header (instead of a Basic Auth credential) was required to successfully authorize the conversion request.</p><h3>10. Slack Integration &amp; Report Delivery</h3><p>The final stage of the pipeline delivers the report to the team automatically. A dedicated Slack workspace and a Slack app (“n8n Vulnerability Bot”) were created for this purpose, with the bot granted permission to post messages and upload files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*QHy3kH-HUXnOnhafuTk1gA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*rIKs321NGkv40YSi6dN0xA.png" /></figure><p>The bot was invited into the target channel so it has permission to post messages and upload files there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*397aeQPD22qME64ZSWWvQQ.png" /></figure><p>The workflow posts two things to Slack for every run: a short text summary (total CVEs found and how many are actively exploited) and the full PDF report as a file attachment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*ACKAynFjYDs34ZyHBHMF-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*Vmh_WLzC5RG2aU-nCm0BhA.png" /></figure><h3>11. Complete Workflow Overview</h3><p>The diagram below shows the finished n8n workflow in its entirety, named “Weekly Vulnerability &amp; Patch Report.” It runs unattended on a weekly schedule, connecting all of the stages described in this document into a single automated pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*am6-YcUKFNNt5R6rz9nvxw.png" /></figure><h3>11.1 Pipeline Summary</h3><p>• Weekly Schedule → triggers the entire pipeline automatically every Monday at 8 AM.</p><p>• Get Wazuh Vulns → Dedupe + Merge Hosts → Limit — collects and cleans raw vulnerability findings.</p><p>• Fetch CISA KEV Catalog → Code in JavaScript → Merge — flags actively exploited CVEs.</p><p>• Loop Over CVEs (NVD Enrichment) → NVD Lookup → Merge NVD Data → Rate Limit Wait — enriches each CVE with authoritative descriptions and CVSS data.</p><p>• Prepare EPSS Batch → Fetch EPSS Scores → Split Out — adds real-world exploit probability scoring.</p><p>• Rank All CVEs (Top 25) → Group by Package — selects and organizes the highest-risk findings.</p><p>• Generate Remediation (Ollama) — drafts remediation guidance using a locally hosted AI model.</p><p>• Build HTML Report → Convert HTML to PDF (PDFShift) — produces the final formatted report.</p><p>• Post Summary to Slack + Post Report to Slack — delivers the finished report to the team automatically.</p><h3>12. Conclusion</h3><p>This project demonstrates a complete, self-hosted vulnerability management pipeline that requires no manual effort once deployed. By combining Wazuh’s endpoint detection, authoritative enrichment from CISA and NVD, exploit-probability-based risk ranking, and locally hosted AI for remediation drafting, the system produces a prioritized, actionable report every week without exposing any vulnerability data to third-party AI services.</p><p>The implementation also surfaced and resolved several real-world operational challenges — including memory constraints on a CPU-only host, LLM response reliability under load, and third-party API authentication requirements — all of which were addressed to produce a stable, repeatable weekly process.</p><h3>Appendix A: Step-by-Step Replication Guide</h3><p>This appendix provides the exact commands, configuration values, and node logic used to build the pipeline, so that it can be reproduced in a similar environment. Replace hostnames, IP addresses, API keys, and channel IDs with values specific to your own environment wherever they appear below.</p><p><strong>Note: </strong>Where a node’s underlying code was long and only partially visible during development, this guide presents the complete logic pattern rather than a truncated fragment, and calls out field names (e.g. Wazuh index field paths) that should be adapted to match your own Wazuh index schema.</p><h3>A.1 Architecture Prerequisites</h3><p>• An EC2 instance (or any Linux host) running Ubuntu, with Docker installed, used to host both n8n and Ollama.</p><p>• A running Wazuh manager with at least one enrolled agent (Linux and/or Windows).</p><p>• Outbound internet access from the host to: CISA’s GitHub data source, the NVD REST API, the FIRST.org EPSS API, PDFShift, and Slack.</p><p>• A free NVD API key (recommended, to raise the request rate limit above the anonymous tier).</p><p>• A free PDFShift account for HTML-to-PDF conversion.</p><p>• A Slack workspace where a bot app can be installed.</p><h3>A.2 Wazuh Manager — Enabling Vulnerability Detection</h3><p>Edit the manager configuration file and ensure the following blocks are present and enabled:</p><blockquote>sudo nano /var/ossec/etc/ossec.conf</blockquote><blockquote>&lt;vulnerability-detection&gt;</blockquote><blockquote>&lt;enabled&gt;yes&lt;/enabled&gt;</blockquote><blockquote>&lt;index-status&gt;yes&lt;/index-status&gt;</blockquote><blockquote>&lt;feed-update-interval&gt;60m&lt;/feed-update-interval&gt;</blockquote><blockquote>&lt;/vulnerability-detection&gt;</blockquote><blockquote>&lt;indexer&gt;</blockquote><blockquote>&lt;enabled&gt;yes&lt;/enabled&gt;</blockquote><blockquote>…</blockquote><blockquote>&lt;/indexer&gt;</blockquote><p>Restart the manager, then confirm the vulnerability scanner module starts correctly:</p><blockquote>sudo systemctl restart wazuh-manager</blockquote><blockquote>sudo grep -i “vulnerability” /var/ossec/logs/ossec.log | tail -20</blockquote><h3>A.3 Wazuh Agent Installation — Linux</h3><blockquote>wget <a href="https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.14.6-1_amd64.deb">https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.14.6-1_amd64.deb</a> \</blockquote><blockquote>&amp;&amp; sudo WAZUH_MANAGER=’&lt;YOUR-WAZUH-MANAGER-IP&gt;’ \</blockquote><blockquote>WAZUH_AGENT_GROUP=’default’ \</blockquote><blockquote>WAZUH_AGENT_NAME=’&lt;agent-name&gt;’ \</blockquote><blockquote>dpkg -i ./wazuh-agent_4.14.6–1_amd64.deb</blockquote><blockquote>sudo systemctl daemon-reload</blockquote><blockquote>sudo systemctl enable wazuh-agent</blockquote><blockquote>sudo systemctl start wazuh-agent</blockquote><h3>A.4 Wazuh Agent Installation — Windows</h3><p>Run the following in an elevated PowerShell session on the Windows endpoint:</p><blockquote>Invoke-WebRequest -Uri <a href="https://packages.wazuh.com/4.x/windows/wazuh-agent-4.9.0-1.msi">https://packages.wazuh.com/4.x/windows/wazuh-agent-4.9.0-1.msi</a> -OutFile $env:tmp\wazuh-agent.msi</blockquote><blockquote>msiexec.exe /i $env:tmp\wazuh-agent.msi /q WAZUH_MANAGER=’&lt;YOUR-WAZUH-MANAGER-IP&gt;’</blockquote><blockquote>NET START WazuhSvc</blockquote><blockquote>Get-Service -Name WazuhSvc</blockquote><p>Verify both agents show as connected under Agents in the Wazuh dashboard before continuing.</p><h3>A.5 Deploying n8n (Docker)</h3><blockquote>mkdir -p ~/.n8n</blockquote><blockquote>docker run -d — name n8n — restart unless-stopped \</blockquote><blockquote>-p 5678:5678 \</blockquote><blockquote>-v ~/.n8n:/home/node/.n8n \</blockquote><blockquote>-e N8N_SECURE_COOKIE=false \</blockquote><blockquote>n8nio/n8n</blockquote><p>Once the container is running, the n8n editor is available at http://&lt;host-public-ip&gt;:5678. Ensure the instance’s security group / firewall allows inbound traffic on port 5678 from your IP.</p><p>Useful checks:</p><blockquote>docker ps # confirm the container is Up</blockquote><blockquote>docker logs n8n — tail 50 # inspect startup logs / errors</blockquote><blockquote>docker start n8n # restart if it has stopped</blockquote><h3>A.6 Installing &amp; Exposing Ollama</h3><blockquote>curl -fsSL <a href="https://ollama.com/install.sh">https://ollama.com/install.sh</a> | sh</blockquote><p>By default Ollama only listens on localhost, which is unreachable from inside the n8n Docker container. Expose it on all interfaces via a systemd override:</p><blockquote>sudo systemctl edit ollama.service</blockquote><p>Add the following under the [Service] section of the override file:</p><blockquote>[Service]</blockquote><blockquote>Environment=”OLLAMA_HOST=0.0.0.0:11434&quot;</blockquote><p>Then reload and restart the service, pull a model, and verify:</p><blockquote>sudo systemctl daemon-reload</blockquote><blockquote>sudo systemctl restart ollama</blockquote><blockquote>sudo ss -tulpn | grep 11434</blockquote><blockquote>ollama pull llama3.2:3b</blockquote><blockquote>ollama list</blockquote><blockquote>curl <a href="http://localhost:11434/api/generate">http://localhost:11434/api/generate</a> -d ‘{</blockquote><blockquote>“model”: “llama3.2:3b”,</blockquote><blockquote>“stream”: false,</blockquote><blockquote>“prompt”: “Say hello in one sentence.”</blockquote><blockquote>}’</blockquote><p><strong>Note: </strong>On a CPU-only, memory-constrained host, the larger llama3.1 (8B) model can be too slow and cause requests to abort mid-generation. If you encounter “connection was aborted” errors, switch to the smaller llama3.2:3b model and add swap space (see Section A.10).</p><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11c794ef4664" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside a Simulated RDP Intrusion: How Wazuh Detects, Correlates, and Helps You Respond]]></title>
            <link>https://medium.com/@maryamliaqat4583/inside-a-simulated-rdp-intrusion-how-wazuh-detects-correlates-and-helps-you-respond-a47497d6f38b?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a47497d6f38b</guid>
            <category><![CDATA[rdp-intrusion]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 12:26:31 GMT</pubDate>
            <atom:updated>2026-07-27T12:26:31.184Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why This Post Exists</h3><p>Most Wazuh walkthroughs show a single capability in isolation: FIM catches a file change, SCA reports a compliance score, VirusTotal flags a hash. That’s useful, but it doesn’t reflect how a SOC analyst actually experiences an incident — as a chain of related events that has to be pieced together, tuned, and interpreted.</p><p>This post follows one continuous, self-contained lab scenario — a simulated attacker brute-forcing RDP, logging in, attempting persistence, and getting caught — end to end through Wazuh. Along the way, it covers not just what fired, but why it fired, where it could produce false positives in a real environment, how the built-in detection compares to a hand-written alternative, and what that means operationally.</p><p><strong>Environment: </strong>Ubuntu 24.04 Wazuh Manager + Indexer + Dashboard (AWS EC2), a Windows Server 2025 monitored endpoint running Wazuh Agent 4.14.6, and a separate Ubuntu attacker host. All activity was carried out in an isolated, self-owned lab for educational purposes.</p><h3>The Scenario</h3><p>An attacker on 10.0.1.18 targets the Windows Server 2025 endpoint (AgentM01, 10.0.1.193) over RDP. The walk-through follows six linked stages:</p><p>● 1. Brute force the Administrator account over RDP</p><p>● 2. Successfully authenticate — and get automatically flagged as suspicious</p><p>● 3. Attempt registry-based persistence</p><p>● 4. Get caught twice — by FIM/VirusTotal and independently by Windows Defender</p><p>● 5. Get investigated by an analyst through the Wazuh dashboard</p><p>The supporting configuration and vulnerability posture of the endpoint (SCA, vulnerability detection) is covered afterward as context that shapes how exposed this endpoint was to begin with.</p><h3>Stage 1 -Initial Access: RDP Brute Force</h3><p>Using THC-Hydra, a wordlist of incorrect passwords followed by the correct Administrator password was run against the endpoint’s RDP service (port 3389).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*wc3H8IESsdg8QvDSCm-LLQ.png" /><figcaption><em>Hydra brute-force attempt against the Windows agent’s RDP service.</em></figcaption></figure><p><em>Hydra brute-force attempt against the Windows agent’s RDP service.</em></p><p>Each failed attempt generated a Windows Security Event 4625, ingested by Wazuh’s Windows Event Channel decoder and raised as Rule 60122, sourced from the attacker’s IP.</p><p><strong>Why this matters: </strong>Rule 60122 is a single-event rule — it fires on every individual failed logon, with no threshold. That’s exactly why it needs a companion correlation rule (Stage 2) to distinguish ‘someone mistyped their password once’ from ‘someone is actively brute-forcing this account.’ On its own, Rule 60122 is signal, not verdict.</p><h3>Stage 2 -The Successful Logon Gets Flagged Automatically</h3><p>Within the same Hydra session, the correct password succeeded, generating Event 4624. Wazuh’s built-in correlation logic recognized that this successful logon occurred seconds after multiple failed attempts from the same source, and raised a materially different alert:</p><p>Rule 92657 (Level 6): “Successful Remote Logon Detected -<br>User: Administrator — NTLM authentication, possible pass-the-hash<br>attack — Possible RDP connection. Verify that ip-10–0–1–18 is<br>allowed to perform RDP connections”<br>MITRE: T1550.002 (Pass the Hash), T1078.002 (Domain Accounts),<br>T1021.001 (RDP)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*vhN14nLT9TkB00I3HDLQQA.png" /><figcaption><em>Correlated alert sequence in alerts.json.</em></figcaption></figure><p>The exact sequence recorded in alerts.json shows the successful logon (92657) sandwiched between failed attempts (60122) from the same IP, within a single second:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*ss5PF9J3ewLJQ5ur0u3-fg.png" /></figure><p><strong>Why this matters: </strong>This correlation happens without any custom rule; Wazuh’s default ruleset already treats a successful logon as suspicious when it’s bracketed by failures from the same source. That’s a meaningfully higher-value alert than either event alone, but it’s still a heuristic indicator, not proof: the rule flags the pattern of a success bracketed by failures; it doesn’t confirm pass-the-hash or a completed brute-force compromise. That determination still requires an analyst to investigate — checking whether the source IP is expected to RDP in, correlating with Stage 3’s persistence attempt, and ruling out a legitimate user who mistyped their password before logging in successfully.</p><h3>Stage 3-Persistence Attempt: Registry Run Key</h3><p>With access established, a placeholder executable disguised under a legitimate-sounding name was placed on the Desktop, and a Registry Run key was added under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run pointing to it — MITRE T1547.001, a well-documented persistence technique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*ShJI1rAIHctR-bT3szYw_g.png" /><figcaption><em>Registry Run key added to establish persistence.</em></figcaption></figure><p>Wazuh’s syscheck (FIM) module, already configured for real-time and scheduled monitoring of both file paths and registry keys, picked this up immediately:</p><blockquote>“rule”:{“level”:5,” description”:”Registry Key Integrity Checksum<br>Changed”,”id”:”594&quot;,”mitre”:{“id”:[“T1565.001”,”T1112&quot;],<br>“tactic”:[“Impact”,”Defense Evasion”]}}<br>“agent”:{“id”:”001&quot;,”name”:”AgentM01&quot;,”ip”:”10.0.1.193&quot;}<br>“syscheck”:{“path”:”HKEY_LOCAL_MACHINE\\System\\…”,<br>“event”:”modified”}</blockquote><p><strong>Why this matters: </strong>This is the same FIM pipeline that would catch a legitimate admin editing the registry. A single registry-modification alert does not, by itself, distinguish between legitimate administrative activity and malicious persistence. Additional context is required — the MITRE tagging tells you what technique it looks like, not who did it. That distinction only comes from correlating it against context: was it preceded by a suspicious logon (Stage 2)? Is the target path unusual? This is exactly the kind of judgment call an analyst — not the rule engine — has to make.</p><h3>Stage 4 -Two Independent Layers Catch the Same Threat</h3><h3>4.1 Threat Intelligence: VirusTotal</h3><p>Separately, an EICAR test file was placed on the Desktop (inside a temporary Defender exclusion so it would persist long enough for FIM to hash it). Wazuh’s FILM-VirusTotal integration computed its SHA1 hash and submitted it automatically via the integratord module:</p><blockquote>“rule”:{“level”:12,”id”:”87105&quot;,”description”:”VirusTotal: Alert -<br>c:\\users\\administrator\\desktop\\eicar_test.txt — 65 engines<br>detected this file”}<br>“mitre”:{“id”:[“T1203”],”tactic”:[“Execution”]}<br>“data”:{“found”:”1&quot;,”malicious”:”1&quot;,”positives”:”65&quot;,”total”:”67&quot;}</blockquote><p>65 of 67 engines flagged it malicious — Wazuh moved from ‘a file changed’ to an automated, third-party-corroborated verdict, without an analyst having to manually submit the hash anywhere.</p><h3>4.2 Endpoint Defense: Windows Defender</h3><p>On the persistence attempt from Stage 3, Windows Defender’s real-time protection independently detected and remediated the placeholder executable — without any manual intervention or SIEM involvement:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*D-hpEzW2xFC-afkkXhmhVw.png" /><figcaption><em>Windows Defender automatically remediating the persistence payload.</em></figcaption></figure><p><strong>Why this matters: </strong>These are two different detection philosophies operating in parallel: VirusTotal is reputation-based (has anyone, anywhere, already seen and flagged this exact file?), while Defender’s real-time protection is largely behavior/signature-based on the endpoint itself. Neither depends on the other — which is the point. If VirusTotal’s free-tier rate limit had throttled the lookup (see the tuning section below), Defender still would have caught it. That redundancy, not any single tool, is what makes the architecture resilient.</p><h3>Stage 5 -Investigating It All from the Dashboard</h3><p>Everything above generates raw JSON in alerts.json — in practice, an analyst works from the dashboard. A Threat Hunting view scoped to AgentM01 shows continuous ingestion across the FIM and threat-lintel sources used in this scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*lAkdZ6AQ8SLxacHEQfOCRg.png" /><figcaption><em>Threat Hunting overview scoped to AgentM01.</em></figcaption></figure><p>The MITRE ATT&amp;CK view lets an analyst pivot from a tactic/technique directly to the underlying raw events — useful for reconstructing the Stage 3 → Stage 4 sequence without manually grepping alerts.json:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*m-i-FCaa62jcQfC3k8s1jg.png" /><figcaption><em>MITRE ATT&amp;CK-mapped FIM alerts in the dashboard.</em></figcaption></figure><h3>Context: How Exposed Was This Endpoint?</h3><p>The attack succeeded partly because this was a freshly provisioned, unhardened server. Two Wazuh modules quantify that exposure directly.</p><h3>Security Configuration Assessment</h3><p>Scanned against the CIS Microsoft Windows Server 2025 Benchmark, the endpoint passed 102 of 398 checks (25%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*cdwb_yq0TOUVuZxRAcs-hg.png" /><figcaption><em>SCA scan results against the CIS Windows Server 2025 benchmark.</em></figcaption></figure><p><strong>Why this matters: </strong>A 25% score sounds alarming, but not every failed check carries equal weight-some CIS controls are high-impact (e.g., RDP network-level authentication, password policy) and some are comparatively low-risk hardening items. Treating this list as a flat 296-item backlog is a mistake; it needs prioritization by exploitability and blast radius, not by check count. This gap — between ‘raw compliance score’ and ‘actual risk reduction if fixed’ -is exactly the kind of nuance a checklist-style validation report tends to skip.</p><h3>Vulnerability Detection</h3><p>Wazuh’s vulnerability module cross-references Syscollector’s software inventory against CVE databases. To validate this with a reproducible case, 7-Zip 19.00 — a known-vulnerable version — was deliberately installed. The next Syscollector cycle correctly flagged it, contributing to a total of 15 identified CVEs across installed software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*HbqhJHd0Rye76AtkJwU0Kg.png" /><figcaption><em>Vulnerability detection results, including the deliberately installed 7-Zip 19.00.</em></figcaption></figure><h3>Detection Tuning &amp; False-Positive Considerations</h3><p>A lab environment is forgiving -every alert above really was the simulated attack. A production environment isn’t, and each detection used in this scenario carries a real tuning trade-off:</p><p>● Rule 60122 (failed logon): fires on every single failed attempt with no built-in threshold. In production, a user who mistypes their password three times generates the same alert as the first three attempts of a brute force. The fix isn’t disabling the rule — it’s pairing it with Wazuh’s active-response frequency rules (e.g., N failures in a time window) so isolated typos don’t page an analyst, while a genuine burst does.</p><p>● Rule 92657 (correlated successful-logon): only fires because the failed attempts and the success land within the same short window. A slow, low-and-slow brute force (one attempt every several minutes, staying under the correlation window) would not trigger this rule at all — it would just look like a normal login preceded by a few unrelated failures. That’s a real detection gap worth documenting, not just a theoretical one.</p><p>● SCA at 25%: without prioritization, this becomes alert fatigue rather than a usable hardening roadmap (discussed above).</p><p>● VirusTotal integration: hard rate-limited to 4 requests/minute on the free-tier API key. During the FIM burst in this scenario, multiple simultaneous file/registry events triggered Rule 87101 (‘Public API request rate limit reached’) — meaning some hash lookups were silently delayed or dropped rather than failing loudly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*XtMpmpM_zTQVq47748AcMA.png" /><figcaption><em>VirusTotal integration log showing rate-limit errors during a burst of FIM events.</em></figcaption></figure><p>None of this indicates a misconfiguration — the EICAR detection in Stage 4 proves the integration works correctly under normal load. It does mean that in production, this integration should either sit behind a paid API tier or a local caching layer, so a genuine burst of malicious file activity doesn’t get throttled at the exact moment it matters most.</p><h3>Comparing Detection Approaches</h3><h3>Built-in correlation vs. a hand-written rule</h3><p>Rule 92657 worked here without any custom authoring — a real strength of Wazuh’s default ruleset. But it’s worth understanding what it does and doesn’t cover: it correlates two specific event types (4625 → 4624) from the same source within a short window, on a single agent. It would not, for example, notice the same source IP failing logons against one agent and then succeeding on a different agent minutes later — a lateral-movement pattern a custom rule using the &lt;if_matched_sid&gt; / global frequency fields in local_rules.xml could be written to catch. The built-in rule is the right default; a custom rule becomes necessary once you need cross-agent or cross-timeframe correlation the default ruleset wasn’t designed for.</p><h3>Reputation-based vs. behavior-based detection</h3><p>VirusTotal (Stage 4.1) and Windows Defender (Stage 4.2) represent two different detection philosophies that happened to catch related activity in this scenario. Reputation-based detection (VirusTotal) is only as good as whether the exact file has been seen before somewhere in the world — it’s fast and low-noise, but a novel or slightly modified payload sails through it untouched. Behavior/signature-based detection running locally on the endpoint (Defender) doesn’t need global prior knowledge, but it depends entirely on the quality of the engine running on that specific host. Relying on either alone leaves a gap; running both, as this lab did, closes most of it, which is the actual argument for layered defense, not just a restated buzzword.</p><h3>Lessons Learned</h3><p>● A correlation rule is only as good as its time window and event scope; knowing exactly what Rule 92657 does and doesn’t catch (Stage 2) matters more than knowing that it exists.</p><p>● Free-tier API integrations (VirusTotal) need explicit rate-limit planning before they’re relied on operationally -the failure mode is silent throttling, not an obvious error.</p><p>● A compliance score (SCA) is a starting point for prioritization, not a finished risk assessment -treating all 296 failed checks as equally urgent isn’t actionable.</p><p>● Layering a SIEM with native endpoint protection isn’t redundant -in this scenario, Defender remediated the persistence attempt independently of anything Wazuh flagged, which is exactly the failure-tolerant behavior you want from two systems that don’t share a detection method.</p><h3>Conclusion</h3><p>Followed end to end, a single simulated RDP intrusion moved through six Wazuh capability areas -authentication monitoring, built-in correlation, FIM, threat intelligence enrichment, endpoint defense, and dashboard-based investigation-each catching a different part of the same attack chain. The value wasn’t any one module firing correctly in isolation; it was seeing where each one’s coverage started and stopped, and what that implies for tuning a real deployment: correlation windows that can be evaded by slowing down, API integrations that need rate-limit planning, and compliance scores that need prioritization before they’re useful. That’s the gap between validating that Wazuh’s features work and understanding how to operate them.</p><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a47497d6f38b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Self-Healing Infrastructure Security]]></title>
            <link>https://medium.com/@maryamliaqat4583/self-healing-infrastructure-security-eb7fe729e0b4?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb7fe729e0b4</guid>
            <category><![CDATA[self-healing]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 05:06:29 GMT</pubDate>
            <atom:updated>2026-07-24T05:06:29.682Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Autonomous Detection, Response &amp; Recovery on AWS using Wazuh and a SOAR Orchestrator</em></p><h3>1. Executive Summary</h3><p>This document describes the design, build, and validation of a self-healing infrastructure security system deployed on AWS. The system automatically detects security compromises on cloud workloads and initiates an autonomous remediation response — restoring configuration, redeploying compromised compute resources, and rotating credentials — without requiring manual intervention.</p><p>The design is inspired by biological immune systems: a sensing layer continuously monitors the environment for signs of compromise, a decision layer interprets those signals, and an effector layer carries out a coordinated response. All core components were individually built and tested, culminating in a fully autonomous end-to-end test in which a simulated file-integrity violation on a monitored instance triggered detection, automatic webhook invocation, and execution of the remediation workflow with no manual step.</p><p>A note on terminology: this proof of concept demonstrates <em>self-healing principles</em> through automated detection and remediation. It does not yet verify that a remediation action has actually restored the workload to a trusted, healthy state -a complete self-healing solution would also include a post-remediation validation and health-check step, which is identified as future work in Section 7.</p><h3>1.1 Outcome Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*TNJKnTt5-z0XME9Vs9Zc_Q.png" /></figure><h3>2. System Architecture</h3><p>The system is composed of four logical layers, mirroring the structure of a biological immune response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*UYYoQyKbpkXXA2YAYxszSg.png" /></figure><h3>2.1 High-Level Data Flow</h3><p>1. A Wazuh agent installed on a monitored EC2 instance detects a file integrity or system anomaly (for example, an unauthorized change under /etc).</p><p>2. The Wazuh manager correlates the event against detection rules and raises an alert (rule IDs 550 — “Integrity checksum changed” and 554 — “File added to the system”).</p><p>3. A custom Wazuh integration script (custom-soar) is invoked automatically for alerts matching those rule IDs. It maps the affected agent to the corresponding AWS EC2 instance ID and sends an HTTPS POST request to a public webhook.</p><p>4. The webhook is served by Amazon API Gateway, which forwards the request to an AWS Lambda function (the SOAR orchestrator).</p><p>5. For demonstration purposes, this proof of concept has the orchestrator Lambda execute all three remediation actions on every trigger, each independently error-handled:</p><p>○ Restore configuration — an AWS Systems Manager Automation runbook re-syncs a known-good configuration baseline from Amazon S3 onto the affected instance.</p><p>○ Redeploy compute — the affected instance is terminated from its Auto Scaling Group, which automatically launches a replacement instance from a trusted “golden” AMI.</p><p>○ Rotate credentials — AWS Secrets Manager rotates the associated application secret via a dedicated rotation Lambda function.</p><p>Running all three actions on every trigger is a simplification made for this proof of concept, so that each remediation path could be exercised and demonstrated. A production implementation would typically be selective: the orchestrator would inspect the type and context of the detected threat (for example, a configuration-only change versus a suspicious process or a credential-exposure indicator) and invoke only the action or combination of actions appropriate to that threat, rather than unconditionally executing restore, redeploy, and rotate together.</p><p>6. The orchestrator publishes a summary of the actions taken to an Amazon SNS topic, which delivers an email notification for audit purposes.</p><p>7. Every action is logged to Amazon CloudWatch Logs, providing a complete, timestamped audit trail of the automated response.</p><p>Rules 550 and 554 were chosen as the trigger because they are Wazuh’s core file-integrity indicators-a checksum change and a newly added file are both strong, low-noise signals of unauthorized modification to a monitored path. In this build, either rule firing on its own is sufficient to invoke the full remediation workflow. In a production deployment, triggering disruptive actions such as instance replacement or credential rotation from a single low-level file-integrity alert is generally considered too aggressive: additional context or correlated detections (for example, an unexpected process, a suspicious outbound connection, or repeated alerts across multiple rules within a short window) would typically be required before an automated response escalates to destructive remediation.</p><h3>2.2 Component Details</h3><h3>2.2.1 Wazuh (Detection Layer)</h3><p>● Manager: a dedicated EC2 instance running the all-in-one Wazuh stack (manager, indexer, and dashboard), reachable over HTTPS for analyst access.</p><p>● Agent: installed on every monitored workload; configured with real-time File Integrity Monitoring (syscheck) on sensitive directories (/etc, /bin, /sbin, /usr/bin, /usr/sbin, /boot).</p><p>● Custom Integration: a Python script registered under &lt;integration&gt; in ossec.conf, scoped to specific rule IDs, which converts a Wazuh alert into an HTTPS call to the SOAR webhook.</p><h3>2.2.2 API Gateway + Lambda (Orchestration Layer)</h3><p>● Amazon API Gateway (HTTP API) exposes a single public endpoint that accepts POST requests and forwards them to the orchestrator Lambda.</p><p>● The orchestrator Lambda (Python 3.12) parses the incoming payload — whether delivered directly or wrapped inside an API Gateway event body — and extracts the target instance ID before invoking each downstream AWS service.</p><p>● Function timeout is configured at 60 seconds to allow all three downstream calls to complete.</p><h3>2.2.3 Remediation Actions (Effector Layer)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*2wp-V31I-r-OZG53zK1Skg.png" /></figure><h3>2.3 Identity &amp; Access Management Design</h3><p>Access is scoped using dedicated, purpose-built IAM roles rather than a single broad role:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*HPod9fu5hHZoGd2Dm0mvCg.png" /></figure><p>An explicit iam: PassRole permission, scoped to the SSM automation role’s ARN, is granted to the orchestrator Lambda’s role — required whenever one role delegates execution to another AWS service.</p><h3>2.4 Security Considerations &amp; Hardening Notes</h3><p>● Resource scoping: current IAM policies use “Resource”: “*” for several actions to simplify the proof-of-concept build; production use should scope these to specific ASG, secret, and automation-document ARNs.</p><p>● False-positive risk: because the orchestrator automatically terminates and rotates credentials on alert, a false positive can cause unnecessary disruption. A human-approval gate (e.g., via AWS Step Functions) is recommended before destructive actions in production.</p><p>● Least privilege: separate, narrowly-scoped roles are used per function rather than a single administrative role.</p><p>● Transport security: the webhook between Wazuh and AWS is served over HTTPS via an API Gateway. However, the endpoint currently accepts any request over HTTPS with no additional authentication; a production deployment should add an authorizer (API key, HMAC request signing, mutual TLS, or IAM/SigV4 auth) and, where possible, restrict the endpoint to expected source IPs so that only the Wazuh manager can invoke it.</p><p>● Redeploy-compute assumptions: the redeploy action assumes a stateless workload managed by an Auto Scaling Group, where any instance can be replaced by a fresh copy of the golden AMI without data loss. It is not safe to apply as-is to stateful workloads (e.g. instances holding local application data or session state) without first adding a data-persistence or migration strategy.</p><p>● Restore-configuration limitations: syncing the S3 baseline back onto the instance repairs known configuration files but does not remove an attacker’s underlying foothold (for example, a planted process, cron job, or credential left outside the restored paths) and does not perform malware scanning. In production, this action is best paired with the redeploy-compute action, or with a broader incident-response process, rather than relied on alone.</p><p>● Scaling beyond a static mapping: the custom-soar integration currently maps each Wazuh agent to its EC2 instance ID using a static, hand-maintained mapping. Scaling this to a fleet would require replacing the static mapping with a dynamic lookup (for example, tagging instances with their Wazuh agent ID and querying the EC2 API at alert time) so that new agents and instances are recognized automatically.</p><p>● Auditability: every remediation cycle produces both a CloudWatch log entry and an SNS email notification.</p><h3>3. Deployed Resource Inventory</h3><h3>3.1 Compute</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*TccpcapZ24RyJk-TFM0YXg.png" /></figure><h3>3.2 Identity &amp; Access Management</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*sdW0YqLJbCW1L_ULTPDNAQ.png" /></figure><h3>3.3 Storage, Automation &amp; Secrets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*ZnXg62gn12V67Nihee_pfA.png" /></figure><h3>3.4 Orchestration, Messaging &amp; API</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*3ggKbImYxBSMzh043AjfKg.png" /></figure><h3><strong>3.5 Wazuh Detection Rules Used</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*i0355Ko9m4IOwurX6510TA.png" /></figure><h3>4. Implementation &amp; Evidence</h3><p>This section walks through each build stage in the order it was performed, with supporting screenshots captured directly from the AWS Console and terminal during the build.</p><h3>4.1 Compute Provisioning -Wazuh Manager &amp; Monitored Agent</h3><p>The Wazuh manager and the monitored agent instance were provisioned as EC2 instances in the same VPC. The manager runs the all-in-one Wazuh stack; the agent instance runs the monitored Ubuntu workload with the Wazuh agent enrolled against the manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*N4nk2V9l0hb_smE_JkmxDQ.png" /></figure><h3>4.2 Wazuh Agent Enrollment &amp; Detection Configuration</h3><p>The agent (“Selfheal01”, agent ID 001) was enrolled with the manager and confirmed Active in the Wazuh Endpoints dashboard. Real-time File Integrity Monitoring (syscheck) was then enabled on system directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*SAWrHx13Spcc3eykHlSmAA.png" /></figure><h3>4.3 Detection Validation</h3><p>A test file was created under /etc on the monitored instance to simulate an unauthorized change. The Wazuh dashboard confirmed detection via rule 550 (“Integrity checksum changed”) and rule 554 (“File added to the system”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Cf_8R6LpQDxJ2w3o7pohGA.png" /></figure><h3>4.4 IAM Roles &amp; Policies</h3><p>Three purpose-built IAM roles were created to support the SOAR orchestrator, the SSM automation runbook, and (later) the secret rotation Lambda, each with a narrowly-scoped inline policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*n_iE174MvIz5MSN2JVrg1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*pTs3AEzhaAI8ZZ7aJqg6zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*iiYWwfCdEseVA1KoER4Jdg.png" /></figure><h3>4.5 Golden Configuration Baseline (S3)</h3><p>A dedicated S3 bucket (selfheal-golden-config-800153536717) was created to hold the known-good configuration baseline used by the Restore Configuration action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zYwuDfNzUraSOABhxgsa3A.png" /></figure><h3>4.6 Restore Configuration Action (SSM Automation)</h3><p>An SSM Automation document (selfheal-RestoreConfig) was authored to sync the S3 baseline back onto a target instance. Registering the monitored instance with Systems Manager required attaching an EC2 instance profile (selfheal-ec2-ssm-role) and restarting the SSM agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*KtUQ99E7uy4_2Np5-rhmHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*vXmAd5n-41QO67AvLhrIBg.png" /></figure><h3>4.7 Redeploy Compute Action (Golden AMI, Launch Template, Auto Scaling Group)</h3><p>A golden AMI was captured from the clean monitored instance, wrapped in a launch template, and used to create an Auto Scaling Group with a desired capacity of 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*RsMdNV7uecQYCSVDHXZ8Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*BcoAmjsymaxlrBKZWRdqEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*OuIumL6lkq0zUhVY8DXWVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*n9W26gtl65z7LSsK5klqbg.png" /></figure><p>To validate autonomous redeployment, the ASG-managed instance was manually terminated. The Auto Scaling Group’s activity log confirmed it automatically launched a replacement instance from the golden AMI to restore desired capacity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*IIP6cstlvPddYl9QhjQQ7w.png" /></figure><h3>4.8 Rotate Credentials Action (Secrets Manager + Rotation Lambda)</h3><p>A Secrets Manager secret (selfheal/app/db-creds) and a dedicated rotation Lambda (selfheal-rotate-secret) were created. The rotation function was tested directly, generating a new random password and updating the secret.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Q2rY4F9glVKc4PqJxqeFIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*-AzBRwYBkVPfQIX-jp7x7A.png" /></figure><h3>4.9 Audit &amp; Notification (SNS)</h3><p>An SNS topic (selfheal-alerts) was created with an email subscription to receive a human-readable summary of every remediation cycle. The subscription confirmation email initially landed in the Spam folder and required manual confirmation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*lyN3dwgY7wO67PeKB8oxaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*qI_pua5kyb3oJeqMh5L5WQ.png" /></figure><h3>4.10 SOAR Orchestrator Lambda</h3><p>The orchestrator Lambda (selfheal-soar-orchestrator) combines all three remediation actions plus the SNS notification step. A manual test invocation with a valid instance ID confirmed all three actions completed successfully in a single run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*wkcbQdnUP5d90SHdOQnH5w.png" /></figure><h3>4.11 Public Webhook (API Gateway) &amp; Wazuh Integration</h3><p>The orchestrator was exposed via an API Gateway HTTP API (selfheal-soar-api), producing a public webhook URL. A custom Wazuh integration script was then registered on the manager to call this webhook automatically whenever rule 550 or 554 fires.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*vL6tIXaf4kupYRejMor-Lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*YTw69owRwmUp-WggCoMDHw.png" /></figure><h3><strong>5. Testing &amp; Validation</strong></h3><h3>5.1 Detection Test (Wazuh File Integrity Monitoring)</h3><p>Procedure: On the monitored instance, created a new file under /etc and appended content to it.</p><blockquote>sudo touch /etc/test-attack.conf<br>echo “malicious change” | sudo tee -a /etc/test-attack.conf</blockquote><p>Result: The Wazuh dashboard’s Security Events view showed alerts for rule 550 and rule 554 within seconds, attributed to agent Selfheal01 (see Figure under Section 4.3).</p><h3>5.2 Restore Configuration Test (SSM Automation)</h3><p>Procedure: Manually executed the selfheal-RestoreConfig automation document against the monitored instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*rxmUfmUFomP-pJ0b4SVNeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*trO7t5laKzYc_C99ErE_kw.png" /></figure><h3>5.3 Redeploy Compute Test (Auto Scaling Group)</h3><p>Procedure: Manually terminated an instance that was a member of the Auto Scaling Group (selfheal-app-asg).</p><p>Result: The ASG’s activity history recorded a “Terminating” event followed automatically by a “Launching a new EC2 instance” event; a new healthy instance passing 3/3 status checks appeared within approximately two minutes, restoring desired capacity of 1 (evidence in Section 4.7).</p><h3>5.4 Credential Rotation Test (Secrets Manager)</h3><p>Procedure: Manually invoked the selfheal-rotate-secret Lambda function against the target secret.</p><p>Result: Execution succeeded; retrieving the secret value in the Secrets Manager console confirmed db_password had changed to a newly generated random value (evidence in Section 4.8).</p><h3>5.5 Full Orchestrator Test (Manual Invocation)</h3><p>Procedure: Invoked the selfheal-soar-orchestrator Lambda directly with a test event containing a valid instance ID.</p><p>Result: All three remediation actions completed successfully in a single invocation, and an SNS email notification was received (evidence in Section 4.10).</p><h3>5.6 End-to-End Autonomous Test</h3><p>Procedure: Simulated a compromise on the monitored instance (as in Section 6.1) with no manual triggering of any downstream component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*YdYoJ-CvJ5BDTTHkY70F8A.png" /></figure><p>The CloudWatch log group for the orchestrator function showed a new invocation whose timestamp matched the Wazuh alert time exactly (accounting for the UTC / local time offset), confirming the trigger was fully autonomous — no manual Lambda invocation was made for this test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*SyZBbeLGUNOxui6gYR04QA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Z6217air2bb2Egg7dFthJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*R1-tWroR4Vry9YCeHfCuxQ.png" /></figure><p>Note on the redeploy_compute result: the monitored instance used for this test was intentionally deployed as a standalone EC2 instance, outside the Auto Scaling Group, so that file-integrity monitoring could be validated on the same workload used throughout Sections 4 and 5 without risking disruption to the ASG-managed fleet. One consequence of this design choice is that the autonomous end-to-end test did not validate the redeploy_compute action’s actual execution on that same workload — the Auto Scaling API correctly rejected the termination request with “No managed instance found,” which is expected behavior given the instance’s placement, not a defect. The redeploy action is only applicable to instances under Auto Scaling Group management, and its successful execution was separately validated against a genuinely ASG-managed instance in Section 4.7 / 5.3, rather than as part of this autonomous, same-workload test.</p><p>The final confirmation email received for this test:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*d968gj3Da5vHvkD1R_-6Cg.png" /></figure><h3><strong>6. Conclusion</strong></h3><p>Every stage of the self-healing pipeline — detection, automatic triggering, orchestration, and all three remediation actions — has been individually validated and confirmed to operate correctly in combination during an unassisted, end-to-end test. The system successfully demonstrates autonomous detection-to-recovery behavior consistent with the project’s original design goals.</p><p>As a proof of concept, the system demonstrates self-healing <em>principles</em> rather than a complete self-healing solution: it does not yet confirm that a remediated instance is actually back in a trusted, healthy state, and several of its production-readiness gaps are noted in Section 2.4 (single-signal triggering, stateless-workload assumptions, restore-configuration limitations, the static agent-to-instance mapping, and the unauthenticated public webhook). Closing these gaps, most importantly adding a post-remediation health-verification step, correlated multi-signal triggering, and webhook authentication, would be the primary focus of hardening this proof of concept for production use.</p><h3>About the Author</h3><p><strong>Maryam Liaqat (Jr. Security Engineer &amp; Wazuh Ambassador)</strong><br>Passionate about simplifying complex deployments and helping others learn DevSecOps practices. Connect with me for consulting, troubleshooting, or collaboration opportunities.</p><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb7fe729e0b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat Detection, Enrichment & Response Orchestration Lab]]></title>
            <link>https://medium.com/@maryamliaqat4583/threat-detection-enrichment-response-orchestration-lab-13178f869171?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/13178f869171</guid>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 04:37:24 GMT</pubDate>
            <atom:updated>2026-07-14T04:37:24.864Z</atom:updated>
            <content:encoded><![CDATA[<p>Integrating Wazuh SIEM/XDR with Shuffle SOAR and AbuseIPDB Threat Intelligence for SSH Brute-Force Detection and Response Orchestration -deployed on AWS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f1dEIDMcUVAo6VLXWR58Yw.png" /></figure><h3>1. Objective</h3><p>The goal of this lab was to design and deploy a Security Orchestration, Automation, and Response (SOAR) pipeline that extends Wazuh’s native detection capabilities beyond passive alerting. Wazuh already supports native Active Response actions triggered directly by its own rule engine. This lab extends that native capability by integrating Shuffle for external enrichment and response orchestration, adding threat-intelligence context and a workflow-driven trigger path ahead of the response action. This lab closes that gap by integrating three components on AWS:</p><p>• Wazuh (Manager, Indexer, Dashboard, Agent): for log collection, SSH brute-force detection, and alert generation.</p><p>• Shuffle: an open-source SOAR platform used to receive Wazuh alerts via webhook and orchestrate a response workflow.</p><p>• AbuseIPDB: a threat-intelligence API used to check the reputation of the source IP associated with each alert.</p><p>The result is a working pipeline in which a real SSH brute-force attempt against a monitored host is detected by Wazuh, forwarded to Shuffle, and enriched with IP reputation data from AbuseIPDB. The enriched alert is then passed to an HTTP action that calls Wazuh’s Active Response API, completing the orchestration path from detection through to a response trigger. Section 3 below walks through exactly how each of these three stages works.</p><h3>2. Architecture Overview</h3><p>Three EC2 instances were provisioned inside the same AWS VPC so they could communicate over private IPs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*cCVuoyMYByVcy3fS5exq4Q.png" /></figure><p><strong>Data flow:</strong> a failed SSH login on the Agent host is logged locally → the Wazuh Agent forwards the log to the Wazuh Manager → the Manager’s analysis engine matches it against SSH brute-force rules (5710 / 5712) → the wazuh-integratord module posts the alert as JSON to a Shuffle webhook → Shuffle’s workflow queries AbuseIPDB for the source IP’s reputation → the enriched result is passed to an HTTP node configured to call the Wazuh Active Response API.</p><h3>3. How Wazuh Detects, Enriches, and Responds to Threats</h3><p>The pipeline’s value comes from chaining three distinct engines together end to end. Each stage below is described in the order data actually flows through it: detection on the agent/manager, enrichment inside the Shuffle workflow, and an orchestrated call toward Wazuh’s response API.</p><h3>3.1 Detection: Log Collection and Rule Matching</h3><p>The Wazuh Agent on the victim host tails the local auth log via its logcollector module. Each new line is passed through the sshd decoder, which extracts structured fields such as srcip, srcuser, and the failure reason from the raw text. The decoded event is then evaluated against the Wazuh ruleset: rule 5710 (“attempt to login using a non-existent user”) fires on a single matching failed login, while rule 5712 escalates the same source IP once its failed attempts cross a frequency threshold within a defined time window, a correlation the Wazuh Manager’s analysis engine performs in real time rather than on a fixed schedule. A matching rule raises an alert with a rule ID, severity level, and the full decoded event, all serialized as JSON in alerts.json.</p><h3>3.2 Enrichment: Alert Forwarding and IP Reputation Lookup</h3><p>The wazuh-integratord module watches alerts.json for entries matching the level-3-and-above filter configured in ossec.conf and forwards each one as an HTTP POST to the Shuffle webhook. Shuffle’s workflow then extracts the source IP from the payload using the $exec. data.srcip variable reference and passes it to the AbuseIPDB v2 action, which calls the /api/v2/check endpoint on Shuffle’s behalf. The response is a structured reputation object — abuseConfidenceScore, country, ISP, and total report count — that quantifies how frequently that IP has been reported for malicious activity elsewhere, turning a bare source-IP field into an actionable risk signal. In this lab, the AbuseIPDB confidence score alone gates the downstream response step; in a production deployment, it should be treated as one factor in the blocking decision rather than the sole criterion, combined with signals such as alert severity, internal allow-lists, and attempt frequency, to help minimize false positives.</p><h3>3.3 Response: Wazuh Active Response Integration</h3><p>Wazuh’s Active Response subsystem pairs a named command (a script such as firewall-drop, present on the manager or pushed to agents) with a trigger and a location, defined in ar.conf; historically this is invoked automatically by the manager when a rule’s response tag matches, but the same Active Response action can also be triggered externally over the Wazuh API, authenticated with a short-lived JWT, on port 55000. Calling this API endpoint does not execute the response script directly; rather, the request tells the Wazuh manager to trigger the named Active Response action, which the manager then processes according to its own Active Response configuration in ar.conf, including dispatching the command to the appropriate agent. This lab wired that external path: the HTTP node built in Section 6.3 calls the Active Response endpoint to request the firewall-drop action, passing the offending srcip in its JSON body. That call was validated by test-executing the workflow with a captured alert payload and confirming the API accepted the request (Section 9.3) — the remaining step, not captured in this write-up, is confirming from the firewall side (e.g. iptables -L or the agent’s active-response log) that the drop rule was actually applied to a live, currently-attacking IP; this is called out explicitly as a next step in Section 11.</p><h3>4. AWS Environment Setup</h3><p>All three EC2 instances shared a single AWS VPC/subnet, with a security group restricting SSH (22) to the administrator’s IP while opening the ports needed for inter-component traffic: 443/55000 for the Wazuh Dashboard and API, 1514/1515 for agent enrollment, and 3001 for the Shuffle webhook listener.</p><h3>5. Deploying Shuffle (SOAR Platform)</h3><p>Shuffle was deployed on its own EC2 instance via Docker Compose, cloned from the official repository. Two configuration issues surfaced during setup: OpenSearch 3.2.0 requires an OPENSEARCH_INITIAL_ADMIN_PASSWORD variable, and the value in the .env file initially contained quotes and an inline comment that broke Compose’s parsing; separately, the container was OOM-killed (exit 137) because the configured 3072 MB Java heap left too little memory for the 3.7 GB instance. Correcting the .env syntax and reducing the heap to 1 GB (-Xms1g -Xmx1g) resolved both issues, after which all Shuffle containers (frontend, backend, orborus, shuffle-tools, shuffle-ai, tenzir-node) reported a stable Up status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*EwY-eHIGbBxegrAfACGGrg.png" /></figure><h3>6. Building the Shuffle Automation Workflow</h3><p>A new workflow named Wazuh-AbuseIPDB-Response was created from scratch in the Shuffle UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*rkxVi7cy3eyNJaW4h045Tg.png" /></figure><h3>6.1 Webhook Trigger</h3><p>A Webhook node was added as the workflow’s entry point and started, generating a unique callback URL that Wazuh would later be configured to POST alerts to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*qVACgsaD6NmfqNUqY12eyw.png" /></figure><h3>6.2 AbuseIPDB Enrichment Node</h3><p>An AbuseIPDB action node was connected to the webhook and authenticated using a free-tier AbuseIPDB API key. The action was configured to check the reputation of the source IP extracted from the incoming Wazuh alert ($exec.data.srcip).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*b_UGrGF0B3RM1TiHCvoUyQ.png" /></figure><p>During testing, the original AbuseIPDB app returned a deprecation error (“AbuseIPDB APIv1 has been DEPRECATED”). The node was replaced with the AbuseIPDB v2 app, which uses the current, supported API endpoint.</p><h3>6.3 HTTP Node-Wazuh Active Response Call</h3><p>An HTTP node was added downstream of the AbuseIPDB node to represent the intended response action: a POST request to the Wazuh Manager’s Active Response API (port 55000), instructing the manager to trigger the firewall-drop Active Response action against the offending source IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*0LJYkyAtrZ7hXPscJuwJWg.png" /></figure><p>The workflow was saved and manually test-executed using a previously captured Wazuh alert payload as a runtime argument.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*0jHvBLFY0xo6WsjsZtI8ZQ.png" /></figure><h3>7. Configuring the Wazuh–Shuffle Integration</h3><p>On the Wazuh Manager, an &lt;integration&gt; block was added to ossec.conf pointing to the Shuffle webhook URL, restricted to alerts of level 3 and above, formatted as JSON.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*tMnBa-FvOBNAZSVHJNuNOw.png" /></figure><p>The Wazuh Manager service was restarted, and the wazuh-integratord module — responsible for dispatching alerts to external integrations — was confirmed running.</p><h3>7.1 Wazuh API Authentication</h3><p>To allow the HTTP action inside Shuffle to call the Wazuh Active Response API, a JSON Web Token (JWT) was generated using the built-in wazuh-wui service account, whose credentials were located inside the Wazuh installation archive (wazuh-install-files.tar). A short helper script was also drafted to automate token refresh, since Wazuh API tokens expire after 15 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*Dm_Eyf3ctPzMNRMbjIPK2g.png" /></figure><h3>8. AbuseIPDB API Key Provisioning</h3><p>A free-tier AbuseIPDB account was used to generate an API key (1,000 lookups/day), which was applied to the AbuseIPDB v2 authentication profile inside Shuffle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*oe3C6R9d8ZK7upDSctsZcA.png" /></figure><h3>9. Testing &amp; Validation</h3><p>To generate realistic detection data, repeated failed SSH login attempts were issued against the Agent host’s public IP from an external machine, ensuring the source IP captured by Wazuh was a genuine public address (rather than 127.0.0.1, which AbuseIPDB cannot evaluate).</p><p>Example commands used to simulate the brute-force attempts:</p><p>ssh wronguser@&lt;agent-victim-public-ip&gt;<br>ssh wronguser@&lt;agent-victim-public-ip&gt;<br>ssh wronguser@&lt;agent-victim-public-ip&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*7X95phkdOgd671IIdx7oLQ.png" /></figure><h3>9.1 Detection Confirmed in Wazuh</h3><p>The Wazuh Dashboard’s Threat Hunting module recorded 241 hits against Agent01 for rule 5710 (“Attempt to login using a non-existent user”) and rule 5712 (“sshd: brute force trying to get access to the system”), confirming that the detection layer was functioning correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*j36RuPNxF4sFsddFnG8LmA.png" /></figure><p>Drilling into an individual alert confirmed the exact source IP, port, and username captured in the event, along with GeoIP attribution — the data was later passed on to AbuseIPDB for reputation scoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*-fTxC8xbjeFmVmZXslOZyQ.png" /></figure><h3>9.2 Enrichment Confirmed in Shuffle</h3><p>With the corrected AbuseIPDB v2 node, the workflow execution returned HTTP status 200 with a complete reputation record for the captured source IP, including country code, ISP, abuse confidence score, and report history, confirming the enrichment stage of the pipeline was fully operational.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*noFTKbH10TDiqiq04Vxvgw.png" /></figure><h3>9.3 Final Workflow State</h3><p>The completed workflow-Webhook -&gt; AbuseIPDB v2 -&gt; HTTP (Active Response) -was left in a Running state, ready to process live Wazuh alerts. The HTTP call to the Active Response API was validated using a test execution (the endpoint accepted the request and returned a successful response), but confirming that Wazuh actually applies the firewall-drop rule against a live, currently-attacking IP was not captured for this write-up and is called out as a next step in Section 11.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*_5HIl1L2ypTdAAM_GvwQpQ.png" /></figure><h3>10. Results &amp; Conclusion</h3><p>This lab successfully demonstrated an end-to-end SIEM-to-SOAR detection and enrichment pipeline, with the response stage built and validated up to (but not including) a confirmed live IP block. Key outcomes:</p><p>• Wazuh reliably detected simulated SSH brute-force attacks and generated structured, rule-based alerts (rules 5710 / 5712).</p><p>• The wazuh-integratord module successfully forwarded matching alerts to an external Shuffle webhook in real time.</p><p>• Shuffle’s AbuseIPDB v2 integration enriched each alert with live IP reputation data (confidence score, ISP, country, report history).</p><p>• An HTTP action was built, authenticated, and test-validated against the Wazuh Active Response API, laying the groundwork for fully automated IP blocking once end-to-end enforcement is confirmed.</p><p>Beyond the core integration, the lab surfaced a number of practical operational lessons common to self-hosted SOAR deployments: memory sizing for OpenSearch-backed applications, environment-variable pitfalls in Docker Compose, Wazuh API token lifecycle management, and the importance of testing enrichment logic against real public IP addresses rather than loopback traffic. These findings are directly applicable to hardening the deployment for a production-style proof of concept.</p><p>Suggested next steps: capture end-to-end proof that the Active Response call actually blocks the offending IP (e.g., an iptables -L or ar.log entry taken immediately after a live trigger), move the block/notify branching logic fully into Shuffle (confidence-score thresholds), automate Wazuh API token renewal via the refresh_token.sh script on a cron schedule, and migrate the Shuffle server to a t3.large instance (or Shuffle’s managed cloud offering) to eliminate the memory-pressure issues observed during testing.</p><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13178f869171" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WAZUH SIEM Web Shell Attack Detection]]></title>
            <link>https://medium.com/@maryamliaqat4583/wazuh-siem-web-shell-attack-detection-095f754ee120?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/095f754ee120</guid>
            <category><![CDATA[webshell-attack-detection]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 06:44:18 GMT</pubDate>
            <atom:updated>2026-06-24T06:44:18.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pDZ-nMdsg5nNwcTWBdfbgA.png" /></figure><h3>Executive Summary</h3><p>This report documents the complete implementation and validation of a web shell attack detection capability using Wazuh SIEM deployed on AWS EC2 instances. The lab demonstrates how File Integrity Monitoring (FIM), combined with Apache log analysis, auditd process monitoring, and custom detection rules, can identify malicious PHP web shell uploads and executions in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*aIkV2DBbPnu82n3ashQk-A.png" /></figure><h3>2. Environment Overview</h3><h3>2.1 AWS Infrastructure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*8BCKf_XhAk5u35T53ouqXA.png" /></figure><h3>2.2 Detection Architecture</h3><p>The detection pipeline consists of four layers working in sequence:</p><p>• Layer 1 — File System: Wazuh FIM monitors /var/www/html in real-time via Linux inotify.</p><p>• Layer 2 — Log Collection: Apache access/error logs forwarded to Wazuh Manager.</p><p>• Layer 3 — Process Monitoring: Auditd captures OS-level command execution by Apache.</p><p>• Layer 4 — Rules Engine: Custom rules 100300–100302 evaluate events for web shell indicators.</p><p>• Layer 5—Alerting: High-severity alerts (Level 13–14) displayed on the Wazuh Dashboard.</p><p><strong>3. Implementation Steps</strong></p><h3>Step 1: Apache Web Server Installation</h3><p>An Apache web server was installed on the agent EC2 instance to simulate a production web environment and provide the attack surface for the web shell upload test.</p><blockquote>sudo apt update</blockquote><blockquote>sudo apt install apache2 -y</blockquote><blockquote>sudo systemctl start apache2</blockquote><blockquote>sudo systemctl enable apache2</blockquote><blockquote>sudo systemctl status apache2</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*T0DY-BtzUx9LLoTwcdne2g.png" /></figure><h3>Step 2: Wazuh Agent Deployment</h3><p>The Wazuh agent was deployed via the Wazuh Dashboard using the Deploy New Agent wizard. Navigation: Wazuh Dashboard → Agents → Deploy New Agent → OS: Ubuntu, Architecture: x86_64.</p><blockquote>sudo WAZUH_MANAGER=’&lt;MANAGER_PRIVATE_IP&gt;’ WAZUH_AGENT_NAME=’web-agent-01&#39; dpkg -i wazuh-agent_*.deb</blockquote><blockquote>sudo systemctl daemon-reload</blockquote><blockquote>sudo systemctl enable wazuh-agent</blockquote><blockquote>sudo systemctl start wazuh-agent</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*q8rxy6n7sknirWCR9iWO1Q.png" /></figure><h3>Step 3: File Integrity Monitoring (FIM) Configuration</h3><p>The Wazuh Agent configuration file was modified to enable real-time FIM on the web root and temporary directories. The realtime=’yes’ attribute uses Linux inotify to trigger alerts instantly—without it, detection would be delayed up to 12 hours.</p><blockquote>sudo nano /var/ossec/etc/ossec.conf</blockquote><blockquote>&lt;syscheck&gt;</blockquote><blockquote>&lt;disabled&gt;no&lt;/disabled&gt;</blockquote><blockquote>&lt;directories realtime=”yes” check_all=”yes” report_changes=”yes”&gt;</blockquote><blockquote>/var/www/html</blockquote><blockquote>&lt;/directories&gt;</blockquote><blockquote>&lt;directories realtime=”yes” check_all=”yes”&gt;/tmp,/var/tmp&lt;/directories&gt;</blockquote><blockquote>&lt;/syscheck&gt;</blockquote><h3>Step 4: Apache Log Collection</h3><p>The agent was configured to forward Apache access and error logs to the Wazuh Manager, enabling HTTP-based detection rules (Rule 100302) to fire on suspicious request patterns such as cmd= or eval( in URLs.</p><blockquote>&lt;localfile&gt;</blockquote><blockquote>&lt;log_format&gt;apache&lt;/log_format&gt;</blockquote><blockquote>&lt;location&gt;/var/log/apache2/access.log&lt;/location&gt;</blockquote><blockquote>&lt;/localfile&gt;</blockquote><blockquote>&lt;localfile&gt;</blockquote><blockquote>&lt;log_format&gt;apache&lt;/log_format&gt;</blockquote><blockquote>&lt;location&gt;/var/log/apache2/error.log&lt;/location&gt;</blockquote><blockquote>&lt;/localfile&gt;</blockquote><h3>Step 5: Auditd Installation &amp; Configuration</h3><p>Auditd was installed on the agent to monitor OS-level process execution. This detects when Apache spawns suspicious child processes such as bash, id, or whoami — the hallmark of actual web shell execution.</p><blockquote>sudo apt install auditd -y</blockquote><blockquote>sudo systemctl enable auditd &amp;&amp; sudo systemctl start auditd</blockquote><blockquote># /etc/audit/rules.d/webshell.rules</blockquote><blockquote>-a always,exit -F arch=b64 -S execve -F exe=/bin/bash -k webshell_exec</blockquote><blockquote>-a always,exit -F arch=b64 -S execve -F exe=/bin/sh -k webshell_exec</blockquote><blockquote>-a always,exit -F arch=b64 -S execve -F exe=/usr/bin/id -k webshell_exec</blockquote><blockquote>-a always,exit -F arch=b64 -S execve -F exe=/usr/bin/whoami -k webshell_exec</blockquote><blockquote>sudo augenrules — load</blockquote><blockquote>sudo systemctl restart auditd</blockquote><h3>Step 6: Configuration Validation and Agent Restart</h3><p>Before restarting the agent, the XML configuration was validated using xmllint to prevent service failures caused by syntax errors.</p><blockquote>sudo apt install libxml2-utils -y</blockquote><blockquote>sudo xmllint — noout /var/ossec/etc/ossec.conf</blockquote><blockquote>sudo systemctl restart wazuh-agent</blockquote><blockquote>sudo systemctl status wazuh-agent</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*jAJAr4h413cDtNT1c8Ev8w.png" /></figure><p><strong>Step 7: Custom Detection Rules (Wazuh Manager)</strong></p><p>Custom detection rules were created on the Wazuh Manager to specifically identify web shell activity. Rule IDs in the 100300 range were chosen to avoid conflicts with built-in rules.</p><blockquote>sudo nano /var/ossec/etc/rules/webshell_rules.xml</blockquote><blockquote>&lt;group name=”webshell,attack,syscheck”&gt;</blockquote><blockquote>&lt;! — Rule 100300: Any file change in web root →</blockquote><blockquote>&lt;rule id=”100300&quot; level=”12&quot;&gt;</blockquote><blockquote>&lt;if_group&gt;syscheck&lt;/if_group&gt;</blockquote><blockquote>&lt;match&gt;/var/www/html&lt;/match&gt;</blockquote><blockquote>&lt;description&gt;File added or modified in web directory&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1505.003&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;! — Rule 100301: PHP/JSP file specifically →</blockquote><blockquote>&lt;rule id=”100301&quot; level=”14&quot;&gt;</blockquote><blockquote>&lt;if_sid&gt;100300&lt;/if_sid&gt;</blockquote><blockquote>&lt;match&gt;.php|.jsp|.aspx|.phtml&lt;/match&gt;</blockquote><blockquote>&lt;description&gt;Possible web shell — PHP/JSP file in web directory!&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1505.003&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;! — Rule 100302: Command execution via HTTP →</blockquote><blockquote>&lt;rule id=”100302&quot; level=”13&quot;&gt;</blockquote><blockquote>&lt;if_group&gt;web|apache&lt;/if_group&gt;</blockquote><blockquote>&lt;match&gt;cmd=|command=|exec=|passthru|system(|eval(&lt;/match&gt;</blockquote><blockquote>&lt;description&gt;Web shell command execution via HTTP&lt;/description&gt;</blockquote><blockquote>&lt;mitre&gt;&lt;id&gt;T1059&lt;/id&gt;&lt;/mitre&gt;</blockquote><blockquote>&lt;/rule&gt;</blockquote><blockquote>&lt;/group&gt;</blockquote><blockquote>sudo systemctl restart wazuh-manager</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*Cz1bTNqkPsmYkMeWiyV_vA.png" /></figure><h3>Step 8: Attack Simulation</h3><p>A simulated web shell was uploaded to the web root directory on the agent instance to trigger the detection rules. This replicates the behavior of an attacker uploading a PHP reverse shell via a vulnerable file upload form.</p><blockquote># Remove any previous test file</blockquote><blockquote>sudo rm -f /var/www/html/shell.php</blockquote><blockquote># Upload simulated web shell</blockquote><blockquote>echo ‘&lt;?php system($_GET[“cmd”]); ?&gt;’ | sudo tee /var/www/html/shell.php</blockquote><blockquote># Simulate attacker executing OS commands through the web shell</blockquote><blockquote>curl “http://localhost/shell.php?cmd=id&quot;</blockquote><blockquote>curl “http://localhost/shell.php?cmd=whoami&quot;</blockquote><blockquote>curl “http://localhost/shell.php?cmd=uname+-a&quot;</blockquote><blockquote>curl “http://localhost/shell.php?cmd=cat+/etc/passwd&quot;</blockquote><p>Note: This simulates a classic one-liner PHP web shell. In a real attack, this file would be uploaded through a vulnerable web application form. The curl commands simulate an attacker actively executing OS commands through the shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*0Qmr8o7xlmDzLHGA5yOjDw.png" /></figure><p><strong>4. Detection Results</strong></p><h3>4.1 Alerts Generated</h3><p>Within 60 seconds of shell.php being written to the web root, Wazuh generated multiple high-severity alerts on the dashboard. The detection covered both the file drop (FIM) and the active command execution (Apache logs).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*7zDJ7uInzVZYySgZ7r-3rg.png" /></figure><h3>4.2 Alert Summary Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*A9HF9PWffSqDt7v7UGEPuw.png" /></figure><h3>4.3 Rule 100301 — Alert Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*aNPxJMy1wXZ3juTSSZYNaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*5Ko_DK7-8tYeydvPbl8Geg.png" /></figure><h3>4.4 Rule 100302 — Alert Details</h3><p>Rule 100302 fired 4 times — once for each curl command executed. The Apache access log captured the cmd= parameter in the URL, confirming active command execution through the web shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*qWpPxtMp4Idm1lxCQZV6hg.png" /></figure><h3>4.5 Full Event Timeline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*ZtAbbdrZHqnH9CKBwcfC-g.png" /></figure><h3>4.6 Rule Chain Explanation</h3><p>The detection worked through a chained rule architecture:</p><p><strong>•</strong> <strong>Rule 100300 (Level 12): </strong>Fires on any FIM syscheck event where the file path contains /var/www/html. This is the base trigger.</p><p><strong>•</strong> <strong>Rule 100301 (Level 14): </strong>Chains from Rule 100300 via if_sid and additionally matches .php, .jsp, .aspx, or. phtml. Escalates severity to high.</p><p><strong>•</strong> <strong>Rule 100302 (Level 13): </strong>Independently monitors Apache logs. Fires when cmd=, exec=, eval(, or similar web shell execution patterns appear in HTTP request URLs.</p><p>Note: Level 14 is classified as High severity in Wazuh. Levels 12+ are typically configured to trigger immediate notifications to the SOC team via email or Slack.</p><h3>5. Conclusion</h3><p>This lab successfully demonstrated end-to-end real-time web shell attack detection using Wazuh SIEM on AWS. The implementation validated that FIM-based monitoring of web root directories, combined with Apache HTTP log analysis and auditd process monitoring, provides a comprehensive detection capability mapped to the MITRE ATT&amp;CK framework.</p><p>The key improvement over the initial lab was proving actual web shell execution (Rule 100302 firing on cmd= in Apache logs) rather than only detecting the presence of a PHP file. This distinction is critical in a real SOC environment where legitimate PHP deployments must be differentiated from malicious web shells.</p><h3>5.1 Key Findings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*COdniMZcmiDgkgXtR12htw.png" /></figure><h3>5.2 Recommendations for Production</h3><p>1. Enable email/Slack alerts for Level 12+ rules to notify the SOC team immediately.</p><p>2. Add CDB lists with known web shell content signatures for content-based detection.</p><p>3. Extend FIM monitoring to /tmp and /var/tmp to detect staged payloads before deployment.</p><p>4. Integrate with the SOAR platform to automatically quarantine files matching Rule 100301.</p><p>5. Deploy Wazuh Vulnerability Detector to identify CVEs on the web server that could enable initial access.</p><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=095f754ee120" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WAZUH SIEM Docker Container Monitoring Lab]]></title>
            <link>https://medium.com/@maryamliaqat4583/wazuh-siem-docker-container-monitoring-lab-a7d301d88535?source=rss-d497b57b221e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7d301d88535</guid>
            <category><![CDATA[docker-monitoring]]></category>
            <dc:creator><![CDATA[Maryamliaqat]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 04:48:34 GMT</pubDate>
            <atom:updated>2026-06-23T04:50:35.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Lab Overview</h3><p>This document provides a complete technical walkthrough of setting up Docker container monitoring using Wazuh SIEM on an AWS EC2 instance. The lab demonstrates how Wazuh can detect and alert on Docker container lifecycle events, suspicious activity such as shell sessions, and container deletions in real time.</p><h3>1.1 Objectives</h3><p>• Install and configure Docker on an AWS EC2 Ubuntu instance</p><p>• Enable Wazuh Docker listener module for container event monitoring</p><p>• Deploy test containers and verify detection capabilities</p><p>• Simulate suspicious Docker activity and observe generated alerts</p><p>• Verify all alerts in the Wazuh Security Dashboard</p><h3>1.2 Environment Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*V0DueWlEVhDHlaoaPH89ig.png" /></figure><h3>2. Step-by-Step Implementation</h3><h3><strong>STEP</strong> <strong>1: Docker Installation on AWS EC2</strong></h3><h3>2.1.1 Connect to EC2 Instance</h3><p>ssh ubuntu@YOUR_WAZUH_SERVER_IP</p><p><strong>2.1.2 Install Docker</strong></p><p>Run the following commands in sequence to install Docker CE:</p><blockquote>sudo apt-get update -y</blockquote><blockquote>sudo apt-get install -y ca-certificates curl gnupg lsb-release</blockquote><blockquote>sudo install -m 0755 -d /etc/apt/keyrings</blockquote><blockquote>curl -fsSL <a href="https://download.docker.com/linux/ubuntu/gpg">https://download.docker.com/linux/ubuntu/gpg</a> | sudo gpg — dearmor -o /etc/apt/keyrings/docker.gpg</blockquote><blockquote>sudo apt-get install -y docker-ce docker-ce-cli containerd.io</blockquote><blockquote>sudo usermod -aG docker ubuntu</blockquote><blockquote>sudo systemctl start docker &amp;&amp; sudo systemctl enable docker</blockquote><h3>2.1.3 Verify Installation</h3><blockquote>docker — version</blockquote><blockquote>sudo systemctl status docker</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*cD33UzMWE7ENCoLRud90kg.png" /></figure><h3><strong>STEP</strong> <strong>2: Wazuh Docker Listener Configuration</strong></h3><h3>2.2.1 Edit Wazuh Configuration File</h3><p>Open the main Wazuh configuration file:</p><blockquote>sudo nano /var/ossec/etc/ossec.conf</blockquote><p>Add the following XML block just before the closing &lt;/ossec_config&gt; tag (at the end of the file):</p><blockquote>&lt;! — Docker Container Monitoring →</blockquote><blockquote>&lt;wodle name=”docker-listener”&gt;</blockquote><blockquote>&lt;disabled&gt;no&lt;/disabled&gt;</blockquote><blockquote>&lt;attempts&gt;5&lt;/attempts&gt;</blockquote><blockquote>&lt;run_on_start&gt;yes&lt;/run_on_start&gt;</blockquote><blockquote>&lt;interval&gt;10m&lt;/interval&gt;</blockquote><blockquote>&lt;/wodle&gt;</blockquote><p><strong>2.2.2 Install Python Docker SDK</strong></p><blockquote>sudo /var/ossec/framework/python/bin/pip3 install docker</blockquote><p><strong>NOTE</strong></p><p>Docker SDK 7.1.0 was already present in the Wazuh Python environment — no additional installation was required.</p><h3>2.2.3 Restart Wazuh Manager</h3><blockquote>sudo systemctl restart wazuh-manager</blockquote><blockquote>sudo systemctl status wazuh-manager | head -5</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*g1m1KkPxcFBOcVwY6nkbpQ.png" /></figure><h3>2.2.4 Verify Docker Listener is Active</h3><blockquote>sudo tail -50 /var/ossec/logs/ossec.log | grep -i docker</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*u1OR5weWhmWFcWEkOKedyg.png" /></figure><h3><strong>STEP</strong> <strong>3: Deploy Test Containers</strong></h3><h3>2.3.1 Pull and Run Test Containers</h3><p>Deploy two test containers to generate Docker events for Wazuh to monitor:</p><blockquote>sudo docker run -d — name test-nginx nginx</blockquote><blockquote>sudo docker run -d — name test-alpine alpine sleep 300</blockquote><h3>2.3.2 Verify Containers Are Running</h3><blockquote>sudo docker ps</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*pKIRY_1NugQEWeI76n1zEg.png" /></figure><h3><strong>STEP</strong> <strong>4: Detection Rules Verification</strong></h3><h3>2.4.1 Built-in Docker Rules</h3><p>Wazuh includes built-in Docker detection rules in the following file:</p><blockquote>/var/ossec/ruleset/rules/0560-docker_integration_rules.xml</blockquote><p>Key rules identified (Rule IDs 87900–87958):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*AO8P8ei68m_lNKAP2Dk4uQ.png" /></figure><h3><strong>STEP</strong> <strong>5: Simulate Suspicious Docker Activity</strong></h3><h3>2.5.1 Open Shell Session Inside Container</h3><p>This simulates an attacker or unauthorized user accessing a container shell — triggers Rule 87908 (Level 5):</p><blockquote>sudo docker exec -it test-nginx bash</blockquote><p>exit</p><h3>2.5.2 Stop a Container</h3><p>Stopping a container generates a ‘die’ event — triggers Rule 87924 (Level 7):</p><blockquote>sudo docker stop test-alpine</blockquote><h3>2.5.3 Delete a Container</h3><p>Container deletion triggers Rule 87902 (Level 5) — destruction event:</p><blockquote>sudo docker rm test-alpine</blockquote><h3>2.5.4 Verify Alerts in Log Files</h3><blockquote>sudo tail -100 /var/ossec/logs/alerts/alerts.log | grep -i docker</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ZM8w8Dhto9fDaTML2ytJRg.png" /></figure><h3><strong>STEP</strong> <strong>6: Dashboard Alert Verification</strong></h3><h3>2.6.1 Access Wazuh Dashboard</h3><p>Open the Wazuh web dashboard in a browser:</p><p><a href="https://your_wazuh_server_ip/">https://YOUR_WAZUH_SERVER_IP</a></p><h3>2.6.2 Navigate to Security Events</h3><p>Follow this path in the dashboard:</p><p>• Click Security Events from the left sidebar</p><p>• Set time range to Last 24 hours</p><p>• In the search bar, type: rule.groups: docker</p><p>• Click Refresh to load results</p><p><strong>2.6.3 Alerts Generated (12 Total)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*xT3QK1CNrLwzfaj5i2RtoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*EPfsY7J65G81pcfjM4YxXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*1RBBW07Epf5I7dUe35mbYw.png" /></figure><h3>3. Lab Completion Summary</h3><h3>3.1 Key Findings</h3><p>• Wazuh successfully detected all Docker container lifecycle events in real time</p><p>• Shell session access inside containers was flagged at Level 5 (Rule 87908) — a significant security concern in production environments</p><p>• Container destruction events triggered Level 5 alerts (Rule 87902)</p><p>• Container kill/die events triggered the highest severity Level 7 alerts (Rule 87924)</p><p>• 12 total Docker events were captured and visible in the Wazuh Security Dashboard</p><h3>3.2 Security Recommendations</h3><p>• Monitor Rule 87908 closely — unauthorized shell sessions inside containers indicate potential compromise</p><p>• Set up email or Slack notifications for Level 5+ Docker alerts</p><p>• Restrict Docker exec permissions using sudo policies or Docker authorization plugins</p><p>• Regularly audit container images for known vulnerabilities using tools like Trivy</p><p>• Enable Wazuh active response to automatically block suspicious container activity</p><h3>3.3 Conclusion</h3><p>This lab successfully demonstrated the integration of Wazuh SIEM with Docker for comprehensive container security monitoring. The built-in rule set (87900–87958) provides immediate value with no custom configuration required. Organizations running containerized workloads should enable this monitoring capability as part of their baseline security posture.</p><h3>Learn more about Wazuh and the Ambassador Program:</h3><p>🔗 Learn more about Wazuh here: <a href="https://wazuh.com/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh</a></p><p>🔗 Discover the Wazuh Ambassador Program: <a href="https://wazuh.com/ambassadors-program/?utm_source=ambassadors&amp;utm_medium=referral&amp;utm_campaign=ambassadors+program">Wazuh Ambassador</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7d301d88535" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>