<?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 Hiren Sadhwani on Medium]]></title>
        <description><![CDATA[Stories by Hiren Sadhwani on Medium]]></description>
        <link>https://medium.com/@hir3n?source=rss-8f7fdff2437------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UHrkBDEdkaCLOIgRNod_Vw.jpeg</url>
            <title>Stories by Hiren Sadhwani on Medium</title>
            <link>https://medium.com/@hir3n?source=rss-8f7fdff2437------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:47:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hir3n/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[Hunting FastHTTP BruteForce Attack Targeting Microsoft 365 Users]]></title>
            <link>https://medium.com/@hir3n/hunting-fasthttp-bruteforce-attack-targeting-microsoft-365-users-4dd235af01d7?source=rss-8f7fdff2437------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dd235af01d7</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Hiren Sadhwani]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 19:25:36 GMT</pubDate>
            <atom:updated>2025-01-17T19:30:25.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IbAnMh_FawNMnbxSMINNnw.jpeg" /><figcaption>AI-generated image</figcaption></figure><ul><li>Recently, a new brute-force attack campaign leveraging the FastHTTP Go library has been identified. This high-speed attack targets Microsoft 365 accounts globally, aiming to gain unauthorized access through brute-force login attempts and spamming multi-factor authentication (MFA) requests.</li><li>The attack vector involves the exploitation of the FastHTTP library, known for its high performance and efficiency, to automate HTTP requests for unauthorized logins. The primary target is the Azure Active Directory Graph API (Application ID: 00000002–0000–0000-c000–000000000000)</li><li>As per <a href="https://www.speartip.com/fasthttp-used-in-new-bruteforce-campaign/">SpearTip report</a>, approximately 65% of the malicious traffic originates from Brazil, with other significant sources including Turkey, Argentina, Uzbekistan, Pakistan, and Iraq. The attack has a notable success rate, with around <strong>9.7% </strong>of attempts resulting in successful account takeovers. A key indicator is the presence of the FastHTTP user agent in audit logs.</li></ul><h3><strong>Investigation and Remediation Steps</strong></h3><ul><li>SpearTip has provided a PowerShell script that administrators can use to check for the presence of the FastHTTP user agent in audit logs. You can find the powershell script from the <a href="https://www.speartip.com/fasthttp-used-in-new-bruteforce-campaign/">official report link</a>. If you don’t want to run any script on the server, administrators can also manually search for this user agent by logging into the Azure portal. They should navigate to <strong>Microsoft Entra ID → Users → Sign-in Logs</strong> and then apply the filter for “<strong>Client app: Other Clients</strong>.”</li><li>If any signs of malicious activity are found, administrators are advised to take the following actions immediately:</li></ul><ol><li>Expire user sessions.</li><li>Reset all account credentials.</li><li>Review the listed MFA (Multi-Factor Authentication) devices.</li><li>Remove any unauthorized additions</li></ol><h3><strong>Let’s Hunt</strong></h3><ul><li>According to the advisory, we can detect this attack using the UserAgent string ‘fasthttp’.</li><li>Here’s the KQL query you can use to check in MS Sentinel:</li></ul><blockquote>1) AADNonInteractiveUserSignInLogs | where UserAgent contains “fasthttp”</blockquote><blockquote>2) SigninLogs | where UserAgent contains “fasthttp”</blockquote><blockquote>3) OfficeActivity | where UserAgent contains “fasthttp”</blockquote><ul><li>If you have any SIEM other than MS Sentinel, check the Azure AD Sign-In Logs or Office 365 Sign-In logs, where the user-agent should be ‘fasthttp.’</li><li>We are primarily focusing on user agent strings, which will include failed login attempts.</li><li>You need to filter and check for any successful sign-in attempts. If a successful sign-in is detected, follow the remediation steps outlined above, such as resetting account credentials and expiring the user session. Additionally, investigate the activities performed by that account after the successful sign-in.</li><li>You can create a detection rule for any successful sign-in attempts that originate from the ‘fasthttp’ user agent.</li></ul><p>Sharing here an example of how logs will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_V_mFiYaPTSPVmQ1b49JEA.png" /></figure><p>Happy Hunting!</p><h3><strong>References:</strong></h3><p><a href="https://www.bleepingcomputer.com/news/security/hackers-use-fasthttp-in-new-high-speed-microsoft-365-password-attacks/">https://www.bleepingcomputer.com/news/security/hackers-use-fasthttp-in-new-high-speed-microsoft-365-password-attacks/</a></p><p><a href="https://www.speartip.com/fasthttp-used-in-new-bruteforce-campaign">https://www.speartip.com/fasthttp-used-in-new-bruteforce-campaign</a>/</p><p><a href="https://www.kqlsearch.com/query/Hunting%20Fasthttp%20Bruteforce%20Campaign&amp;cm5xj7gxw00025idwhhyf601r">https://www.kqlsearch.com/query/Hunting%20Fasthttp%20Bruteforce%20Campaign&amp;cm5xj7gxw00025idwhhyf601r</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dd235af01d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Email Spam to Ransomware: Hunting Social Engineering in Microsoft Teams]]></title>
            <link>https://medium.com/@hir3n/from-email-spam-to-ransomware-hunting-social-engineering-in-microsoft-teams-5a4931a2b535?source=rss-8f7fdff2437------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a4931a2b535</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[dfir]]></category>
            <dc:creator><![CDATA[Hiren Sadhwani]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 11:43:14 GMT</pubDate>
            <atom:updated>2025-05-18T09:06:35.915Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DV1dHUfUZZj9JtxT8IEa3Q.png" /><figcaption>AI Generated image</figcaption></figure><p><strong>Update: 18th May 2025</strong></p><p>We have recently observed a new campaign targeting healthcare organizations using similar tactics. Multiple users have been subjected to email spam bombing, followed by messages on Microsoft Teams, and then the QuickAssist RMM tool for further malicious activity. This campaign ran from April 21st to May 6th and specifically targeted healthcare organizations.</p><p>The following email subjects were noted in this campaign:<br>1. <strong>confirm &lt;40-character hex strings&gt;</strong> (<em>Note: In a previous campaign, the hex strings were 48 characters long, so please verify accordingly.</em>)<br>2. <strong>Your confirmation is required to join the &lt;random&gt; mailing list</strong>.</p><p>The email domains were spoofed to deliver mail, mostly from known or legitimate sites. We have identified approximately 47 such sender domains, which were spoofed, including:<br>- oss.oracle.com<br>- mailman.sae-itc.org<br>- richmond.edu<br>- list.woc.noaa.gov<br>- openjdk.org</p><p>The recent spam bombing campaign aims to overwhelm users, making them more likely to respond to Teams calls that appear to be from the help desk. After chatting in Teams, the attackers instruct users to open the Quick Assist tool. Quick Assist allows someone to remotely control and view another person’s PC for support by utilizing Remote Desktop Protocol (RDP) to establish a secure connection.</p><p>Below are the IDs that the threat actor used to communicate with victim users over Microsoft Teams:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4kR4QEXGyIIb1_yQBdDBw.png" /><figcaption>Attacker’s maild id and Display name — used for MS Teams communication</figcaption></figure><p><strong>### Threat Hunting KQL Queries:</strong><br>Use the following queries to hunt for these threats in your environment.</p><pre>1) Suspicious Emails - Regex used to identify known email subject pattern<br><br>EmailEvents<br>| where Subject matches regex @&quot;confirm\s+([0–9a-fA-F]{40})\b&quot; or Subject contains &quot;Your confirmation is required to join&quot;</pre><pre>2) Microsoft Teams External Message impersonating as Helpdesk or Support<br><br>OfficeActivity<br>| where RecordType == &quot;MicrosoftTeams&quot;<br>| extend UPN_Attacker = tostring(Members[0].UPN)<br>| extend DisplayName_Attacker = tostring(Members[0].DisplayName)<br>| where DisplayName_Attacker contains &quot;help&quot; or DisplayName_Attacker contains &quot;support&quot;<br>| extend DisplayName_Victim = tostring(Members[1].DisplayName)<br>| extend UPN_Victim = tostring(Members[1].UPN)<br>| where Operation == &quot;ChatCreated&quot;<br>| where CommunicationType == &quot;OneOnOne&quot;</pre><pre>3) QuickAssist Executions<br><br>DeviceProcessEvents<br>| where FileName == &quot;quickassist.exe&quot;<br>    or InitiatingProcessFileName == &quot;quickassist.exe&quot;<br>    or InitiatingProcessParentFileName == &quot;quickassist.exe&quot;</pre><pre>4) QuickAssist Network Connections<br><br>DeviceNetworkEvents<br>| where RemoteUrl contains &quot;user_managed&quot; <br>or RemoteUrl contains &quot;.support.services.microsoft.com&quot;</pre><p><strong>Recommendations:</strong></p><ul><li>Perform a Threat Hunt to identify if your organization is impacted.</li><li>Monitor for MS Teams external communications from unknown domains. Look for Operation == “ChatCreated” and CommunicationType == “OneOnOne” under MS Teams logs in O365 logs</li><li>Monitor and limit the installation and use of RMM tools to authorized users only</li></ul><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>During a recent TH/IR engagement, we found a threat actor targeting enterprise users with email spam bombing. These emails included subscription notifications and account activation prompts. The attackers pretended to be from the IT Support or Helpdesk Support teams at Microsoft, offering assistance to the victims by messaging them on the Microsoft Teams application.</p><p>Eventually, they requested remote access via QuickAssist or AnyDesk, which led to the downloading of a second-stage payload such as Cobalt Strike or SystemBC. This ultimately resulted in ransomware infections, typically involving Black Basta ransomware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8iOwq8j9tDH_I6uR55AkaA.png" /><figcaption>Infection Chain</figcaption></figure><h3><strong>What did we observe?</strong></h3><ul><li>Two users from our MSSP customer, each received over 1300+ emails within a one-hour time frame. The emails were related to successful subscriptions to some online services or new account activation.</li><li>Both users were targeted at the same time, and right after the email bombing started, the user received an MS Teams message from an External user disguised as a “HelpDesk Manager” from Microsoft.</li><li>Fortunately, both users did not engage with this ID and instead contacted their actual IT support team. We do not have much information about the specific message sent to the users. However, based on various research reports, it is common for users to receive a QR code in messages sent through Teams.</li><li>The tenant ID in this case was <strong><em>malwareremovalassistance[.]onmicrosoft[.]com</em></strong></li><li>The DisplayName for MS Teams message says “Help Desk Manager” and there’s a long blank space before and after the “Help Desk Manager” keywords, making it suspicious.</li><li>Here the attacker uses <strong>onmicrosoft.com domain</strong>.</li><li><em>Onmicrosoft.com is a default domain that Microsoft assigns to users of its cloud-based services, such as Microsoft 365 or Microsoft Entra ID. When you sign up for Microsoft 365 or Microsoft Entra ID, Microsoft automatically assigns a unique domain in the format “yourorganization.onmicrosoft.com” to your account. It’s used as a fallback domain if you don’t own a domain or don’t want to connect it to Microsoft 365.</em></li><li>The attack was contained at this stage and did not spread further. However, according to various research reports, once a user engages with the attacker, they may be prompted to download remote monitoring and management (RMM) tools, such as QuickAssist (inbuilt in Windows), AnyDesk or NetSupport Manager, to allow the attacker remote access. This can ultimately lead to a ransomware infection (possibly BlackBasta).</li></ul><p>A similar attack is also observed and well-documented by the <a href="https://www.reliaquest.com/blog/black-basta-social-engineering-technique-microsoft-teams/">ReliaQuest blog</a>.</p><h3><strong>How to Hunt or Detect:</strong></h3><p>To detect or hunt this you can investigate</p><p>o Office365 logs</p><p>o Record Type = “Microsoft Teams”</p><p>o Operation = “ChatCreated”</p><p>o Communication Type = “OneOnOne”</p><p>o DisplayName contains “help” or “support”</p><p>If you use KQL, I’ve created a KQL query to hunt this:</p><pre>OfficeActivity<br>| where RecordType == &quot;MicrosoftTeams&quot;<br>| extend UPN_Attacker = tostring(Members[0].UPN)<br>| extend DisplayName_Attacker = tostring(Members[0].DisplayName)<br>| where DisplayName_Attacker contains &quot;help&quot; or DisplayName_Attacker contains &quot;support&quot;<br>| extend DisplayName_Victim = tostring(Members[1].DisplayName)<br>| extend UPN_Victim = tostring(Members[1].UPN)<br>| where Operation == &quot;ChatCreated&quot;<br>| where CommunicationType == &quot;OneOnOne&quot;</pre><ul><li>You can search without a Display Name. If an attacker changes their tactics from HelpDesk Support to something else, you can still see which external domains are contacting your internal users.</li><li>My friend <a href="https://www.linkedin.com/in/cyb3rhawk/">Sai</a>, has also published a detailed <a href="https://www.linkedin.com/pulse/threat-hunting-black-basta-qr-phising-microsoft-teams-sai-molige-i78rc/?trackingId=TzF3%2FSx0S6OJEGuME09PGw%3D%3D">Threat Hunting blog</a> for a similar attack; do not forget to check it out.</li></ul><h3>References:</h3><ul><li><a href="https://www.microsoft.com/en-us/security/blog/2024/05/15/threat-actors-misusing-quick-assist-in-social-engineering-attacks-leading-to-ransomware/">https://www.microsoft.com/en-us/security/blog/2024/05/15/threat-actors-misusing-quick-assist-in-social-engineering-attacks-leading-to-ransomware/</a></li><li><a href="https://www.rapid7.com/blog/post/2024/05/10/ongoing-social-engineering-campaign-linked-to-black-basta-ransomware-operators/">https://www.rapid7.com/blog/post/2024/05/10/ongoing-social-engineering-campaign-linked-to-black-basta-ransomware-operators/</a></li><li><a href="https://www.reliaquest.com/blog/black-basta-social-engineering-technique-microsoft-teams/">https://www.reliaquest.com/blog/black-basta-social-engineering-technique-microsoft-teams/</a></li><li><a href="https://www.linkedin.com/pulse/threat-hunting-black-basta-qr-phising-microsoft-teams-sai-molige-i78rc/?trackingId=TzF3%2FSx0S6OJEGuME09PGw%3D%3D">https://www.linkedin.com/pulse/threat-hunting-black-basta-qr-phising-microsoft-teams-sai-molige-i78rc/?trackingId=TzF3%2FSx0S6OJEGuME09PGw%3D%3D</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a4931a2b535" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunting Gootloader Malware in 2024]]></title>
            <link>https://medium.com/@hir3n/hunting-gootloader-malware-in-2024-fd0b950bd1fd?source=rss-8f7fdff2437------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd0b950bd1fd</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Hiren Sadhwani]]></dc:creator>
            <pubDate>Mon, 03 Jun 2024 03:50:06 GMT</pubDate>
            <atom:updated>2024-06-03T05:13:22.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKZ-BuLeUGjV5RKPkaPs4Q.jpeg" /></figure><p><strong>Context:</strong></p><p>Recently, one of our U.S based Healthcare client got a notification from the Department of Homeland Security (DHS) that one of their hosts was beaconing to suspicious sites. Upon investigation, it was found that the host was infected with Gootloader malware.</p><p><strong>How did it get infected?</strong></p><p>The user searched on Google for some medical and legal documents and ended up visiting a compromised website hosting a fake forum. The site had a download link for a malicious zip file with the same name as the legal document. The zip file contained a malicious JS (JavaScript) file. When the JS file was executed, it initiated post-exploitation activities such as creating a scheduled task and communicating with various command and control (C2) sites to download additional malicious payloads, including in some cases downloading Cobalt Strike onto the host.</p><p><strong>About Gootloader Malware:</strong></p><ul><li>Gootloader is a JScript-based malware family that typically uses SEO poisoning and hijacked websites to trick victims into downloading a ZIP archive masquerading as the content they have looked for. Notably, GootLoader has been used to direct victims to drive-by download operations that deliver its first-stage payload.</li></ul><p><strong>Gootloader Malware Infection Chain:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPTjMGWPe--puBbkiNRrcw.png" /><figcaption>Gootloader infection chain</figcaption></figure><p>The user searched on Google for information about the scope of practice laws for medical assistants in Washington. Attackers used SEO tactics to manipulate search results and get their compromised website to appear at the top of the search results. The compromised site in question was asleman[.]org.</p><p>Upon inspecting the HTML code for the link, an unusual script reference was discovered. According to the <a href="https://fieldeffect.com/blog/sample-templates-targeted-in-recent-gootloader-campaign"><strong>FieldEffect blog</strong></a><strong>,</strong></p><blockquote>“When the page loads in a browser, this script tag loads obfuscated Javascript that is responsible for overwriting the legitimate content of this page with the fabricated forum posts. However, the script only executes the first time the page is loaded. The script does not execute for subsequent visits to the page and the original, legitimate content is displayed.”</blockquote><p>In all recent gootloader campaigns, you’ll find the same forum where user “Emma Hill” inquires about the document you are looking for, and the user “Admin” will provide you with the download link.</p><p>In this case, it was hosted on two sites:</p><ul><li>URL: hxxps://arts-npo[.]org/manual[.]php<br>Title: medical assistant scope of practice laws in washington state<br>Refer: <a href="https://urlscan.io/result/b7f4c285-aca6-42ce-8ec6-78c2e1cf1327/#links">https://urlscan.io/result/b7f4c285-aca6-42ce-8ec6-78c2e1cf1327/#links</a></li><li>URL: hxxps://www[.]medischdrukwerk[.]nl/english[.]php<br>Title: medical assistant scope of practice laws in washington state<br>Refer: <a href="https://urlscan.io/result/443a716a-c819-4950-b06a-a1cc3d38a925/#links">https://urlscan.io/result/443a716a-c819-4950-b06a-a1cc3d38a925/#links</a></li></ul><p>This screenshot is from an exploited website hosting a fake forum page with a link to download the gootloader zip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0AY-4P8jlU11RvM4.png" /><figcaption>Fake forum post to download malicious zip</figcaption></figure><p>After downloading the zip file, it contains a JavaScript file. Wscript launches the JavaScript file, and the first stage of gootloader initiates.</p><blockquote>“WScript.exe” “C:\Users\user_name\AppData\Local\Temp\df9c4731–2953–4d9e-b3524b39cfbf32b6_Medical_assistant_scope_of_practice_laws_in_washington_state_17031.zip.2b6\medical assistant scope of practice laws in washington state 33682.js”</blockquote><p>Upon the execution of a JavaScript file, a suspicious Scheduled Task named “Serve Safe Certified” is created and configured to launch another JavaScript file named “CORPOR~1.JS” using Wscript. This second JavaScript file will use Cscript to launch PowerShell, and then PowerShell is used to connect to command and control (C2) domains and possibly download additional payloads.</p><p>Take a look at this script that we discovered from this infection. Here you will find hardcoded C2 domains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwujDnWHywLJHaAGh7O_6w.png" /><figcaption>Script contains hardcoded domains</figcaption></figure><p>Using DNS and proxy logs we saw connections towards all these domains.</p><p><strong>Threat Hunting ideas:</strong></p><p>If you want to search if your environment got infected by Gootloader malware, you can search with below query:</p><ol><li><strong>CommandLine contains wscript AND *.js</strong></li></ol><blockquote>Here’s KQL if you’ve Defender and/or Sentinel</blockquote><blockquote>DeviceProcessEvents<br>| where ProcessCommandLine contains “wscript” and ProcessCommandLine contains “.js”<br>| project TimeGenerated,FileName, ProcessCommandLine</blockquote><p>If you found some unusual wscript executions like a document name as JS file, there’s a high probability that your host is infected with Gootloader malware.</p><p>For example,</p><ul><li>medical assistant scope of practice laws in washington state 33682.js</li><li>residential-sale-and-purchase-agreement-form-nz-legal-contracts.js</li><li>Washington_state_laws_on_breaks_68690.js</li></ul><p>Now, when you find the execution of JavaScript, look for surrounding logs. Check the proxy and DNS logs to determine where the file was downloaded from. You may or may not find the second domain from which the file was actually downloaded after the user clicks on a link to download the file from a forum. To find this domain, examine the HTML code of the first domain hosting the document. You will find the link to the forum there. Take this link and run it in a sandbox to determine the actual domain where the file is hosted.</p><p><strong>2. CommandLine contains cscript AND *.js</strong></p><blockquote>DeviceProcessEvents<br>| where ProcessCommandLine contains “cscript” and ProcessCommandLine contains “.js”<br>| project TimeGenerated, FileName, ProcessCommandLine</blockquote><p><strong>3. Check for the creation of scheduled tasks.</strong></p><ul><li>Windows Event ID: 4698 (if enabled) or check related events if you have EDR/XDR.</li></ul><p><strong>4. Look for powershell and cmd executions in surrounding logs for the compromised host.</strong></p><p><strong>5. If you have access to the host machine, check the JS script for hardcoded domains and block those domains.</strong></p><p><strong>6. Look for DNS and proxy logs for any beaconing activity.</strong></p><p><strong>MITRE ATT&amp;CK Mapping:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zukQ48syI8up932bp0d0dg.png" /><figcaption>MITRE ATT&amp;CK Mapping</figcaption></figure><p>Thank you for reading the blog till the end.</p><p>Happy Hunting!</p><p>If you have any suggestions/feedback or queries, reach out to me on <a href="https://x.com/hir3n_s">x.com/hir3n_s </a>or <a href="https://medium.com/linkedin.com/hiren-sadhwani">linkedin.com/hiren-sadhwani</a></p><p><strong>References:</strong></p><ul><li><a href="https://redcanary.com/threat-detection-report/threats/gootloader/">https://redcanary.com/threat-detection-report/threats/gootloader/</a></li><li><a href="https://fieldeffect.com/blog/sample-templates-targeted-in-recent-gootloader-campaign">https://fieldeffect.com/blog/sample-templates-targeted-in-recent-gootloader-campaign</a></li><li><a href="https://x.com/Unit42_Intel/status/1789021679634505978">https://x.com/Unit42_Intel/status/1789021679634505978</a></li><li><a href="https://x.com/Gootloader">https://x.com/Gootloader</a></li><li><a href="https://www.kroll.com/en/insights/publications/cyber/deep-dive-gootloader-malware-infection-chain">https://www.kroll.com/en/insights/publications/cyber/deep-dive-gootloader-malware-infection-chain</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd0b950bd1fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat Hunting: How to do it in easy way]]></title>
            <link>https://medium.com/@hir3n/threat-hunting-how-to-do-it-in-easy-way-b16a38ba36f3?source=rss-8f7fdff2437------2</link>
            <guid isPermaLink="false">https://medium.com/p/b16a38ba36f3</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[security-operations]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Hiren Sadhwani]]></dc:creator>
            <pubDate>Sat, 28 May 2022 10:20:33 GMT</pubDate>
            <atom:updated>2022-05-28T10:20:33.173Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPyQhhu_0m3bEU1ek5mPZw.jpeg" /><figcaption>Image Credits: <a href="https://www.techslang.com/what-goes-on-during-threat-hunting/">What Goes on During Threat Hunting?</a></figcaption></figure><p>Are you finding doing Threat Hunting is hard and complex to understand?</p><p>Are you confused about what to look for in the logs for TH?</p><p>Are you finding it difficult to form a hypothesis for threat hunting?</p><p>Then read/listen this blog you will find some easier ways to do TH:</p><p>If you are beginner and want to learn about What is Threat Hunting, check out my previous blog on <a href="https://medium.com/@hir3n/introduction-to-threat-hunting-8dff62ba52ca">Intro to Threat Hunting</a>:</p><p>As we all know, Threat Hunting is a proactive approach, and we must form a hypothesis for doing it.</p><p>So as a beginner to start TH:</p><p>First you need right Data Sources:</p><p>Data sources like,</p><p>&gt; <strong>Endpoint Data</strong> (Process monitoring, File monitoring, Process command-line parameters, Windows registry, Windows Event logs),</p><p>&gt; <strong>Network Logs</strong> (Proxy, Firewall, DNS),</p><p>&gt; <strong>Cloud logs</strong>, <strong>Authentication logs</strong>, etc.</p><p>Collect these logs in a centralized logging system like ELK stack and make sure that all the required fields are parsed.</p><p>Second, you need a hypothesis to do hunting.</p><blockquote>1) To create hypotheses, you’ve to read research reports from various threat research groups.</blockquote><p>Some of them which I personally use:</p><p><a href="https://thedfirreport.com/">The DFIR Report</a></p><p><a href="https://redcanary.com/blog/">Red Canary’s blogs</a></p><p><a href="https://unit42.paloaltonetworks.com/">Unit42 by PaloAlto</a></p><p>Red Canary and DFIR reports provide detection and hunting opportunities for TTPs they have observed during the attacks.</p><blockquote>2) Check publicly available hunting rules/detection ideas</blockquote><p>If you want to hunt based on known TTPs, check out <a href="https://github.com/SigmaHQ/sigma/tree/master/rules">Sigma rules</a> GitHub repository and <a href="https://github.com/The-DFIR-Report/Sigma-Rules">The DFIR reports GitHub repository</a>. It provides detection and hunting rules/queries in a general and easy format for all kinds of data sources (Windows, Linux, Cloud, Network, etc.)</p><blockquote>3) Use MITRE ATT&amp;CK framework</blockquote><p>You can hunt for TTPs using <a href="https://attack.mitre.org/matrices/enterprise/">MITRE ATT&amp;CK framework</a>, it provides detailed information on the attacker’s TTPs, which threat groups have used those tactics and techniques, and how to detect and mitigate them.</p><blockquote>4) Stay updated with social media</blockquote><p>Not by watching reels but by following top infosec accounts on twitter or LinkedIn. I got one very important tip/advice during the initial phase of my career: <em>“if you are in the cybersecurity domain, and you do not have a twitter account, you are missing a lot”. </em>So must create a twitter account and follow accounts who posts regularly about #ThreatHunting #DFIR #malwareanalysis #reverseengineering #threatintelligence. Many accounts post detection rules and threat hunting tips, you can leverage that to hunt in your organization.</p><p>Now you have a hypothesis, search those TTPs in your or your client’s environment. If you are getting results, check if it is actually an attack or it’s a false positive. Reduce false positives by excluding known activities in the environment.</p><p>If you get a successful attack, start the IR process, and create a detection rule for the attack you searched and automate it so that next time the same attack is observed in the environment, your SOC gets an alert.</p><p>In a nutshell,</p><p><strong><em>&gt; Gather right data sources</em></strong></p><p><strong><em>&gt; Create hypothesis</em></strong></p><p><strong><em>&gt; Search</em></strong></p><p><strong><em>&gt; If successfully results found → Start IR process and create detection rule</em></strong></p><p><strong><em>&gt; Repeat</em></strong></p><p><strong>Let’s look at an example:</strong></p><blockquote>Hunting for Suspicious Powershell Execution</blockquote><p>Powershell execution is the most common tactic used by attackers. Using powershell attackers can do multiple things, like, Information Discovery of Host, Network, Users, etc and it is also able to download and run executables or code directly into the memory (with or without touching disk). Most powershell attacks are encoded, usually with base64 encoding.</p><p>Now let’s look at this example with above mentioned points:</p><p>&gt; <strong><em>Gather Right Data Sources:</em></strong></p><ul><li>To gather powershell execution logs, below are the log sources from where you can gather these data:</li></ul><ol><li>Windows Logs — Powershell logging enabled</li><li>Windows Logs — Process Creation events with command-line enabled</li><li>Sysmon Logs</li><li>EDR Telemetry logs</li></ol><p>&gt; <strong><em>Create Hypothesis</em></strong></p><ul><li>Let’s build a hypothesis that attacker has executed powershell command and trying to download malicious code from attackers server:</li></ul><p>We can search with below query in our SIEM or ELK:</p><blockquote>Command-line contains (*Download* OR *Net.WebClient*)</blockquote><p>&gt; Search for this query in your or your client’s environment. Here, * (asterisk) is a wildcard character which means it can search any number of characters.</p><p>&gt; If you’re getting results, check the full command. It might contain URL/IP from where it is downloading malicious content. Check for parent/child processes and their command-lines, and investigate further for the host/username or domain/IP connections. Check if any other host is also connecting to the same URL. Escalate it to your client/IR team.</p><p>&gt; Now you can create a SIEM detection rule with a similar query. So that if similar activity is observed on any other host in the network, you’ll get an alert.</p><p>&gt; If you’re in MSSP, hunt for similar activities in other client environments.</p><p>&gt; This was just an example of how you can hunt. Similarly try with other hunts using sigma rules or you can also create your own rules/search queries by reading various threat research reports.</p><p>If you find this blog helpful, share it with your friends and colleagues..</p><p>Happy Hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b16a38ba36f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Threat Hunting]]></title>
            <link>https://medium.com/@hir3n/introduction-to-threat-hunting-8dff62ba52ca?source=rss-8f7fdff2437------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dff62ba52ca</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Hiren Sadhwani]]></dc:creator>
            <pubDate>Sun, 26 Jul 2020 17:04:58 GMT</pubDate>
            <atom:updated>2020-07-26T17:04:58.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*t67sE_FniLVr6CC7.jpg" /><figcaption>Image Credits: <a href="https://certstation.com/blog/wp-content/uploads/2020/02/Target-hacker-blog.jpg">https://certstation.com/blog/wp-content/uploads/2020/02/Target-hacker-blog.jpg</a></figcaption></figure><p><strong>What is Threat Hunting?</strong></p><ul><li>“Threat Hunting” buzzword sounds really cool! And it is a very focused area in the security industry from the past few years. But what does it actually mean?</li><li>In threat hunting, you are looking for malware or an attacker which is already hiding in your network may have been there for a long time. Most of the attacks are detected by properly configured EDRs (Endpoint Detection and Response), firewalls, and other security solutions. But most of the organizations fail to detect Advanced Persistent Threats (APTs). Why?, because as the name says, these types of attacks are Advanced in terms of tactics and techniques + Persistent for a long time in the network.</li><li>So here comes the role of Threat Hunter to look and detect the threats which are not detected by automated detection tools and security solutions.</li><li>That’s why threat hunting is always called the Proactive approach. Means detecting suspicious, unknown, and evil things in the network before they can harm your organization.</li></ul><p><strong>Why do we need Threat Hunting:</strong></p><ul><li>Threat Hunting helps us to identify gaps in visibility, detection and response. It helps to improve the detection capability and it also helps to understand your own network.</li><li>By doing threat hunting we can find previous, unknown and undetected compromises.</li><li>According to the Mandiant IR Group <a href="https://content.fireeye.com/security-effectiveness/rpt-security-effectiveness-2020-deep-dive-into-cyber-reality">report</a>: Alerts are only generated for 9% of attacks, and 53% of attacks are completely missed in enterprise environments.</li><li>A recent report from CrowdStrike says that dwell time is 95 days. Dwell time is the time between an attacker has compromised the environment and it is detected.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hb-xK2DWM58saGG3" /></figure><ul><li>Through a threat hunting program, we can detect those threats and reduce the gap of our detection capability.</li></ul><p><strong>The mindset of Hunter:</strong></p><ul><li>To start Threat Hunting, you need to create a mindset of a hunter. You have to think like an attacker. What will the attacker target in my organization? For what purpose and How it will target?</li><li>Or you just think like if you are an attacker what will you target, what will be your motive to do an attack and what techniques you use to do an attack.</li><li>To understand how an attacker attacks, There are various models of attacker methodology from which we can start to build a foundation for a hunting strategy. Some of these include:</li></ul><ol><li>The Lockheed Martin Cyber Kill Chain</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*NRq3ly4oD87IEtUf" /></figure><p>2. The Mandiant Attack Lifecycle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8VIiTR_33jhWcc3B" /></figure><p>3. The MITRE ATT&amp;CK Framework</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5XP_XcC2mfgLcxPr" /></figure><p><strong>Misconceptions about Threat Hunting:</strong></p><p>There are a lot of misconceptions in the industry about Threat Hunting.</p><ol><li><em>Hunting can be fully automated:</em></li></ol><p>Threat Hunting requires human inputs in analysis and detections. Threat Hunting is a proactive approach. If an automated tool has found something and then you are remediating, then that is a reactive approach not proactive or Hunting. Automation is must required in modern SOCs, it can be your starting point for hunting.</p><p><em>2. Hunting can only be done by professionals:</em></p><p>Anyone who has a basic knowledge of various types of attacks, networking, security solutions like AntiVirus, Firewall, IPS, etc. can start Threat Hunting. By doing threat hunting you’ll learn more about it.</p><p><em>3. Hunting is expensive</em></p><p>The misconception is that you have to hire additional staff for hunting threats. You can start hunting by creating a team of analysts who are already working in the organization by separating a few hours weekly for threat hunting from normal routine work.</p><p><strong>How to start Threat hunting?</strong></p><ul><li>To start threat hunting in your SOC, create a centralized logging system where you collect all types of logs like Firewall, IPS, EDR, routers, proxy, DNS, AD, windows and linux servers, etc.</li><li>You need the right tools which help you in threat hunting. You can start with <a href="https://www.elastic.co/downloads/">ELK stack</a> which helps you to get logs from multiple endpoints, analyzing the logs easily, and to create visualizations and dashboards for monitoring and getting more visibility.</li><li>Before starting threat hunting, you need to know what is normal in your environment, so anything which is abnormal will stand out and be noticed.</li><li>You need Threat Intelligence platforms to detect what is abnormal, like IP addresses, file hashes, domains, etc. There are so many open source and free Threat Intelligence platforms there like Cisco Talos, AlienVault OTX, VirusTotal, IBM Xforce, urlscan.io, abuseIPdb, etc.</li></ul><p>To start Threat Hunting here is six steps which will help you :</p><ol><li><em>Form a Hypothesis:</em></li></ol><p>The hypothesis is an assumption that what you are going to prove or disprove in your environment.</p><p>Form up a hypothesis that an attacker group for ex. APT36 has already compromised the network and is hiding in your environment. Now look for the IOCs which are published by researchers, look for what tactics, techniques and procedures (TTPs) this APT group is following. Check all the TTPs used by the APT group in your environment. Look for firewall logs, registry values, powershell logs, AD logs, OS and DNS logs, etc.</p><p><em>2. How to search:</em></p><p>One of the techniques you can use is ‘Long Tail Analysis’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/0*FsZ7A7ASvCfI-Ecp" /></figure><p>The least common thing is more important because this seems unusual to what is normal. For example, one software is installed on only two systems. Advanced attackers nowadays are not installing malware in all the systems at once. They start with one or two systems and then they laterally move in the network.</p><p><em>3. Threat Intelligence</em></p><p>Now you got something useful (in this case an exe file), check that executable’s hash in virustotal, or check in any.run, joe sandbox, or hybrid-analysis. These are free online malware analysis tools. Check other IOCs related to that malware, you can get this by checking IOCs in threat intel platforms.</p><p><em>4. Triage and Response</em></p><p>You are now sure that this executable is something that can cause harm to your organization. Remove that executable from the system, check for the system if anything else is there in the system.</p><p><em>5. Automate</em></p><p>Now you have file hash and other analytics data. You can use that data or IOCs, to automate detection like creating a rule in the SIEM tool. So if again this type of attack happens it will be automatically detected and alerted. There is a saying, “You hunt only once and detect every time”.</p><p><em>6. Document and Report</em></p><p>Document all your findings in a proper way, from where you have started to hunt, what was your hypothesis, what you have checked, which logs you have analyzed, what you found and what action you have taken, is your hypothesis proved or not, what’s the conclusion, etc.</p><p><strong>Resources for Hunter:</strong></p><p>Below are some links which will help you to learn more on Threat Hunting and their techniques.</p><ol><li><a href="https://github.com/ThreatHuntingProject/ThreatHunting/tree/master/hunts">https://github.com/ThreatHuntingProject/ThreatHunting/tree/master/hunts</a></li><li><a href="https://github.com/hunters-forge/ThreatHunter-Playbook/tree/master/resources">https://github.com/hunters-forge/ThreatHunter-Playbook/tree/master/resources</a></li><li><a href="https://www.peerlyst.com/posts/resource-the-threat-hunting-wiki-claus-cramon">https://www.peerlyst.com/posts/resource-the-threat-hunting-wiki-claus-cramon</a></li><li><a href="https://www.linkedin.com/company/threathunting/">https://www.linkedin.com/company/threathunting/</a></li><li><a href="https://logz.io/learn/complete-guide-elk-stack/">https://logz.io/learn/complete-guide-elk-stack/</a></li><li><a href="https://attack.mitre.org/">https://attack.mitre.org/</a></li><li><a href="https://www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html">https://www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html</a></li><li><a href="https://www.fireeye.com/mandiant/purple-team-assessment.html">https://www.fireeye.com/mandiant/purple-team-assessment.html</a></li><li><a href="https://www.sans.org/reading-room/whitepapers/threathunting">https://www.sans.org/reading-room/whitepapers/threathunting</a></li><li><a href="https://www.youtube.com/user/TheSANSInstitute">https://www.youtube.com/user/TheSANSInstitute</a></li><li><a href="https://www.youtube.com/c/SANSDigitalForensics/playlists">https://www.youtube.com/c/SANSDigitalForensics/playlists</a></li><li><a href="https://cyberwardog.blogspot.com/">https://cyberwardog.blogspot.com/</a></li><li><a href="https://github.com/Cyb3rWard0g">https://github.com/Cyb3rWard0g</a></li><li><a href="https://threathunterplaybook.com/introduction.html">https://threathunterplaybook.com/introduction.html</a></li></ol><p><strong>References:</strong></p><ol><li>Hunt Evil — Your Practical Guide to Threat Hunting by Sqrrl</li></ol><p><a href="https://www.threathunting.net/files/hunt-evil-practical-guide-threat-hunting.pdf">https://www.threathunting.net/files/hunt-evil-practical-guide-threat-hunting.pdf</a></p><p>2. Find_Evil — Threat Hunting | SANS@MIC Talk by Anurag Khanna: <a href="https://www.youtube.com/watch?v=GrhVz1Sjd_0">https://www.youtube.com/watch?v=GrhVz1Sjd_0</a></p><p>3. The Hunter’s Handbook by Karen Scarfone</p><p><a href="https://www.cybersecfill.com/threat-hunting-in-cybersecurity/">4. https://www.cybersecfill.com/threat-hunting-in-cybersecurity/</a></p><p><a href="https://content.fireeye.com/security-effectiveness/rpt-security-effectiveness-2020-deep-dive-into-cyber-reality">5. https://content.fireeye.com/security-effectiveness/rpt-security-effectiveness-2020-deep-dive-into-cyber-reality</a></p><p><a href="https://blog.paloaltonetworks.com/2020/06/cortex-start-threat-hunting/">6. https://blog.paloaltonetworks.com/2020/06/cortex-start-threat-hunting/</a></p><p><a href="https://www.cybersecfill.com/threat-hunting-in-cybersecurity/">7. https://www.cybersecfill.com/threat-hunting-in-cybersecurity/</a></p><p><a href="https://www.controleng.com/articles/understand-the-cyber-attack-lifecycle/">8. https://www.controleng.com/articles/understand-the-cyber-attack-lifecycle/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dff62ba52ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>