<?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 T4N7R1CX on Medium]]></title>
        <description><![CDATA[Stories by T4N7R1CX on Medium]]></description>
        <link>https://medium.com/@T4N7R1CX?source=rss-b13ec72739e3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vQVlC_Yfbp7PgPZ099xYVg.png</url>
            <title>Stories by T4N7R1CX on Medium</title>
            <link>https://medium.com/@T4N7R1CX?source=rss-b13ec72739e3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:31:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@T4N7R1CX/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 AutoReconX: From Recon Tool Chaining to an Attack-Surface Mapping Framework]]></title>
            <link>https://medium.com/@T4N7R1CX/building-autoreconx-from-recon-tool-chaining-to-an-attack-surface-mapping-framework-eede9aa66fa4?source=rss-b13ec72739e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/eede9aa66fa4</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[automation-recon]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[reconnaissance]]></category>
            <dc:creator><![CDATA[T4N7R1CX]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 18:05:57 GMT</pubDate>
            <atom:updated>2026-09-02T18:05:57.814Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*Q-uEERLR8Oie9EtGz1C9LQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oi1kE3zEIeHTquTRJxWw6g.png" /></figure><p>AutoReconX Repository: <a href="https://github.com/Tanjan123/AutoReconX">https://github.com/Tanjan123/AutoReconX</a></p><p>After completing more than 100 days of cybersecurity learning and building a defensive AI/SOC automation lab, I wanted my next project to focus on offensive-security engineering.</p><p>Instead of building another basic port scanner or simply automating Nmap commands, I started AutoReconX: a Python-based reconnaissance and attack-surface mapping framework for authorized penetration testing, security labs, and permitted bug-bounty reconnaissance.</p><p>The objective was simple:</p><p>Discover → Enumerate → Normalize → Correlate → Prioritize → Store → Report</p><p>The project taught me that reconnaissance automation is not primarily about executing multiple security tools. The difficult and valuable part is turning different tool outputs into one reliable, traceable representation of an attack surface.</p><h3>1. Project Objective</h3><p>AutoReconX acts as an orchestration and intelligence layer around established reconnaissance tools.</p><p>The V1 toolchain includes:</p><ul><li>Subfinder — passive subdomain discovery</li><li>dnsx — DNS resolution</li><li>Naabu — port discovery</li><li>Nmap — service/version enumeration</li><li>httpx-toolkit — HTTP probing and technology fingerprinting</li><li>Katana — web crawling and endpoint discovery</li></ul><p>AutoReconX itself handles the surrounding engineering:</p><ul><li>Scope validation</li><li>Safe process execution</li><li>Tool orchestration</li><li>Raw evidence preservation</li><li>Parsing and normalization</li><li>Asset deduplication</li><li>Source provenance</li><li>Asset relationship correlation</li><li>SQLite persistence</li><li>Explainable prioritization</li><li>JSON and HTML reporting</li></ul><p>AutoReconX is intentionally not an exploitation framework, vulnerability scanner, credential attack tool, C2 framework, or autonomous hacking system.</p><h3>2. Development Environment</h3><p>The project was developed on Kali Linux using Python 3.13 inside an isolated virtual environment.</p><p>Basic setup:</p><pre>cd ~/AutoReconX</pre><pre>python3 -m venv .venv<br>source .venv/bin/activate</pre><pre>python --version<br>which python</pre><p>The repository uses a standard Python src/ layout and pyproject.toml.</p><p>The project was installed in editable development mode:</p><pre>pip install -e &quot;.[dev]&quot;</pre><p>Core Python dependencies currently include Typer for the CLI and SQLAlchemy for SQLite persistence, with Pytest and Ruff for development.</p><p>One environment issue I encountered was that python belonged to the virtual environment while pytest was still resolving to /usr/bin/pytest.</p><p>The reliable approach became:</p><pre>hash -r<br>python -m pytest -q</pre><p>This ensured that tests always used the same Python environment as AutoReconX.</p><h3>3. Scope Validation: The First Safety Layer</h3><p>Before running external tools, I implemented target and scope validation.</p><p>AutoReconX can distinguish:</p><ul><li>Domains</li><li>IP addresses</li><li>CIDR ranges</li><li>URLs whose host must be extracted</li></ul><p>For example:</p><pre>autoreconx scan example.com</pre><p>and:</p><pre>autoreconx scan http://127.0.0.1/DVWA/index.php</pre><p>The second input is normalized to the IP target while the original URL path is preserved for later HTTP reconnaissance.</p><p>Malformed targets are rejected before reconnaissance begins.</p><p>A major safety decision was also made around public infrastructure: local and non-global lab addresses can be scanned normally, while active scanning of global/public IPs requires an explicit option.</p><p>This is particularly important for domains behind CDNs or shared infrastructure. A domain resolving to an IP does not automatically mean every underlying infrastructure address is authorized for active scanning.</p><h3>4. Centralized Command Execution</h3><p>Rather than letting every module call subprocess independently, I implemented a reusable CommandRunner.</p><p>Conceptually:</p><pre>Recon Stage<br>    ↓<br>Command Runner<br>    ↓<br>External Tool<br>    ↓<br>stdout / stderr<br>    ↓<br>Parser</pre><p>The runner provides:</p><ul><li>Executable availability checking</li><li>Structured argument lists</li><li>shell=False</li><li>Timeouts</li><li>Exit-code handling</li><li>stdout/stderr capture</li><li>Execution duration</li><li>Optional raw evidence files</li></ul><p>This created one consistent execution path for the entire toolchain.</p><p>The runner was tested independently for successful execution, missing binaries, timeouts, and evidence output.</p><h3>5. Building the Reconnaissance Pipeline</h3><p>I integrated tools incrementally rather than implementing everything at once.</p><p>The development pattern was:</p><pre>Implement<br>   ↓<br>Unit Test<br>   ↓<br>Integration Test<br>   ↓<br>Inspect Raw Evidence<br>   ↓<br>Fix<br>   ↓<br>Commit</pre><h3>Subfinder</h3><p>Subfinder became the first real reconnaissance module.</p><p>The pipeline initially became:</p><pre>Target<br>  ↓<br>Scope Validation<br>  ↓<br>Subfinder<br>  ↓<br>Raw Output<br>  ↓<br>Parser<br>  ↓<br>Subdomains</pre><p>AutoReconX normalizes hostnames, removes obvious duplicates, filters them to the target domain, and preserves the original Subfinder output.</p><p>A test against example.com produced an unexpectedly huge passive result set. This demonstrated an important lesson: passive discovery is not equivalent to a current live attack surface.</p><p>That led directly to dnsx.</p><h3>dnsx</h3><p>dnsx added DNS resolution:</p><pre>Subfinder<br>    ↓<br>Discovered Hostnames<br>    ↓<br>dnsx<br>    ↓<br>Hostname → IP</pre><p>Raw JSONL output is retained, while the parser extracts normalized hostname/IP information.</p><p>This became the foundation for later Domain → IP correlation.</p><h3>Naabu</h3><p>Naabu added controlled port discovery.</p><p>Active scanning was made optional, and public/global IP scanning remained explicitly gated.</p><p>One of the most useful debugging experiences happened here. AutoReconX initially reported zero ports even though naabu.jsonl clearly contained findings.</p><p>The cause was a schema assumption.</p><p>My parser expected:</p><pre>{&quot;host&quot;:&quot;10.0.0.1&quot;,&quot;port&quot;:80}</pre><p>but the installed Naabu version emitted:</p><pre>{&quot;ip&quot;:&quot;10.0.0.1&quot;,&quot;port&quot;:80}</pre><p>The parser was changed to tolerate both:</p><pre>host = obj.get(&quot;host&quot;) or obj.get(&quot;ip&quot;)</pre><p>This demonstrated why preserving raw tool evidence is so valuable: without it, I could easily have blamed the network or Naabu instead of finding the actual parser bug.</p><h3>Nmap</h3><p>Nmap was integrated after Naabu.</p><p>Instead of rescanning arbitrary ports, Nmap performs targeted service enumeration against ports discovered earlier.</p><pre>Naabu<br>  ↓<br>IP:Port<br>  ↓<br>Nmap<br>  ↓<br>Service / Product / Version</pre><p>Another interesting issue appeared here: Naabu could identify a port as open while Nmap later identified it as filtered or tcpwrapped.</p><p>Initially, Nmap used --open, which meant filtered results disappeared from the XML entirely. Removing that option during debugging made the evidence more transparent.</p><p>The lesson was important:</p><p>A tool result is an observation, not absolute truth.</p><p>That later influenced AutoReconX’s provenance model.</p><h3>6. Adding Local/IP Lab Support</h3><p>The first pipeline was domain-oriented:</p><pre>Domain → Subfinder → dnsx → Naabu → Nmap</pre><p>That did not make sense for my local DVWA target:</p><pre>http://127.0.0.1/DVWA/index.php</pre><p>So AutoReconX gained a separate IP/lab execution path.</p><p>Using DVWA, the framework successfully found:</p><pre>127.0.0.1<br>├── 80/tcp   → HTTP<br>└── 3306/tcp → MySQL</pre><p>This became an important controlled environment for end-to-end testing.</p><h3>7. HTTP Reconnaissance and a Real SNI Problem</h3><p>For web reconnaissance I integrated ProjectDiscovery HTTPX.</p><p>A Kali-specific issue appeared first:</p><pre>which httpx</pre><p>returned /usr/bin/httpx, but that binary belonged to the Python HTTPX client rather than ProjectDiscovery.</p><p>Kali provides the reconnaissance tool as:</p><pre>sudo apt install httpx-toolkit<br>httpx-toolkit -version</pre><p>AutoReconX therefore explicitly invokes httpx-toolkit.</p><p>On DVWA, HTTP reconnaissance successfully identified:</p><ul><li>HTTP 200 response</li><li>DVWA page title</li><li>Apache</li><li>Debian</li><li>PHP</li></ul><p>The larger problem appeared in domain mode.</p><p>Initially, AutoReconX generated URLs directly from discovered IP addresses. This worked poorly with modern infrastructure using virtual hosts, CDNs and TLS SNI.</p><p>The correct model was:</p><pre>dnsx:<br>admin.example.com → 1.2.3.4</pre><pre>Naabu:<br>1.2.3.4 → 443</pre><pre>Correlation:<br>https://admin.example.com</pre><p>rather than blindly probing:</p><pre>https://1.2.3.4</pre><p>After switching to hostname-aware probing, HTTPX successfully identified real web applications and technology fingerprints.</p><p>This was the point where AutoReconX started becoming more than a sequence of commands.</p><h3>8. Refactoring the Architecture</h3><p>During early development, cli.py grew beyond 400 lines.</p><p>It contained:</p><ul><li>CLI parsing</li><li>Scope logic</li><li>Workspace management</li><li>Subfinder</li><li>dnsx</li><li>Naabu</li><li>Nmap</li><li>HTTPX</li><li>Error handling</li></ul><p>This led to multiple indentation errors and duplicated logic.</p><p>I first introduced a shared ScanContext containing scan-wide state such as:</p><pre>ScanContext<br>├── scan_id<br>├── original target<br>├── scope<br>├── workspace<br>├── raw evidence directory<br>├── command runner<br>└── scan result</pre><p>Then I extracted IP and domain orchestration from the CLI.</p><p>The CLI dropped from roughly 433 lines to around 80.</p><p>The pipeline temporarily grew above 800 lines, so I performed a second refactor and separated execution into reusable stages:</p><pre>CLI<br> ↓<br>ScanContext<br> ↓<br>Pipeline<br> ├── Domain Flow<br> └── IP Flow<br>       ↓<br>Stages<br> ├── discovery.py<br> ├── ports.py<br> ├── services.py<br> ├── web.py<br> └── crawl.py<br>       ↓<br>Tool Modules<br>       ↓<br>CommandRunner</pre><p>A major lesson from this process was that refactoring a working security tool incrementally is safer than redesigning everything at once.</p><h3>9. Katana Endpoint Discovery</h3><p>Katana completed the initial V1 external reconnaissance toolchain.</p><p>I verified the actual installed version and its supported flags before writing the adapter:</p><pre>katana -version<br>katana -h</pre><p>The crawler uses conservative depth limits and structured JSONL output.</p><p>An additional scope control filters discovered URLs to seed hosts, preventing an application containing an external link from automatically expanding the crawler onto unrelated infrastructure.</p><p>On DVWA, Katana discovered three unauthenticated resources, including:</p><pre>/DVWA/index.php<br>/DVWA/login.php<br>/DVWA/dvwa/css/login.css</pre><p>On a larger authorized domain, Katana produced more than a thousand resources, which exposed another important distinction:</p><p>A discovered URL is not necessarily an interesting attack point.</p><p>That directly motivated the prioritization layer.</p><h3>10. Normalization: Creating a Common Security Data Model</h3><p>At this stage every tool still produced its own result structure.</p><p>I introduced normalized models for:</p><ul><li>Domains</li><li>IP addresses</li><li>Ports</li><li>Services</li><li>Web applications</li><li>Endpoints</li><li>DNS relationships</li></ul><p>Each stage now conceptually follows:</p><pre>External Tool<br>   ↓<br>Raw Evidence<br>   ↓<br>Parser<br>   ↓<br>Tool-Specific Result<br>   ↓<br>Normalizer<br>   ↓<br>ScanResult</pre><p>This allows later components to work with one internal model rather than understanding six different tools.</p><h3>11. Correlation, Deduplication and Provenance</h3><p>This became one of the most important parts of AutoReconX.</p><p>Before correlation:</p><pre>admin.example.com [Subfinder]<br>admin.example.com [dnsx]</pre><p>could appear as two observations.</p><p>After correlation:</p><pre>admin.example.com<br>Sources:<br>- subfinder<br>- dnsx</pre><p>The correlation engine builds unique logical assets while preserving where the information came from.</p><p>It also creates explicit relationships:</p><pre>Domain<br>  │<br>  └── RESOLVES_TO<br>          ↓<br>         IP<br>          │<br>          └── EXPOSES<br>                  ↓<br>                Port<br>                  │<br>                  └── RUNS<br>                         ↓<br>                      Service</pre><pre>Domain / IP<br>     │<br>     └── SERVES<br>             ↓<br>       Web Application<br>             │<br>             └── CONTAINS<br>                     ↓<br>                  Endpoint</pre><p>This made the final counts represent logical assets instead of simply counting every tool observation.</p><p>For example, an authorized domain test dropped from approximately 24–25 domain observations to about 13–14 unique logical domain assets after correlation.</p><h3>12. SQLite Persistence</h3><p>Raw files answer:</p><p>“What exactly did the external tool output?”</p><p>SQLite answers:</p><p>“What does AutoReconX currently know about this attack surface?”</p><p>I intentionally kept V1 storage small.</p><p>Each scan stores:</p><pre>workspaces/&lt;scan_id&gt;/<br>├── raw/<br>├── autoreconx.db<br>└── reports/</pre><p>The database uses three core concepts:</p><pre>scans<br>assets<br>relationships</pre><p>This avoids an unnecessarily large schema while preserving normalized assets and their relationships.</p><p>A DVWA database validation produced:</p><pre>Assets:<br>endpoint | 3<br>ip       | 1<br>port     | 2<br>service  | 2<br>web      | 1</pre><p>and eight relationships:</p><pre>contains | 3<br>exposes  | 2<br>runs     | 2<br>serves   | 1</pre><p>That exactly matched the in-memory attack-surface model.</p><h3>13. Explainable Attack-Surface Prioritization</h3><p>AutoReconX does not label interesting assets as vulnerabilities.</p><p>Instead, it assigns an investigation priority using transparent rules.</p><p>Possible signals include:</p><ul><li>admin hostname</li><li>API-related hostname</li><li>development/staging hostname</li><li>database service exposure</li><li>login/authentication paths</li><li>Swagger/API documentation</li><li>interesting endpoints</li></ul><p>For example:</p><pre>MEDIUM 25 service 127.0.0.1:3306/tcp<br>- Interesting exposed service: mysql</pre><p>This means:</p><p>“Inspect this asset earlier.”</p><p>It does not mean:</p><p>“MySQL is vulnerable.”</p><p>One false-positive discovered during testing was a CSS resource named login.css, which received priority because login appeared in its path. This is a known V1 cleanup item: static assets should be treated differently from interactive application routes.</p><h3>14. JSON and HTML Reporting</h3><p>AutoReconX now converts correlated results and priority information into reports.</p><p>A scan workspace can contain:</p><pre>workspaces/&lt;scan_id&gt;/<br>├── raw/<br>│   ├── naabu.jsonl<br>│   ├── nmap-*.xml<br>│   ├── httpx.jsonl<br>│   └── katana.jsonl<br>├── autoreconx.db<br>└── reports/<br>    ├── report.json<br>    └── report.html</pre><p>JSON provides machine-readable output.</p><p>HTML provides a human-readable summary including:</p><ul><li>Target</li><li>Scan ID</li><li>Asset statistics</li><li>Web applications</li><li>Technologies</li><li>Endpoints</li><li>Priority candidates</li><li>Evidence sources</li></ul><p>The report is generated from AutoReconX’s correlated model instead of directly formatting individual tool outputs.</p><h3>15. Testing and Quality Engineering</h3><p>Testing grew alongside the project.</p><p>The test suite progressed from a few initial scope tests to more than 60 tests during later V1 development.</p><p>Tests cover areas including:</p><ul><li>Scope parsing</li><li>Command execution</li><li>Tool parsers</li><li>Normalization</li><li>Correlation</li><li>DNS relationships</li><li>Context handling</li><li>SQLite persistence</li><li>Prioritization</li><li>Reporting</li><li>Pipeline helpers</li></ul><p>The regular development quality gate became:</p><pre>ruff check src tests<br>python -m compileall -q src<br>python -m pytest -q</pre><p>This combination became necessary because I discovered an important coverage gap earlier: Pytest could pass while cli.py contained a syntax error because none of the tests imported that file.</p><p>That is why compilation/static analysis became part of the normal workflow rather than relying only on unit tests.</p><h3>16. Major Problems and Lessons</h3><p>Some of the most useful parts of the project came from things that failed:</p><ul><li>Wrong pytest executable taught me to verify environment isolation.</li><li>Git push rejection taught me how remote/local histories diverge and how to use git pull --rebase.</li><li>Naabu’s ip vs. host JSON field taught me not to assume external-tool schemas.</li><li>Nmap and Naabu disagreeing taught me to preserve observations and provenance rather than overwrite results.</li><li>ProjectDiscovery HTTPX vs. Python httpx taught me that executable existence alone does not prove tool identity.</li><li>Raw-IP HTTP probing taught me why DNS relationships, virtual hosts and SNI matter.</li><li>Katana discovering third-party links reinforced that scope must be enforced after discovery too.</li><li>Huge CLI/pipeline files showed why orchestration and execution should have separate responsibilities.</li><li>Duplicate domain/HTTP observations showed the difference between an observation and a logical asset.</li><li>Large endpoint counts showed why attack-surface prioritization matters.</li></ul><p>These were more educational than simply getting each command to execute successfully.</p><h3>17. Current V1 Status</h3><p>The substantial V1 functionality implemented and validated includes:</p><pre>Scope Validation                ✅<br>Central Command Runner          ✅<br>Subfinder                       ✅<br>dnsx                            ✅<br>Naabu                           ✅<br>Nmap                            ✅<br>HTTPX                           ✅<br>Katana                          ✅<br>Domain + IP/Lab Workflows       ✅<br>Raw Evidence Preservation       ✅<br>Normalized Models               ✅<br>Deduplication                   ✅<br>Source Provenance               ✅<br>Asset Relationships             ✅<br>Correlation                     ✅<br>SQLite Persistence              ✅<br>Rule-Based Prioritization       ✅<br>JSON Reporting                  ✅<br>HTML Reporting                  ✅<br>Automated Tests                 ✅</pre><p>Scan profiles were being added at the latest development checkpoint:</p><pre>passive  → Subfinder only<br>standard → Subfinder + dnsx + HTTPX<br>full     → dnsx + HTTPX + Katana + Naabu + Nmap</pre><p>However, the last captured implementation state still had a Typer/Ruff B008 cleanup around the --profile option. Therefore I do not consider scan profiles release-complete yet.</p><p>Remaining V1 work is intentionally small:</p><ul><li>Finish/verify scan profiles</li><li>Improve static-file prioritization</li><li>Add stronger CLI-level tests</li><li>Dependency/tool identity checks (doctor)</li><li>Final README and sanitized demo</li><li>Final regression testing</li><li>Tag the stable V1 release</li></ul><h3>18. Scope I Deliberately Did Not Add</h3><p>One of the project-management lessons was knowing when to stop.</p><p>I intentionally deferred:</p><ul><li>PostgreSQL</li><li>Redis</li><li>Elasticsearch</li><li>React dashboards</li><li>FastAPI</li><li>AI agents</li><li>Nuclei vulnerability scanning</li><li>CVE matching</li><li>Continuous monitoring</li><li>Distributed scanners</li><li>Automatic exploitation</li><li>Plugin marketplaces</li></ul><p>Those features might make the repository larger, but they would not necessarily make this V1 better.</p><p>The goal is a focused intermediate project that I understand end-to-end.</p><h3>19. What AutoReconX Demonstrates</h3><p>For me, AutoReconX has become a practical demonstration of several cybersecurity and software-engineering skills:</p><pre>Python Engineering<br>        +<br>Linux<br>        +<br>DNS / Networking<br>        +<br>HTTP / Web Recon<br>        +<br>Security Tool Integration<br>        +<br>Scope &amp; Safety Controls<br>        +<br>Parsing / Normalization<br>        +<br>Data Correlation<br>        +<br>SQLite<br>        +<br>Testing<br>        +<br>Git<br>        +<br>Technical Debugging</pre><p>More importantly, it demonstrates a change in how I approach security tooling.</p><p>I started by asking:</p><p>“How can I automate reconnaissance tools?”</p><p>The project eventually forced a better question:</p><p>“How can I transform independent security observations into a reliable, explainable attack-surface model?”</p><p>That difference — between tool chaining and security-data engineering — has been the biggest lesson from AutoReconX.</p><h3>20. What’s Next</h3><p>After finishing the remaining V1 cleanup, I plan to stop expanding AutoReconX and move to the next project in my offensive-security roadmap.</p><p>The progression is:</p><pre>AutoReconX<br>Reconnaissance &amp; Attack-Surface Mapping<br>        ↓<br>WebStrike<br>Web/API Pentesting<br>        ↓<br>BugHuntX<br>Bug-Bounty Recon &amp; Prioritization<br>        ↓<br>ADPath<br>Active Directory Attack-Path Lab<br>        ↓<br>RedForge<br>Human-Controlled AI-Assisted Pentesting</pre><p>AutoReconX can later become the reconnaissance engine reused by BugHuntX rather than being abandoned as an isolated portfolio project.</p><p>Longer term, I also want to connect this offensive work with my previous AI/SOC automation lab, allowing controlled attacks generated in a lab to be observed and investigated by the defensive stack.</p><p>AutoReconX Repository: <a href="https://github.com/Tanjan123/AutoReconX">https://github.com/Tanjan123/AutoReconX</a></p><p>All active reconnaissance demonstrated in this project should be performed only against systems you own, controlled labs, or infrastructure for which you have explicit authorization.</p><p>#CyberSecurity #OffensiveSecurity #Python #PenetrationTesting #EthicalHacking #SecurityAutomation #BugBounty #ProjectDiscovery #Nmap #GitHub #CyberSecurityProjects</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eede9aa66fa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CYBER ATTACK DETECTION AND SECURITY ASSESSMENT USING WAZUH SIEM]]></title>
            <link>https://medium.com/@T4N7R1CX/cyber-attack-detection-and-security-assessment-using-wazuh-siem-127c8c8d8f78?source=rss-b13ec72739e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/127c8c8d8f78</guid>
            <category><![CDATA[cyberattack-detection]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[defensive-security]]></category>
            <category><![CDATA[cyber-attack-prevention]]></category>
            <category><![CDATA[soc]]></category>
            <dc:creator><![CDATA[T4N7R1CX]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 18:08:14 GMT</pubDate>
            <atom:updated>2026-08-29T18:08:14.888Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*hapT2yAgA7gujwQsGrPYaw.jpeg" /></figure><h3>1. EXECUTIVE SUMMARY</h3><p>This project focused on building and validating a Security Information and Event Management (SIEM) laboratory using the Wazuh platform. The main objective was to create a centralized monitoring environment capable of collecting, analyzing, and investigating security events from multiple systems. The laboratory was built using VMware and consisted of an Ubuntu Server configured as the Wazuh server, a Windows 10 system, and a Kali Linux system. Wazuh agents were deployed on both endpoints to enable centralized log collection and security monitoring.</p><p>Several security features were implemented during the project, including File Integrity Monitoring (FIM), Sysmon integration, threat hunting, active response, and vulnerability detection. These components improved visibility into endpoint activity and strengthened the overall monitoring capabilities of the environment. To validate the implementation, controlled security activities were performed on both Windows and Linux systems. The generated events were collected and analyzed through the Wazuh Dashboard to verify that the platform could successfully detect and investigate security-related activities. The project also included threat intelligence analysis, risk assessment, and the development of defensive recommendations based on the investigation results.</p><p>Overall, this project provided practical experience in SIEM deployment, security monitoring, log analysis, threat hunting, and incident investigation while demonstrating the complete security monitoring lifecycle within a SOC environment.</p><h3>2. LAB ARCHITECTURE</h3><h3>2.1 Environment Design</h3><p>To simulate a real-world Security Operations Center (SOC), a virtual laboratory environment was designed using VMware Workstation. The environment was created to provide a centralized security monitoring platform capable of collecting and analyzing security events from multiple operating systems.</p><p>The architecture consisted of three primary systems:</p><ul><li>An Ubuntu Server configured as the Wazuh Manager</li><li>A Windows 11 endpoint for Windows event monitoring</li><li>A Kali Linux endpoint for Linux monitoring and security testing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u7WcMqj-x-Y59JT2ZED7ZA.png" /></figure><p><strong>Figure 2.1 :- Wazuh SIEM laboratory architecture</strong></p><p>This design allowed security events from different endpoints to be collected and analyzed through a single SIEM platform, providing centralized visibility into the environment.</p><h3>2.2 Laboratory Components</h3><p><strong>Component — Purpose</strong></p><p>Ubuntu Server 24.04 LTS — Wazuh Manager</p><p>Windows 11 — Windows event monitoring</p><p>Kali Linux — Linux monitoring and security testing</p><p>Wazuh Manager — Event collection and analysis</p><p>Wazuh Indexer — Log indexing and storage</p><p>Wazuh Dashboard — Alert visualization and investigation</p><p>Wazuh Agent — Endpoint log collection</p><p>Sysmon — Advanced Windows event monitoring</p><p>File Integrity Monitoring — File change detection</p><h3>2.3 Virtual Network Configuration</h3><p>All virtual machines were connected through the same VMware virtual network to enable communication between the Wazuh server and the monitored endpoints.</p><p>The network configuration supported the following functions:</p><ul><li>Agent registration</li><li>Secure event forwarding</li><li>Dashboard access</li><li>Remote administration</li></ul><p>A shared virtual network allowed both Windows and Linux endpoints to communicate with the Wazuh server while maintaining an isolated environment for security testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6nxWZfChrEa1tChj1lGEA.png" /></figure><p><strong>Figure 2.3 :- VMware virtual network configuration</strong></p><h3>2.4 Wazuh Architecture</h3><p>The Wazuh platform was deployed using a single-node architecture consisting of three core components:</p><ul><li><strong>Wazuh Manager:</strong> Responsible for collecting, processing, and correlating security events.</li><li><strong>Wazuh Indexer:</strong> Responsible for indexing and storing collected logs.</li><li><strong>Wazuh Dashboard:</strong> Responsible for visualizing alerts, investigating events, and managing the monitoring environment.</li></ul><p>To enable endpoint monitoring, Wazuh agents were installed and configured on both the Windows and Kali Linux systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*g0IkXpLI0HxqYHoMEg33nQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*7GImMqUUpFvUMcFKOuf3sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*I3n9B0NDGoSYzv2LUDEsDg.png" /></figure><p><strong>Figure 2.4.1 :- Systemctl status showing Wazuh services</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*4QZ7tr8-HlEhB1qlOuhh-w.png" /></figure><p><strong>Figure 2.4.2 :- Wazuh Dashboard login page after successful deployment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*MjMztDQj2zHv9kU81TcAMQ.png" /></figure><p><strong>Figure 2.4.3 :- Wazuh Dashboard home screen</strong></p><h3>2.5 Monitoring Workflow</h3><p>The implemented monitoring workflow followed a centralized log collection model.</p><p>Windows 11 Endpoint — Wazuh Agent — Wazuh Manager —</p><p>Kali Linux Endpoint — Wazuh Dashboard — Wazuh Indexer —</p><p>Security events generated on the endpoints were forwarded to the Wazuh Manager, where they were analyzed and correlated before being stored by the Indexer and displayed through the Dashboard.</p><p>This workflow enabled centralized monitoring, threat hunting, and incident investigation across both Windows and Linux systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*aEQwCNriAPG9cr0p0AttTQ.png" /></figure><p><strong>Figure 2.5 :- Kali Linux Agent Successfully Registered in Wazuh Dashboard</strong></p><h3>3. OFFENSIVE SECURITY TESTING</h3><h3>3.1 Overview</h3><p>To validate the effectiveness of the implemented SIEM environment, controlled security activities were performed on both Windows and Linux systems. These activities were conducted within an isolated laboratory environment and were designed to generate security events that could be collected and analyzed by the Wazuh platform.</p><p>The primary objective of this testing phase was to verify whether security events generated on the monitored endpoints could be successfully detected, centralized, and investigated through the Wazuh Dashboard. The activities performed during testing focused on authentication events, file system activity, process monitoring, network activity, and Linux system events.</p><h3>3.2 Windows Security Activities</h3><h3>Activity 1: File Creation and Modification</h3><p><strong>Objective</strong></p><p>To verify whether the File Integrity Monitoring (FIM) module could detect changes made to monitored files.</p><p><strong>Target Host</strong></p><p>Windows 11 Host (LAPTOP-A76D0HPA)</p><p><strong>Activity Performed</strong></p><p>A test file was created and modified inside a monitored directory to generate file system events.</p><p><strong>Date and Time</strong></p><p>August 13, 2026, 20:05</p><p><strong>Evidence Collected</strong></p><ul><li>File creation event.</li><li>File modification event.</li><li>Wazuh FIM alert.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*QXig-aQGLd6K-pptP6BRjQ.png" /></figure><p><strong>Figure 3.2.1 :- File Integrity Monitoring event generated by file modification</strong></p><p><strong>Expected Security Impact</strong></p><p>Unauthorized file modifications may indicate malware infections, data tampering, ransomware activity, or unauthorized user actions. File Integrity Monitoring helps security analysts maintain visibility into critical system files and identify suspicious changes.</p><h3>Activity 2: Failed Authentication Attempts</h3><p><strong>Objective</strong></p><p>The purpose of this activity was to generate authentication failures and verify whether Wazuh could detect unsuccessful login attempts.</p><p><strong>Target Host</strong></p><p>Windows 11 Host (LAPTOP-A76D0HPA)</p><p><strong>Date and Time</strong></p><p>August 13, 2026, 20:06</p><p><strong>Activity Performed</strong></p><p>Several login attempts were intentionally performed using invalid credentials to generate failed authentication events.</p><p>The generated security events were forwarded from the Windows agent to the Wazuh manager, where they were analyzed and displayed in the Threat Hunting dashboard.</p><p><strong>Evidence Collected</strong></p><p>The following events were detected by Wazuh:</p><p><strong>Rule ID — Description — Level</strong></p><p>60122 — Logon Failure — Unknown user or bad password — 5</p><p>Multiple failed authentication events were successfully recorded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHNeBD4TwEBVAZYJ3OIj9g.png" /></figure><p><strong>Figure 3.2.2 :-</strong> Failed authentication events displayed in the Wazuh dashboard.</p><p><strong>Expected Security Impact</strong></p><p>Repeated authentication failures may indicate password-guessing attempts, brute-force attacks, or unauthorized access attempts. Monitoring these events allows security analysts to identify suspicious user activity before an account compromise occurs.</p><h3>Activity 3: Suspicious Process Execution</h3><p><strong>Objective</strong></p><p>The objective of this activity was to simulate suspicious command execution and verify whether the monitoring system could detect abnormal processes.</p><p><strong>Target Host</strong></p><p>Windows 11 Host (LAPTOP-A76D0HPA)</p><p><strong>Date and Time</strong></p><p>August 13, 2026, 20:05–20:06</p><p><strong>Activity Performed</strong></p><p>Command-line utilities were intentionally executed to generate suspicious process activity. Sysmon monitoring was enabled to collect process creation events.</p><p>The generated events were analyzed by Wazuh and matched against existing detection rules.</p><p><strong>Evidence Collected</strong></p><p>The following events were identified:</p><p><strong>Rule ID — Description — Level</strong></p><p>92032 — Suspicious Windows cmd shell execution — 3</p><p>92052 — Windows command prompt started by an abnormal process — 4</p><p>61638 — Sysmon — Suspicious Process — dllhost.exe — 12</p><p>92219 — Possible DLL search order hijack — 6</p><p>These events confirmed that Wazuh successfully detected suspicious process behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zad2mo2uWNV70NDEnZ43-A.png" /></figure><p><strong>Figure 3.2.3 :-</strong> Suspicious process execution events detected by Wazuh.</p><p><strong>Expected Security Impact</strong></p><p>Malicious processes often attempt to execute commands, load unauthorized libraries, or establish persistence within the operating system. Detecting abnormal process execution enables security teams to identify malware activity and respond before significant damage occurs.</p><h3>3.3 Linux Security Activities</h3><h3>Activity 1: SSH Authentication Failures</h3><p><strong>Objective</strong></p><p>The purpose of this activity was to simulate unauthorized remote access attempts and verify whether the monitoring system could identify and record failed SSH authentication events.</p><p><strong>Target Host</strong></p><p>Ubuntu 24.04.4 LTS (Wazuh Server)</p><p><strong>Date and Time</strong></p><p>August 13, 2026, 20:23</p><p><strong>Activity Performed</strong></p><p>An SSH connection was initiated from the Kali Linux system to the Ubuntu server using invalid credentials.</p><p>ssh fakeuser@192.168.204.135</p><p>Several incorrect authentication attempts were made to generate failed login events.</p><p><strong>Evidence Collected</strong></p><p>The authentication attempts were recorded in the Linux authentication logs and forwarded to the monitoring system.</p><p>Evidence sources included:</p><ul><li>/var/log/auth.log</li><li>Wazuh Threat Hunting Dashboard</li><li>SSH authentication events</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdBfEhXY9PnzMJuHoMYhHA.png" /></figure><p><strong>Figure 3.3.1:</strong> Failed SSH authentication events in the Wazuh dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*DvQt7KaLN5BCNVPV_s5zTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*ZYHDKavTD3UF-HVm4B2hCw.png" /></figure><p><strong>Figure 3.3.2:</strong> Authentication events recorded in the Linux authentication log.</p><p><strong>Expected Security Impact</strong></p><p>Repeated authentication failures may indicate:</p><p>· Brute-force attacks</p><p>· Credential-guessing attempts</p><p>· Unauthorized access attempts</p><p>Monitoring failed SSH logins enables security analysts to identify suspicious activity before a successful compromise occurs.</p><h3>Activity 2: File Permission Changes</h3><p><strong>Objective</strong></p><p>The purpose of this activity was to verify whether changes to Linux file permissions could be detected and monitored.</p><p><strong>Target Host</strong></p><p>Ubuntu 24.04.4 LTS (Wazuh Server)</p><p><strong>Date and Time</strong></p><p>August 13, 2026, 21:10</p><p><strong>Activity Performed</strong></p><p>A test file was created/modified inside the monitored directory.</p><p>sudo touch /tmp/wazuh-fim-test/fim-test.txt</p><p>sudo chmod 777 /tmp/wazuh-fim-test/fim-test.txt</p><p>echo “Testing FIM” | sudo tee -a /tmp/wazuh-fim-test/fim-test.txt</p><p><strong>Evidence Collected</strong></p><p>Evidence was collected from:</p><ul><li>Linux terminal output</li><li>File Integrity Monitoring events</li><li>Wazuh dashboard events</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*xNxZQYV7Bu7xzB3o6Is2Ww.png" /></figure><p><strong>Figure 3.3.3 :-</strong> Terminal output showing file permission changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*NRfo1OQ1z07MrfTwzUAzbw.png" /></figure><p><strong>Figure 3.3.4 :-</strong> File permission change events displayed in the Wazuh dashboard.</p><p><strong>Expected Security Impact</strong></p><p>Unauthorized modifications to files or file permissions may indicate:</p><p>· Malware execution</p><p>· Configuration tampering</p><p>· Unauthorized system modifications</p><p>· Privilege escalation attempts</p><p>File Integrity Monitoring allows security teams to quickly detect unexpected changes to critical files.</p><h3>Linux Activity 3: Privilege-Related Activity</h3><p><strong>Objective</strong></p><p>The objective of this activity was to simulate privilege-related actions using the sudo command and verify whether Wazuh could detect elevated operations performed by users.</p><p><strong>Target Host</strong></p><p><strong>Component</strong></p><p><strong>Value</strong></p><p>Target System</p><p>Ubuntu Server 24.04.4 LTS</p><p>Monitoring Tool</p><p>Wazuh SIEM</p><p><strong>Date and Time</strong></p><p>August 13, 2026, 21:15</p><p><strong>Activity Performed</strong></p><p>Several administrative commands requiring elevated privileges were executed.</p><p>sudo mkdir -p /tmp/wazuh-fim-test</p><p>sudo touch /tmp/wazuh-fim-test/fim-test.txt</p><p>sudo chmod 777 /tmp/wazuh-fim-test</p><p>sudo chmod 777 /tmp/wazuh-fim-test/fim-test.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*TMxXPieySMTfCQ_HJ5soZg.png" /></figure><p><strong>Figure 3.3.5 :-</strong> Privileged commands executed through sudo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKUcXmtAhkp51wUwToepKQ.png" /></figure><p><strong>Figure 3.3.6 :-</strong> Wazuh alerts generated for successful privilege escalation events.</p><p><strong>Expected Security Impact</strong></p><p>Privilege-related activities are commonly associated with:</p><p>· Privilege escalation</p><p>· Administrative misuse</p><p>· Unauthorized system modifications</p><p>· Persistence techniques</p><p>Monitoring elevated commands helps analysts identify unauthorized administrative actions and investigate potential compromises.</p><h3>4. DETECTION AND INVESTIGATION</h3><p>This section analyzes the security events generated during the testing phase and investigates how those activities were detected by the Wazuh platform. Events collected from the Windows and Linux endpoints were examined through the Wazuh Threat Hunting Dashboard to identify the affected host, event timestamps, log sources, generated alerts, and supporting evidence.</p><p>The investigation focused on answering three questions for each activity:</p><ul><li>What happened?</li><li>How was it detected?</li><li>What evidence proves that it happened?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JPYoqfs9AHm1lln1Sqo_w.png" /></figure><p><strong>Figure 4.1: Wazuh Threat Hunting Dashboard used for event investigation.</strong></p><h3>4.1 Windows Event Investigation</h3><h3>Activity 1: File Integrity Monitoring</h3><p><strong>Investigation Item — Evidence</strong></p><p>Affected Host — Windows 11 (LAPTOP-A76D0HPA)</p><p>Timestamp — Aug 13, 2026 @ 20:05:24.887</p><p>Username — Tanjan Karki</p><p>Source IP — 192.168.204.1</p><p>Relevant Log Source — Wazuh Syscheck (File Integrity Monitoring)</p><p>Monitored Directory — D:\Downloads\WAZUHTEST</p><p>Affected File — d:\downloads\wazuhtest\newwwwwwww.txt</p><p>Event Description — A new file was created inside the monitored directory</p><p>Wazuh Alert Generated — Yes</p><p>Rule ID — 554</p><p>Alert Level — 5</p><p><strong>What happened?</strong></p><p>A new text file was created inside the monitored <strong>WAZUHTEST</strong> directory on the Windows 11 endpoint. The file creation generated a File Integrity Monitoring event that was immediately forwarded to the Wazuh Manager. The event was successfully processed and displayed in the Wazuh Dashboard.</p><p><strong>How was it detected?</strong></p><p>The monitored directory was configured in the Wazuh agent configuration file. The File Integrity Monitoring module continuously monitored the directory in <strong>realtime mode</strong>. When the new file was created, the Windows agent generated a <strong>Syscheck</strong> event and forwarded it to the Wazuh Manager for analysis.</p><p><strong>Evidence</strong></p><p><strong>Evidence Type — Value</strong></p><p>File path — d:\downloads\wazuhtest\newwwwwwww.txt</p><p>Detection method — Syscheck</p><p>Monitoring mode — Realtime</p><p>File owner — Tanjan Karki</p><p>Source IP — 192.168.204.1</p><p>Rule ID — 554</p><p>Alert description — File added to the system</p><p>File size — 0 bytes</p><p>MD5 hash — d41d8cd98f00b204e9800998ecf8427e</p><p>SHA1 hash — da39a3ee5e6b4b0d3255bfef95601890afd80709</p><p>SHA256 hash — e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qk2JQQ-iijCxZnpNktd3Aw.png" /></figure><p><strong>Figure 4.1.1: Windows File Integrity Monitoring events displayed in the Wazuh Dashboard.</strong></p><h3>Activity 2: Failed Authentication Attempts</h3><p><strong>Investigation Element — Evidence</strong></p><p>Affected Host — LAPTOP-A76D0HPA</p><p>Timestamp — Aug 13, 2026 @ 20:06:48.527</p><p>Username — Tanjan Karki</p><p>Source IP — 127.0.0.1</p><p>Event ID — 4625</p><p>Log Source — Windows Security Log</p><p>Rule ID — 60122</p><p>Alert Level — 5</p><p>Event Description — Logon Failure — Unknown user or bad password</p><p>Wazuh Alert Generated — Yes</p><p><strong>What happened?</strong></p><p>A logon attempt for the account <strong>Tanjan Karki</strong> failed on the Windows endpoint. Windows Security generated <strong>Event ID 4625</strong>, indicating that the authentication request was unsuccessful because of an <strong>unknown username or incorrect password</strong>. The event originated locally from <strong>127.0.0.1</strong>, meaning the recorded authentication request was local to the Windows system rather than coming from an external network address.</p><p><strong>How was it detected?</strong></p><p>The Windows agent collected the Security Event Log through the Windows EventChannel and forwarded it to the Wazuh Manager. Wazuh matched the event against Rule 60122 “Logon Failure — Unknown user or bad password”, generating a Level 5 alert. The rule belongs to the windows_security and authentication_failed groups.</p><p><strong>Evidence</strong></p><ul><li>Logon failure alerts</li><li>Windows security events</li><li>Threat Hunting Dashboard alerts</li></ul><h3>Activity 3: Suspicious Process Execution</h3><p><strong>Investigation Item — Details</strong></p><p>Affected Host — Windows 11 (LAPTOP-A76D0HPA)</p><p>Timestamp — Aug 13, 2026 @ 20:12:24</p><p>Username — NT AUTHORITY\SYSTEM</p><p>Source IP — 192.168.204.1</p><p>Relevant Log Source — Microsoft-Windows-Sysmon/Operational</p><p>Wazuh Alert Generated — Yes</p><p>Rule ID — 92032</p><p>Alert Level — 3</p><p>Rule Description — Suspicious Windows cmd shell execution</p><p><strong>What happened?</strong></p><p>A process execution event was generated on the Windows endpoint and recorded by Sysmon. The investigation revealed that the executable file task.exe was launched from the following location:</p><p>C:\Program Files\Intel\SUR\QUEENCREEK\x64\task.exe</p><p>The event showed that the process was started through the Windows command interpreter (cmd.exe), which triggered a Wazuh detection rule for suspicious command shell activity.</p><p><strong>How was it detected?</strong></p><p>The activity was detected through the integration between Sysmon and the Wazuh agent.</p><p>The detection workflow followed these steps:</p><p>1. Sysmon captured the process creation event (Event ID 1).</p><p>2. The Wazuh agent collected the event from the Windows Event Channel.</p><p>3. The event was forwarded to the Wazuh Manager.</p><p>4. Wazuh analyzed the event and matched it with Rule ID 92032.</p><p>5. An alert was generated and displayed in the Wazuh Dashboard.</p><p><strong>Evidence</strong></p><p><strong>Evidence — Value</strong></p><p>Process Name — task.exe</p><p>Executable Path — C:\Program Files\Intel\SUR\QUEENCREEK\x64\task.exe</p><p>Parent Process — C:\Windows\System32\cmd.exe</p><p>Parent Command — cmd.exe /c task.bat</p><p>Process ID — 21032</p><p>Parent Process ID — 19752</p><p>Event ID — 1</p><p>Detection Technique — Windows Command Shell (MITRE ATT&amp;CK T1059.003)</p><p>MITRE Tactic — Execution, Discovery</p><h3>4.2 Linux Event Investigation</h3><h3>Activity 1: SSH Authentication Failures</h3><p><strong>Investigation Item — Evidence</strong></p><p>Affected Host — Ubuntu Server (wazuh-server)</p><p>Timestamp — Aug 13, 2026 @ 20:23:32.443</p><p>Attempted Username — wronguser</p><p>Source IP — 192.168.204.1</p><p>Source Port — 63694</p><p>Relevant Log Source — SSHD (Secure Shell Daemon)</p><p>Event Description — Multiple SSH login attempts using a non-existent user account</p><p>Wazuh Alert Generated — Yes</p><p>Rule ID — 5710</p><p>Alert Level — 5</p><p>MITRE ATT&amp;CK — T1110.001 (Password Guessing), T1021.004 (SSH)</p><p><strong>What happened?</strong></p><p>Multiple SSH authentication attempts were made against the Ubuntu server using the invalid username wronguser. The login requests originated from 192.168.204.1 and were repeatedly rejected because the specified user account did not exist on the system. After several failed attempts, Wazuh generated an additional high-priority correlation alert (Rule ID 2502) indicating that the password had been entered incorrectly multiple times.</p><p><strong>How was it detected?</strong></p><p>The SSH daemon recorded each authentication failure in the system journal (journald). Wazuh continuously monitored these logs and applied its SSH detection rules. When multiple invalid login attempts were identified, the events were decoded by the SSHD decoder and matched against Rule 5710, which detects login attempts using non-existent accounts.</p><p><strong>Evidence</strong></p><p><strong>Evidence Type — Value</strong></p><p>Username — wronguser</p><p>Source IP — 192.168.204.1</p><p>Source Port — 63694</p><p>Log Source- SSHD</p><p>Detection Method — Log analysis</p><p>Rule ID — 5710</p><p>Alert Description — SSH login attempt using a non-existent user</p><p>MITRE Technique — T1110.001 (Password Guessing)</p><p>MITRE Technique — T1021.004 (SSH)</p><p>Decoder — SSHD</p><p>Number of detected attempts — 5</p><h3>Activity 2: Linux File Integrity Monitoring</h3><p><strong>Investigation Item — Evidence</strong></p><p>Affected Host — Ubuntu Server (wazuh-server)</p><p>Timestamp — Aug 13, 2026 @ 21:10:24.139</p><p>Relevant Log Source — Wazuh Syscheck (File Integrity Monitoring)</p><p>Monitored Directory — /tmp/wazuh-fim-test</p><p>Affected File — /tmp/wazuh-fim-test/linux-fim.txt</p><p>Event Description — A new file was created inside the monitored directory</p><p>Wazuh Alert Generated — Yes</p><p>Rule ID — 554</p><p>Alert Level — 5</p><p>Monitoring Mode — Realtime</p><p><strong>What happened?</strong></p><p>A new file named linux-fim.txt was created inside the monitored /tmp/wazuh-fim-test directory on the Ubuntu server. The file creation event was immediately detected by the File Integrity Monitoring module and forwarded to the Wazuh Manager. The event was then analyzed and displayed in the Wazuh Dashboard.</p><p><strong>How was it detected?</strong></p><p>The Syscheck module was configured to continuously monitor the /tmp/wazuh-fim-test directory in realtime mode. When the file was created, Wazuh calculated the file’s metadata and cryptographic hashes and generated an alert that matched Rule 554 (File added to the system).</p><p><strong>Evidence</strong></p><p><strong>Evidence Type — Value</strong></p><p>File path — /tmp/wazuh-fim-test/linux-fim.txt</p><p>Detection method — Syscheck</p><p>Monitoring mode — Realtime</p><p>File owner — root</p><p>File permissions — rw-r — r —</p><p>File size — 5 bytes</p><p>MD5 hash — d8e8fca2dc0f896fd7cb4cb0031ba249</p><p>SHA1 hash — 4e1243bd22c66e76c2ba9eddc1f91394e57f9f83</p><p>SHA256 hash — f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2</p><p>Rule ID — 554</p><p>Alert description — File added to the system</p><h3>Activity 3: Privileged Activity</h3><p><strong>Investigation Item — Evidence</strong></p><p>Affected Host — Ubuntu Server (wazuh-server)</p><p>Timestamp — Aug 13, 2026 @ 21:10:55.177</p><p>Executing User — wazuh</p><p>Target User — root</p><p>Working Directory — /home/wazuh</p><p>Terminal Session — pts/0</p><p>Executed Command — /usr/bin/rm /tmp/wazuh-fim-test/linux-fim.txt</p><p>Relevant Log Source — Sudo</p><p>Event Description — A privileged command was executed to delete a monitored file</p><p>Wazuh Alert Generated — Yes</p><p>Rule ID — 5402</p><p>Alert Level — 3</p><p>MITRE ATT&amp;CK — T1548.003 (Sudo and Sudo Caching)</p><p><strong>What happened?</strong></p><p>A user with the account name wazuh successfully executed a privileged command using sudo to delete the file linux-fim.txt from the monitored directory. The command was executed with root privileges, allowing the user to remove the file from the system. Because the deleted file was already being monitored by the File Integrity Monitoring module, Wazuh generated additional alerts indicating both the privileged activity and the subsequent file deletion.</p><p><strong>How was it detected?</strong></p><p>The sudo command execution was recorded in the system journal (journald). Wazuh continuously monitored privileged activity and identified the successful elevation of privileges. The event matched Rule 5402 (Successful sudo to ROOT executed). The subsequent file deletion also generated a File Integrity Monitoring alert (Rule 553) because the removed file was located inside a monitored directory.</p><p><strong>Evidence</strong></p><p><strong>Evidence Type — Value</strong></p><p>Source user — wazuh</p><p>Destination user — root</p><p>Executed command — /usr/bin/rm /tmp/wazuh-fim-test/linux-fim.txt</p><p>Working directory — /home/wazuh</p><p>Terminal — pts/0</p><p>Detection method — Sudo log analysis</p><p>Rule ID — 5402</p><p>Alert description — Successful sudo to ROOT executed</p><p>MITRE technique — T1548.003 (Sudo and Sudo Caching)</p><p>Associated event — File deleted (Rule 553)</p><h3>4.3 Investigation Summary</h3><p>The investigation confirmed that Wazuh successfully detected and centralized security events generated on both Windows and Linux endpoints during the testing phase. File integrity events, SSH authentication failures, suspicious process execution, executable file creation, and privileged activities were successfully identified through multiple log sources, including Windows Event Logs, Sysmon, Linux authentication logs, PAM logs, SSH logs, and File Integrity Monitoring (FIM) events.</p><p>The collected evidence validated the effectiveness of the SIEM deployment and demonstrated Wazuh’s capability to provide real-time monitoring, event correlation, threat detection, and security investigation within a SOC environment.</p><h3>5. THREAT INTELLIGENCE AND IOC ANALYSIS</h3><h3>5.1 Introduction</h3><p>Threat intelligence analysis was performed to determine whether the provided indicators of compromise (IOCs) were associated with malicious activity. Multiple intelligence sources were used during the investigation, including:</p><ul><li>VirusTotal</li><li>AbuseIPDB</li></ul><p>The investigation focused on:</p><ul><li>IOC classification</li><li>Malware identification</li><li>Threat confidence</li><li>Potentially affected systems</li><li>Detection methods</li></ul><h3>5.2 IOC Summary Table</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>07763588cf68716a159469ec006183b8 — MD5 Hash — No significant threat intelligence identified — Low — Endpoint security, Antivirus, SIEM —</p><p>24bd24cf3f7207a990672f3c7f552bbe — MD5 Hash — Trojan Dropper (Yogi/Multiverze) — High — Endpoint detection, Sysmon, Wazuh, Antivirus</p><p>4a09f8c92732d01c097d9a12cbbbc6da — MD5 Hash — Mirai Linux DDoS Trojan — High — File integrity monitoring, Cron monitoring, Network analysis, Wazuh</p><p>5c943b9ee464e13570b4d57e643f6a93 — MD5 Hash — VBS Trojan Dropper (Zbot) — High — Script monitoring, Sysmon, Windows Defender, Wazuh</p><p>13.115.104.132 — IP Address — No malicious activity identified — Low — Firewall, IDS/IPS, SIEM</p><p>3.108.37.115 — IP Address — No malicious activity identified — Low — Firewall, IDS/IPS, SIEM</p><p>200.175.61.207 — IP Address — Malicious SSH brute-force infrastructure — High — Firewall, SSH logs, IDS/IPS, Wazuh</p><p>187.120.72.90 — IP Address — Suspicious network infrastructure — Medium — Firewall, IDS/IPS, Wazuh</p><p>185.246.128.25 — IP Address — Confirmed malicious infrastructure — High — Firewall, IDS/IPS, Threat intelligence, Wazuh</p><p>185.226.197.7 — IP Address — Multi-vector attack infrastructure — High — Firewall, Network logs, IDS/IPS, Wazuh</p><p>184.105.247.251 — IP Address — Large-scale scanning infrastructure — High — Firewall, IDS/IPS, Network logs, Wazuh</p><p><a href="http://210.208.111.2:36838/i">http://210.208.111.2:36838/i</a> — URL — Mirai/Mozi malware distribution infrastructure — High — Firewall, IDS/IPS, Network logs, Wazuh</p><p><a href="http://mediafire.com/file">http://mediafire.com/file</a>/pfxpcqrssrvi4h4/file — URL — Suspicious ISO file distribution — Medium — Web proxy, File analysis, Endpoint security, Wazuh</p><p><a href="http://115.55.183.61:57147/Mozi.a">http://115.55.183.61:57147/Mozi.a</a> — URL — Mirai/Mozi malware infrastructure — High — Firewall, IDS/IPS, Network logs, Wazuh</p><h3>5.3 IOC Analysis: 07763588cf68716a159469ec006183b8</h3><ul><li><strong>IOC Type:</strong> MD5 File Hash</li><li><strong>Finding:</strong> No significant threat intelligence information was available.</li><li><strong>Confidence:</strong> Low</li><li><strong>Potentially Affected Systems:</strong> Windows and Linux</li><li><strong>Detection Method:</strong> Endpoint security tools, antivirus, and SIEM monitoring</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*FWn-d9H6tN8OjAeAlH1VOA.png" /></figure><p><strong>Figure 5.3 :-</strong> VirusTotal analysis found none for 07763588cf68716a159469ec006183b8 hash file</p><h3>5.4 IOC Analysis: 24bd24cf3f7207a990672f3c7f552bbe</h3><ul><li><strong>IOC Type:</strong> MD5 File Hash</li><li><strong>Finding:</strong> Malicious</li><li><strong>Confidence:</strong> High</li><li><strong>Threat Information:</strong></li></ul><p>o 39 of 68 security vendors identified the file as malicious.</p><p>o Classified as a Trojan Dropper.</p><p>o Associated with the Yogi and Multiverze malware families.</p><p>o Evidence suggested PowerShell abuse, Defender exclusion modification, and suspicious activity involving the LSASS process.</p><ul><li><strong>Potentially Affected Systems:</strong> Windows systems</li><li><strong>Detection Methods:</strong></li></ul><p>o Endpoint detection</p><p>o Sysmon monitoring</p><p>o Wazuh SIEM</p><p>o Antivirus solutions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*DOsZ1EH7eL2sx_16ntHMsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*KwpYoGUPFWMl7Hsa7vKGbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*i3x7cCkN_nKt_AFJuZTlOw.png" /></figure><p><strong>Figure 5.4 :-</strong> VirusTotal analysis for 24bd24cf3f7207a990672f3c7f552bbe hash file</p><h3>5.5 IOC Analysis: 4a09f8c92732d01c097d9a12cbbbc6da</h3><ul><li><strong>IOC Type:</strong> MD5 File Hash</li><li><strong>Finding:</strong> Malicious</li><li><strong>Confidence:</strong> High</li><li><strong>Threat Information:</strong></li></ul><p>o 26 of 61 security vendors detected the file as malicious.</p><p>o Identified as a Linux DDoS Trojan.</p><p>o Associated with the Mirai malware family.</p><p>o Designed for ARM-based Linux systems.</p><p>o Evidence indicated cron job persistence and botnet-related activity.</p><ul><li><strong>Potentially Affected Systems:</strong></li></ul><p>o Linux servers</p><p>o IoT devices</p><p>o ARM-based systems</p><ul><li><strong>Detection Methods:</strong></li></ul><p>o File integrity monitoring</p><p>o Cron monitoring</p><p>o Network traffic analysis</p><p>o Wazuh monitoring</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*qxHESbSddbm8z6dbpCOXfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*aTDQdbzpob4fqj23SuTOOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*hvZtYCyc81BHywnyNOx4Cw.png" /></figure><p><strong>Figure 5.5 :-</strong> VirusTotal analysis for 4a09f8c92732d01c097d9a12cbbbc6da hash file</p><h3>5.6 IOC Analysis: 5c943b9ee464e13570b4d57e643f6a93</h3><ul><li><strong>IOC Type:</strong> MD5 File Hash</li><li><strong>Finding:</strong> Malicious</li><li><strong>Confidence:</strong> High</li><li><strong>Threat Information:</strong></li><li>25 of 61 security vendors detected the file as malicious.</li><li>Identified as a <strong>VBS Trojan Dropper</strong>.</li><li>Associated with the <strong>Zbot</strong> malware family.</li><li>Demonstrated obfuscation, persistence, defense evasion, and discovery techniques.</li><li><strong>Potentially Affected Systems:</strong> Windows systems</li><li><strong>Detection Methods:</strong></li><li>Script execution monitoring</li><li>Sysmon</li><li>Windows Defender</li><li>Wazuh SIEM</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*xcjWhFHZs_1eTbbQfT0bfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*FXJxOuLb5dG1pz60bzYJzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*tBHfGRY7341nsGAwVgNCyQ.png" /></figure><p><strong>Figure 5.6 :-</strong> VirusTotal analysis for 5c943b9ee464e13570b4d57e643f6a93 hash file</p><h3>5.7 IOC Analysis: 13.115.104.132</h3><p><strong>Analysis between VirusToal and AbuseIPDB</strong></p><p><strong>Category — VirusTotal — AbuseIPDB</strong></p><p>Detection result — 0/91 security vendors flagged the IP — 0 reports</p><p>Verdict — Clean — Not found in the database</p><p>Abuse confidence — Not provided — 0%</p><p>ASN — AS16509 — AS16509</p><p>Organization — Amazon.com, Inc. — Tenable Network Security, Inc.</p><p>Hosting type — Cloud infrastructure — Data Center/Web Hosting/Transit</p><p>Hostname — Not displayed in the summary — ec2–13–115–104–132.ap-northeast-1.compute.amazonaws.com</p><p>Country — Japan — Japan</p><p>City — Not shown — Tokyo</p><p>Threat classification — No malicious classification — No abuse reports</p><p>Last analysis — 10 months ago — No reports available</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Qc7ONxqYXuR0aKdvvNlYmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*jkMTkmfRldQErYE0lXYXVQ.png" /></figure><p><strong>Figure 5.7 :-</strong> VirusTotal and AbuseIPDB analysis for 13.115.104.132 ip address</p><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>13.115.104.132 — IP Address — No malicious activity identified — Low — Firewall, IDS/IPS, SIEM</p><h3>Threat Intelligence Findings</h3><p>· The IP address is not currently associated with malicious activity.</p><p>· There are no security detections.</p><p>· The IP belongs to AS16509, which is associated with Amazon’s cloud infrastructure.</p><p>· The IP is located in Japan.</p><h3>5.8 IOC Analysis: 3.108.37.115</h3><p><strong>Analysis between VirusToal and AbuseIPDB</strong></p><p><strong>Category — VirusTotal — AbuseIPDB</strong></p><p>Detection result — 0/91 vendors detected malicious activity — 0 reports</p><p>Abuse confidence — Not available — 0%</p><p>ASN — AS16509 — AS16509</p><p>Organization — Amazon.com, Inc. — Tenable, Inc.</p><p>Hosting type — Cloud infrastructure — Data Center/Web Hosting</p><p>Hostname — Not available — ec2–3–108–37–115.ap-south-1.compute.amazonaws.com</p><p>Country — India — India</p><p>City — Not available — Mumbai</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*zYrWBPl7prKdIUHf5WB7DQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*qZgOQx6CHvLcPwl3NUVoAg.png" /></figure><p><strong>Figure 5.8 :-</strong> VirusTotal and AbuseIPDB analysis for 3.108.37.115 ip address</p><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>3.108.37.115 — IP Address — No malicious activity identified — Low — Firewall, IDS/IPS, SIEM</p><h3>Threat Intelligence Findings</h3><p>· No evidence of malicious activity was identified.</p><p>· Both tools classified the IP as clean.</p><p>· The IP belongs to an AWS EC2 cloud instance.</p><p>· Because cloud IP addresses can be reassigned, continuous monitoring is recommended.</p><h3>5.9 IOC Analysis: 200.175.61.207</h3><p><strong>Analysis between VirusToal and AbuseIPDB</strong></p><p><strong>Category — VirusTotal — AbuseIPDB</strong></p><p>Detection result — 10/91 vendors flagged the IP as malicious — 5,853 abuse reports</p><p>Abuse confidence — Not available — 100%</p><p>ASN — AS18881 — AS18881</p><p>ISP — TELEFONICA BRASIL S.A — TELEFONICA BRASIL S.A</p><p>Usage type — Not specified — Fixed Line ISP</p><p>Country — Brazil — Brazil</p><p>City — Not available — Florianopolis</p><p>Recent activity — Malicious/Suspicious — Active attacks reported within the last week</p><p>Attack type — Malware and phishing — SSH brute force and port scanning</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HpwDHCVvE1gdNZt_hZfBSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*AuvoAcAKWYiHKmtAi3sjuQ.png" /></figure><p><strong>Figure 5.9 :-</strong> VirusTotal and AbuseIPDB analysis for 200.175.61.207 ip address</p><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>200.175.61.207 — IP Address — Malicious SSH brute-force infrastructure — High — Firewall, SSH logs, IDS/IPS, Wazuh</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><p>· 10 security vendors flagged the IP as malicious.</p><p>· The IP was associated with:</p><p>o Malware</p><p>o Phishing</p><p>o Suspicious network activity</p><p><strong>AbuseIPDB identified:</strong></p><p>· 5,853 reports from 1,178 different sources</p><p>· 100% abuse confidence</p><p>· Recent reports were submitted 4 hours before the analysis</p><p>· The IP was actively performing:</p><p>o SSH brute-force attacks</p><p>o Credential attacks</p><p>o Port scanning</p><h3>5.10 IOC Analysis: 187.120.72.90</h3><p><strong>Analysis Between VirusTotal and AbuseIPDB</strong></p><p><strong>Category — VirusTotal — AbuseIPDB</strong></p><p>Detection result — 6/91 vendors flagged the IP as malicious — 231 abuse reports</p><p>Abuse confidence — Not available — 72%</p><p>ASN — AS28202 — AS28202</p><p>ISP — MASTER S/A — MASTER S/A</p><p>Usage type — Not specified — Fixed Line ISP</p><p>Country — Brazil — Brazil</p><p>City — Not available — Passos, Minas Gerais — Recent activity</p><p>Malicious/Suspicious — Activity reported within the previous 48 hours</p><p>Attack type — Malware and phishing — Repeated network abuse</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*A94OQ3XoG5XFpmXcDrYpyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*8amh6n65EegPhExXydEDmA.png" /></figure><p><strong>Figure 5.10 :-</strong> VirusTotal and AbuseIPDB analysis for 187.120.72.90 ip address</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><ul><li>6 security vendors flagged the IP as malicious.</li><li>The IP was associated with:</li><li>Malware</li><li>Phishing</li><li>Suspicious network activity</li></ul><p><strong>AbuseIPDB identified:</strong></p><ul><li>231 reports from 85 different sources</li><li>72% abuse confidence</li><li>Recent activity reported within the last two days</li></ul><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>187.120.72.90 — IP Address — Suspicious network infrastructure — Medium — Firewall, IDS/IPS, Wazuh</p><h3>5.11 IOC Analysis: 185.246.128.25</h3><p><strong>Analysis Between VirusTotal and AbuseIPDB</strong></p><p><strong>Category — VirusTotal — AbuseIPDB</strong></p><p>Detection result — 6/91 vendors flagged the IP as malicious — 6,626 abuse reports</p><p>Abuse confidence — Not available — 100%</p><p>ASN — AS42237 — AS42237</p><p>ISP — w1n Ltd — w1n Ltd</p><p>Usage type — Not specified — Data Center/Web Hosting</p><p>Country — Sweden — Sweden</p><p>City — Not available — Stockholm</p><p>Recent activity — Malicious/Suspicious — Active attacks reported within the last week</p><p>Attack type — Malware and phishing — Repeated malicious activity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*8FXqElJ3sC8CxldwoTMXTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*euwFs4TNKFO15pa0oYsRgQ.png" /></figure><p><strong>Figure 5.11 :-</strong> VirusTotal and AbuseIPDB analysis for 185.246.128.25 ip address</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><ul><li>6 security vendors flagged the IP as malicious.</li><li>The IP was associated with:</li></ul><p>ü Malware</p><p>ü Phishing</p><p><strong>AbuseIPDB identified:</strong></p><ul><li>6,626 reports from 214 different sources</li><li>100% abuse confidence</li><li>Malicious activity remained active during the previous week</li></ul><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>185.246.128.25 — IP Address — Confirmed malicious infrastructure — High — Firewall, IDS/IPS, Threat Intelligence, Wazuh</p><h3>5.12 IOC Analysis: 185.226.197.7</h3><p><strong>Analysis Between VirusTotal and AbuseIPDB</strong></p><p><strong>Category — VirusTotal — AbuseIPDB</strong></p><p>Detection result — 14/91 vendors flagged the IP as malicious — 8,902 abuse reports</p><p>Abuse confidence — Not available — 100%</p><p>ASN — AS21859 — AS21859</p><p>ISP — Zenlayer Inc — ICG-4-ZEN-AMS</p><p>Usage type — Not specified — Data Center/Web Hosting</p><p>Country — Portugal/Netherlands — Netherlands</p><p>City — Not available — Lelystad</p><p>Recent activity — Active malicious activity — Reports submitted one hour before analysis</p><p>Attack type — Malware, phishing, reconnaissance — Brute force, scanning, DNS abuse, RDP, SMB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*lBXgrsgv4ws2vVmi-wymYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*1XSG1p2MWFFzCNnf-X95cA.png" /></figure><p><strong>Figure 5.12 :-</strong> VirusTotal and AbuseIPDB analysis for 185.226.197.7 ip address</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><ul><li>14 security vendors flagged the IP as malicious.</li><li>Guardpot reported:</li></ul><p>ü TCP port scanning</p><p>ü DNS abuse</p><p>ü PostgreSQL brute-force attacks</p><p>ü Telnet attacks</p><p>ü MySQL attacks</p><p>ü RDP attacks</p><p>ü LDAP attacks</p><p>ü SMB activity</p><p><strong>AbuseIPDB identified:</strong></p><ul><li>8,902 reports from 595 different sources</li><li>100% abuse confidence</li><li>Malicious activity remained active within the previous hour</li></ul><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>185.226.197.7 — IP Address — Multi-vector attack infrastructure — High — Firewall, Network Logs, IDS/IPS, Wazuh</p><h3>5.13 IOC Analysis: 184.105.247.251</h3><p><strong>Analysis Between VirusTotal and AbuseIPDB</strong></p><p><strong>Category — VirusTotal — AbuseIPDB</strong></p><p>Detection result — 11/91 vendors flagged the IP as malicious — 72,799 abuse reports</p><p>Abuse confidence — Not available — 100%</p><p>ASN — AS6939 — AS6939</p><p>ISP — Hurricane Electric LLC — Shadowserver Foundation</p><p>Usage type — Not specified — Fixed Line ISP</p><p>Country — United States — United States</p><p>City — Not available — San Jose, California</p><p>Recent activity — Malicious/Suspicious — Reports submitted one hour before analysis</p><p>Attack type — Malware and phishing — Large-scale scanning activity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*vmWq1opA1WQxG0Ce2j3AVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*FlzTqLSkk3AaPVPgDDswDg.png" /></figure><p><strong>Figure 5.13 :-</strong> VirusTotal and AbuseIPDB analysis for 184.105.247.251 ip address</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><ul><li>11 security vendors flagged the IP as malicious.</li><li>The IP was associated with:</li></ul><p>ü Malware</p><p>ü Phishing</p><p>ü Suspicious network activity</p><p><strong>AbuseIPDB identified:</strong></p><ul><li>72,799 reports from 724 different sources</li><li>100% abuse confidence</li><li>The IP was continuously involved in large-scale Internet scanning activity</li></ul><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>184.105.247.251 — IP Address — Large-scale scanning infrastructure — High — Firewall, IDS/IPS, Network Logs, Wazuh</p><h3>5.14 IOC Analysis: <a href="http://210.208.111.2:36838/i">http://210.208.111.2:36838/i</a></h3><p><strong>Category — VirusTotal</strong></p><p>Detection result — 16/92 vendors flagged the URL as malicious</p><p>URL status — Active (HTTP 200)</p><p>Content type — image/png</p><p>Category — Malware site</p><p>Associated malware — MIRAI, MOZI</p><p>Recent activity — Malicious activity identified 9 days before analysis</p><p>Attack type — Botnet activity, SSH brute force, Telnet brute force, C2 communication</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*lBI7h6Xncvlc3pihQWToiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*RVqvWPiYAF8exZuyfYmx3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CbdbHMvZOvsNdf7bCR9QBw.png" /></figure><p><strong>Figure 5.14 :- </strong>VirusTotal analysis for <a href="http://210.208.111.2:36838/i">http://210.208.111.2:36838/i</a> site</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><p>1. 16 security vendors classified the URL as malicious.</p><p>2. The URL was categorized as a known infection source.</p><p>3. Cluster25 associated the URL with the Mirai and Mozi botnets.</p><p>4. The URL was serving content through a non-standard port (36838).</p><p>5. The web resource remained accessible and returned an HTTP 200 response.</p><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p><a href="http://210.208.111.2:36838/i">http://210.208.111.2:36838/i</a> — URL — Mirai/Mozi malware distribution infrastructure — High — Firewall, IDS/IPS, Network logs, Wazuh</p><h3>5.15 IOC Analysis: <a href="http://mediafire.com/file/pfxpcqrssrvi4h4/file">http://mediafire.com/file/pfxpcqrssrvi4h4/file</a></h3><p><strong>Category — VirusTotal</strong></p><p>Detection result — 3/92 vendors flagged the URL as malicious</p><p>URL status — Active (HTTP 200)</p><p>Content type — application/x-iso9660-image</p><p>Category — File sharing and media storage</p><p>File type — ISO image</p><p>Recent activity — Limited evidence of malicious activity</p><p>Attack type — Possible malware distribution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*llgG9ApqitFnsZ0nAwEBeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*eVX83YL9Ub2BAddQgt_G4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*UcG0gp8sEH58rNqilSRXsw.png" /></figure><p><strong>Figure 5.15 :- </strong>VirusTotal analysis for <a href="http://mediafire.com/file/pfxpcqrssrvi4h4/file">http://mediafire.com/file/pfxpcqrssrvi4h4/file</a> site</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><p>1. Only 3 security vendors detected the URL as malicious.</p><p>2. The URL redirected to a downloadable ISO file.</p><p>3. The downloaded file was 5.07 MB in size.</p><p>4. The filename appeared randomized, which is commonly observed in malware campaigns.</p><p>5. The file was hosted on MediaFire, a legitimate file-sharing platform.</p><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p>mediafire.com/file/pfxpcqrssrvi4h4/file — URL — Suspicious ISO file distribution — Medium — Web proxy, File analysis, Endpoint security, Wazuh</p><h3>5.16 IOC Analysis: <a href="http://115.55.183.61:57147/Mozi.a">http://115.55.183.61:57147/Mozi.a</a></h3><p><strong>Category — VirusTotal</strong></p><p>Detection result — 19/92 vendors flagged the URL as malicious</p><p>URL status — Active (HTTP 200)</p><p>Content type — image/png</p><p>Category — Malware site</p><p>Associated malware — MIRAI, MOZI</p><p>Recent activity — Malicious activity identified 5 days before analysis</p><p>Attack type — Botnet activity, SSH brute force, Telnet brute force, C2 communication</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*haYDrGpeMstCKRy6YAxizQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*Exx63prt01sv9kMYF80DNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*_u1wmkl8zvlfxMZ_PnQtWA.png" /></figure><p><strong>Figure 5.16 :- </strong>VirusTotal analysis for <a href="http://115.55.183.61:57147/Mozi.a">http://115.55.183.61:57147/Mozi.a</a> site</p><h3>Threat Intelligence Findings</h3><p><strong>VirusTotal identified:</strong></p><p>1. 19 security vendors classified the URL as malicious.</p><p>2. The URL was identified as a known infection source.</p><p>3. Cluster25 linked the URL to Mirai and Mozi malware.</p><p>4. The URL was actively distributing malware through a non-standard port (57147).</p><p>5. The web resource returned an HTTP 200 response, indicating that it was still accessible during analysis.</p><h3>Report Entry</h3><p><strong>IOC — Type — Finding — Confidence — Detection Method</strong></p><p><a href="http://115.55.183.61:57147/Mozi.a">http://115.55.183.61:57147/Mozi.a</a> — URL — Mirai/Mozi malware infrastructure — High — Firewall, IDS/IPS, Network logs, Wazuh</p><h3>5.17 IOC Analysis Conclusion</h3><p>This phase demonstrated how threat intelligence can be used to validate and enrich security alerts. By analyzing IP addresses and URLs with VirusTotal and AbuseIPDB, it was possible to identify malicious infrastructure, distinguish legitimate services from active threats, and understand attacker behavior. The investigation highlighted the value of IOC enrichment in improving detection accuracy, accelerating incident analysis, and supporting more effective SOC operations.</p><h3>6. RISK ASSESSMENT</h3><h3>6.1 Risk Assessment Matrix</h3><p>The identified security events were evaluated based on their likelihood of occurrence and their potential impact on organizational assets. The assessment focused on the five most significant findings observed during the investigation.</p><h3>6.1 Risk Assessment table</h3><p><strong>Finding — Asset — Likelihood — Impact — Risk — Recommendation</strong></p><p>SSH brute-force authentication attempts — Linux servers — High — High — Critical — Restrict SSH access, enforce strong passwords, and enable multi-factor authentication</p><p>Privileged command execution — Linux servers — Medium — High — High — Apply the principle of least privilege and monitor sudo activity</p><p>Suspicious process execution — Windows endpoints — Medium — High — High — Monitor processes using Sysmon and investigate unauthorized activity</p><p>Executable file creation — Windows endpoints — Medium — High — High — Implement application control and continuously monitor file creation events</p><p>Unauthorized file modification — Windows and Linux systems — Medium — Medium — Medium — Enable file integrity monitoring and investigate unexpected changes</p><h3>6.3 Security Impact Assessment</h3><p>The investigation showed that the identified security events could affect the confidentiality, integrity, and availability of organizational systems if they occurred in a production environment.</p><p>Potential security impacts include:</p><p>1. Unauthorized access through SSH brute-force attacks.</p><p>2. Execution of malicious or unauthorized files.</p><p>3. Unauthorized modification of critical system files.</p><p>4. Abuse of elevated privileges.</p><p>5. Compromise of system integrity and service availability.</p><p>The assessment identified authentication attacks, suspicious process execution, and privilege-related activities as the highest-risk findings. Continuous monitoring, log correlation, and SIEM-based detection are essential for reducing the impact of security incidents and improving incident response.</p><h3>7. DEFENSIVE RECOMMENDATIONS</h3><h3>7.1 Authentication and Multi-Factor Authentication (MFA)</h3><ul><li>Restrict SSH access to authorized users only.</li><li>Implement SSH key-based authentication.</li><li>Enforce strong password policies.</li><li>Enable multi-factor authentication for administrative accounts.</li><li>Monitor failed authentication attempts to identify brute-force attacks.</li></ul><h3>7.2 Least Privilege</h3><ul><li>Apply the principle of least privilege to Windows and Linux accounts.</li><li>Restrict administrative and sudo permissions.</li><li>Remove unnecessary privileges from user accounts.</li><li>Regularly review privileged account activity.</li></ul><h3>7.3 Windows and Linux Hardening</h3><ul><li>Expand File Integrity Monitoring to additional sensitive directories.</li><li>Enable advanced Sysmon event collection.</li><li>Implement application control policies.</li><li>Restrict unauthorized executable file creation.</li><li>Harden Linux services and disable unnecessary applications.</li></ul><h3>7.4 Firewall and Network Restrictions</h3><ul><li>Restrict access to exposed services through firewall rules.</li><li>Limit SSH access to trusted hosts.</li><li>Block unnecessary network ports.</li><li>Monitor network traffic for scanning and brute-force activity.</li></ul><h3>7.5 Patch Management</h3><ul><li>Keep operating systems updated with the latest security patches.</li><li>Regularly update applications and security tools.</li><li>Apply security updates to reduce known vulnerabilities.</li></ul><h3>7.6 Endpoint Protection</h3><ul><li>Deploy antivirus and endpoint detection solutions.</li><li>Monitor suspicious processes and executable files.</li><li>Enable malware protection on all endpoints.</li></ul><h3>7.7 Security Logging and Monitoring</h3><ul><li>Develop custom Wazuh detection rules.</li><li>Integrate external threat intelligence sources.</li><li>Configure automated alert prioritization.</li><li>Implement continuous log collection and analysis.</li></ul><h3>7.8 Account and Privilege Monitoring</h3><ul><li>Monitor user account activity continuously.</li><li>Review authentication logs regularly.</li><li>Track privileged command execution.</li><li>Generate alerts for unauthorized account or privilege changes.</li></ul><p>These recommendations were developed based on the findings identified during offensive security testing, Wazuh investigations, IOC analysis, and risk assessment. Implementing these controls would reduce the likelihood of unauthorized access, malware execution, privilege abuse, and system compromise.</p><h3>8. CONCLUSION</h3><p>This investigation demonstrated the successful implementation of a centralized Wazuh-based Security Information and Event Management (SIEM) environment for monitoring both Windows and Linux endpoints. The platform successfully collected, processed, correlated, and enriched security events from multiple data sources, including Windows Event Logs, Sysmon, SSH logs, PAM logs, File Integrity Monitoring events, and external threat intelligence platforms such as VirusTotal and AbuseIPDB.</p><p>The investigation validated the effectiveness of Wazuh in supporting real-time threat detection, IOC analysis, security event correlation, and incident investigation. Security testing identified multiple attack techniques, including brute-force authentication attempts, malicious file activity, privilege escalation, malware distribution, and botnet-related infrastructure.</p><p>The results confirmed that the implemented SOC environment provides the visibility, monitoring, and threat intelligence capabilities required to detect and analyze suspicious activity across heterogeneous operating systems. The project also demonstrated how IOC enrichment and centralized monitoring can improve detection accuracy, accelerate incident analysis, and strengthen overall security operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=127c8c8d8f78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PROJECT 2 — THREAT DETECTION & INCIDENT RESPONSE WITH WAZUH]]></title>
            <link>https://medium.com/@T4N7R1CX/project-2-threat-detection-incident-response-with-wazuh-64fee329ee18?source=rss-b13ec72739e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/64fee329ee18</guid>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-detection]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[wazhu]]></category>
            <dc:creator><![CDATA[T4N7R1CX]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 16:27:22 GMT</pubDate>
            <atom:updated>2026-07-23T16:27:22.828Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>PROJECT 2 — THREAT DETECTION &amp; INCIDENT RESPONSE WITH WAZUH</strong></p><p><strong>Project Overview</strong></p><p>This project focuses on building practical Security Operations Center (SOC) skills by using Wazuh SIEM to monitor, detect, investigate, and respond to simulated security incidents.</p><p>Unlike the previous Wazuh deployment phase where the focus was on installation and configuration, this project focuses on the complete incident detection workflow:</p><p><strong>Attack Simulation → Log Generation → SIEM Detection → Alert Investigation → MITRE ATT&amp;CK Mapping → Security Recommendations</strong></p><p>The objective is to simulate realistic attacker behavior and analyze how a SOC analyst would identify and investigate threats.</p><p><strong>Lab Architecture</strong></p><p><strong>Environment Design</strong></p><p>Kali Linux</p><p>(Attacker Machine)</p><p>|</p><p>|</p><p>VMware Virtual Network</p><p>|</p><p>— — — — — — — — — — — — — — — — — -</p><p>| |</p><p>Windows Host Ubuntu Server</p><p>Wazuh Agent Wazuh Manager</p><p>Sysmon Wazuh Dashboard</p><p>PowerShell Logs Indexer</p><p>| |</p><p>— — — — — — — — — — — — — — — — — -</p><p>SOC Monitoring</p><p><strong>Components Used</strong></p><p><strong>Component</strong></p><p><strong>Purpose</strong></p><p>Kali Linux</p><p>Attack simulation platform</p><p>Windows 11 Host</p><p>Endpoint monitored by Wazuh</p><p>Ubuntu Server</p><p>Wazuh SIEM server</p><p>Wazuh Agent</p><p>Endpoint telemetry collection</p><p>Sysmon</p><p>Advanced Windows event monitoring</p><p>Wazuh Dashboard</p><p>Alert investigation</p><p>PowerShell Logging</p><p>Command execution visibility</p><p><strong>PHASE 1 — MANUAL ATTACK SIMULATION</strong></p><p><strong>Objective</strong></p><p>The objective of Phase 1 was to manually generate security events and analyze Wazuh’s ability to detect malicious activity.</p><p>The phase follows a SOC investigation workflow:</p><ol><li>Execute controlled attacks</li><li>Collect security telemetry</li><li>Analyze Wazuh alerts</li><li>Investigate event details</li><li>Map activity to MITRE ATT&amp;CK techniques</li><li>Recommend mitigation actions</li></ol><p><strong>Lab 1 — Nmap Port Scan Detection</strong></p><p><strong>1.1 Objective</strong></p><p>Simulate reconnaissance activity performed by attackers during the initial discovery phase.</p><p>The goal was to identify whether Wazuh could detect suspicious network scanning behavior.</p><p><strong>1.2 Attack Scenario</strong></p><p>An attacker performs network reconnaissance against the monitored environment to discover:</p><ul><li>Open ports</li><li>Running services</li><li>Available hosts</li></ul><p>This represents the MITRE ATT&amp;CK technique:</p><p>T1046 — Network Service Scanning</p><p><strong>1.3 Attack Execution</strong></p><p>Attacker machine:</p><p>Kali Linux</p><p>Example scan:</p><p>nmap -sS &lt;target-ip&gt;</p><p>Additional enumeration:</p><p>nmap -sV &lt;target-ip&gt;</p><p><strong>1.4 Detection in Wazuh</strong></p><p>Wazuh monitored:</p><ul><li>Network activity</li><li>Firewall events</li><li>Sysmon network events</li></ul><p>Events were investigated through:</p><p>Wazuh Dashboard</p><p>→ Threat Hunting</p><p>→ Events</p><p><strong>1.5 Findings</strong></p><p>The simulation demonstrated how reconnaissance activity creates detectable security telemetry.</p><p>SOC analysts can use:</p><ul><li>Source IP</li><li>Timestamp</li><li>Destination port</li><li>Connection pattern</li></ul><p>to identify scanning behavior.</p><p><strong>Lab 2 — Failed SSH Login Simulation</strong></p><p><strong>2.1 Objective</strong></p><p>Simulate unauthorized login attempts against a Linux system.</p><p>The objective was to understand authentication monitoring and brute-force detection.</p><p><strong>2.2 Attack Scenario</strong></p><p>An attacker attempts SSH access using incorrect credentials.</p><p>MITRE ATT&amp;CK:</p><p>T1110 — Brute Force</p><p><strong>2.3 Attack Execution</strong></p><p>Example:</p><p>ssh user@target-ip</p><p>Multiple failed authentication attempts were generated.</p><p><strong>2.4 Wazuh Detection</strong></p><p>Wazuh analyzed:</p><p>/var/log/auth.log</p><p>Detection sources:</p><ul><li>SSH authentication logs</li><li>PAM events</li></ul><p><strong>2.5 Investigation</strong></p><p>Analyst reviewed:</p><ul><li>Username attempted</li><li>Source IP</li><li>Number of failures</li><li>Authentication timeline</li></ul><p><strong>2.6 Findings</strong></p><p>The investigation demonstrated how authentication monitoring helps identify:</p><ul><li>Password attacks</li><li>Unauthorized access attempts</li><li>Compromised accounts</li></ul><p><strong>Lab 3 — SSH Brute Force Simulation</strong></p><p><strong>3.1 Objective</strong></p><p>Increase attack complexity by performing automated credential guessing.</p><p><strong>3.2 Attack Scenario</strong></p><p>A simulated attacker uses automated tools to attempt multiple passwords.</p><p>MITRE ATT&amp;CK:</p><p>T1110.001 — Password Guessing</p><p><strong>3.3 Attack Tool</strong></p><p>Example:</p><p>hydra</p><p><strong>3.4 Detection</strong></p><p>Wazuh identifies:</p><ul><li>Multiple failed logins</li><li>Repeated authentication attempts</li><li>Suspicious source behavior</li></ul><p><strong>3.5 Findings</strong></p><p>The lab demonstrates the importance of:</p><ul><li>Account monitoring</li><li>Rate limiting</li><li>Strong passwords</li><li>Account lockout policies</li></ul><p><strong>Lab 4 — File Integrity Monitoring Attack</strong></p><p><strong>4.1 Objective</strong></p><p>Test Wazuh File Integrity Monitoring capability.</p><p><strong>4.2 Attack Scenario</strong></p><p>An attacker modifies or creates sensitive files.</p><p><strong>4.3 Detection</strong></p><p>Wazuh generated alerts:</p><p>Examples already observed:</p><p>File added to system</p><p>Rule ID: 554</p><p>Integrity checksum changed</p><p>Rule ID: 550</p><p>File deleted</p><p>Rule ID:553</p><p><strong>4.4 Investigation</strong></p><p>Analyst reviewed:</p><ul><li>File path</li><li>Hash changes</li><li>Timestamp</li><li>User activity</li></ul><p><strong>4.5 Findings</strong></p><p>FIM successfully detected unauthorized file modification.</p><p>Security recommendations:</p><ul><li>Restrict permissions</li><li>Monitor sensitive directories</li><li>Investigate unexpected changes</li></ul><p><strong>Lab 5 — Suspicious PowerShell Execution</strong></p><p><strong>5.1 Objective</strong></p><p>Test Wazuh detection of suspicious PowerShell activity.</p><p><strong>5.2 Attack Scenario</strong></p><p>Simulated attacker PowerShell usage:</p><ul><li>Encoded command execution</li><li>System discovery</li><li>Process discovery</li><li>PowerShell spawning</li></ul><p><strong>5.3 Commands Executed</strong></p><p>powershell.exe -enc dwBoAG8AYQBtAGkA</p><p>whoami</p><p>hostname</p><p>systeminfo</p><p>Get-Process</p><p>Start-Process calc.exe</p><p><strong>5.4 Detection</strong></p><p>Wazuh detected:</p><ul><li>PowerShell process spawned PowerShell instance<br> <strong>Rule ID: 92027</strong></li><li>PowerShell executing process discovery<br> <strong>Rule ID: 91815</strong></li><li>Discovery activity executed<br> <strong>Rule ID: 92031</strong></li><li>Suspicious file creation<br> <strong>Rule ID: 92213</strong></li></ul><p><strong>5.5 Investigation</strong></p><p>Reviewed:</p><ul><li>PowerShell commands</li><li>User activity</li><li>Process execution</li><li>Sysmon logs</li></ul><p><strong>5.6 MITRE ATT&amp;CK Mapping</strong></p><ul><li><strong>T1059.001</strong> — PowerShell</li><li><strong>T1057</strong> — Process Discovery</li><li><strong>T1082</strong> — System Information Discovery</li></ul><p><strong>5.7 Findings</strong></p><p>Wazuh successfully detected and logged PowerShell-based activity through Sysmon integration.</p><p><strong>5.8 Recommendations</strong></p><ul><li>Enable PowerShell logging</li><li>Monitor encoded commands</li><li>Investigate suspicious PowerShell behavior</li><li>Restrict unnecessary PowerShell usage</li></ul><p><strong>PHASE 2 — ATOMIC RED TEAM ATTACK SIMULATION</strong></p><p><strong>Objective</strong></p><p>The objective of Phase 2 was to simulate real-world adversary techniques using the <strong>Atomic Red Team</strong> framework and evaluate Wazuh’s capability to detect, log, and map attack activities to the MITRE ATT&amp;CK framework.</p><p>The phase follows a SOC investigation workflow:</p><ol><li>Execute Atomic Red Team tests</li><li>Generate attack telemetry</li><li>Analyze Wazuh alerts</li><li>Investigate Sysmon event details</li><li>Correlate detections with MITRE ATT&amp;CK</li><li>Evaluate detection coverage</li></ol><p><strong>Lab 1 — PowerShell Execution Detection</strong></p><p><strong>1.1 Objective</strong></p><p>Simulate PowerShell command execution using an encoded command to evaluate Wazuh’s detection of suspicious PowerShell activity.</p><p><strong>1.2 Attack Scenario</strong></p><p>Executed an obfuscated PowerShell command through Atomic Red Team.</p><p><strong>MITRE ATT&amp;CK</strong></p><p><strong>T1059.001 — PowerShell</strong></p><p><strong>1.3 Attack Execution</strong></p><p>Invoke-AtomicTest T1059.001 -TestNumbers 17</p><p><strong>1.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>Encoded PowerShell execution</li><li>Suspicious PowerShell process creation</li><li>Command shell activity</li></ul><p><strong>1.5 Findings</strong></p><p>The simulation confirmed that Wazuh successfully detected obfuscated PowerShell execution and mapped the activity to relevant MITRE ATT&amp;CK techniques.</p><p><strong>Lab 2 — System Information Discovery</strong></p><p><strong>2.1 Objective</strong></p><p>Simulate operating system discovery commands commonly used during attacker reconnaissance.</p><p><strong>2.2 Attack Scenario</strong></p><p>Collected host information using built-in Windows utilities.</p><p><strong>MITRE ATT&amp;CK</strong></p><p><strong>T1082 — System Information Discovery</strong></p><p><strong>2.3 Attack Execution</strong></p><p>Invoke-AtomicTest T1082 -TestNumbers 1</p><p><strong>2.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>Command shell execution</li><li>Process creation events</li><li>Sysmon telemetry</li></ul><p><strong>2.5 Findings</strong></p><p>The attack generated process activity that Wazuh successfully logged. Detection focused on observed behavior rather than the executed Atomic technique.</p><p><strong>Lab 3 — Registry Run Key Persistence</strong></p><p><strong>3.1 Objective</strong></p><p>Simulate registry-based persistence using Windows Run Keys.</p><p><strong>3.2 Attack Scenario</strong></p><p>Created a registry Run Key for automatic execution after user logon.</p><p><strong>MITRE ATT&amp;CK</strong></p><p><strong>T1547.001 — Registry Run Keys / Startup Folder</strong></p><p><strong>3.3 Attack Execution</strong></p><p>Invoke-AtomicTest T1547.001 -TestNumbers 1</p><p><strong>3.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>Registry modification</li><li>Run Key persistence</li><li>reg.exe activity</li></ul><p><strong>3.5 Findings</strong></p><p>The simulation demonstrated successful detection of persistence through Windows Registry Run Keys.</p><p><strong>Lab 4 — Registry Modification</strong></p><p><strong>4.1 Objective</strong></p><p>Simulate registry modification commonly associated with defense evasion and system configuration changes.</p><p><strong>4.2 Attack Scenario</strong></p><p>Modified a Windows Registry value using the Registry Console Tool.</p><p><strong>MITRE ATT&amp;CK</strong></p><p><strong>T1112 — Modify Registry</strong></p><p><strong>4.3 Attack Execution</strong></p><p>Invoke-AtomicTest T1112 -TestNumbers 1</p><p><strong>4.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>Registry modification</li><li>reg.exe execution</li><li>Sysmon process events</li></ul><p><strong>4.5 Findings</strong></p><p>Wazuh successfully recorded registry changes and correlated them with MITRE ATT&amp;CK techniques.</p><p><strong>Lab 5 — Scheduled Task Creation</strong></p><p><strong>5.1 Objective</strong></p><p>Simulate persistence through Windows Scheduled Tasks.</p><p><strong>5.2 Attack Scenario</strong></p><p>Created a local scheduled task using the Windows Task Scheduler.</p><p><strong>MITRE ATT&amp;CK</strong></p><p><strong>T1053.005 — Scheduled Task</strong></p><p><strong>5.3 Attack Execution</strong></p><p>Invoke-AtomicTest T1053.005 -TestNumbers 2</p><p><strong>5.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>schtasks.exe execution</li><li>Command shell activity</li><li>Sysmon process creation events</li></ul><p><strong>5.5 Findings</strong></p><p>The scheduled task was successfully created. Although Wazuh primarily alerted on the underlying process behavior, the investigation confirmed the scheduled task creation through Sysmon telemetry, demonstrating how SOC analysts correlate multiple events during an investigation.</p><p><strong>PHASE 3 — CUSTOM RULES &amp; DETECTION ENGINEERING</strong></p><p><strong>3.1 Objective</strong></p><p>The objective of this phase was to understand Wazuh’s rule architecture and improve detection capabilities by creating and modifying custom rules. This phase focused on detection engineering, enabling the SIEM to generate more meaningful alerts for suspicious activities.</p><p><strong>Lab 1 — Understanding Wazuh Rule Architecture</strong></p><p><strong>Objective</strong></p><p>Learn how Wazuh processes security events using built-in and local rules.</p><p><strong>Key Activities</strong></p><ul><li>Explored built-in Wazuh rules.</li><li>Located custom rule file.</li><li>Verified parent-child rule relationships.</li></ul><p><strong>Important Commands</strong></p><p>ls /var/ossec/ruleset/rules</p><p>ls /var/ossec/etc/rules</p><p>grep -n ‘92057’ /var/ossec/ruleset/rules/*</p><p>grep -A20 -B5 ‘id=”92057&quot;’ /var/ossec/ruleset/rules/0800-sysmon_id_1.xml</p><p><strong>Outcome</strong></p><ul><li>Understood Wazuh rule hierarchy.</li><li>Identified Sysmon rule <strong>92057</strong> as the parent rule for encoded PowerShell detection.</li></ul><p><strong>Lab 2 — Create Your First Custom Rule</strong></p><p><strong>Objective</strong></p><p>Create a custom rule based on an existing Sysmon detection.</p><p><strong>Key Activities</strong></p><ul><li>Created a local child rule using <strong>if_sid</strong>.</li><li>Added MITRE ATT&amp;CK mapping.</li><li>Restarted Wazuh Manager.</li></ul><p><strong>Custom Rule</strong></p><p>&lt;rule id=”100100&quot; level=”12&quot;&gt;</p><p>&lt;if_sid&gt;92057&lt;/if_sid&gt;</p><p>&lt;description&gt;Custom Alert: Suspicious PowerShell Execution Detected&lt;/description&gt;</p><p>&lt;group&gt;custom,powershell,attack,&lt;/group&gt;</p><p>&lt;mitre&gt;</p><p>&lt;id&gt;T1059.001&lt;/id&gt;</p><p>&lt;/mitre&gt;</p><p>&lt;/rule&gt;</p><p><strong>Outcome</strong></p><ul><li>Successfully created the first custom Wazuh detection rule.</li></ul><p><strong>Lab 3 — Detect Atomic Red Team Activity</strong></p><p><strong>Objective</strong></p><p>Validate that the custom rule detects suspicious PowerShell execution.</p><p><strong>Attack Command</strong></p><p>powershell.exe -EncodedCommand SQBFAFgAIAAiAFcAYQB6AHUAaAAgAFQAZQBzAHQAIgA=</p><p><strong>Detection</strong></p><ul><li>Sysmon Event ID 1 generated.</li><li>Parent Rule <strong>92057</strong> matched.</li><li>Custom Rule <strong>100100</strong> triggered.</li><li>MITRE Technique <strong>T1059.001 — PowerShell</strong> mapped successfully.</li></ul><p><strong>Outcome</strong></p><ul><li>Successfully validated custom detection against simulated attacker activity.</li></ul><p><strong>Lab 4 — Rule Tuning &amp; False Positive Reduction</strong></p><p><strong>Objective</strong></p><p>Improve the custom rule to make alerts more meaningful.</p><p><strong>Changes Made</strong></p><ul><li>Increased severity from <strong>12 → 15</strong></li><li>Updated description</li><li>Added <strong>critical</strong> group</li></ul><p><strong>Updated Rule</strong></p><p>&lt;rule id=”100100&quot; level=”15&quot;&gt;</p><p>&lt;if_sid&gt;92057&lt;/if_sid&gt;</p><p>&lt;description&gt;CRITICAL: Base64 Encoded PowerShell Execution Detected&lt;/description&gt;</p><p>&lt;group&gt;custom,powershell,attack,critical,&lt;/group&gt;</p><p>&lt;mitre&gt;</p><p>&lt;id&gt;T1059.001&lt;/id&gt;</p><p>&lt;/mitre&gt;</p><p>&lt;/rule&gt;</p><p><strong>Outcome</strong></p><ul><li>Alert severity increased.</li><li>Detection became easier to prioritize during investigations.</li></ul><p><strong>Lab 5 — Advanced High-Severity Detection Validation</strong></p><p><strong>Objective</strong></p><p>Verify the tuned rule using the same attack simulation.</p><p><strong>Attack Command</strong></p><p>powershell.exe -EncodedCommand SQBFAFgAIAAiAFcAYQB6AHUAaAAgAFQAZQBzAHQAIgA=</p><p><strong>Detection Results</strong></p><ul><li>Rule ID: <strong>100100</strong></li><li>Level: <strong>15</strong></li><li>Description:</li><li><strong>CRITICAL: Base64 Encoded PowerShell Execution Detected</strong></li><li>MITRE:</li><li><strong>T1059.001 — PowerShell</strong></li><li>Alert successfully appeared in the Wazuh Dashboard.</li></ul><p><strong>Outcome</strong></p><ul><li>Confirmed that the tuned custom rule generated a high-severity alert and correctly identified the encoded PowerShell execution.</li></ul><p><strong>PHASE 4: WAZUH DASHBOARD CREATION &amp; SECURITY VISUALIZATION</strong></p><p><strong>4.1 Objective</strong></p><p>The objective of this phase was to create custom dashboards in the Wazuh Dashboard to visualize security events collected from previous lab activities. Custom visualizations improve Security Operations Center (SOC) monitoring by providing real-time insights into alerts, attack trends, endpoint activity, and vulnerability status.</p><p><strong>4.2 Lab 1: PowerShell Detection Dashboard</strong></p><p><strong>Objective</strong></p><p>Create a dashboard to monitor suspicious PowerShell execution events detected by Wazuh custom rules.</p><p><strong>Procedure</strong></p><ul><li>Created a new dashboard named <strong>PowerShell Detection Dashboard</strong>.</li><li>Added visualizations to display:</li><li>Total PowerShell detections</li><li>Detection rule distribution</li><li>Severity distribution</li><li>Recent PowerShell alerts</li><li>Detection timeline</li><li>Saved the dashboard for continuous monitoring.</li></ul><p><strong>Outcome</strong></p><p>The dashboard successfully displayed custom PowerShell detections, alert severity, recent events, and event trends, enabling quick monitoring of suspicious PowerShell activity.</p><p><strong>4.3 Lab 2: File Integrity Monitoring (FIM) Dashboard</strong></p><p><strong>Objective</strong></p><p>Create a dashboard to visualize File Integrity Monitoring events collected from monitored endpoints.</p><p><strong>Procedure</strong></p><ul><li>Created a dedicated FIM dashboard.</li><li>Added visualizations for:</li><li>File Created</li><li>File Modified</li><li>File Deleted</li><li>Top monitored directories</li><li>FIM events over time</li><li>Verified events by creating, modifying, and deleting files.</li></ul><p><strong>Outcome</strong></p><p>The dashboard successfully visualized real-time file integrity events generated by monitored endpoints.</p><p><strong>4.4 Lab 3: Authentication &amp; Login Monitoring Dashboard</strong></p><p><strong>Objective</strong></p><p>Create a dashboard to monitor authentication-related security events.</p><p><strong>Procedure</strong></p><ul><li>Created visualizations showing:</li><li>Successful logins</li><li>Failed login attempts</li><li>Authentication events by severity</li><li>Login events over time</li><li>Top authentication rules</li><li>Verified using generated authentication events.</li></ul><p><strong>Outcome</strong></p><p>The dashboard provided centralized visibility into authentication activity and potential brute-force attempts.</p><p><strong>4.5 Lab 4: Vulnerability Detection Dashboard</strong></p><p><strong>Objective</strong></p><p>Visualize endpoint vulnerabilities detected by the Wazuh Vulnerability Detection module.</p><p><strong>Procedure</strong></p><ul><li>Created visualizations for:</li><li>Vulnerabilities by severity</li><li>Most vulnerable agents</li><li>Top affected software</li><li>CVEs by publication year</li><li>Vulnerability trends</li><li>Verified dashboard using vulnerability scan results.</li></ul><p><strong>Outcome</strong></p><p>The dashboard successfully displayed software vulnerabilities across monitored endpoints, helping prioritize remediation efforts.</p><p><strong>4.6 Phase Outcome</strong></p><p>Successfully created multiple custom Wazuh dashboards for centralized security monitoring. The dashboards provide real-time visibility into endpoint telemetry, PowerShell activity, file integrity monitoring, authentication events, and software vulnerabilities, improving SOC monitoring and incident analysis capabilities.</p><p><strong>PHASE 5 — SOC ANALYST CASE STUDIES</strong></p><p><strong>Objective</strong></p><p>The objective of Phase 5 was to simulate realistic security incidents commonly investigated by Security Operations Center (SOC) analysts and evaluate Wazuh’s capability to detect, correlate, and investigate attacker activities using endpoint telemetry, Windows Security logs, Sysmon events, and File Integrity Monitoring (FIM).</p><p>The phase follows a SOC investigation workflow:</p><ol><li>Simulate realistic attack scenarios</li><li>Generate endpoint security telemetry</li><li>Analyze Wazuh alerts</li><li>Investigate event details and attack timeline</li><li>Correlate detections with MITRE ATT&amp;CK</li><li>Recommend mitigation and response actions</li></ol><p><strong>Lab 1 — Phishing Investigation</strong></p><p><strong>1.1 Objective</strong></p><p>Simulate a phishing attack by executing an encoded PowerShell command and evaluate Wazuh’s ability to detect suspicious PowerShell activity.</p><p><strong>1.2 Attack Scenario</strong></p><p>A phishing email executes an obfuscated PowerShell command using Base64 encoding to evade detection.</p><p><strong>MITRE ATT&amp;CK</strong></p><p><strong>T1059.001 — PowerShell</strong></p><p><strong>1.3 Attack Execution</strong></p><p>Executed an encoded PowerShell command:</p><p>powershell.exe -EncodedCommand &lt;Base64_String&gt;</p><p><strong>1.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>Encoded PowerShell execution</li><li>Suspicious PowerShell process creation</li><li>Custom high-severity PowerShell detection rule</li><li>Executable dropped in a suspicious location</li></ul><p><strong>1.5 Findings</strong></p><p>The simulation demonstrated that Wazuh successfully detected obfuscated PowerShell execution through Sysmon telemetry and custom detection rules, providing visibility into phishing-related execution techniques.</p><p><strong>Lab 2 — Malware Investigation</strong></p><p><strong>2.1 Objective</strong></p><p>Simulate malware behavior by creating a suspicious executable file through PowerShell and evaluate Wazuh’s malware detection capabilities.</p><p><strong>2.2 Attack Scenario</strong></p><p>A PowerShell process creates a fake executable representing malware dropped onto the system.</p><p><strong>MITRE ATT&amp;CK</strong></p><p><strong>T1105 — Ingress Tool Transfer</strong></p><p><strong>2.3 Attack Execution</strong></p><p>Created a simulated executable file:</p><p>C:\Temp\invoice.exe</p><p><strong>2.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>Executable file created by PowerShell</li><li>Suspicious file creation event</li><li>Sysmon File Create telemetry</li></ul><p><strong>2.5 Findings</strong></p><p>The simulation demonstrated Wazuh’s ability to detect suspicious executable creation commonly associated with malware delivery and attacker payload deployment.</p><p><strong>Lab 3 — Insider Threat Investigation</strong></p><p><strong>3.1 Objective</strong></p><p>Simulate unauthorized file modifications and evaluate Wazuh File Integrity Monitoring (FIM).</p><p><strong>3.2 Attack Scenario</strong></p><p>A monitored file was created, modified, and deleted to simulate insider activity or unauthorized file manipulation.</p><p><strong>MITRE ATT&amp;CK</strong></p><ul><li><strong>T1070.004 — File Deletion</strong></li><li><strong>T1485 — Data Destruction</strong></li></ul><p><strong>3.3 Attack Execution</strong></p><p>Performed the following actions within the monitored directory:</p><ul><li>Created a file</li><li>Modified file contents</li><li>Deleted the file</li></ul><p><strong>3.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>File added to the system</li><li>Integrity checksum changed</li><li>File deleted</li></ul><p><strong>3.5 Findings</strong></p><p>The simulation confirmed that Wazuh File Integrity Monitoring successfully detected file lifecycle events and unauthorized modifications in real time.</p><p><strong>Lab 4 — Lateral Movement Investigation</strong></p><p><strong>4.1 Objective</strong></p><p>Simulate attacker discovery commands commonly executed before lateral movement.</p><p><strong>4.2 Attack Scenario</strong></p><p>Administrative discovery commands were executed through PowerShell to enumerate shared resources and gather host information.</p><p><strong>MITRE ATT&amp;CK</strong></p><ul><li><strong>T1087 — Account Discovery</strong></li><li><strong>T1059.001 — PowerShell</strong></li></ul><p><strong>4.3 Attack Execution</strong></p><p>Executed Windows discovery commands including:</p><p>net share</p><p>net view</p><p><strong>4.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>Discovery activity executed</li><li>Discovery activity spawned via PowerShell execution</li><li>net.exe account discovery commands</li><li>Sysmon process creation events</li></ul><p><strong>4.5 Findings</strong></p><p>The simulation demonstrated Wazuh’s capability to identify reconnaissance and discovery activities that frequently precede lateral movement within an enterprise environment.</p><p><strong>Lab 5 — Privilege Escalation Investigation</strong></p><p><strong>5.1 Objective</strong></p><p>Simulate privilege escalation by creating a local user account and assigning administrative privileges.</p><p><strong>5.2 Attack Scenario</strong></p><p>A new local user account was created and added to the Administrators group to simulate unauthorized privilege escalation.</p><p><strong>MITRE ATT&amp;CK</strong></p><ul><li><strong>T1484 — Domain Policy Modification</strong> <em>(Wazuh Mapping)</em></li><li><strong>Privilege Escalation</strong></li><li><strong>Defense Evasion</strong></li></ul><p><strong>5.3 Attack Execution</strong></p><p>Executed administrative account management commands:</p><p>net user SOCAdmin P@ssw0rd123! /add</p><p>net localgroup Administrators SOCAdmin /add</p><p><strong>5.4 Wazuh Detection</strong></p><p>Wazuh detected:</p><ul><li>User account enabled or created</li><li>User account changed</li><li>Administrators group changed</li><li>net.exe account discovery commands</li><li>Discovery activity via PowerShell</li><li>Windows Security Event ID 4732</li></ul><p><strong>5.5 Findings</strong></p><p>The simulation demonstrated Wazuh’s ability to detect user account creation, administrative group modifications, and privilege escalation through Windows Security auditing and Sysmon telemetry, enabling effective investigation of unauthorized privilege changes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64fee329ee18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WAZUH HOME LAB — SIEM Project]]></title>
            <link>https://medium.com/@T4N7R1CX/wazuh-home-lab-siem-project-92f227e63168?source=rss-b13ec72739e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/92f227e63168</guid>
            <dc:creator><![CDATA[T4N7R1CX]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 12:35:42 GMT</pubDate>
            <atom:updated>2026-07-17T12:35:42.677Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_rUDnCqRAKBIOc_HxBbsg.png" /></figure><p><strong>Table of Contents</strong></p><ol><li><strong>Overview</strong></li><li><strong>Lab Architecture</strong></li><li><strong>Prerequisites</strong></li><li><strong>Installing the Wazuh Server</strong></li></ol><ul><li>4.1 System Preparation</li><li>4.2 Download the Installation Script</li><li>4.3 Install Wazuh</li></ul><ol><li><strong>Accessing the Wazuh Dashboard</strong></li><li><strong>Installing the Wazuh Agent (Windows)</strong></li><li><strong>Registering the Agent with the Manager</strong></li></ol><ul><li>7.1 Generate Agent Authentication Key</li><li>7.2 Configure Windows Agent</li></ul><ol><li><strong>File Integrity Monitoring (FIM)</strong></li><li><strong>Verifying the Setup</strong></li><li><strong>Outcome</strong></li><li><strong>Sysmon Integration and Telemetry Collection</strong></li></ol><ul><li>11.1 Objective</li><li>11.2 Verifying Sysmon Installation</li><li>11.3 Configuring the Wazuh Agent</li><li>11.4 Verifying Agent Connectivity</li><li>11.5 Agent Registration Verification</li><li>11.6 Verifying Sysmon Log Collection</li><li>11.7 Verifying Communication with the Wazuh Manager</li><li>11.8 Telemetry Flow</li><li>11.9 Outcome</li></ul><ol><li><strong>Snort IDS Integration with Wazuh</strong></li></ol><ul><li>12.1 Objective</li><li>12.2 Installing and Configuring Snort 3</li><li>12.3 Creating and Testing a Custom Detection Rule</li><li>12.4 Configuring the Wazuh Agent</li><li>12.5 Resolving Log Access Permissions</li><li>12.6 Verifying Log Collection</li><li>12.7 Verifying Communication with the Wazuh Manager</li><li>12.8 Verifying Log Delivery</li><li>12.9 Integration Status</li><li>12.10 Outcome</li></ul><ol><li><strong>Active Response Implementation</strong></li></ol><ul><li>13.1 Objective</li><li>13.2 Reviewing Built-in Active Response Scripts</li><li>13.3 Creating a Custom Active Response Script</li><li>13.4 Configuring Active Response</li><li>13.5 Restarting the Wazuh Manager</li><li>13.6 Triggering the Active Response</li><li>13.7 Verifying Automatic Execution</li><li>13.8 Active Response Workflow</li><li>13.9 Outcome</li></ul><ol><li><strong>Vulnerability Detection</strong></li></ol><ul><li>14.1 Objective</li><li>14.2 Verifying Vulnerability Detection Configuration</li><li>14.3 Verifying Module Status</li><li>14.4 Scanning Managed Endpoints</li><li>14.5 Reviewing Vulnerability Dashboard</li><li>14.6 Investigating Vulnerabilities</li><li>14.7 Vulnerability Detection Workflow</li><li>14.8 Outcome</li></ul><p><strong>1. Overview</strong></p><p>This project demonstrates the deployment of a complete <strong>Wazuh SIEM home lab</strong> for Security Operations Center (SOC) learning and hands-on security monitoring. It covers the installation and configuration of the Wazuh server and agents, centralized log collection, File Integrity Monitoring (FIM), Sysmon endpoint telemetry integration, Snort IDS log integration, Active Response automation, and Vulnerability Detection. The lab validates end-to-end security event collection, monitoring, and automated response, providing a practical environment for learning SIEM operations, threat detection, and blue team security practices. Wazuh is a free and open-source Security Information and Event Management (SIEM) platform that provides:</p><ul><li>Centralized log collection</li><li>File Integrity Monitoring (FIM)</li><li>Intrusion Detection</li><li>Vulnerability Detection</li><li>Security Event Correlation</li><li>Endpoint Monitoring</li><li>Real-time Alerting</li></ul><p>This home lab was built to gain practical experience with SOC operations by deploying a complete Wazuh environment, enrolling a Windows endpoint, and monitoring file system activity in real time. In this we are covering :</p><p>· Wazuh SIEM Overview</p><p>· Lab Architecture</p><p>· Wazuh Server Installation</p><p>· Wazuh Dashboard Configuration</p><p>· Wazuh Agent Installation and Registration</p><p>· File Integrity Monitoring (FIM)</p><p>· Sysmon Integration and Endpoint Telemetry</p><p>· Snort 3 IDS Integration</p><p>· Active Response Automation</p><p>· Vulnerability Detection</p><p>· Security Event Monitoring and Verification</p><p>· Outcome and Future Enhancements</p><p><strong>2. Lab Architecture</strong></p><p><strong>Component</strong></p><p><strong>Host</strong></p><p><strong>Role</strong></p><p>Wazuh Manager</p><p>Ubuntu Server 24.04 LTS (VMware)</p><p>Collects, analyzes, and manages security events</p><p>Wazuh Indexer</p><p>Ubuntu Server</p><p>Stores and indexes security events</p><p>Filebeat</p><p>Ubuntu Server</p><p>Ships alerts to the Indexer</p><p>Wazuh Dashboard</p><p>Ubuntu Server</p><p>Web interface for monitoring and management</p><p>Wazuh Agent</p><p>Windows 11 Host</p><p>Sends logs and system events to the manager</p><p><strong>Network Configuration</strong></p><p><strong>Hypervisor:</strong> VMware Workstation</p><p><strong>Network Mode:</strong> Bridged Adapter</p><p><strong>Ubuntu Server IP</strong></p><p>192.168.204.135</p><p>The bridged network allowed communication between the Windows host and the Ubuntu Server.</p><p><strong>3. Prerequisites</strong></p><ul><li>VMware Workstation</li><li>Ubuntu Server 24.04 LTS</li><li>Windows 11 Host/agent</li><li>Internet connectivity</li><li>Administrator privileges</li><li>Basic Linux knowledge</li><li>Kali linux as agent</li></ul><p><strong>4. Installing the Wazuh Server</strong></p><p><strong>4.1 System Preparation</strong></p><p>Updated the Ubuntu server before installation.</p><p>sudo apt update</p><p>sudo apt upgrade -y</p><p><strong>4.2 Download the Installation Script</strong></p><p>curl -sO <a href="https://packages.wazuh.com/4.14/wazuh-install.sh">https://packages.wazuh.com/4.14/wazuh-install.sh</a></p><p><strong>4.3 Install Wazuh</strong></p><p>sudo bash wazuh-install.sh -a</p><p>The installation automatically deployed:</p><ul><li>Wazuh Manager</li><li>Wazuh Indexer</li><li>Filebeat</li><li>Wazuh Dashboard</li></ul><p>The installer also generated:</p><ul><li>SSL Certificates</li><li>Dashboard Credentials</li><li>Internal User Passwords</li><li>Authentication Keys</li></ul><p><strong>5. Accessing the Wazuh Dashboard</strong></p><p>After installation, the dashboard became available at:</p><p><a href="https://192.168.204.135/">https://192.168.204.135</a></p><p>Since a self-signed certificate is used, the browser displays a security warning, which was accepted to continue.</p><p>Login credentials were obtained from:</p><p>sudo cat ~/wazuh-install-files/wazuh-passwords.txt</p><p>The administrator account was used to access the dashboard successfully.</p><p><strong>6. Installing the Wazuh Agent (Windows)</strong></p><p>The latest Wazuh Windows Agent was downloaded from the official Wazuh website and installed using the default MSI installer.</p><p>During installation, the following details were configured:</p><p><strong>Manager IP</strong></p><p>192.168.204.135</p><p>After installation, the Wazuh Agent Manager was opened to complete registration.</p><p><strong>7. Registering the Agent with the Manager</strong></p><p><strong>7.1 Generate Agent Authentication Key</strong></p><p>On the Ubuntu Server:</p><p>sudo /var/ossec/bin/manage_agents</p><p>Performed the following steps:</p><ul><li>Added a new agent</li><li>Assigned an agent name</li><li>Generated the authentication key</li><li>Copied the generated key</li></ul><p><strong>7.2 Configure Windows Agent</strong></p><p>Within the Wazuh Agent Manager:</p><ul><li>Entered the Manager IP</li></ul><p>192.168.204.135</p><ul><li>Imported the generated authentication key</li><li>Saved the configuration</li><li>Restarted the Wazuh Agent service</li></ul><p>The Windows endpoint successfully appeared in the Wazuh Dashboard with an <strong>Active</strong> status.</p><p><strong>8. File Integrity Monitoring (FIM)</strong></p><p>To enable real-time monitoring, the Windows agent configuration was modified.</p><p>Configuration file:</p><p>C:\Program Files (x86)\ossec-agent\ossec.conf</p><p>Added:</p><p>&lt;directories realtime=”yes”&gt;</p><p>C:\Users\abc\Test</p><p>&lt;/directories&gt;</p><p>The Wazuh Agent service was then restarted to apply the changes.</p><p><strong>9. Verifying the Setup</strong></p><p>The deployment was verified using the following steps:</p><p><strong>Agent Verification</strong></p><ul><li>Opened the Wazuh Dashboard</li><li>Navigated to <strong>Agents</strong></li><li>Confirmed the Windows endpoint status was <strong>Active</strong></li></ul><p><strong>File Integrity Monitoring Verification</strong></p><p>Performed the following operations inside the monitored folder:</p><ul><li>Created a file</li><li>Modified a file</li><li>Deleted a file</li></ul><p>The Wazuh Dashboard immediately generated alerts for each event under the <strong>Integrity Monitoring</strong> section, confirming that real-time File Integrity Monitoring was functioning correctly.</p><p><strong>Service Verification</strong></p><p>Verified that all core services were running:</p><p>sudo systemctl status wazuh-manager</p><p>sudo systemctl status wazuh-indexer</p><p>sudo systemctl status wazuh-dashboard</p><p>Confirmed HTTPS access:</p><p>sudo ss -tulpn | grep 443</p><p><strong>10. Outcome</strong></p><p>The Wazuh Home Lab was successfully deployed and tested.</p><p><strong>Successfully Achieved</strong></p><ul><li>Installed Wazuh 4.14.6 on Ubuntu Server</li><li>Configured Wazuh Manager, Indexer, Filebeat, and Dashboard</li><li>Accessed the Wazuh Dashboard via HTTPS</li><li>Registered a Windows 11 endpoint</li><li>Established secure communication between the agent and manager</li><li>Enabled real-time File Integrity Monitoring (FIM)</li><li>Verified file creation, modification, and deletion alerts</li><li>Built a functional SIEM environment suitable for SOC learning and security monitoring</li></ul><p>This home lab provides a strong foundation for future enhancements, including <strong>Sysmon integration</strong>, <strong>Atomic Red Team attack simulations</strong>, and <strong>Active Response automation</strong> to further develop practical SOC and blue team skills.</p><p>That would make the report cleaner. Since your previous report already covered <strong>FIM</strong>, the next logical section is introducing <strong>Sysmon telemetry integration</strong> and validating that logs flow from the endpoint to the Wazuh Manager. Here’s a continuation:</p><p><strong>11. Sysmon Integration and Telemetry Collection</strong></p><p><strong>11.1 Objective</strong></p><p>After successfully deploying the Wazuh SIEM environment and verifying File Integrity Monitoring (FIM), the next objective was to integrate Microsoft Sysmon to collect detailed Windows endpoint telemetry.</p><p>Sysmon provides advanced event logging that extends native Windows logging by recording:</p><ul><li>Process Creation</li><li>Network Connections</li><li>File Creation</li><li>Registry Modifications</li><li>Driver Loading</li><li>DNS Queries</li><li>Process Injection Events</li></ul><p>These events provide richer visibility for threat hunting and security monitoring within Wazuh.</p><p><strong>11.2 Verifying Sysmon Installation</strong></p><p>The Windows endpoint was verified to ensure Microsoft Sysmon was installed and actively collecting events.</p><p>Recent Sysmon events were viewed using PowerShell:</p><p>Get-WinEvent -LogName “Microsoft-Windows-Sysmon/Operational” -MaxEvents 20</p><p>To generate test telemetry, common Windows applications were launched:</p><p>calc.exe</p><p>notepad.exe</p><p>hostname</p><p>The generated Process Create (Event ID 1) events confirmed that Sysmon was successfully monitoring endpoint activity.</p><p><strong>11.3 Configuring the Wazuh Agent</strong></p><p>The Wazuh Windows Agent was configured to monitor the Sysmon Operational Event Log.</p><p>Configuration file:</p><p>C:\Program Files (x86)\ossec-agent\ossec.conf</p><p>The following configuration was included:</p><p>&lt;localfile&gt;</p><p>&lt;location&gt;Microsoft-Windows-Sysmon/Operational&lt;/location&gt;</p><p>&lt;log_format&gt;eventchannel&lt;/log_format&gt;</p><p>&lt;/localfile&gt;</p><p>After updating the configuration, the Wazuh Agent service was restarted to apply the changes.</p><p><strong>11.4 Verifying Agent Connectivity</strong></p><p>The Windows agent was verified to ensure it remained connected to the Wazuh Manager.</p><p>Service status:</p><p>Get-Service WazuhSvc</p><p>Connectivity test:</p><p>Test-NetConnection 192.168.204.135 -Port 1514</p><p>The successful connection confirmed secure communication between the Windows endpoint and the Wazuh Manager.</p><p><strong>11.5 Agent Registration Verification</strong></p><p>On the Ubuntu server, the registered agents were verified.</p><p>sudo /var/ossec/bin/agent_control -l</p><p>Detailed information for the Windows agent:</p><p>sudo /var/ossec/bin/agent_control -i 001</p><p>The Windows endpoint appeared as an <strong>Active</strong> agent, confirming successful registration and communication with the manager.</p><p><strong>11.6 Verifying Sysmon Log Collection</strong></p><p>The Wazuh agent log was reviewed to verify that the Sysmon Operational event channel was being monitored.</p><p>Get-Content “C:\Program Files (x86)\ossec-agent\ossec.log” -Tail 50</p><p>The agent confirmed monitoring of the following Windows Event Logs:</p><ul><li>Application</li><li>Security</li><li>System</li><li>Microsoft-Windows-Sysmon/Operational</li></ul><p>This verified that Sysmon events were being collected by the Wazuh Agent for forwarding to the manager.</p><p><strong>11.7 Verifying Communication with the Wazuh Manager</strong></p><p>The manager logs were monitored to confirm communication from the Windows endpoint.</p><p>sudo tail -f /var/ossec/logs/ossec.log</p><p>The manager successfully detected the Windows agent and maintained secure communication throughout the monitoring session.</p><p><strong>11.8 Telemetry Flow</strong></p><p>The telemetry pipeline for Windows endpoint monitoring was successfully established as follows:</p><p>Windows 11 Endpoint</p><p>│</p><p>▼</p><p>Microsoft Sysmon</p><p>│</p><p>▼</p><p>Windows Event Log</p><p>(Microsoft-Windows-Sysmon/Operational)</p><p>│</p><p>▼</p><p>Wazuh Agent</p><p>│</p><p>Encrypted TCP (1514)</p><p>│</p><p>▼</p><p>Wazuh Manager</p><p>│</p><p>▼</p><p>Wazuh Indexer</p><p>│</p><p>▼</p><p>Wazuh Dashboard</p><p><strong>11.9 Outcome</strong></p><p>The Windows endpoint was successfully configured to generate enhanced security telemetry using Microsoft Sysmon. The Wazuh Agent monitored the Sysmon Operational event channel, securely forwarded endpoint events to the Wazuh Manager, and established the telemetry pipeline required for centralized log collection and future threat hunting activities.</p><p>This integration extends the home lab beyond File Integrity Monitoring by providing detailed endpoint visibility that can be used for detection engineering, incident investigation, and Security Operations Center (SOC) analysis.</p><p><strong>12. Snort IDS Integration with Wazuh</strong></p><p><strong>12.1 Objective</strong></p><p>The objective of this phase was to integrate <strong>Snort 3 Intrusion Detection System (IDS)</strong> with the Wazuh SIEM platform to enable centralized monitoring of network-based security events. This integration allows Snort alerts generated on the Kali Linux endpoint to be collected by the Wazuh Agent and forwarded to the Wazuh Manager for centralized analysis and future detection engineering.</p><p><strong>12.2 Installing and Configuring Snort 3</strong></p><p>Snort 3 was installed on the Kali Linux endpoint and configured to generate alerts in <strong>Fast Alert</strong> format.</p><p>The Snort service was verified to ensure it was running correctly.</p><p>sudo systemctl status snort</p><p>The alert log location was verified:</p><p>ls -l /var/log/snort/</p><p>The primary alert file used for integration:</p><p>/var/log/snort/alert_fast.txt</p><p><strong>12.3 Creating and Testing a Custom Detection Rule</strong></p><p>A custom ICMP detection rule was added to verify that Snort successfully generated alerts.</p><p>Example test traffic:</p><p>ping -c 5 1.1.1.1</p><p>Generated alerts were verified using:</p><p>sudo grep “ICMP Ping Detected” /var/log/snort/alert_fast.txt</p><p>The successful generation of ICMP alerts confirmed that Snort was correctly inspecting network traffic.</p><p><strong>12.4 Configuring the Wazuh Agent</strong></p><p>The Wazuh Agent on the Kali endpoint was configured to monitor the Snort alert log.</p><p>Configuration file:</p><p>/var/ossec/etc/ossec.conf</p><p>Configuration added:</p><p>&lt;localfile&gt;</p><p>&lt;log_format&gt;generic&lt;/log_format&gt;</p><p>&lt;location&gt;/var/log/snort/alert_fast.txt&lt;/location&gt;</p><p>&lt;/localfile&gt;</p><p>After updating the configuration, the Wazuh Agent was restarted.</p><p>sudo systemctl restart wazuh-agent</p><p><strong>12.5 Resolving Log Access Permissions</strong></p><p>Initially, the Wazuh Agent could not read the Snort alert file because the <strong>wazuh</strong> service account did not belong to the <strong>adm</strong> group.</p><p>The required permission was granted using:</p><p>sudo usermod -aG adm wazuh</p><p>The agent was restarted to apply the new group membership.</p><p>sudo systemctl restart wazuh-agent</p><p>Verification:</p><p>sudo -u wazuh head /var/log/snort/alert_fast.txt</p><p>Successful access confirmed that the permission issue had been resolved.</p><p><strong>12.6 Verifying Log Collection</strong></p><p>The Wazuh Agent successfully detected and monitored the Snort alert file.</p><p>Verification:</p><p>sudo tail -f /var/ossec/logs/ossec.log</p><p>The log collector confirmed:</p><p>Analyzing file:</p><p>/var/log/snort/alert_fast.txt</p><p>The Snort alert file was also confirmed to be actively monitored by the Wazuh Logcollector process.</p><p><strong>12.7 Verifying Communication with the Wazuh Manager</strong></p><p>Communication between the Kali endpoint and the Wazuh Manager was verified.</p><p>Agent status:</p><p>sudo systemctl status wazuh-agent</p><p>Registered agents:</p><p>sudo /var/ossec/bin/agent_control -lc</p><p>The Kali endpoint remained in the <strong>Active</strong> state throughout testing.</p><p><strong>12.8 Verifying Log Delivery</strong></p><p>To verify end-to-end log forwarding, test entries were manually written into the Snort alert log.</p><p>Example:</p><p>echo “MYSNORTTEST999 $(date)” | sudo tee -a /var/log/snort/alert_fast.txt</p><p>The Wazuh Manager successfully received these events, confirmed by monitoring:</p><p>sudo tail -f /var/ossec/logs/archives/archives.log</p><p>Entries appeared as:</p><p>(kali) any-&gt;/var/log/snort/alert_fast.txt</p><p>MYSNORTTEST999 …</p><p>This confirmed that the Wazuh Agent successfully collected and securely forwarded Snort log data to the manager.</p><p><strong>12.9 Integration Status</strong></p><p>The following telemetry pipeline was successfully validated:</p><p>Network Traffic</p><p>│</p><p>▼</p><p>Snort 3 IDS</p><p>│</p><p>▼</p><p>alert_fast.txt</p><p>│</p><p>▼</p><p>Wazuh Agent</p><p>│</p><p>Encrypted TCP (1514)</p><p>│</p><p>▼</p><p>Wazuh Manager</p><p>│</p><p>▼</p><p>Archives Log</p><p>During testing, it was observed that the raw Snort logs reached the Wazuh Manager successfully. However, because no custom decoder and rule set had yet been implemented, the Snort events were archived as raw logs and were not parsed into searchable Wazuh security alerts.</p><p><strong>12.10 Outcome</strong></p><p>The integration between <strong>Snort 3</strong> and <strong>Wazuh</strong> was successfully established. Snort generated network intrusion alerts, the Wazuh Agent monitored the Snort alert log, and the events were securely forwarded to the Wazuh Manager. The end-to-end log collection pipeline was verified through the manager’s archive logs.</p><p>Although custom decoding of Snort alerts remains a future enhancement, the lab successfully demonstrated centralized collection of IDS telemetry, providing the foundation for future alert parsing, correlation, and threat detection within the Wazuh SIEM environment.</p><p><strong>Future Enhancement:</strong> Develop custom Wazuh decoders and correlation rules to parse Snort Fast Alert logs into structured Wazuh alerts for improved visualization, filtering, and automated detection.</p><p>Yes. This belongs in your <strong>existing Wazuh SIEM Home Lab report</strong> because these activities are <strong>SIEM feature implementation and validation</strong>, not SOC investigations.</p><p>The sections we completed today naturally follow your <strong>Snort Integration</strong> chapter.</p><p>I would continue the numbering like this:</p><p><strong>13. Active Response Implementation</strong></p><p><strong>13.1 Objective</strong></p><p>The objective of this phase was to implement and validate Wazuh Active Response functionality. Active Response enables the Wazuh Manager to automatically execute predefined actions when specific security rules are triggered. This capability allows the SIEM to move beyond passive monitoring by performing automated response actions against detected security events.</p><p><strong>13.2 Reviewing Built-in Active Response Scripts</strong></p><p>The default Active Response scripts installed with Wazuh were examined to understand the available automated response capabilities.</p><p>The installed scripts were listed using:</p><p>ls -l /var/ossec/active-response/bin/</p><p>The directory contained multiple predefined response scripts, including:</p><ul><li>firewall-drop</li><li>host-deny</li><li>route-null</li><li>disable-account</li><li>restart-wazuh</li><li>wazuh-slack</li><li>firewalld-drop</li></ul><p>These scripts provide automated response capabilities for Linux, Windows, and network firewall integrations.</p><p><strong>13.3 Creating a Custom Active Response Script</strong></p><p>A custom Active Response script named <strong>lab-response.sh</strong> was created to demonstrate how Wazuh executes administrator-defined response actions.</p><p>Script location:</p><p>/var/ossec/active-response/bin/lab-response.sh</p><p>The script appends the current timestamp to a custom log file whenever it is executed.</p><p>Permissions were configured as:</p><p>sudo chmod 750 /var/ossec/active-response/bin/lab-response.sh</p><p>The script was manually tested.</p><p>sudo /var/ossec/active-response/bin/lab-response.sh</p><p>Execution was verified by inspecting the generated log file.</p><p>cat /var/log/lab-active-response.log</p><p>Successful execution confirmed that the custom response script functioned correctly.</p><p><strong>13.4 Configuring Active Response</strong></p><p>The Wazuh Manager configuration file was modified to register the custom response script.</p><p>Configuration file:</p><p>/var/ossec/etc/ossec.conf</p><p>A new command definition was added:</p><p>&lt;command&gt;</p><p>&lt;name&gt;lab-response&lt;/name&gt;</p><p>&lt;executable&gt;lab-response.sh&lt;/executable&gt;</p><p>&lt;timeout_allowed&gt;no&lt;/timeout_allowed&gt;</p><p>&lt;/command&gt;</p><p>An Active Response policy was then created.</p><p>&lt;active-response&gt;</p><p>&lt;command&gt;lab-response&lt;/command&gt;</p><p>&lt;location&gt;local&lt;/location&gt;</p><p>&lt;rules_id&gt;5402&lt;/rules_id&gt;</p><p>&lt;/active-response&gt;</p><p>Rule <strong>5402</strong> corresponds to successful <strong>sudo</strong> execution to the root account.</p><p><strong>13.5 Restarting the Wazuh Manager</strong></p><p>After updating the configuration, the Wazuh Manager service was restarted.</p><p>sudo systemctl restart wazuh-manager</p><p>Service status was verified.</p><p>sudo systemctl status wazuh-manager</p><p>The manager restarted successfully with no configuration errors.</p><p><strong>13.6 Triggering the Active Response</strong></p><p>To validate the configuration, a new event matching Rule <strong>5402</strong> was generated by executing a privileged command on the Kali endpoint.</p><p>Example:</p><p>sudo ls /root</p><p>The event was received by the Wazuh Manager.</p><p>The configured Active Response automatically executed <strong>lab-response.sh</strong>.</p><p><strong>13.7 Verifying Automatic Execution</strong></p><p>Successful execution was confirmed by reviewing the custom response log.</p><p>cat /var/log/lab-active-response.log</p><p>Multiple timestamps appeared.</p><p>Example:</p><p>Fri Jul 17 11:18:38 AM UTC 2026 — Active Response Triggered</p><p>Fri Jul 17 11:23:18 AM UTC 2026 — Active Response Triggered</p><p>These entries confirmed that the script executed automatically whenever Rule <strong>5402</strong> was triggered.</p><p><strong>13.8 Active Response Workflow</strong></p><p>The implemented automation operates as follows:</p><p>User executes sudo command</p><p>│</p><p>▼</p><p>auditd Log</p><p>│</p><p>▼</p><p>Wazuh Agent</p><p>│</p><p>Encrypted TCP (1514)</p><p>│</p><p>▼</p><p>Wazuh Manager</p><p>│</p><p>Rule 5402 Matched</p><p>│</p><p>▼</p><p>lab-response.sh</p><p>│</p><p>▼</p><p>/var/log/lab-active-response.log</p><p><strong>13.9 Outcome</strong></p><p>The Wazuh Active Response feature was successfully implemented and validated.</p><p>A custom response script was created, registered within the Wazuh Manager, and automatically executed whenever Rule <strong>5402</strong> was triggered. This demonstrated how Wazuh can perform automated response actions immediately after detecting security events.</p><p>Although the custom script simply generated log entries for demonstration purposes, the same mechanism can be extended to perform defensive actions such as blocking IP addresses, disabling user accounts, isolating compromised systems, restarting services, or integrating with external security tools.</p><p><strong>14. Vulnerability Detection</strong></p><p><strong>14.1 Objective</strong></p><p>The objective of this phase was to validate Wazuh’s built-in Vulnerability Detection capability. This module continuously inventories installed software on monitored endpoints and correlates package versions with vulnerability intelligence feeds to identify known Common Vulnerabilities and Exposures (CVEs). The goal was to verify centralized vulnerability assessment across both the Windows and Kali Linux agents.</p><p><strong>14.2 Verifying Vulnerability Detection Configuration</strong></p><p>The Wazuh Manager configuration was inspected to confirm that vulnerability detection was enabled.</p><p>Configuration file:</p><p>/var/ossec/etc/ossec.conf</p><p>Relevant configuration:</p><p>&lt;vulnerability-detection&gt;</p><p>&lt;enabled&gt;yes&lt;/enabled&gt;</p><p>&lt;index-status&gt;yes&lt;/index-status&gt;</p><p>&lt;feed-update-interval&gt;60m&lt;/feed-update-interval&gt;</p><p>&lt;/vulnerability-detection&gt;</p><p>The configuration confirmed that vulnerability scanning and indexing were active.</p><p><strong>14.3 Verifying Module Status</strong></p><p>The Wazuh Manager service was verified.</p><p>sudo systemctl status wazuh-manager</p><p>The vulnerability scanner module was confirmed through the manager logs.</p><p>sudo tail -100 /var/ossec/logs/ossec.log | grep -i vulner</p><p>The logs reported that the vulnerability scanner initialized successfully and connected to the Wazuh Indexer.</p><p><strong>14.4 Scanning Managed Endpoints</strong></p><p>The vulnerability scanner automatically evaluated software installed on the enrolled endpoints:</p><ul><li><strong>Windows Host</strong></li><li><strong>Kali Linux</strong></li></ul><p>No manual scan initiation was required, as Wazuh continuously inventories installed packages and compares them against vulnerability feeds.</p><p><strong>14.5 Reviewing Vulnerability Dashboard</strong></p><p>The <strong>Vulnerability Detection</strong> dashboard was used to review identified vulnerabilities.</p><p>The dashboard summarized:</p><ul><li>Critical vulnerabilities</li><li>High severity vulnerabilities</li><li>Medium severity vulnerabilities</li><li>Low severity vulnerabilities</li><li>Pending evaluations</li></ul><p>It also provided:</p><ul><li>Most vulnerable operating systems</li><li>Most affected agents</li><li>Vulnerability distribution by severity</li><li>Vulnerability publication year</li><li>Most affected software packages</li></ul><p><strong>14.6 Investigating Vulnerabilities</strong></p><p>Detailed vulnerability records were reviewed for installed applications.</p><p>Examples included:</p><ul><li>Apache Tomcat</li><li>VLC Media Player</li><li>WinRAR</li><li>Microsoft ASP.NET Core</li><li>Wireshark</li><li>pip</li></ul><p>Each finding included:</p><ul><li>CVE Identifier</li><li>Severity</li><li>Installed Version</li><li>Vulnerability Description</li><li>Recommended Fixed Version (when available)</li></ul><p>This information enables security analysts to prioritize remediation activities based on risk.</p><p><strong>14.7 Vulnerability Detection Workflow</strong></p><p>The vulnerability assessment process operates as follows:</p><p>Installed Software</p><p>│</p><p>▼</p><p>Wazuh Agent Inventory</p><p>│</p><p>▼</p><p>Wazuh Manager</p><p>│</p><p>▼</p><p>Vulnerability Scanner</p><p>│</p><p>▼</p><p>CVE Intelligence Feed</p><p>│</p><p>▼</p><p>Indexed Results</p><p>│</p><p>▼</p><p>Wazuh Dashboard</p><p><strong>14.8 Outcome</strong></p><p>The Wazuh Vulnerability Detection module successfully identified known software vulnerabilities across both monitored endpoints. Installed software inventories were correlated with current CVE intelligence, allowing the dashboard to present prioritized findings with severity ratings and remediation guidance.</p><p>This completed the deployment and validation of Wazuh’s core security capabilities within the home lab, including centralized log collection, endpoint monitoring, intrusion detection integration, Active Response automation, and continuous vulnerability assessment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92f227e63168" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Enumeration to Shell Management: A Practical Linux Privilege Escalation Lab Journey]]></title>
            <link>https://medium.com/@T4N7R1CX/from-enumeration-to-shell-management-a-practical-linux-privilege-escalation-lab-journey-a70f799ccadf?source=rss-b13ec72739e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a70f799ccadf</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[pty]]></category>
            <category><![CDATA[reverse-shell]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[T4N7R1CX]]></dc:creator>
            <pubDate>Thu, 02 Jul 2026 04:00:38 GMT</pubDate>
            <atom:updated>2026-07-02T04:00:38.978Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“Successful penetration testing isn’t about running exploits first — it’s about understanding the target through careful enumeration, analyzing every clue, and making informed decisions based on evidence.”</blockquote><h3>Introduction</h3><p>In this hands-on Linux Privilege Escalation lab, I explored the complete workflow followed during a penetration test — from initial reconnaissance and service enumeration to web discovery, shell management, Linux enumeration, and privilege assessment.</p><p>Unlike many labs that focus solely on exploitation, this exercise emphasized the importance of <strong>methodology</strong>, <strong>systematic enumeration</strong>, and <strong>understanding Linux internals</strong> before attempting privilege escalation.</p><p>Throughout this lab, I learned how to:</p><ul><li>Perform comprehensive network reconnaissance</li><li>Enumerate services and web applications</li><li>Analyze exposed resources</li><li>Understand Linux permissions</li><li>Improve reverse shell usability</li><li>Enumerate users and privileges</li><li>Investigate privilege escalation opportunities</li><li>Document every finding professionally</li></ul><h3>Lab Objective</h3><p>The primary objectives were to:</p><ul><li>Identify running services</li><li>Discover hidden web resources</li><li>Enumerate RPC and NFS services</li><li>Gain shell access within the lab</li><li>Stabilize the obtained shell</li><li>Explore Linux file systems</li><li>Analyze user permissions</li><li>Enumerate sudo privileges</li><li>Identify privilege escalation opportunities</li></ul><h3>Phase 1 — Network Reconnaissance</h3><p>Every penetration test starts with <strong>reconnaissance</strong>.</p><p>Before interacting with a target, understanding its exposed services and attack surface is essential.</p><h3>Command Used</h3><pre>nmap -A -p- &lt;Target-IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*GC-tAyWcxEApN7qpzNgufw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*PIanrOpPZrgFdi9IHJqmhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*pW0BrIeTRon84RpcDbthzA.png" /><figcaption>Victim’s System</figcaption></figure><p>Here 192.168.204.133 is a victim system’s ip address that is nmapped to find open port.</p><h3>Purpose</h3><ul><li>Scan all TCP ports</li><li>Detect service versions</li><li>Identify the operating system</li><li>Run default NSE scripts</li><li>Discover potential attack surfaces</li></ul><h3>What I Learned</h3><p>This scan revealed multiple important services running on the target machine.</p><p><strong>PortService:</strong></p><p>22SSH</p><p>80Apache Web Server</p><p>111RPCBind</p><p>2049NFS</p><p>20048Mountd</p><p>The scan also detected:</p><ul><li>Operating System</li><li>HTTP methods</li><li>robots.txt</li><li>Apache version</li><li>PHP version</li></ul><h3>Why This Matters</h3><p>A complete Nmap scan provides the roadmap for the rest of the assessment.</p><p>Without proper enumeration, important services may be overlooked.</p><h3>Phase 2 — RPC Enumeration</h3><p>Since Nmap detected RPC services, further enumeration was performed.</p><h3>Command</h3><pre>rpcinfo -p &lt;Target-IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*KoWIEjEbAq5FYHkEXKAoGQ.png" /></figure><h3>Purpose</h3><p>Displays available RPC services running on the target.</p><h3>Services Identified</h3><ul><li>rpcbind</li><li>mountd</li><li>nlockmgr</li><li>NFS</li><li>status service</li></ul><h3>What I Learned</h3><p>RPC enumeration helps identify services commonly used in enterprise environments and may reveal additional attack surfaces that standard scans don’t fully expose.</p><h3>Phase 3 — NFS Enumeration</h3><p>The next step was checking whether any Network File System shares were exported.</p><h3>Command</h3><pre>showmount -e &lt;Target-IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*Un8uEKYwjSnyoz2rrO1vgQ.png" /></figure><h3>Purpose</h3><p>Lists exported NFS directories.</p><h3>Result</h3><p>The target exposed an exported directory.</p><h3>Learning</h3><p>NFS is commonly used for file sharing.</p><p>If permissions are misconfigured, sensitive data may become accessible.</p><p>This reinforced why network storage services should always be included during enumeration.</p><h3>Phase 4 — Web Enumeration</h3><p>After identifying Apache running on port 80, web enumeration began.</p><h3>Directory Discovery</h3><pre>dirsearch -u http://&lt;Target-IP&gt;/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*gwWvKoMG4IZhi49IbXD6-g.png" /></figure><h3>Purpose</h3><p>Discover hidden files and directories.</p><h3>Interesting Files Found</h3><ul><li>phpinfo.php</li><li>readme.txt</li><li>robots.txt</li></ul><h3>robots.txt</h3><p>robots.txt contained interesting paths.</p><p>Although robots.txt is intended for search engines, developers frequently leave sensitive directories inside it.</p><h3>Lesson Learned</h3><p>Never ignore:</p><ul><li>robots.txt</li><li>backup files</li><li>readme files</li><li>phpinfo pages</li><li>configuration files</li></ul><p>These often reveal valuable information.</p><h3>Phase 5 — Initial Shell Access</h3><p>Once shell access was established within the authorized lab environment, the focus shifted from gaining access to understanding the operating system.</p><p>The shell initially provided limited interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*qhJjaG-VCU_LSOZpD-EIcw.png" /></figure><p>Common limitations included:</p><ul><li>No job control</li><li>No tab completion</li><li>Limited terminal functionality</li></ul><p>This highlighted the need for shell stabilization. So we tried reverse shell to access victim’s shell in attacker system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*xZyl_fvtO6cLargaagx4sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*xZyl_fvtO6cLargaagx4sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BnI3iWZPT1zvmLxVMsSiYw.png" /><figcaption>Created reverse shell command from <a href="https://www.revshells.com/">https://www.revshells.com/</a> where i gave attacker ip and port to access vitcim’s system and listening from attacker system. Then paste one of the above reverse shell command of bash into victim’s shell and connection established in attacker’s system.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*xZyl_fvtO6cLargaagx4sw.png" /></figure><h3>Phase 6 — Shell Stabilization</h3><p>One of the most useful skills learned during this lab was improving shell usability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*DgRAgPAYVAtXuXa59s3msg.png" /><figcaption>Here password is in hash form for armour user.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*3z5FpHknXQDAQcqXAau3tA.png" /><figcaption>Convert plain text to hash value.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*9rY2bZAuOCUMfWuocsZLbw.png" /><figcaption>Then tried to login with username and hash password.</figcaption></figure><p>Now, here the problem is we need actual terminal alike. One of my go-to commands for a long time after catching a dumb shell was to use Python to spawn a pty. The <a href="https://docs.python.org/2/library/pty.html">pty module</a> let’s you spawn a psuedo-terminal that can fool commands like su into thinking they are being executed in a proper terminal.</p><p>Python PTY</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*1spGtAAv_FGFndKby_FBjg.png" /></figure><h3>Purpose</h3><p>Creates a pseudo-terminal (PTY).</p><h3>Benefits</h3><ul><li>Interactive shell</li><li>Better command execution</li><li>Improved terminal handling</li><li>Easier Linux navigation</li></ul><h3>Challenge Encountered</h3><p>The initial attempt using Python 2 resulted in PTY resource limitations.</p><p>Checking installed interpreters helped identify Python 3 as the better option.</p><h3>Useful Commands</h3><pre>which python</pre><pre>which python3</pre><h3>Phase 7 — Linux Enumeration</h3><p>After obtaining a more usable shell, Linux enumeration began.</p><p>Rather than immediately searching for exploits, the focus remained on understanding the system.</p><h3>Checking Current User</h3><pre>whoami</pre><p>Displays the current logged-in user.</p><h3>Viewing User Information</h3><pre>id</pre><p>Displays</p><ul><li>UID</li><li>GID</li><li>Group Memberships</li></ul><p>Useful during privilege assessment.</p><h3>Checking Working Directory</h3><pre>pwd</pre><p>Shows the current directory.</p><h3>Listing Files</h3><pre>ls</pre><p>Displays directory contents.</p><h3>Detailed File Listing</h3><pre>ls -l</pre><p>Displays</p><ul><li>Owner</li><li>Group</li><li>Permissions</li><li>Size</li></ul><h3>Hidden Files</h3><pre>ls -la</pre><p>Displays hidden files.</p><p>This command became one of the most frequently used throughout the lab.</p><h3>Phase 8 — Privilege Escalation: From armour User to root</h3><p>After completing system enumeration as the <strong>armour</strong> user, the next objective was to assess whether any system misconfigurations or delegated privileges could allow access to administrative-level permissions.</p><p>Rather than immediately attempting privilege escalation, the focus remained on understanding the system’s security posture through careful enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*U2JybD6yF-dTNs4ajj_S5g.png" /><figcaption>Searched user privilege command from <a href="https://gtfobins.org/gtfobins/bash/#reverse-shell">https://gtfobins.org/gtfobins/bash/#reverse-shell</a> to escalate privilege from normal user to root user.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*Q6Mt0yZ6h5ICaWx5L1EooA.png" /><figcaption>Here you can see normal user armour is escalated to root user with sudo sh command. We can other commands to escalate like sudo bash etc can be find in GTFOBins.</figcaption></figure><h3>Understanding Linux Permissions</h3><p>Linux permissions determine who can:</p><ul><li>Read</li><li>Write</li><li>Execute</li></ul><p>During the assessment I analyzed:</p><ul><li>File ownership</li><li>Group ownership</li><li>World permissions</li></ul><p>Misconfigured permissions often become privilege escalation opportunities.</p><h3>Reading Important Files</h3><p>Several files were examined to understand the environment.</p><h3>Example</h3><pre>cat Credentials.txt</pre><h3>General Command</h3><pre>cat filename</pre><p>Useful for reading configuration files and documentation.</p><h3>Important Linux Directories Explored</h3><p>Throughout enumeration, several directories were explored.</p><h4><strong>Directory Purpose :</strong></h4><p>/home — User home directories</p><p>/etc — System configuration</p><p>/tmp — Temporary file</p><p>s/usr/bin — Installed binaries</p><p>/root — Administrator’s home</p><p>The <strong>/etc</strong> directory contained many important configuration files related to system operation and user management.</p><h3>Understanding Authentication Files</h3><p>During enumeration, Linux authentication-related files were examined to understand how user accounts are stored.</p><p>Important concepts included:</p><ul><li>User accounts</li><li>Password storage</li><li>System accounts</li><li>Service accounts</li></ul><p>This reinforced how Linux separates account information from password hashes.</p><h3>Password Hash Concepts</h3><p>One exercise involved understanding password hashing.</p><h3>Example Command</h3><pre>echo -n &quot;example&quot; | md5sum</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*3z5FpHknXQDAQcqXAau3tA.png" /></figure><h3>Learned</h3><ul><li>Difference between plaintext and hashes</li><li>Why passwords should never be stored in plaintext</li><li>Importance of secure hashing algorithms</li></ul><p>Understanding hashes is a fundamental skill for Linux administrators and security professionals.</p><h3>Enumerating Sudo Privileges</h3><p>One of the most important enumeration steps involved reviewing delegated administrative permissions.</p><h3>Command</h3><pre>sudo -l</pre><h3>Purpose</h3><p>Displays commands the current user may execute with elevated privileges.</p><h3>Why It’s Important</h3><p>Misconfigured sudo permissions are among the most common findings during Linux privilege assessments.</p><p>Rather than assuming administrative access, it’s essential to understand exactly what privileges have been delegated.</p><h3>SSH Basics</h3><p>Remote administration was also explored.</p><h3>Command</h3><pre>ssh user@&lt;Target-IP&gt;</pre><h3>Learned</h3><ul><li>Secure remote login</li><li>Host key verification</li><li>Authentication mechanisms</li></ul><p>SSH remains one of the most widely used Linux administration tools.</p><h3>Documentation Throughout the Lab</h3><p>One valuable habit reinforced during this exercise was documenting every step.</p><p>Recorded information included:</p><ul><li>Open ports</li><li>Running services</li><li>Web resources</li><li>Linux users</li><li>File permissions</li><li>Enumeration results</li><li>Observations</li><li>Lessons learned</li></ul><p>Good documentation makes penetration tests reproducible and simplifies report writing.</p><h3>Tools Used</h3><p>Tool — Purpose</p><p>Nmap — Network reconnaissance</p><p>RPCInfo — RPC enumeration</p><p>Showmount — NFS enumeration</p><p>Dirsearch — Web content discovery</p><p>Netcat — Listener and shell interaction</p><p>Python — Shell stabilization</p><p>Linux Shell — System enumeration</p><p>SSH — Remote administration</p><h3>Commands Worth Remembering</h3><pre>nmap -A -p- &lt;Target-IP&gt;</pre><p>Complete network scan.</p><pre>rpcinfo -p &lt;Target-IP&gt;</pre><p>RPC enumeration.</p><pre>showmount -e &lt;Target-IP&gt;</pre><p>NFS share discovery.</p><pre>dirsearch -u http://&lt;Target-IP&gt;/</pre><p>Directory enumeration.</p><pre>pwd</pre><p>Current directory.</p><pre>ls</pre><p>List files.</p><pre>ls -l</pre><p>Detailed permissions.</p><pre>ls -la</pre><p>Include hidden files.</p><pre>cat filename</pre><p>Read file contents.</p><pre>whoami</pre><p>Current user.</p><pre>id</pre><p>User and group information.</p><pre>which python</pre><p>Locate Python.</p><pre>which python3</pre><p>Locate Python 3.</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><p>Create an interactive pseudo-terminal (PTY).</p><pre>echo -n &quot;example&quot; | md5sum</pre><p>Generate an MD5 hash for learning and verification purposes.</p><pre>sudo -l</pre><p>Review delegated administrative permissions.</p><pre>ssh user@&lt;Target-IP&gt;</pre><p>Connect to a remote Linux system.</p><h3>Key Takeaways</h3><p>This lab demonstrated that successful penetration testing relies far more on <strong>careful observation and systematic enumeration</strong> than on rushing to exploit a target.</p><p>The biggest lessons learned include:</p><ul><li>Thorough reconnaissance is the foundation of every assessment.</li><li>Enumeration often reveals misconfigurations that are more valuable than vulnerabilities.</li><li>Understanding Linux permissions is essential for identifying security risks.</li><li>Stabilizing a shell improves productivity and enables more effective system interaction.</li><li>Consistent documentation ensures findings are reproducible and easier to report.</li><li>Mastering core Linux commands builds confidence and efficiency during real-world security assessments.</li></ul><h3>Conclusion</h3><p>This Linux Privilege Escalation lab provided valuable experience in applying a structured penetration testing methodology within a controlled environment. From network reconnaissance and service discovery to shell management and privilege assessment, every phase reinforced the importance of understanding how Linux systems are configured and administered.</p><p>More importantly, the lab highlighted that effective security testing is built on patience, disciplined enumeration, and continuous learning — not simply executing exploits. By combining technical knowledge with systematic analysis and thorough documentation, each assessment becomes an opportunity to deepen both offensive security skills and defensive awareness.</p><blockquote><strong><em>“Enumeration tells the story of the target. The better you understand that story, the more effective and responsible your security assessment will be.”</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a70f799ccadf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>