<?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 Abdul Matheen on Medium]]></title>
        <description><![CDATA[Stories by Abdul Matheen on Medium]]></description>
        <link>https://medium.com/@abdmath05?source=rss-a88d575fea29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JAnWk0qut7iTj2Ov</url>
            <title>Stories by Abdul Matheen on Medium</title>
            <link>https://medium.com/@abdmath05?source=rss-a88d575fea29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:50:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abdmath05/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[OffSec Echo Response Week 1: ProtoVault Breach | My Beginner CTF Journey]]></title>
            <link>https://medium.com/@abdmath05/offsec-echo-response-week-1-protovault-breach-my-beginner-ctf-journey-5785c885baa5?source=rss-a88d575fea29------2</link>
            <guid isPermaLink="false">https://medium.com/p/5785c885baa5</guid>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[cybersecuirty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Abdul Matheen]]></dc:creator>
            <pubDate>Tue, 14 Oct 2025 11:49:06 GMT</pubDate>
            <atom:updated>2025-10-14T11:49:06.997Z</atom:updated>
            <content:encoded><![CDATA[<p>This was <strong>Week 1</strong> of the <strong>OffSec Echo Response</strong> event a weekly cybersecurity investigation challenge by <strong>OffSec</strong> where every week, a new case is released. The goal is to analyse real-world style incidents and find key clues hidden in code, logs, or network artifacts.</p><p>For <strong>Week 1</strong>, the challenge was titled <strong>“ProtoVault Breach.”</strong><br> We were given two main things:</p><ul><li>A <strong>source code repository</strong> (the company’s internal application files)</li><li>A <strong>ransom email</strong> claiming data had been exfiltrated</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*udAQEwWKORGtL4kCS66t9g.png" /></figure><p>As someone who’s still learning the foundations of cybersecurity, this one felt like a real investigation confusing at first, but rewarding once everything clicked.</p><h3><strong>Questions Asked</strong></h3><p>The challenge consisted of four parts:</p><ol><li><strong>Determine if the leak could have come from the application.</strong><br> Review the database connection string to ensure it is secure. Submit the connection string here.</li><li><strong>Review the other source files.</strong><br> Which one may have leaked the database? Provide the file name.</li><li><strong>Using the results of your analysis, discover the public address of the database leak.</strong><br> Verify the contents of the leak by submitting the password hash for <em>Naomi Adler.</em></li><li><strong>Submit the public address of the database leak, including the name of the file.</strong></li></ol><h3><strong>Step 1: Checking if the Leak Came from the Application</strong></h3><p>The first task was to look inside the application’s source code to see if there were any hardcoded database credentials or insecure connection strings.</p><p>So I ran a simple recursive search inside the project directory:</p><pre>grep -R &quot;postgresql&quot; .</pre><p>I found a typical connection string inside the <strong>app.py</strong> file:</p><pre>SQLALCHEMY_DATABASE_URI = &quot;postgresql://appuser:SecurePass123@localhost:5432/protovault&quot;</pre><p>This looked like a <strong>PostgreSQL</strong> connection string. While it used a “local” database (so not publicly exposed), it still had a <strong>hardcoded username and password</strong> directly in the code which is a <strong>security flaw</strong>. This shows the application itself was <em>not directly leaking the database externally</em>, but its configuration was insecure.</p><h3>Step 2: Finding Which File Leaked the Database</h3><p>The next task was to find any other source file that might have leaked real data.<br> I searched the entire repo for words like backup, dump, or .sql:</p><pre>git log --all --name-only --pretty=format: | sort -u | grep -Ei &#39;\.sql$|dump|backup&#39;</pre><p>This revealed a suspicious file:</p><pre>app/util/backup_db.py</pre><p>When I opened the historical commits for that file, I found a Python script containing this:</p><pre>S3_BUCKET = &quot;protoguard-asset-management&quot;<br>S3_KEY = &quot;db_backup.xyz&quot;<br>S3_REGION = &quot;us-east-2&quot;</pre><p>The script connected to the production PostgreSQL database via SSH, dumped the database using pg_dump, encoded it with <strong>ROT13</strong>, and uploaded it to an <strong>Amazon S3 bucket</strong>.</p><p>That was a major red flag this file was <strong>automating database uploads</strong> to cloud storage, and it was likely the reason for the breach.</p><h3>Step 3 : Discovering the Public Database Leak</h3><p>Since the script showed the bucket name and region, I used the typical S3 public URL format:</p><pre>https://&lt;bucket-name&gt;.s3.&lt;region&gt;.amazonaws.com/&lt;file-name&gt;</pre><p>By replacing the variables, I got:</p><pre>https://protoguard-asset-management.s3.us-east-2.amazonaws.com/db_backup.xyz</pre><p>When I opened this URL in the browser the file <strong>downloaded successfully</strong>!<br> That confirmed the <strong>database backup was publicly accessible</strong>.</p><p>The .xyz file seemed odd at first, but remembering the script encoded it using ROT13, I decoded it:</p><pre>cat db_backup.xyz | tr &#39;A-Za-z&#39; &#39;N-ZA-Mn-za-m&#39; &gt; db_backup.sql</pre><p>Inside, I found user data, including the entry for <strong>Naomi Adler</strong>:</p><pre>11  Naomi  Adler  Cognitive Systems Research  naomi.adler  pbkdf2:sha256:600000$YQqIvcDipYLzzXPB$598fe450e5ac019cdd41b4b10c5c21515573ee63a8f4881f7d721fd74ee43d59</pre><h3>Reflection</h3><p>As someone still learning cybersecurity, this was a <em>really eye-opening</em> CTF.<br> It taught me how easily real-world breaches can happen just from small misconfigurations like a developer uploading database backups to a public S3 bucket or leaving credentials in code.</p><p>Here’s what I learned:</p><ul><li>Git history can contain sensitive data that’s still accessible even after deletion.</li><li>Hardcoded credentials are a massive security risk.</li><li>Encoding ≠ encryption: ROT13 was used here, which offers zero protection.</li><li>Always secure cloud storage with proper permissions.</li></ul><h3>Final Thoughts</h3><p>This was <strong>Week 1</strong> of the <strong>OffSec Echo Response</strong> challenge series <strong>ProtoVault Breach</strong>.</p><p>As a beginner, it definitely took some time and a few hints to figure out, but each step made me more confident in approaching incident investigations.</p><p>Every week, OffSec releases a new challenge, and I’ll be writing a walkthrough for each one I complete. If you’re new to cybersecurity, I <em>highly</em> recommend joining in it’s the best kind of hands-on learning.</p><h3>Shoutout</h3><p>I had a lot of help, hints, and motivation from the amazing <strong>OffSec community</strong>, especially <strong>RedHatAugust </strong>his insights and encouragement really kept me going through this one.</p><p><strong>Follow RedHatAugust:</strong></p><ul><li><a href="https://www.youtube.com/@RedHatAugust">YouTube</a></li><li><a href="https://www.linkedin.com/in/anthony-radzykewycz-64700251/">LinkedIn</a></li><li><a href="https://x.com/redhataugust">X (formerly Twitter)</a></li><li><a href="https://www.twitch.tv/redhataugust">Twitch</a></li><li><a href="https://www.tiktok.com/@redhataugust">TikTok</a></li><li><a href="https://www.instagram.com/redhataugust/">Instagram</a></li><li><a href="https://buymeacoffee.com/redhataugust">Buy Me a Coffee</a></li></ul><p><strong>Follow Me:</strong></p><p><a href="https://www.linkedin.com/in/abdmath">LinkedIn</a></p><p><a href="https://github.com/abdmath">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5785c885baa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>