<?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 João Henrique Pataki Bernardes on Medium]]></title>
        <description><![CDATA[Stories by João Henrique Pataki Bernardes on Medium]]></description>
        <link>https://medium.com/@joaohenriquepatakibernardes?source=rss-bea8bf3ded61------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*woUmSM4sBGQPDeFn.</url>
            <title>Stories by João Henrique Pataki Bernardes on Medium</title>
            <link>https://medium.com/@joaohenriquepatakibernardes?source=rss-bea8bf3ded61------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 00:21:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joaohenriquepatakibernardes/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[How to investigate a Critical Alert on Wazuh using Claude and Wazuh MCP]]></title>
            <link>https://medium.com/@joaohenriquepatakibernardes/how-to-investigate-a-critical-alter-onwazuh-using-claude-and-wazuh-mcp-084d8d417d04?source=rss-bea8bf3ded61------2</link>
            <guid isPermaLink="false">https://medium.com/p/084d8d417d04</guid>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[João Henrique Pataki Bernardes]]></dc:creator>
            <pubDate>Fri, 08 May 2026 17:18:11 GMT</pubDate>
            <atom:updated>2026-05-18T01:15:00.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YCIixhfUmxH20w0Y4H3JA.png" /></figure><p>In this article, I intend to show you how you can use Claude AI in conjunction with Wazuh MCP to investigate an alert and have a full report almost instantly.</p><p>Starting from the beginning, what do we need to recreate this scenario?</p><p>We need Wazuh XDR and its MCP Server installed and communicating with each other, and Claude AI communicating with the MCP Server. All need to be on the same network, or they can be on different networks, but they need to communicate freely, without firewall rules blocking them or routing issues in the middle of the path.</p><p>OK, but what is an MCP Server? You might be asking yourself.</p><p>An MCP server is a software that acts like a bridge between the AI agent client and any other software or service in your network or cloud.</p><p>It is the engine that permits you to chat with your software/service in a human-comprehensible way.</p><p>After setting up all the guys mentioned before, I issued the commands below on my Windows Server, which has the Wazuh Agent installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*qSywAE39tNVScgb7A5cC-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*l38rafdnyZtdnq51Ui59qA.png" /></figure><p>These commands will trigger some alerts related to malware download and an executable being dropped in the root folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XvF7Dtw89Ap8ohaxxPZn8Q.png" /></figure><p>That’s what we need, we need some alerts to be analyzed by Claude AI.</p><p>Now, all that we need is to open Claude AI and issue the correct prompt, asking it to generate a comprehensive and detailed report:</p><pre>I am seeing indicators of a potential malware execution on a production Windows endpoint. Use the Wazuh MCP to retrieve any recent high-severity alerts related to antivirus detections or &#39;Malicious file&#39; signatures.<br><br>Based on the data, provide:<br><br>Contextual Analysis: Identify the exact file path, the user account involved, and the parent process that initiated the event.<br><br>Current Status: Determine if the threat was successfully neutralized by the endpoint protection or if it remains active.<br><br>Containment &amp; Remediation: Recommend immediate steps to isolate the host if necessary and provide instructions for a full forensic scan of the affected directory.</pre><p>After issuing the prompt, Claude was able to generate the report below, which contains a very detailed context of what is happening in the Windows Server and some containment steps to stop what, if this were in a real scenario, could be a true breach.</p><h3>Claude Analisys Report</h3><p>Here is a comprehensive security analysis based on the Wazuh alert data retrieved from WIN-V2C3HBVS2AQ:</p><h3>🔴 Threat Intelligence Report — WIN-V2C3HBVS2AQ</h3><p><strong>Generated:</strong> 2026–04–30 | <strong>Severity:</strong> HIGH</p><h3>1. 🧩 Contextual Analysis</h3><h4>Malicious File Detected</h4><p>Field Detail <strong>File Path</strong> C:\Users\Administrator\Downloads\eicar.txt <strong>User Account</strong> Administrator (local admin account) <strong>Detection Engine</strong> VirusTotal — <strong>66/66 engines</strong> flagged this file <strong>YARA Match</strong> SUSP_Just_EICAR_RID2C24 (EICAR test signature) <strong>First Seen</strong> 2026-04-30 20:14:29 (file added to Downloads directory) <strong>Parent Process</strong> C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe (SysWOW64 — 32-bit PowerShell)</p><h4>Full Attack Chain Reconstructed</h4><p>The sequence of events paints a clear picture of a scripted attack chain:</p><ol><li><strong>20:08:39</strong> — ⚠️ <strong>Windows Defender real-time protection was disabled</strong> — a deliberate evasion tactic before dropping the payload.</li><li><strong>20:08:28–20:10:38</strong> — Multiple <strong>registry key/value modifications</strong> — likely persistence mechanisms or Defender configuration tampering.</li><li><strong>20:10:38</strong> — Windows Defender definitions updated (possibly an attempt to re-enable and cover tracks, or automated recovery).</li><li><strong>20:11:00+</strong> — PowerShell (SysWOW64, 32-bit) <strong>repeatedly writing scripting files to Temp/User data folders</strong> — classic fileless malware staging.</li><li><strong>20:14:29</strong> — <strong>File dropped</strong> in C:\Users\Administrator\Downloads\ and a cmd shell was spawned by an abnormal parent process.</li><li><strong>20:14:31–20:14:32</strong> — VirusTotal flagged eicar.txt with <strong>66 engine detections</strong>.</li><li><strong>20:14:51</strong> — YARA rule matched: SUSP_Just_EICAR_RID2C24.</li><li><strong>20:14:54</strong> — ✅ active-response/bin/remove-threat.exe <strong>successfully removed</strong> the threat.</li><li><strong>20:14:56</strong> — Multiple <strong>executables dropped in the Windows root folder</strong> — secondary payloads or cleanup artifacts.</li><li><strong>20:15:32–20:17:35</strong> — PowerShell continues creating scripting files in Temp directories — <strong>the malicious scripting activity was still occurring after file removal</strong>.</li></ol><h3>2. 🔵 Current Status</h3><p>Item Status eicar.txt file ✅ <strong>Removed</strong> by Wazuh Active Response Malicious PowerShell activity 🔴 <strong>STILL ACTIVE</strong> — continued scripting after removal Windows Defender real-time protection ⚠️ <strong>Was disabled</strong> — current state unknown Executables dropped in Windows root 🔴 <strong>Unconfirmed removal</strong> — no active-response alert for these Registry modifications 🔴 <strong>Persisted</strong> — multiple key/value changes not remediated</p><blockquote><em>⚠️ </em><strong><em>The primary file was neutralized, but the threat is NOT fully contained.</em></strong><em> PowerShell-based activity continued after removal, and multiple executables were dropped in the Windows root folder with no corresponding removal alerts. The attack chain suggests a dropper script that may re-introduce payloads.</em></blockquote><h3>3. 🛡️ Containment &amp; Remediation</h3><h4>Immediate Containment — Isolate the Host</h4><p>The host should be network-isolated immediately, given the ongoing PowerShell activity and disabled Defender.</p><p><strong>Option A — Network Isolation via Wazuh Active Response:</strong> Run this from your Wazuh manager to block all traffic on the agent:</p><pre>/var/ossec/bin/agent_control -b 10.0.2.15 -f firewall-drop -u 001</pre><p><strong>Option B — Manual Windows Firewall Isolation (run on the endpoint):</strong></p><pre># Block all inbound and outbound traffic except Wazuh manager<br>New-NetFirewallRule -DisplayName &quot;ISOLATE-BLOCK-ALL-IN&quot; -Direction Inbound -Action Block<br>New-NetFirewallRule -DisplayName &quot;ISOLATE-BLOCK-ALL-OUT&quot; -Direction Outbound -Action Block<br># Allow only Wazuh manager IP (replace with your manager IP)<br>New-NetFirewallRule -DisplayName &quot;ALLOW-WAZUH&quot; -Direction Outbound -RemoteAddress &lt;WAZUH_MANAGER_IP&gt; -Action Allow</pre><h4>Re-enable Windows Defender Immediately</h4><pre>Set-MpPreference -DisableRealtimeMonitoring $false<br>Start-Service WinDefend</pre><h4>Forensic Scan of Affected Directories</h4><p><strong>1. Scan the Downloads directory for remaining threats:</strong></p><pre>Start-MpScan -ScanType CustomScan -ScanPath &quot;C:\Users\Administrator\Downloads&quot;</pre><p><strong>2. Scan Windows Temp and User Temp (PowerShell staging areas):</strong></p><pre>Start-MpScan -ScanType CustomScan -ScanPath &quot;C:\Windows\Temp&quot;<br>Start-MpScan -ScanType CustomScan -ScanPath &quot;C:\Users\Administrator\AppData\Local\Temp&quot;</pre><p><strong>3. Audit executables dropped in Windows root:</strong></p><pre>Get-ChildItem &quot;C:\Windows&quot; -Filter &quot;*.exe&quot; | Where-Object { $_.CreationTime -gt (Get-Date).AddHours(-4) } | Select-Object Name, FullName, CreationTime | Export-Csv C:\forensic_new_exes.csv</pre><p><strong>4. Review and export recent PowerShell script block logs:</strong></p><pre>Get-WinEvent -LogName &quot;Microsoft-Windows-PowerShell/Operational&quot; | Where-Object { $_.TimeCreated -gt (Get-Date).AddHours(-4) } | Export-Csv C:\forensic_powershell_log.csv</pre><p><strong>5. Check for registry persistence (Run keys):</strong></p><pre>Get-ItemProperty &quot;HKCU:\Software\Microsoft\Windows\CurrentVersion\Run&quot;<br>Get-ItemProperty &quot;HKLM:\Software\Microsoft\Windows\CurrentVersion\Run&quot;</pre><p><strong>6. Collect a full memory dump for deep analysis (optional, if forensics team available):</strong></p><pre>procdump.exe -ma -o C:\forensic_memdump.dmp</pre><h3>⚡ Summary — Priority Actions</h3><p>🔴 P1 Network-isolate WIN-V2C3HBVS2AQ immediately <br>🔴 P1 Re-enable Windows Defender real-time protection <br>🔴 P1 Kill all active powershell.exe (SysWOW64) processes <br>🟠 P2 Audit and remove unknown executables dropped in C:\Windows\ <br>🟠 P2 Review and purge all files in C:\Windows\Temp and user Temp <br>🟡 P3 Audit registry Run keys for persistence <br>🟡 P3 Review PowerShell script block logs to reconstruct full payload <br>🟡 P3 Investigate how Defender was disabled and by which process</p><h3>Conclusion</h3><p>I hope if helped you to understand how an AI Agent can help a SOC Analyst to understand quickly the context of a Critical Alert.</p><p>It is important to point out that we can’t replace a real analyst investigation with AI; AI makes some mistakes, and we, as analysts, need to assess all its outcomes and extract the right pieces of information to complement our analysis.</p><p>But AI can speed up the analysis process, which can save a lot of time in the most Critical incidents.</p><p>If you want to learn how to set up a full Wazuh Professional environment, including this AI agent and MCP communication, enroll in my course, where I give you the complete background on the Wazuh Environment.</p><p>Check the link below. I’ll leave it free for the first 100 students. The only thing I ask you is to leave a review after concluding the course to help me reach more students.</p><p>Link for the course:</p><p><a href="https://www.udemy.com/course/wazuh-xdr-from-beginner-to-expert/?couponCode=51B94954DB88A474DF44">https://www.udemy.com/course/wazuh-xdr-from-beginner-to-expert/?couponCode=51B94954DB88A474DF44</a></p><p>Let’s defend, guys! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=084d8d417d04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Caldera Adversary Simulator]]></title>
            <link>https://medium.com/@joaohenriquepatakibernardes/how-to-install-caldera-adversary-simulator-98500f114808?source=rss-bea8bf3ded61------2</link>
            <guid isPermaLink="false">https://medium.com/p/98500f114808</guid>
            <category><![CDATA[red-team-tools]]></category>
            <category><![CDATA[caldera]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[João Henrique Pataki Bernardes]]></dc:creator>
            <pubDate>Fri, 04 Oct 2024 01:07:02 GMT</pubDate>
            <atom:updated>2025-06-23T17:12:00.107Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*rqW1NDUGdZ3r9RN-QXN5dA.png" /></figure><p>Guys this week I spent a lot of time trying to install Caldera, the Open Source Adversary Simulator.</p><p>I don’t know why this program is so hard to install. It&#39;s not because of the installation itself, but most likely because of the problems with the installation. I don’t want you to waste your time when installing it.</p><p>Stop talking and let’s get started…</p><p>To install Caldera just use these commands below in this order and you should not have any problem.</p><p>I personally used debian 12.4.0 as the distro and this was the only one I had success with, but you can try any distro you prefer.</p><h3>System Update</h3><p>First of all, you need to fully update your Linux Distro by using this command:</p><pre>sudo apt update &amp;&amp; apt upgrade &amp;&amp; apt dist-upgrade</pre><h3>Installing libraries and programs needed</h3><pre>sudo apt install golang python3-pip python3-venv python3-dev nodejs npm git docker docker.io docker-compose -y</pre><h3>Creating a Virtual Environment</h3><pre>python3 -m venv caldera<br>cd bin<br>source activate</pre><h3>Download Caldera from Github</h3><pre>cd ..<br>git clone https://github.com/mitre/caldera.git --recursive</pre><h3>Installing Caldera’s requirements</h3><pre>cd caldera<br>pip3 install -r requirements.txt<br>pip3 install wheel --use-pep517<br>pip3 install setuptools</pre><h3>Building and starting the server</h3><pre>python3 server.py --build</pre><h3>Starting the server after the installation</h3><p>Maybe after the installation probably you won&#39;t keep your Calder’s VMs on eternally and anytime you start your VM use these commands to put up the server:</p><pre>cd caldera/bin<br>source activate<br>cd ..<br>cd caldera<br>python3 server.py</pre><h3>Conclusion</h3><p>So guys I hope had helped you somehow.</p><p>I just wrote this article to share this manual to help you use this program for those who are starting into Redteam or are just an entry-level using adversary emulation which is a good tool to give you the need to develop your alerts signatures and make you figure out the behavior for each MITRE technique.</p><h3>References</h3><p><a href="https://medium.com/@salim.y.salimov/installing-mitre-caldera-4-on-ubuntu-vm-fac970825352">https://medium.com/@salim.y.salimov/installing-mitre-caldera-4-on-ubuntu-vm-fac970825352</a><br><a href="https://caldera.readthedocs.io/en/latest/Installing-Caldera.html">https://caldera.readthedocs.io/en/latest/Installing-Caldera.html</a><br><a href="https://medium.com/@allenjustine.clement/mitre-caldera-installation-and-set-up-guide-c79aefb1db08">https://medium.com/@allenjustine.clement/mitre-caldera-installation-and-set-up-guide-c79aefb1db08</a></p><p>If you like, leave a thumbs-up; it will help me a lot.</p><p>If you want to discover more about Caldera and have a practical learn experience on this tool, consider enrolling in my course on Udemy on the link below:</p><p><a href="https://www.udemy.com/course/master-caldera/?referralCode=DA460B986F9B932E7CBB">https://www.udemy.com/course/master-caldera/?referralCode=DA460B986F9B932E7CBB</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98500f114808" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey to Pentest+ Cert]]></title>
            <link>https://medium.com/@joaohenriquepatakibernardes/my-journey-to-pentest-cert-c1df901fb86c?source=rss-bea8bf3ded61------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1df901fb86c</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[comptia-certifications]]></category>
            <dc:creator><![CDATA[João Henrique Pataki Bernardes]]></dc:creator>
            <pubDate>Fri, 06 Sep 2024 19:59:51 GMT</pubDate>
            <atom:updated>2024-10-05T13:16:49.206Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*1y9IQ2xqjSEHEUtyK4u-og.png" /></figure><p>For my first post, I’d like to describe how I got the Comptia Pentest+ ce Certification.</p><p>I felt it necessary because I’ve taken many certifications, including three from Comptia, and I realized that now I have developed a good study plan for certifications that can help others reach their dream certifications in any IT field.</p><p>This Pentest Certification I got in August 2024 was different from the others because I felt more confident due to the expertise I acquired from many years I have working on Cybersecurity. And when Comptia recommends you have this expertise to face this exam they are not joking, it counts a lot. I remember when I took Cysa+, which was more difficult because I needed more background, but even though that was a great opportunity to sum up more for my know-how.</p><p>This test I realized that brings topics that are very important for those who want to work as independent or freelancer Pentester like Reporting, scoping, planning, communication with customers, and adjusting your report according to the audience which is a must to highlight yourself from the others.</p><h3><strong>Where did I start?</strong></h3><p>Starting from the beginning I read the official book of this test, obviously to study the content. It was very important to me because I could get into topics new for me like script interpretation, Google Dorks, and many hacking tools and techniques that contribute a lot to my career. And for all certs I did the same to truly carrier all the content with me. Which is the most important of all tests.</p><p>I did it with a goal of one chapter a week.</p><p>Sometimes that was not possible but I tried to keep this pace as much as I could in this faze.</p><p>For the topics I didn&#39;t know or had doubts I searched for more details on Google and YouTube to dig into them, not bothering to make any notes yet.<br>I read during the morning before working job hours or when doing cardio at the gym. Yeah, for those guys that want something they do some magic if necessary to reach the goal hahaha.</p><h3>Next, Online Course</h3><p>In the next phase got an online course on Udemy by Jason Dion to be more precise.</p><p>I got this course because I feel that a practical view is necessary no matter what you are learning and in this course, I could take deeper explanations about topics I had doubts about and important tips about the test itself.</p><p>Jason’s courses have been by my side since Security+ preparation so I know very well that it could help one more time for Pentest+ as well.</p><p>I encourage you to have the same kind of course, it doesn’t need to be on Udemy, it can be from YouTube videos or any other site or school, it will help you a lot.</p><h3>The last phase, the practical exams</h3><p>After passing 5 exams I already know that when I reach this phase I can schedule the exam for the next month. And this is because as I said I know myself and the way I learn and how much effort I have to put on to be well prepared and all I need is just one month more, the most cases.</p><p>So, I got Jason’s practical exams bundle on Udemy.</p><p>There were 6 in total and I tried to complete one exam a day, every day.</p><p>Please, don’t judge me about these practical exams, I feel they are very necessary to fix the content in your brain and help you understand how to answer the test. Because on this test there are many tricks and they purposely do not facilitate for the candidates when they develop the questions. And these practical exams can help you surpass this challenge.</p><p>In the beginning, I knew that I’d get bad scores but, I only focused on taking notes, learning where I was failing, and fixing the gaps in the content I had, without any stress.</p><p>As long as the days passed I got better scores and I started focusing on the small flaws that were preventing me get more than 90% in the tests.</p><p>I studied flashcards as well on the Quizlet app, personally every day in the morning before starting work.</p><p>In the two last weeks, I have revised some lessons that I felt less confident like Google Dorks, ASCII table, and some attacks I didn’t understand yet.</p><p>At the end of the month, I felt very confident about getting it but knowing that I would face a very hard test as it was in Sec+ and Cysa+.</p><p>And it was indeed hahaha but, as I learned on the Udemy course, I flagged the practical questions for the end and just answered the objective questions first, getting more confidence as I answered the questions.</p><p>In the end, I got passed, and proud of myself.</p><p>I hope this article helped you who are feeling lost on where you have to start and don&#39;t have a plan for your study.</p><p>Reach me out if you have any doubts about the CompTIA exams.</p><p>Leave a thumb up; it will help me a lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*k7Vsm598hVbfR3bs8XoH8g.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1df901fb86c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>