<?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 Mohamed Basil on Medium]]></title>
        <description><![CDATA[Stories by Mohamed Basil on Medium]]></description>
        <link>https://medium.com/@Mindsec?source=rss-3c235fa9cb9e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FTbmhecOQG6ugQLAwrRUGA.jpeg</url>
            <title>Stories by Mohamed Basil on Medium</title>
            <link>https://medium.com/@Mindsec?source=rss-3c235fa9cb9e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 28 May 2026 22:10:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Mindsec/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[Understanding Saudi Arabia’s NCA Essential Cybersecurity Controls (ECC): A Practical Perspective]]></title>
            <link>https://medium.com/@Mindsec/understanding-saudi-arabias-nca-essential-cybersecurity-controls-ecc-a-practical-perspective-9c00ccc4393c?source=rss-3c235fa9cb9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c00ccc4393c</guid>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[saudi-arabia]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[nca]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mohamed Basil]]></dc:creator>
            <pubDate>Sat, 03 Jan 2026 07:31:48 GMT</pubDate>
            <atom:updated>2026-01-03T07:31:48.282Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Saudi Arabia’s cybersecurity ecosystem is regulated by the <strong>National Cybersecurity Authority</strong>, with the Essential Cybersecurity Controls (ECC) forming the baseline framework for protecting national and organizational assets.</p><p>Rather than treating ECC as a checklist, this article explores how ECC maps to <strong>real-world security operations</strong> such as SOC monitoring, SIEM logging, and incident response.</p><h3>1. Why NCA ECC Matters</h3><p>NCA ECC is mandatory for many Saudi organizations and critical sectors. Its objective is not just compliance, but <strong>operational cybersecurity maturity</strong>.</p><p>Unlike purely audit-focused frameworks, ECC emphasizes:</p><ul><li>Continuous monitoring</li><li>Risk-driven decision making</li><li>Incident readiness</li></ul><h3>2. ECC Domains in Simple Terms</h3><p>Instead of control numbers, ECC focuses on <strong>outcomes</strong>:</p><ul><li>Governance &amp; Risk Management</li><li>Cyber Defense &amp; Monitoring</li><li>Access Control &amp; Identity</li><li>Incident Response &amp; Recovery</li><li>Third-Party &amp; Cloud Security</li></ul><p>These domains directly align with how SOC and security engineering teams operate daily.</p><h3>3. Mapping ECC to Real Security Operations</h3><p>From a security engineer’s perspective:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*XkgWuHKGoZCQ7ncLnDALNg.png" /></figure><p>This mapping makes ECC <strong>actionable</strong>, not theoretical.</p><h3>4. My Personal NCA ECC Compliance Lab</h3><p>To internalize ECC concepts, I built a <strong>personal compliance lab</strong> covering:</p><ul><li>Asset inventory and classification</li><li>Risk assessment mapped to ECC domains</li><li>Logging and monitoring policies aligned with SOC workflows</li><li>Incident response playbooks based on ECC expectations</li></ul><p>This lab helped bridge the gap between <strong>compliance requirements and technical execution</strong>.</p><h3>5. Final Thoughts</h3><p>For security professionals targeting Saudi Arabia, understanding NCA ECC is not about memorizing controls ,it’s about <strong>demonstrating operational readiness</strong>.</p><p>By mapping ECC to SOC, SIEM, and incident response workflows, professionals can align themselves with how cybersecurity actually functions within Saudi organizations.</p><h3>About the Author</h3><p>Cybersecurity professional focused on SOC, SIEM, compliance, and offensive security.<br> Founder — <strong>Mohamed Basil (MindSec)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c00ccc4393c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudflare Outage Explained: Why the Internet Went Down Today (18 Nov 2025)]]></title>
            <link>https://medium.com/@Mindsec/cloudflare-outage-explained-why-the-internet-went-down-today-18-nov-2025-92e89e625b11?source=rss-3c235fa9cb9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/92e89e625b11</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[internet-outage]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[cdn]]></category>
            <dc:creator><![CDATA[Mohamed Basil]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 16:01:40 GMT</pubDate>
            <atom:updated>2025-11-18T16:01:40.877Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kShxVDgNyocCim35ftwxMg.png" /><figcaption>Cloudflare Outage</figcaption></figure><h3>A breakdown of what happened, why so many services crashed, and how Cloudflare recovered.</h3><p>On <strong>18 November 2025</strong>, the internet had one of those chaotic mornings where everything seemed to break at once. ChatGPT froze. X (Twitter) refused to load. Countless websites started throwing <strong>500 errors</strong>, timeouts, and strange login failures.</p><p>The culprit? <strong>Cloudflare</strong>, the backbone of a massive portion of the internet, experienced a serious internal service degradation that spiraled into a multi-hour global outage.</p><p>As someone deeply interested in cybersecurity and infrastructure reliability, I decided to break down what actually happened clearly, simply, and backed by the full timeline released during the incident.</p><h3>What Caused the Cloudflare Outage?</h3><p>Cloudflare reported that the outage began due to a sudden <strong>“spike in unusual traffic”</strong> hitting one of their internal services.</p><p>This spike triggered a <strong>service degradation inside Cloudflare’s core network</strong>, which then cascaded outward, affecting:</p><ul><li>Routing</li><li>Security filtering</li><li>Dashboard logins</li><li>API calls</li><li>CDN and caching</li><li>Access &amp; WARP services</li></ul><p>Because Cloudflare sits in front of so many major platforms, the impact looked like half the internet suddenly collapsed.</p><h3>Who Was Affected?</h3><p>Any platform relying on Cloudflare’s network felt the hit. Some notable disruptions included:</p><ul><li><strong>OpenAI / ChatGPT</strong></li><li><strong>X (Twitter)</strong></li><li><strong>Discord</strong></li><li><strong>Ecommerce platforms</strong></li><li><strong>Learning platforms</strong></li><li><strong>Countless SaaS dashboards</strong></li></ul><p>In short: if you felt like the internet was “down,” you weren’t imagining it.</p><h3>🕒 Cloudflare Incident Timeline (Complete Breakdown)</h3><p>Below is the exact timeline Cloudflare published as they worked on resolving the issue. This timeline helps us understand how the outage progressed internally.</p><h3>12:03 UTC — Investigating</h3><p>Cloudflare reports <em>“internal service degradation.”</em><br> Some services begin failing with intermittent errors.</p><h3>12:21 UTC — Partial recovery, still unstable</h3><p>Some services start to recover, but error rates remain high.</p><h3>12:37 UTC — Still investigating</h3><h3>12:53 UTC — Still investigating</h3><h3>13:04 UTC — WARP disabled in London</h3><p>During remediation, Cloudflare disables WARP access in London, causing connectivity issues for users there.</p><h3>13:09 UTC — Issue identified</h3><p>Cloudflare identifies the source of the outage and begins deploying a fix.</p><h3>13:13 UTC — Access &amp; WARP recovering</h3><p>Cloudflare Access and WARP return to normal error levels.<br> WARP access re-enabled in London.</p><h3>13:35 UTC — Working on restoring application services</h3><h3>13:58 UTC — Continued restoration efforts</h3><h3>14:22 UTC — Still working on the fix</h3><h3>14:34 UTC — Dashboard partially restored</h3><p>Cloudflare deploys changes that restore the dashboard, but application services still affected.</p><h3>14:42 UTC — Fix implemented</h3><p>Cloudflare says they believe the core issue is resolved; monitoring continues.</p><h3>14:57 UTC — Dashboard login issues persist</h3><p>Some users still have trouble logging into the dashboard.</p><h3>15:23 UTC — Ongoing monitoring</h3><h3>15:40 UTC — Post-fix stabilization</h3><p>Cloudflare continues working through remaining issues after the fix.</p><h3>So What Actually Happened Internally?</h3><p>Based on the official statements and incident behavior:</p><ul><li>One internal service experienced a <strong>sudden abnormal traffic spike</strong></li><li>That led to <strong>service degradation</strong></li><li>Which cascaded into <strong>routing failures and high error rates</strong></li><li>Causing widespread outages across customers</li><li>Fixes were rolled out in phases</li><li>Some regions were impacted more than others (like London’s WARP issue)</li></ul><p>This pattern is consistent with either:<br> ✔ an internal system fault<br> ✔ a misconfigured update<br> ✔ or a traffic surge (possibly accidental, not necessarily malicious)</p><p>Cloudflare has not yet confirmed the root cause beyond “unusual traffic.”</p><h3>Why This Outage Was So Big</h3><p>Cloudflare is not just a CDN-it’s part of the backbone of modern internet traffic.</p><p>When Cloudflare breaks:</p><ul><li>DNS breaks</li><li>CDN caching breaks</li><li>API gateways break</li><li>Web application firewalls break</li><li>Authentication flows break</li><li>Edge routing breaks</li></ul><p>So even a small issue multiplies into a <strong>global chain reaction</strong>.</p><h3>Why This Matters (Especially for Cybersecurity Professionals)</h3><p>Outages like this are important real-world case studies. They highlight:</p><ul><li>How fragile global infrastructure is</li><li>Why redundancy is not always enough</li><li>How single points of failure can exist at massive scale</li><li>The importance of anomaly detection and traffic monitoring</li><li>How misconfigurations can cascade globally</li></ul><p>Understanding incidents like this makes you a stronger security analyst these are the same scenarios you’ll see in interviews, post-mortems, and real-world SOC operations.</p><h3>Final Thoughts</h3><p>Today’s Cloudflare outage is another reminder that even the biggest, most resilient networks can stumble when unexpected conditions hit at the wrong time. The good news is that Cloudflare moved quickly, communicated consistently, and restored services in phases.</p><p>If you found this useful, feel free to follow for more breakdowns related to cybersecurity, outages, cloud security, and digital infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92e89e625b11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Suricata: From Setup to Advanced Threat Detection]]></title>
            <link>https://medium.com/@Mindsec/mastering-suricata-from-setup-to-advanced-threat-detection-4ec1cdb9dec1?source=rss-3c235fa9cb9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ec1cdb9dec1</guid>
            <category><![CDATA[suricata]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[cyber-security-training]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Mohamed Basil]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 20:58:00 GMT</pubDate>
            <atom:updated>2025-08-03T20:58:00.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AnZhVZEm894wYMQXJSqzBA.png" /></figure><p>Suricata is an open-source IDS/IPS and network monitoring engine widely used in enterprise security. I installed, configured, and tested Suricata on a Linux machine, integrated it with Wazuh and SIEM tools, and created real-world detection and prevention rules.</p><p>This post details the step-by-step labs I performed, including commands, configurations, and results.</p><h3>1. Install Suricata and Verify Rule Loading</h3><p>First, I installed Suricata:</p><pre>sudo apt update<br>sudo apt install suricata jq -y</pre><p>Verify the configuration and rules:</p><pre>sudo suricata -T -c /etc/suricata/suricata.yaml</pre><p>I also confirmed the default logging location:</p><pre>cat /etc/suricata/suricata.yaml | grep default-log-dir<br># Default: /var/log/suricata</pre><h3>2. Capture Live Alerts in IDS Mode</h3><p>I ran Suricata in IDS mode to monitor network traffic:</p><pre>sudo suricata -c /etc/suricata/suricata.yaml -i eth0</pre><p>To see live alerts in JSON format:</p><pre>tail -f /var/log/suricata/eve.json | jq .</pre><p>Then, I tested with a simple ping:</p><pre>ping -c 2 8.8.8.8</pre><p>If ICMP rules are enabled, you’ll see alerts logged in eve.json.</p><h3>3. Write a Rule to Detect Visits to YouTube</h3><p>Custom rules are where Suricata shines. I created a rule in /etc/suricata/rules/local.rules:</p><pre>alert http any any -&gt; any any (msg:&quot;YouTube Access Detected&quot;; content:&quot;youtube.com&quot;; http_host; sid:1000002; rev:1;)</pre><p>Update the Suricata config to include local.rules if not already:</p><pre># In suricata.yaml:<br>rule-files:<br>  - suricata.rules<br>  - local.rules</pre><p>Reload rules without restarting the engine:</p><pre>sudo kill -USR2 $(pidof suricata)</pre><p>Test by visiting YouTube:</p><pre>curl -I https://www.youtube.com</pre><p>Check alerts:</p><pre>jq &#39;select(.alert)&#39; /var/log/suricata/eve.json | grep &quot;YouTube&quot;</pre><h3>4. Block Traffic to Facebook in IPS Mode</h3><p>Switch Suricata to IPS mode using NFQUEUE:</p><pre>sudo iptables -I FORWARD -j NFQUEUE --queue-num 0<br>sudo suricata -c /etc/suricata/suricata.yaml --af-packet</pre><p>Create a blocking rule:</p><pre>drop http any any -&gt; any any (msg:&quot;Blocking Facebook Access&quot;; content:&quot;facebook.com&quot;; http_host; sid:1000003; rev:1;)</pre><p>Reload rules and test:</p><pre>sudo kill -USR2 $(pidof suricata)<br>curl -I https://www.facebook.com</pre><p>The connection will be blocked, and Suricata logs will record a drop event.</p><h3>5. Analyze Suricata Logs and Extract Top Alerts</h3><p>Suricata generates rich logs in eve.json. I used jq and awk to extract and analyze alerts:</p><p>Top triggered rules:</p><pre>jq -r &#39;select(.alert) | .alert.signature&#39; /var/log/suricata/eve.json | sort | uniq -c | sort -nr | head</pre><p>Top source IP addresses:</p><pre>jq -r &#39;select(.alert) | .src_ip&#39; /var/log/suricata/eve.json | sort | uniq -c | sort -nr | head</pre><p>Top destination ports:</p><pre>jq -r &#39;select(.alert) | .dest_port&#39; /var/log/suricata/eve.json | sort | uniq -c | sort -nr | head</pre><p>These insights helped prioritize alerts and identify the most common events in my lab.</p><h3>6. Integrate Suricata with ELK Stack or Splunk</h3><h3>ELK Integration</h3><p>I configured Filebeat to ship Suricata logs to ELK:</p><pre>sudo apt install filebeat -y<br>sudo nano /etc/filebeat/filebeat.yml</pre><p>Added this section to monitor Suricata logs:</p><pre>- type: log<br>  paths:<br>    - /var/log/suricata/eve.json<br>  json.keys_under_root: true<br>  json.add_error_key: true</pre><p>Start Filebeat and view logs in Kibana:</p><pre>sudo systemctl enable filebeat<br>sudo systemctl start filebeat</pre><h3>Splunk Integration</h3><p>Alternatively, I configured Splunk Universal Forwarder:</p><pre>/opt/splunkforwarder/bin/splunk add monitor /var/log/suricata/eve.json<br>/opt/splunkforwarder/bin/splunk restart</pre><p>In Splunk, I built dashboards showing:</p><ul><li>Top alerts by signature</li><li>Top source IPs</li><li>Alert trends over time</li></ul><h3>7. Bonus: Integration with Wazuh</h3><p>Finally, I added Suricata events into Wazuh for centralized security visibility.</p><p>Install the Wazuh agent and configure Suricata log monitoring in ossec.conf:</p><pre>&lt;localfile&gt;<br>  &lt;log_format&gt;json&lt;/log_format&gt;<br>  &lt;location&gt;/var/log/suricata/eve.json&lt;/location&gt;<br>&lt;/localfile&gt;</pre><p>Restart the agent:</p><pre>sudo systemctl restart wazuh-agent</pre><p>Now, Suricata alerts are visible in the Wazuh dashboard for correlation and incident response.</p><h3>Key Results</h3><p>Through these labs, I successfully:</p><ul><li>Installed and configured Suricata on Linux.</li><li>Captured live alerts in IDS mode.</li><li>Wrote custom detection rules (e.g., YouTube).</li><li>Blocked traffic with IPS mode (e.g., Facebook).</li><li>Analyzed logs using command-line tools.</li><li>Integrated Suricata with ELK, Splunk, and Wazuh for centralized monitoring.</li></ul><p>This project demonstrates end-to-end mastery of Suricata and its use in real-world security operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ec1cdb9dec1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Nmap -From Basics to Pro Scanning Techniques]]></title>
            <link>https://medium.com/@Mindsec/mastering-nmap-from-basics-to-pro-scanning-techniques-624aa6291b5a?source=rss-3c235fa9cb9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/624aa6291b5a</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[zenmap]]></category>
            <dc:creator><![CDATA[Mohamed Basil]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 17:50:23 GMT</pubDate>
            <atom:updated>2025-07-28T11:52:16.887Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By MindSec (Mohamed Basil)-Cybersecurity E</em>nthusiast <em>&amp; Ethical Hacker</em></p><blockquote><em>“Hacking the future starts with understanding your network.”</em></blockquote><p>Whether you’re a beginner stepping into the world of network reconnaissance or a seasoned pen-tester auditing your environment, <strong>Nmap (Network Mapper)</strong> remains one of the most powerful tools in your cybersecurity arsenal.</p><p>In this article, I’ll walk you through not just <em>how to use Nmap</em>, but how I’ve <strong>mastered it</strong> ,exploring its depth from basic scans to evasion techniques, advanced NSE scripting, real-world use cases, and practical lab environments.</p><h3>Why Master Nmap?</h3><p>Nmap isn’t just a port scanner. It’s a comprehensive network discovery and security auditing tool that provides insight into:</p><ul><li>Open/closed/filtered ports</li><li>Services and their versions</li><li>OS detection</li><li>Scripted vulnerability scanning</li><li>Firewall evasion</li><li>Network mapping</li></ul><p>If you want to become a reliable ethical hacker or a capable defender, <strong>Nmap proficiency is non-negotiable</strong>.</p><h3>Setup: My Preferred Lab Environment</h3><p>I run Nmap in a <strong>Kali Linux VM (bridged mode)</strong> for complete functionality and full control. Alternatively, Ubuntu also works well.</p><p>To scan real networks responsibly, I use:</p><ul><li><strong>A local virtual lab</strong> (Windows, Linux VMs on VirtualBox/VMware)</li><li><strong>HTB &amp; TryHackMe machines</strong></li></ul><p><em>Pro Tip</em>: Always scan targets you <strong>own or have permission</strong> to test.</p><h3>Installing the Latest Nmap from Source (Linux)</h3><pre>sudo apt update<br>sudo apt install g++ libssl-dev<br>wget https://nmap.org/dist/nmap-7.95.tar.bz2<br>tar -xvjf nmap-7.95.tar.bz2<br>cd nmap-7.95/<br>./configure<br>make<br>sudo make install<br>nmap -v</pre><p>Result:</p><pre>Nmap 7.95 ( https://nmap.org )</pre><h3>My Essential Nmap Usage Patterns</h3><h3>Basic Host Discovery</h3><pre>nmap -sn 192.168.1.0/24</pre><blockquote><em>Ping sweep to detect live hosts (no port scan).</em></blockquote><h3>Fast Scan</h3><pre>nmap -F 192.168.1.0/24</pre><blockquote><em>Scans top 100 common ports only (faster recon).</em></blockquote><h3>Top Ports Scan</h3><pre>nmap --top-ports 1000 192.168.1.10</pre><blockquote><em>Scan the most commonly used 1000 ports.</em></blockquote><h3>All Port Scan</h3><pre>nmap -p- 192.168.1.10</pre><blockquote><em>Scan all 65535 TCP ports.</em></blockquote><h3>Service &amp; Version Detection</h3><pre>nmap -sV -p 22,80,443 192.168.1.10</pre><blockquote><em>Identifies services and their versions on specific ports.</em></blockquote><h3>Default Script Scan</h3><pre>nmap -sC 192.168.1.10</pre><blockquote><em>Uses a default set of scripts for quick insights (like HTTP titles, SSL info, etc.).</em></blockquote><h3>Aggressive Scan</h3><pre>nmap -A 192.168.1.10</pre><blockquote><em>Combines OS detection, version, script scan, and traceroute.</em></blockquote><h3>OS Fingerprinting</h3><pre>nmap -O 192.168.1.10</pre><blockquote><em>Attempts to detect the target operating system.</em></blockquote><h3>Vulnerability Scanning</h3><pre>nmap --script vuln 192.168.1.10</pre><blockquote><em>Uses built-in NSE scripts to find known vulnerabilities.</em></blockquote><h3>Advanced Scanning &amp; Optimization Flags</h3><h3>Scan Speed Control</h3><pre>-T0 to -T5</pre><blockquote><em>Timing template: T0 (Paranoid) to T5 (Insane) — higher means faster but noisier.</em></blockquote><h3>Rate Control</h3><pre>--min-rate 1000 --max-rate 5000</pre><blockquote><em>Sets min/max packets per second — helps with slow/fast scans.</em></blockquote><h3>Port Ratio</h3><pre>--port-ratio 0.9</pre><blockquote><em>Scan ports with likelihood ≥90% of being open (based on profile data).</em></blockquote><h3>Reason Flag</h3><pre>--reason</pre><blockquote><em>Show why Nmap considers a port open (e.g., SYN-ACK received).</em></blockquote><h3>Traceroute</h3><pre>--traceroute</pre><blockquote><em>Adds traceroute to scan results — shows network path.</em></blockquote><h3>Packet Trace</h3><pre>--packet-trace</pre><blockquote><em>Shows raw packet send/receive during the scan (for debugging or learning).</em></blockquote><h3>Firewall Evasion &amp; Stealth Techniques</h3><pre>nmap -sS -Pn -T2 -f --data-length 1337 -D 192.168.1.100,ME</pre><ul><li>-sS: SYN scan (stealthy)</li><li>-Pn: No ping, assume target is up</li><li>-f: Fragment packets</li><li>--data-length: Adds padding to packets</li><li>-D: Adds decoys to mask your real IP</li></ul><h3>TCP/IP Header Manipulation (Advanced)</h3><pre>nmap --source-port 53 --ip-options &quot;R&quot; --ttl 133</pre><ul><li>--source-port: Sets source port (e.g., DNS port 53 to bypass firewalls)</li><li>--ip-options: Insert custom IP options (e.g., &quot;R&quot; for record route)</li><li>--ttl: Time To Live manipulation (can fool some firewalls)</li></ul><h3>Output &amp; Reporting</h3><pre>nmap -oA internal_scan -sV 192.168.1.10</pre><blockquote><em>Generates:</em></blockquote><ul><li>internal_scan.nmap: Human-readable</li><li>internal_scan.xml: XML for tools</li><li>internal_scan.gnmap: Greppable output</li></ul><p>Also try:</p><pre>-oX output.xml      # Only XML<br>-oG output.gnmap    # Only grepable<br>-oN output.txt      # Plain text</pre><h3>My Real-World Nmap Combos (from Muscle Memory)</h3><pre>nmap -sC -sV -O -T4 -p- 10.10.10.10<br>nmap --script vuln -p 80,443 10.10.10.10<br>nmap -sS -Pn -T3 --top-ports 1000 192.168.1.0/24<br>nmap -F --reason --traceroute 192.168.1.10</pre><h3>Real-world Use Cases</h3><p><strong>Penetration Testing</strong>: Find pivot points and exposed services<br> <strong>CTFs &amp; Hack The Box</strong>: Always the first recon step automated with bash wrappers<br> <strong>Security Audits</strong>: Build asset inventory, find unpatched software<br> <strong>Firewall Evasion</strong>: Stay stealthy and bypass filters<br> <strong>Debugging Networks</strong>: Use --packet-trace and --reason for deep visibility</p><p>Going Beyond: Nmap + Automation</p><p>I’ve also used:</p><ul><li><strong>Masscan + Nmap</strong> for rapid port discovery followed by deep analysis</li><li><strong>Python scripts</strong> to automate NSE scanning</li><li><strong>Custom NSE scripts</strong> to extend functionality</li></ul><h3>Bonus: Zenmap for Visual Scans</h3><p>While I prefer CLI, Zenmap provides:</p><ul><li>Pre-configured scan profiles</li><li>Network topology maps</li><li>Exportable reports</li></ul><h3>Understanding Results</h3><p>Port State Meaning <strong>Open</strong> Service is actively accepting connections <strong>Closed</strong> No service, but host responds <strong>Filtered</strong> Packet was dropped (likely by firewall)</p><p>With Wireshark + Nmap, I’ve analyzed SYN, RST, and dropped packets to understand deeper behaviors of firewalled targets.</p><h3>Final Thoughts</h3><p>Nmap is not just a scanner; it’s a <strong>network exploration platform</strong>.</p><p>I don’t just know how to use Nmap ,I understand it inside-out, from packet level behaviors to stealth techniques, script debugging, and integration into real attack workflows.</p><p>Let’s connect:<br> LinkedIn: M<a href="https://www.linkedin.com/in/mohamed-basil-966a8225a/">ohamed Basil</a><br> GitHub: <a href="https://github.com/Basilmellow">Basil Mellow</a><br> Tagline: <em>Hacking the Future with Nmap &amp; Beyond.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=624aa6291b5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Linux Forensics Case Study Using Autopsy-M57 Jean Scenario]]></title>
            <link>https://medium.com/@Mindsec/%EF%B8%8F-%EF%B8%8F-linux-forensics-case-study-using-autopsy-m57-jean-scenario-b9f4aa9f9740?source=rss-3c235fa9cb9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9f4aa9f9740</guid>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[autopsy]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mohamed Basil]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 14:08:11 GMT</pubDate>
            <atom:updated>2025-07-28T11:53:56.782Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By MindSec (Mohamed Basil)</em></p><h3>Introduction</h3><p>Digital forensics plays a crucial role in modern incident response. Whether you’re investigating insider threats, data exfiltration, or unauthorized access, tools like <strong>Autopsy</strong> empower analysts to reconstruct events with forensic precision.</p><p>In this case study, I showcase my forensic investigation of the well-known <strong>M57 Jean Case</strong> using <strong>Autopsy on Linux</strong>. This investigation covers metadata analysis, file system inspection, user activity tracking, and reporting everything needed to demonstrate practical DFIR skills.</p><h3>Tools Used</h3><ul><li><strong>Autopsy (Linux version)</strong></li><li><strong>The Sleuth Kit (TSK backend)</strong></li><li><strong>Ubuntu Linux 22.04</strong></li><li><strong>M57 Jean Disk Image (from Digital Corpora)</strong><br> <a href="https://digitalcorpora.org/corpora/scenarios/m57-jean">Download Link</a></li></ul><h3>Case Scenario -The M57 Jean Incident</h3><p>M57 is a fictional company that suspects employee <strong>Jean</strong> of unauthorized activities on her workstation, including:</p><ul><li>Downloading confidential documents</li><li>Using personal USB drives</li><li>Communicating with a competitor</li></ul><p>The company took a forensic image of her system and tasked us with uncovering the truth.</p><h3>Step-by-Step Autopsy Workflow (Linux)</h3><h3>Step 1: Install Autopsy on Linux</h3><pre>sudo apt update<br>sudo apt install autopsy sleuthkit</pre><blockquote><em>Launch Autopsy in the browser using </em><em>autopsy command and follow the link shown (usually </em><a href="http://localhost:9999/autopsy"><em>http://localhost:9999/autopsy</em></a><em>)</em></blockquote><h3>Step 2: Create a New Case</h3><ul><li>Case Name: M57_Jean_Investigation</li><li>Base Directory: ~/autopsy-cases</li><li>Case Number: M57-2025</li><li>Examiner Name: Mohamed Basil</li></ul><h3>Step 3: Add Disk Image</h3><ul><li>Go to <strong>Add Data Source</strong></li><li>Select <strong>Disk Image or VM File</strong></li><li>Browse to jean.raw from the M57 dataset</li><li>Enable key ingest modules:</li><li>File Type Identification</li><li>Recent Activity</li><li>Data Carving</li><li>Web Artifacts</li><li>Hash Lookup</li></ul><h3>Step 4: Analyze the File System</h3><p>Autopsy automatically parses the image. I navigated the file system and discovered:</p><ul><li>Business documents injean ~/Documents/M57-PatentStrategy.docx</li><li>Deleted PDFs with sensitive terms</li><li>Suspicious folders in /home/jean/.mozilla/</li></ul><h3>Step 5: Keyword Search</h3><p>I used custom keyword lists to search for:</p><ul><li>&quot;Confidential&quot;</li><li>&quot;Acquisition&quot;</li><li>&quot;M57 Strategy&quot;</li></ul><p>Results revealed emails and document references suggesting unauthorized knowledge transfer.</p><h3>Step 6: Web Activity</h3><p>Using the <strong>Web Artifacts module</strong>, I found:</p><ul><li>Access to personal Gmail</li><li>Visits to job portals</li><li>Download of compression tools (e.g., 7zip, tar.gz archives)</li></ul><p>These activities hinted at possible file packaging and exfiltration.</p><h3>Step 7: Report Generation</h3><p>Autopsy’s Report tab was used to generate:</p><ul><li><strong>HTML Report</strong>: For executive summary</li><li><strong>Detailed Artifact Report</strong>: For technical documentation</li><li><strong>Screenshots</strong>: Of search hits, file paths, and timelines</li></ul><p>All reports and screenshots are available on my GitHub:<br> <a href="https://github.com/Basilmellow/Autopsy-M57-Linux-Forensics/tree/main">GitHub Repository</a></p><h3>Sample Findings</h3><p>Evidence Type Artifact Found Relevance Deleted Document M57-PatentStrategy.docx (Recovered) Confidential business file USB Metadata Kingston_123_USB Potential exfiltration method Web History gmail.com, job sites Unauthorized access and intent File Timestamps Mismatched modify/delete times Possible anti-forensics attempt</p><h3>What I Learned</h3><ul><li>Autopsy runs efficiently on Linux with Sleuth Kit</li><li>File metadata and timeline analysis are core to attribution</li><li>Even deleted files can still tell a story</li><li>Browser artifacts are key in insider threat cases</li></ul><h3>Why This Project Matters</h3><p>This case study simulates a <strong>real-world DFIR engagement</strong> and highlights my ability to:</p><ul><li>Use <strong>open-source tools</strong> in a Linux forensic lab</li><li>Follow a <strong>structured analysis methodology</strong></li><li>Produce <strong>technical and executive reports</strong></li><li>Communicate findings clearly to stakeholders</li></ul><p>It aligns with job responsibilities in SOC, DFIR, and Threat Intel teams.</p><h3>GitHub Repository</h3><p>🔗 <a href="https://github.com/Basilmellow/Autopsy-M57-Linux-Forensics/tree/main"><strong>View the Project Files, Screenshots, and Report Templates</strong></a></p><p>Includes:</p><ul><li>Autopsy screenshots</li><li>Forensic report templates (DOCX &amp; PDF)</li><li>File Type</li><li>Deleted document hashes</li></ul><h3>Final Thoughts</h3><p>Autopsy is a powerful tool for digital detectives. With the M57 Jean case, I was able to uncover hidden truths using only Linux tools -demonstrating practical incident investigation skills.</p><p>If you’re building a DFIR team or training future responders -this kind of exercise is a must.</p><p><em>MindSec-Hacking the Future</em></p><p><a href="http://www.linkedin.com/in/mohamed-basil-966a8225a">Connect on LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9f4aa9f9740" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Operationalizing Splunk for Blue Team Success: From Ingestion to Threat Detection]]></title>
            <link>https://medium.com/@Mindsec/operationalizing-splunk-for-blue-team-success-from-ingestion-to-threat-detection-cdd584e29c66?source=rss-3c235fa9cb9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdd584e29c66</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[splunk]]></category>
            <dc:creator><![CDATA[Mohamed Basil]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 17:41:04 GMT</pubDate>
            <atom:updated>2025-07-28T11:54:35.116Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Splunk is far more than just a log search engine — it’s a security operations platform. In this post, I’ll walk through how I built a fully functional blue-team-centric Splunk lab with production-style use cases, including:</p><ul><li>Efficient log ingestion and filtering</li><li>Alerting and threat detection</li><li>Index optimization and retention</li><li>Threat intelligence enrichment</li><li>Custom dashboards and data correlation</li></ul><p>This walkthrough is suitable for anyone preparing for a SOC role, working with SIEM tools, or aiming to use Splunk beyond just basic dashboards.</p><h3>Lab Architecture:</h3><ul><li><strong>Splunk Enterprise (local instance)</strong> on Ubuntu VM</li><li><strong>Forwarders</strong>: Universal Forwarder on Windows and Linux</li><li><strong>Log Sources</strong>:</li><li>Windows Event Logs (4625, 4624, 4672)</li><li>Linux auth.log, secure.log</li><li>Simulated Apache and Firewall logs</li><li>Custom threat feed CSV (public threat intel)</li></ul><h3>Log Ingestion &amp; Filtering</h3><p><strong>1. Index Setup (indexes.conf):</strong></p><pre>[win_logs]<br>homePath = $SPLUNK_DB/win_logs/db<br>coldPath = $SPLUNK_DB/win_logs/colddb<br>thawedPath = $SPLUNK_DB/win_logs/thaweddb<br>frozenTimePeriodInSecs = 2592000</pre><pre>[linux_logs]<br>homePath = $SPLUNK_DB/linux_logs/db<br>coldPath = $SPLUNK_DB/linux_logs/colddb<br>thawedPath = $SPLUNK_DB/linux_logs/thaweddb<br>frozenTimePeriodInSecs = 2592000</pre><p><strong>2. Dropping Noisy Logs at Ingestion (props.conf + transforms.conf):</strong></p><pre># props.conf<br>[linux_logs]<br>TRANSFORMS-null_debug = setnull</pre><pre># transforms.conf<br>[setnull]<br>REGEX = DEBUG<br>DEST_KEY = queue<br>FORMAT = nullQueue</pre><p>This eliminates unnecessary debug logs from ever being indexed.</p><h3>Alerting &amp; Detection Rules</h3><p><strong>1. Brute-force SSH Detection:</strong></p><pre>index=linux_logs EventCode=FAILED_SSH<br>| stats count by src_ip, user<br>| where count &gt; 5</pre><p><strong>2. Admin Login Alert (Windows):</strong></p><pre>index=win_logs EventCode=4672<br>| table _time, Account_Name, host</pre><p><strong>3. Suspicious Login from Foreign IP:</strong></p><pre>index=win_logs OR index=linux_logs EventCode=4624 OR EventCode=22<br>| lookup geolocation.csv ip as src_ip OUTPUT country<br>| where country!=&quot;India&quot;</pre><h3>Threat Intelligence Integration</h3><p><strong>Custom Threat Lookup:</strong></p><pre># threatlist.csv<br>malicious_ip<br>45.10.20.3<br>13.67.98.1</pre><p><strong>Enrichment SPL:</strong></p><pre>index=linux_logs OR index=win_logs<br>| lookup threatlist.csv malicious_ip as src_ip OUTPUT malicious_ip AS matched_ip<br>| where isnotnull(matched_ip)<br>| table _time, src_ip, matched_ip, host, user</pre><h3>Dashboard Overview</h3><ul><li><strong>Failed Login Dashboard</strong>: SSH/Windows login failures by IP/user</li><li><strong>Threat Intel Match</strong>: Any log matched against threat feed</li><li><strong>Login GeoMap</strong>: Visualize logins by region</li><li><strong>Index Volume Tracker</strong>: Monitor daily growth per index</li></ul><h3>Index Management Strategy</h3><p><strong>Storage Controls:</strong></p><ul><li>frozenTimePeriodInSecs per index</li><li>Summary indexing for daily event counts</li><li>NullQueue filtering for DEBUG, TRACE logs</li></ul><p><strong>Summary Index SPL:</strong></p><pre>index=linux_logs EventCode=FAILED_SSH<br>| stats count by src_ip<br>| collect index=summary_failed_ssh</pre><h3>Conclusion:</h3><p>This lab simulates real-world Splunk usage in blue team operations — from ingestion to analysis, with retention and performance controls built-in. These setups make Splunk more efficient, scalable, and security-aware.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdd584e29c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>