<?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 Obinna Obidegwu on Medium]]></title>
        <description><![CDATA[Stories by Obinna Obidegwu on Medium]]></description>
        <link>https://medium.com/@nobinnaobidegwu?source=rss-c86218059e0c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zrvO2SSWY7h77lp0</url>
            <title>Stories by Obinna Obidegwu on Medium</title>
            <link>https://medium.com/@nobinnaobidegwu?source=rss-c86218059e0c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:32:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nobinnaobidegwu/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[Implementing Root Account Monitoring in AWS Using CloudTrail, SNS, and CloudWatch]]></title>
            <link>https://medium.com/@nobinnaobidegwu/implementing-root-account-monitoring-in-aws-using-cloudtrail-sns-and-cloudwatch-701f86692483?source=rss-c86218059e0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/701f86692483</guid>
            <dc:creator><![CDATA[Obinna Obidegwu]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 00:09:22 GMT</pubDate>
            <atom:updated>2025-07-27T00:11:09.860Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the core principles of cloud security is <strong>monitoring for sensitive actions, </strong>especially when it comes to the <strong>AWS root account</strong>, which has full access to everything. In this project, I simulated a root account login and built a real-time alerting system using native AWS tools like CloudTrail, CloudWatch, and SNS.</p><h3>Objective</h3><p>Set up a monitoring system that detects when the root account is used and immediately sends alerts via email (my preferred medium)</p><h3>Tools Needed:</h3><ul><li><strong>AWS Console</strong></li><li><strong>CloudTrail</strong></li><li><strong>IAM</strong></li><li><strong>Amazon SNS (Simple Notification Service)</strong></li></ul><h3>Step 1: Simulate Root Account Activity</h3><p>I started by logging in with the AWS root user (for demo purposes only — <strong>never do this in production</strong> unless absolutely necessary).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PhvHwpBr9ITW2ux0kwK-_w.png" /></figure><p>Then I performed a simple action like visiting the billing dashboard and navigating to the Security Credentials section under the IAM tab to disable MFA (just for the purpose of this article).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mPD0bxi3oLSmtfyZuf44eA.png" /><figcaption>Billing dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nKBoHVwwHwVVcw3GgcK9YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5xgMAo-8agUo2xM_2Qg0A.png" /></figure><h3>Step 2: Enable CloudTrail</h3><p>I enabled CloudTrail to log all account activity. This included:</p><ul><li>Firstly, by going to CloudTrail tab, I created and named a trail RootManagement-events (you can give yours any name).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEIvvfCZhY7u2hHfyZBTxQ.png" /></figure><ul><li>Next is creating a CloudTrail attribute and storing logs in an S3 bucket. You can create a new S3 bucket or use an existing one to store logs.</li><li>Applying it across all AWS regions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeqJ6x7AaLqUGb8tW4cijA.png" /></figure><h3>Step 3: Set Up SNS for Alerts</h3><p>Navigating to Create topic in the SNS tab, I created an SNS topic called RootManagament_Topic and set up a subscription to my email so I’d get notified instantly when root access occurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SMaIXhQHj_nTYCkjw9NsKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ifsBHCTIP_USARQpGF3zxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqsBWaEQLajOJy1EePNMWQ.png" /><figcaption>SNS topic after creation</figcaption></figure><p>After this set up, a confirmation mail will be sent to you email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*7_wuWe7HLpf7WzZDPJJKkw.png" /></figure><h3>Step 4: Build CloudWatch Rule to Detect Root Logins</h3><p>Navigating to CloudWatch&gt;View Events&gt;Event Buses&gt;Rules, I created a CloudWatch rule, picking the custom pattern (JSON editor) and adding my desired event pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6weKJag2KoGHoZ0-cAwmLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xj4_cF0h7H0I0oQ6qLTKVg.png" /></figure><p>This custom CloudWatch rule created looks for this specific event:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*piNejEz-IVKT1M9UjjgPqA.png" /></figure><p>Then I connected this rule to the SNS topic created earlier, so that every root login would trigger a notification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p6FQIGbDQcEO53j9kEnoKA.png" /></figure><h3>Step 5: Test the Setup</h3><p>To confirm everything works, I logged out and signed back in with the root account. Within seconds, I received an alert in my inbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmwGGwiAIYMHshBArslpEw.png" /></figure><h3>Final Thoughts</h3><p>This project highlighted the importance of <strong>proactive monitoring</strong> in cloud security, especially when it comes to high-privilege identities like the AWS root account.</p><p>By combining <strong>CloudTrail, CloudWatch, and SNS</strong>, I built a simple but effective alerting system that immediately notifies you if the root account is accessed. This setup not only strengthens visibility but also adds a layer of accountability to cloud operations.</p><p>In real-world environments, this type of setup is critical for early threat detection, compliance, and incident response readiness.</p><p>This exercise helped reinforce the value of <strong>“detect, alert, and respond”</strong> in a cloud-native way, which is a great first step toward building a more secure AWS environment.</p><p><strong>Thanks for reading!</strong><br> If you’re diving into cloud security yourself, I highly recommend trying this out, it’s a great way to connect theory with real AWS tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=701f86692483" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-By-Step Guide on Securing your First S3 Buckets & IAM User]]></title>
            <link>https://medium.com/@nobinnaobidegwu/step-by-step-guide-on-securing-your-first-s3-buckets-iam-user-d750cbdb0c04?source=rss-c86218059e0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d750cbdb0c04</guid>
            <dc:creator><![CDATA[Obinna Obidegwu]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 20:44:09 GMT</pubDate>
            <atom:updated>2025-07-26T20:44:09.796Z</atom:updated>
            <content:encoded><![CDATA[<h3>Securing your First S3 Buckets &amp; IAM User</h3><p>As part of my cloud security learning journey, I recently set up a simple, but intentionally flawed, Amazon S3 bucket to simulate a real-world security misconfiguration. The goal? <strong>Create a public bucket, test access, then lock it down and fix it,</strong> essentially walking through how vulnerabilities can arise and how to remediate them properly.</p><h3>Tools You’ll Use</h3><ul><li>AWS Console</li><li>S3</li><li>IAM</li></ul><p>Here’s a breakdown of what I did and what I learned.</p><h3>Step 1: Creating a Public S3 Bucket</h3><p>I started off by creating an S3 bucket from the AWS Console and you can name it anything. One key thing I did <em>on purpose</em> was to <strong>uncheck “Block all public access”</strong>, which is something you should <em>never</em> do in production — but it’s great for testing and demonstrating the risks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIK7sOVNeMwtAbR5whnLhA.png" /></figure><h3>Step 2: Uploading a Test File</h3><p>Next, I uploaded a simple file named S bucket test file.txt containing some dummy confidential content. This served as the &quot;data at risk&quot; in our simulated insecure bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4L_M0Zh9jM-e8xUBmIRV-w.png" /></figure><h3>Step 3: Making the Bucket Public</h3><p>To simulate unauthorized public access, I edited the bucket policy to allow s3:GetObject from &quot;*&quot; (i.e., anyone on the internet). Here&#39;s the policy I used:</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;PublicReadGetObject&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: &quot;*&quot;,<br>      &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::obinna-cloudsec-demo/*&quot;<br>    }<br>  ]<br>}</pre><blockquote><em>Now, anyone who had the link to the file could access it, with no form of authentication needed.</em></blockquote><h3>Step 4: Creating an IAM User (junior-analyst)</h3><p>Next, I created an IAM user named junior-analyst and assigned them <strong>AmazonS3FullAccess </strong>permissions., doing this via the IAM Console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*feEwviAFTAbhZCGmKRWeXA.png" /></figure><h3>Step 5: Fixing the Misconfiguration (Proper Lockdown)</h3><p>Here’s where I switched hats from an attacker to a cloud defender.</p><ul><li>I deleted the overly permissive public bucket policy and re-enabled the <strong>“Block all public access”</strong> setting in the bucket, thus removing all public access</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0r0T7HYDa3Ked9Gb7Lsn5g.png" /></figure><ul><li>Then I created a scoped policy that <strong>only allowed the </strong><strong>junior-analyst IAM user</strong> (using their specific ARN) to access the S3 bucket.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hrfjMrHkSFxs484JbiQYSg.png" /></figure><h3>Step 6: Enabling S3 Server Access Logging</h3><p>Finally, I enabled <strong>server access logging</strong> for the bucket to record all requests made to the bucket, by navigating to the property tab. Then I directed the logs to a secure, dedicated log bucket for auditing purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjt6Og7t8rXyod0vNCJ1JA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ai_IKWSl2UFVinIT5zqROw.png" /></figure><h3>Final Thoughts</h3><p>Misconfigured cloud storage, especially Amazon S3 buckets, is one of the <strong>most common causes of data breaches</strong> today. From leaked customer data to exposed credentials, a single checkbox or overly permissive policy can put an entire organization at risk.</p><p>I created this project to <strong>understand how these mistakes happen</strong>, how attackers exploit them, and most importantly, how to <strong>properly secure cloud resources using IAM, bucket policies, and logging</strong>.</p><p>By simulating a real-world misconfiguration and walking through the steps to fix it, I gained practical skills in:</p><ul><li>Identifying public access vulnerabilities</li><li>Applying the principle of least privilege</li><li>Auditing access using server logs</li></ul><p>In cloud security, knowing how to fix something is just as important as knowing how to break it.</p><p>This exercise not only sharpened my AWS skills but reinforced the critical mindset of <strong>secure-by-default cloud architecture, </strong>something every cloud or security professional needs today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d750cbdb0c04" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>