<?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 Richard Akintola on Medium]]></title>
        <description><![CDATA[Stories by Richard Akintola on Medium]]></description>
        <link>https://medium.com/@akintolarichard07?source=rss-712b39b74c95------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*um3CgRCuav3ePVsO</url>
            <title>Stories by Richard Akintola on Medium</title>
            <link>https://medium.com/@akintolarichard07?source=rss-712b39b74c95------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:29:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akintolarichard07/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[Setting Up and Managing a Microsoft Entra ID Tenant (Hands-on IT Walkthrough)]]></title>
            <link>https://medium.com/@akintolarichard07/setting-up-and-managing-a-microsoft-entra-id-tenant-hands-on-it-walkthrough-420d655c9edf?source=rss-712b39b74c95------2</link>
            <guid isPermaLink="false">https://medium.com/p/420d655c9edf</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Richard Akintola]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 18:21:34 GMT</pubDate>
            <atom:updated>2026-04-25T18:21:34.050Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>In a real IT environment, identity is the control layer of everything, who can access systems, what they can do, and how activity is tracked. To understand this in practice, I set up and managed a tenant in Microsoft Entra ID, simulating common administrative tasks such as user provisioning, access control, and basic security configurations.</p><p>Microsoft Entra ID (formerly Azure Active Directory) is Microsoft’s cloud-based identity and access management service. At its core it handles one of the most critical functions in any IT environment: controlling who has access to what. From provisioning new user accounts to managing the full lifecycle of an identity, deprovisioning included, Entra ID is the backbone of access control in most modern organizations running on Microsoft infrastructure</p><p>I decided to do this hands-on lab because understanding identity management conceptually is one thing, but actually navigating the portal, creating users, assigning groups, and reading audit logs is another. This article documents what I built and what I learnt.</p><p>In this article I’ll cover:</p><ul><li>Setting up a fresh Microsoft Entra ID tenant from scratch</li><li>Creating and configuring user accounts</li><li>Organizing users into security groups</li><li>Managing the user lifecycle: disabling accounts, resetting passwords</li><li>Enforcing baseline security through Security defaults</li><li>Investigating activity through Audit logs and Sign-in logs</li></ul><h3>Setting Up the Tenant</h3><p>A tenant in Microsoft Entra ID is an isolated instance of Microsoft’s cloud-based identity and access management service that represents a single organization within Azure. It serves as the organization’s dedicated identity environment, where all users, groups, applications, security policies, and access controls are managed. Every account within the tenant is associated with a domain (e.g. <strong>john.adeyemi@richardlabs.onmicrosoft.com), </strong>which forms part of its identity.</p><p>I initially attempted to work within my university account but quickly encountered access errors. This is because the director is owned and managed by the university, and my account only has member-level permissions rather than administrative rights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihCAporPzprsg-GM0P7YTQ.jpeg" /><figcaption><strong>Access restriction in a university managed tenant in Microsoft Entra ID, demonstrating member level access without administrative privileges.</strong></figcaption></figure><p>To get full control of the environment, I created a new tenant from scratch in Microsoft Entra ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHTE20THo7kbZxI7kKEPxA.jpeg" /><figcaption><strong>Starting the process of creating a tenant</strong></figcaption></figure><p>That tenant, <strong>Richard Labs, </strong>serves as my test and administration environment. As the creator, I am automatically assigned the <strong>Global administrator</strong> role, which means I have full control over users, groups, applications, security settings, and audit logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWKvYpnRJO5nSRK_KSQEgg.jpeg" /><figcaption><strong>Richard Labs tenant overview in Microsoft Entra ID, showing directory details and administrative scope</strong></figcaption></figure><p>It’s worth noting that this is a free tier tenant, so some features are limited. For example, dynamic group membership requires Microsoft Entra ID P1 or P2 licensing. Where these limitations came up, I worked around them and noted how the feature would function in a fully licensed production environment.</p><h4><strong>Creating Users</strong></h4><p>With the tenant in place, the next step was to simulate a basic organizational structure by creating users.</p><p>In Microsoft Entra ID, users represent individual identities within the environment. I created multiple user accounts and assigned them attributes such as display name, title, and department.</p><p>This step directly impacts how access is managed. In real IT environments:</p><ul><li>Departments help scope access (e.g. Finance vs IT)</li><li>Job titles can be used to align permissions or group membership</li><li>Proper user attributes improve organization, filtering, and policy targeting</li></ul><p>This mirrors how enterprises structure identity systems to ensure users only have access to what they need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzznTjUXmZxzbA5mDtNX8A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ClEcHW0W0Z2_oGVvyJrWKA.jpeg" /><figcaption><strong>User table displaying created account with assigned attributes (name, department, job title)</strong></figcaption></figure><h4>Creating Groups</h4><p>After creating users, I moved on to groups, which are essential for scalable access management.</p><p>In Microsoft Entra ID, groups simplify access control by allowing permissions to be assigned at the group level rather than per user.</p><p>There are two main types of groups in Entra ID:</p><ul><li>Assigned groups — administrators manually add users</li><li>Dynamic groups — membership is automatically assigned based on user attributes (e.g. department = IT)</li></ul><p>I created an assigned group and outlined how a dynamic group would function (based on department or role). Dynamic groups require P1/P2 licensing, so this was documented conceptually.</p><p>From an IT perspective, groups reduce repetitive work and maintaining consistent access control. Instead of assigning permissions user-by-user, access is granted to a group, and users inherit it automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aphFuWPwCOJVeeMyJlt3Iw.jpeg" /><figcaption><strong>View showing the creation of an assigned group for access management</strong></figcaption></figure><h4>Account Management: Disabling and Re-enabling Users</h4><p>User access needs to be controlled throughout their time in an organization. One of the most common administrative actions is disabling accounts when access should be temporarily or permanently revoked.</p><p>In Microsoft Entra ID, disabling a user account immediately prevents sign-in without deleting the account or its associated data.</p><p>This is typically used when:</p><ul><li>An employee leaves the organization</li><li>An account is under investigation</li><li>Temporary suspension is required</li></ul><p>Re-enabling the account restores access without needing to recreate the user, making it more efficient for temporary cases.</p><p>From an IT operations standpoint, this ensures access can be quickly revoked and restored while maintaining data integrity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEJ9dNl2whxvsWTY9eKluw.jpeg" /><figcaption><strong>Screenshot: Disabling a user account to immediately revoke sign-in access</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ibk3-TbrEQmVeVyLOPnWZA.jpeg" /><figcaption><strong>Screenshot: Re-enabling a user account to restore access</strong></figcaption></figure><h4><strong>Password Management: Resetting User Credentials</strong></h4><p>Password resets are one of the frequents tasks handled by IT support teams.</p><p>In Microsoft Entra ID, administrators can reset a user’s password and either:</p><ul><li>Assign a temporary password</li><li>Force the user to change it at next sign-in</li></ul><p>This is commonly required when:</p><ul><li>A user forgets their password</li><li>There is suspected account compromise</li><li>Credentials need to be rotated for security reasons</li></ul><p>Proper password management is critical for maintaining both usability and security. Poor reset practices can lead to repeated lockouts or increased risk of unauthorized access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39drdazGAjjUWg9sC598Vw.jpeg" /><figcaption><strong>Administrator-initiated password reset process for a user account</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqNu_WZRSGmXHH0M2BSzaQ.jpeg" /><figcaption><strong>Password reset configuration showing temporary password assignment and forced change at next sign-in</strong></figcaption></figure><h3>Security Defaults &amp; MFA</h3><p>Since this is a free-tier tenant, I worked with Security Defaults instead of advanced Conditional Access policies.</p><p>Security Defaults in Microsoft Entra ID enforce baseline protections such as:</p><ul><li>Mandatory Multi-Factor Authentication (MFA) for admins</li><li>MFA registration for users</li><li>Protection against legacy authentication</li></ul><p>For smaller organizations without P1/P2 licensing, this provides a strong starting point without requiring manual policy configuration.</p><p>From an IT standpoint, enabling MFA is one of the most effective ways to reduce account compromise risk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ZY38d6xP66DYZXng3kUkQ.jpeg" /><figcaption><strong>Security Defaults configuration enforcing baseline protections, including MFA requirements</strong></figcaption></figure><h3><strong>Audit Logs &amp; Sign-in Logs</strong></h3><p>Finally, I explored logging and monitoring, which are critical for both IT operations and incident response.</p><p>Two key log types in Entra ID:</p><ul><li>Audit Logs: Track changes (e.g., user created, password reset, group modified)</li><li>Sign-in Logs: Track authentication activity</li></ul><p>Within sign-in logs, there are two important categories:</p><ul><li>Interactive sign-ins: User-driven logins (e.g., signing into a portal)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypq9w3k4vlvX6XiMJsEpVw.jpeg" /><figcaption><strong>Sign-in logs displaying authentication activity for interactive sign-in events</strong>.</figcaption></figure><ul><li>Non-interactive sign-ins: Background authentication (e.g., service tokens, app access)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Egp3Cql1W-Qh1lzIsfFkg.jpeg" /><figcaption><strong>Sign-in logs displaying authentication activity for non-interactive sign-in events</strong></figcaption></figure><p>In a real IT environment, these logs are used to:</p><ul><li>Investigate suspicious login activity</li><li>Track administrative actions</li><li>Support troubleshooting (e.g., failed logins, MFA issues)</li></ul><p>Understanding the difference between the log types is essential when analyzing user behavior or responding to incidents. With this score areas covered, this setup reflects the day-to-day identity and access management tasks handled in a typical IT environment.</p><h4>Conclusion</h4><p>This setup provided a controlled environment to practice identity and access management tasks commonly handled in IT roles. From user provisioning and group-based access control to account lifecycle management, MFA enforcement, and log analysis each step reflects real operational responsibilities within an organization.</p><p>Although some advanced features required paid licensing, the foundational principles remain the same across environments. Effective identity management is not defined by tooling tiers, but by how well access is structured, monitored, and maintained.</p><p>This lab demonstrated a practical understanding of how Microsoft Entra ID is used to manage users, enforce security controls, and maintain visibility over authentication activity- skills that are directly applicable in both helpdesk and broader IT administration roles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=420d655c9edf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Suricata with Wazuh: Monitoring Network Traffic and Detecting ICMP Activity]]></title>
            <link>https://medium.com/@akintolarichard07/integrating-suricata-with-wazuh-monitoring-network-traffic-and-detecting-icmp-activity-45f5f62772b3?source=rss-712b39b74c95------2</link>
            <guid isPermaLink="false">https://medium.com/p/45f5f62772b3</guid>
            <category><![CDATA[suricata]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-monitoring]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[wazuh]]></category>
            <dc:creator><![CDATA[Richard Akintola]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 09:58:27 GMT</pubDate>
            <atom:updated>2026-03-18T09:58:27.225Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*2WEte-8PtaN4ehgfDVcrCA.png" /></figure><p>Effective security monitoring goes beyond host-level visibility and requires insight into network activity. While host-based tools detect events occurring within a system, network intrusion detection systems provide visibility into traffic patterns and potential threats moving across the network.</p><h4><strong>Project Overview</strong></h4><p>In this lab, I extended my monitoring setup beyond the host level by integrating Suricata with Wazuh to extend monitoring capabilities to the network layer. Suricata was deployed to analyze live network traffic and generate alerts based on its rule set, while Wazuh centralized and correlated these events for analysis.</p><p>This setup demonstrates the ability to build a layered monitoring solution that captures both host and network activity, a key requirement in real-world SOC environments. This lab builds on my previous post, where the <a href="https://medium.com/@akintolarichard07/building-a-malware-detection-workflow-with-wazuh-and-virustotal-e0befd727eac">Wazuh Manager and Agent </a>were installed and configured.</p><h4><strong>Lab Setup</strong></h4><p>To simulate this environment, two virtual machines were used</p><ul><li>Kali Linux VM — running the Wazuh Manager</li><li>Ubuntu VM — running the Wazuh Agent with Suricata installed</li></ul><p>Suricata is configured on the monitored host to inspect network traffic on a selected interface, while Wazuh collects and analyzes the alerts generated.</p><h4><strong>Walkthrough Overview</strong></h4><p>The following steps focus on installing and configuring Suricata on the monitored host and integrating its alerts into Wazuh for centralized analysis.</p><p>The</p><ol><li><strong>Install Suricata</strong></li></ol><pre>sudo add-apt-repository ppa:oisf/suricata-stable<br>sudo apt-get update<br>sudo apt-get install suricata -y<br></pre><p><strong>Verify version:</strong></p><pre>suricata -V</pre><p>2.<strong> Install curl:</strong></p><pre>sudo apt install curl</pre><p>3. <strong>Download and Install Rules:</strong></p><pre>cd /tmp/<br>curl -LO https://rules.emergingthreats.net/open.suricata-6.0.8/emerging.rules.tar.gz<br>sudo tar -xvzf emerging.rules.tar.gz<br>sudo mkdir -p /etc/suricata/rules<br>sudo mv rules/*.rules /etc/suricata/rules/</pre><p>4. <strong>Configure Suricata:</strong></p><pre>sudo nano /etc/suricata/suricata.yaml</pre><p>a. YAML Header — Without this, Suricata cannot parse the file.</p><p>You have to ensure that the Suricata configuration file included the required YAML header:</p><pre>%YAML 1.1<br>- - -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Br4NiBy8AJiWXyuewLm9qA.png" /><figcaption>Verifying YAML configuration header</figcaption></figure><p>b. Network Variables:</p><p>Define the network variables.</p><pre>HOME_NET:&quot;&lt;UBUNTU_IP&gt;&quot;<br>EXTERNAL_NET:&quot;any&quot;</pre><p>This configuration ensures Suricata identifies internal and external traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zCgR2G7jH6NT86M8wHpW6A.png" /><figcaption>Defining HOME_NET and EXTERNAL_NET</figcaption></figure><p>c. Rule Path &amp; Files:</p><p>Ensure that Suricata loads files correctly by defining the rule path.</p><pre>default-rule-path: /etc/suricata/rules<br>rule_files:<br> -&quot;*.rules&quot;<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUQmm-f0U8twqYDZV0PPxw.png" /><figcaption>Configuring Suricata rule loading</figcaption></figure><p>d. Get the interface of your Ubuntu:</p><p>To determine the correct interface for packet capture, run:</p><pre>Ip a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVEhVU9_GPCikOOYFQfPaQ.png" /><figcaption>Checking for the packet capture interface</figcaption></figure><p>e. Interface for Packet Capture:</p><p>Based on the output of<strong><em> ip a, </em></strong>configure Suricata to capture packets from the appropriate interface:</p><pre>af-packet:<br> -interface: ens33</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xie-ttQ3yVdITqrSnOfPqA.png" /><figcaption>Configuring packet capture interface</figcaption></figure><h4><strong>Validating the Suricata Configuration:</strong></h4><p>After making configuration changes, validate the configuration using:</p><pre>sudo suricata -T -c /etc/suricata/suricata.yaml</pre><p>This command checks the configuration file for syntax errors before starting the Suricata service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gpzDGOKsVjH0K5e1SpQPwA.png" /><figcaption>Successful configuration validation</figcaption></figure><p>5. <strong>Restart Suricata:</strong></p><pre>sudo systemctl restart suricata<br>sudo systemctl status suricata </pre><p>On your keyboard type CTL + C to return your terminal to normal mode</p><p>6. <strong>Configure Wazuh Agent to Read Suricata Logs:</strong></p><p>To allow Wazuh to monitor Suricata alerts, configure the Wazuh agent to read Suricata log files</p><pre>sudo nano /var/ossec/etc/ossec.conf</pre><p>The following configuration should be added inside <strong><em>&lt;ossec_config&gt;</em></strong>:</p><pre>&lt;localfile&gt;<br> &lt;log_format&gt;json&lt;/log_format&gt;<br> &lt;location&gt;/var/log/suricata/eve.json&lt;/location&gt;<br>&lt;/localfile&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w92gfraAczdvNv-Fn9poQQ.png" /><figcaption>Configuring Wazuh to ingest Suricata logs</figcaption></figure><p>This allows Wazuh to ingest Suricata alerts and display them on the Wazuh dashboard.</p><p>7. <strong>Restart Wazuh Agent:</strong></p><pre>sudo systemctl restart wazuh-agent</pre><p>8. <strong>Generate Traffic &amp; Verify Alerts:</strong></p><p><strong>Detection Simulation</strong></p><p>To validate the setup, network activity was generated by sending ICMP (ping) traffic across the monitored interface.</p><pre>ping -c 20 &lt;UBUNTU_IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRYjq_gITLouxik_GC4GqA.png" /><figcaption>Generating network traffic for Suricata analysis</figcaption></figure><p>9. <strong>View alert on Wazuh dashboard by navigating to “Threat hunting”:</strong></p><p>This activity was captured and analyzed by Suricata, which generated alerts based on its rule set.</p><p>These alerts were forwarded to Wazuh, where they could be observed and analyzed within the dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QRWaGrhaPnNQIKm61SfBnw.png" /><figcaption>Viewing integrated security alerts in Wazuh</figcaption></figure><h4>Analysis of Alerts</h4><p>After generating traffic, alerts appeared in the Wazuh interface, confirming that Suricata was successfully monitoring the network and forwarding events.</p><p>The alert demonstrate:</p><ul><li>Visibility into network-level activity</li><li>Detection of traffic patterns based on predefined rules</li><li>Centralized logging and analysis through Wazuh</li></ul><p>This confirms that the integration is functioning as expected, with Suricata acting as the network sensor and Wazuh serving as the analysis and alerting platform.</p><h4><strong>Conclusion</strong></h4><p>Integrating Suricata with Wazuh highlights the importance of combining host and network visibility in a security monitoring environment. While Wazuh provides insight into system-level activity, Suricata extends detection capabilities to network traffic, enabling a more comprehensive view of potential threats.</p><p>This lab demonstrates how layered monitoring improves detection by correlating events from multiple sources, which is a key concept in real-world SOC operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45f5f62772b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Malware Detection Workflow with Wazuh and VirusTotal]]></title>
            <link>https://medium.com/@akintolarichard07/building-a-malware-detection-workflow-with-wazuh-and-virustotal-e0befd727eac?source=rss-712b39b74c95------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0befd727eac</guid>
            <category><![CDATA[threat-detection]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Richard Akintola]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 15:39:42 GMT</pubDate>
            <atom:updated>2026-03-11T16:17:16.303Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K9JvWP8lR3JGu2cM" /><figcaption>Conceptual view of a security monitoring environment</figcaption></figure><h3><strong>Project Overview</strong></h3><p>This project involved detecting and monitoring suspicious files on a host system using Wazuh and VirusTotal. I deployed a Wazuh Manager and Agent, integrated VirusTotal to verify file hashes, and simulated malware detection using EICAR Test File. The project demonstrates how host-based monitoring combined with threat intelligence can quickly identify potentially harmful files in real time, showcasing practical SOC skills in malware detection and monitoring.</p><h3>Skills &amp; Tools Demonstrated</h3><p><strong>Technical Skills:</strong></p><ul><li>Host-based monitoring</li><li>Threat intelligence integration</li><li>Malware detection workflow</li><li>Linux configuration and command-line usage</li></ul><p><strong>Tools Used:</strong></p><ul><li>Wazuh (Manager &amp; Agent)</li><li>VirusTotal API</li><li>Kali Linux &amp; Ubuntu VMs</li><li>Curl &amp; basic Linux CLI</li></ul><p><strong>Concepts Applied:</strong></p><ul><li>Real-time alerting</li><li>File integrity monitoring</li><li>SOC workflow simulation</li><li>EICAR tests malware simulation</li></ul><h3><strong>The Challenge / Scenario</strong></h3><p><strong>SCENARIO:</strong></p><p>Monitoring hosts for suspicious files and verifying alerts using threat intelligence in a controlled lab environment.</p><p><strong>CHALLENGE:</strong></p><p>Ensuring proper integration between Wazuh and VirusTotal and triggering alerts using a test malware file while maintaining a realistic SOC workflow.</p><p><strong>OBJECTIVE:</strong></p><p>Demonstrate the full workflow from detection to verification of potentially malicious files on a monitored host.</p><h3>Approach/ Methodology</h3><p><strong>METHODOLOGY:</strong></p><ol><li><strong>Lab Setup:</strong> Two VMs deployed — Kali Linux as Wazuh Manger and Ubuntu as monitored host.</li><li><strong>System Update:</strong> Ensured both systems were fully updated to prevent compatibility issues.</li><li><strong>Wazuh Installation:</strong> Installed and configured Wazuh Manager and Agent.</li><li><strong>VirusTotal Integration: </strong>Configured API key in Wazuh to validate file hashes automatically.</li><li><strong>Malware Simulation: </strong>Downloaded the <strong>EICAR Test File</strong> to the monitored host using curl.</li></ol><p>The following section walks through the full process step-by-step, starting from installing Wazuh, deploying the agent, and finally simulating malware detection using the EICAR Test File.</p><ol><li>Update your machine:</li></ol><pre>sudo apt update</pre><p>2. Install curl if you’re using <strong>Ubuntu</strong>, it is on <strong>Kali Linux</strong> by default:</p><pre>sudo apt install curl</pre><p>3. Download and run the Wazuh installation assistant:</p><pre>curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh &amp;&amp; sudo bash ./wazuh-install.sh -a</pre><p><strong>Note</strong>: This takes some time, so have some patience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_95WdQqBEGdhnWZTO0WvBQ.png" /><figcaption>If you are using Kali, you will get the underlined message but just allow the script to continue running.</figcaption></figure><p>4. When the installation is done, you should see your password showing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UymFQ8sTFKS7D88onk0Hg.png" /></figure><p>5. Execute the following command to disable the Wazuh repository:</p><pre>sed -i &quot;s/^deb /#deb /&quot; /etc/apt/sources.list.d/wazuh.list<br>apt update</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gWEOmSCq8R8DreAbhFS4bw.png" /><figcaption>Note: Make sure you turn to root user before running the above commands.</figcaption></figure><p>6. Access the Wazuh manager</p><pre>https://&lt;your-VM-ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-XQG0Q_t_z-oiPAmUax8aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qOg8YLXXXyxBCvfl9Kngfw.png" /></figure><p>7. Run this command anytime you want to login back to Wazuh after booting on your VM:</p><pre>sudo systemctl restart wazuh-manager<br>sudo systemctl restart wazuh-indexer<br>sudo systemctl restart wazuh-dashboard</pre><h3><strong>INSTALL THE WAZUH AGENT:</strong></h3><ol><li>Click on deploy:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEnFRN-k_2LuK5yEQyTuBA.png" /></figure><p>2. Choose your endpoint architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*ZiWjAUqWpWoDQmbGatcplA.png" /></figure><p>3. Put in your Wazuh server IP address and toggle on remember IP address:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egyNO9GGcZnn--5ngf7P3g.png" /></figure><p>4. Make sure to give it an agent name to avoid some errors encountered when allowing the server to detect the endpoint automatically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSWdYMQ3JzLbH95nKqju2A.png" /></figure><p>5. Run this script as a root user on the host where you want to install Wazuh agent (the system that’ll be monitored - <strong>the Ubuntu VM in my case</strong>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvCayIwy24Gb8UD26dVTlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afvRfyCLJa9KAscbwTge9A.png" /></figure><p>6. On the monitored host after running the script, do the following:</p><p>Start the agent:</p><pre>sudo systemctl daemon-reload<br>sudo systemctl enable wazuh-agent<br>sudo systemctl start wazuh-agent</pre><p>7. Open the configuration file:</p><pre>sudo nano /var/ossec/etc/ossec.conf</pre><p><strong>Note</strong>: Find your existing <strong><em>&lt;syscheck&gt;</em></strong> block.</p><p>Add this line under the other<strong><em> &lt;directories&gt;</em></strong> entries:</p><pre>&lt;directories realtime=&quot;yes&quot;&gt;/root&lt;/directories&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6-DIuf0xE5nhBXotg8G8g.png" /></figure><p>8. Create the script:</p><pre>sudo nano /var/ossec/active-response/bin/remove-threat.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-yLstQLTrZiSj0zPso5LA.png" /></figure><p>Paste this:</p><pre>#!/bin/bash<br>read INPUT_JSON<br>FILE=$(echo&quot;$INPUT_JSON&quot; | jq -r .parameters.alert.data.virustotal.source.file)<br>rm -f &quot;$FILE&quot;<br>exit 0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7GaiJRlwZlmToD71uuh2yg.png" /></figure><p>9. Give it permission:</p><pre>sudo chmod 750 /var/ossec/active-response/bin/remove-threat.sh<br>sudo chown root:wazuh /var/ossec/active-response/bin/remove-threat.sh</pre><p>10. Restart the agent:</p><pre>sudo systemctl restart wazuh-agent</pre><h3><strong>PART 2: Wazuh Server Only</strong></h3><p>These rules tell Wazuh when to send a file to VirusTotal;.</p><p>Open the local rules config file:</p><pre>sudo nano /var/ossec/etc/rules/local_rules.xml</pre><p>Add this at the bottom:</p><pre>&lt;group name=&quot;syscheck,&quot;&gt;<br> &lt;rule id=&quot;100200&quot; level=&quot;7&quot;&gt;<br>  &lt;if_sid&gt;550&lt;/if_sid&gt;<br>  &lt;description&gt;File modified in /root&lt;/description&gt;<br> &lt;/rule&gt;<br><br> &lt;rule id=&quot;100201&quot; level=&quot;7&quot;&gt;<br>  &lt;if_sid&gt;554&lt;/if_sid&gt;<br>  &lt;description&gt;File added to /root&lt;/description&gt;<br> &lt;/rule&gt;<br>&lt;/group&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17k7PImWw_XnLcrCR3XUWg.png" /></figure><p>Configure VirusTotal integration</p><p>Open Wazuh config file:</p><pre>sudo nano /var/ossec/etc/ossec.conf</pre><p>Add this to the integration block:</p><pre>&lt;integration&gt;<br> &lt;name&gt;virustotal&lt;/name&gt;<br> &lt;api_key&gt;PASTE_YOUR_VT_API_KEY_HERE&lt;/api_key&gt;<br> &lt;rule_id&gt;100200,100201&lt;/rule_id&gt;<br> &lt;alert_format&gt;json&lt;/alert_format&gt;<br>&lt;/integration&gt;</pre><p><strong>Note: </strong>Open an account on VirusTotal to get your API key. Replace <strong>“PASTE_YOUR-VT_KEY_HERE” </strong>with your own API key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6t0Yt_FC1YBR4xlNrQ5hEQ.png" /></figure><p>Define the command Wazuh can call on the agent</p><p>Still inside ossec.conf, add this:</p><pre>&lt;command&gt;<br> &lt;name&gt;remove-threat&lt;/name&gt;<br> &lt;executable&gt;remove-threat.sh&lt;/executable&gt;<br>&lt;/command&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rDGhjHVSTculdW_Bus9SbQ.png" /><figcaption><strong><em>Meaning: “This command exists and can be triggered.”</em></strong></figcaption></figure><p>Tell Wazuh WHEN to run the command</p><p>Still inside the ossec.conf, add this:</p><pre>&lt;active-response&gt;<br> &lt;command&gt;remove-threat&lt;/command&gt;<br> &lt;location&gt;local&lt;/location&gt;<br> &lt;rules_id&gt;87105&lt;/rules_id&gt;<br>&lt;/active-response&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v6Lc3o1qQn5kxNmcMDsiaA.png" /><figcaption>Meaning: “When VirusTotal confirms malware (rule 87105), delete the file.”</figcaption></figure><p><strong>Note</strong>:<em> Wazuh command definitions must be placed before the active response blocks. The </em><strong><em>&lt;command&gt;</em></strong><em> entries must appear before the </em><strong><em>&lt;active-response&gt;</em></strong><em> entries in the configuration file. Failing to follow this order will generate an error and prevent the Wazuh Manger from starting. Refer to the screenshot below for confirmation.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ElqmpCgOYTrcp1jNKomkbw.png" /></figure><p>Restart the Wazuh Manager</p><pre>sudo systemctl restart wazuh-manager</pre><h3><strong>PART 3: TEST (Ubuntu endpoint)</strong></h3><p><strong><em>Command:</em></strong></p><pre>sudo curl -Lo /root/eicar.com https://secure.eicar.org/eicar.com</pre><p>This command downloads the<strong> EICAR Test File</strong>, a harmless file commonly used to test malware detection systems.</p><p>What should happen</p><ul><li>File appears</li><li>Wazuh detects it</li><li>VirusTotal flags it</li><li>File is detected automatically</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S-bfMZxvvCuJ8UUnNIMCJA.png" /><figcaption>Alert generated by Wazuh indicating detection of the EICAR Test File on the monitored system</figcaption></figure><p>After completing the steps above and observing the alerts on the monitored host, the following outcomes were confirmed:</p><ul><li>Wazuh successfully detected the EICAR Test File on the monitored host.</li><li>VirusTotal confirmed the file as malicious with 65 antivirus engines detecting it.</li><li>Demonstrating how host-based monitoring and threat intelligence integration enable SOC analysts to<strong> quickly identify potentially harmful files.</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0befd727eac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>