<?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 EhistheGreat on Medium]]></title>
        <description><![CDATA[Stories by EhistheGreat on Medium]]></description>
        <link>https://medium.com/@samuelehis2003?source=rss-319200ab2d50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DD2acaJjDWg6hbFW</url>
            <title>Stories by EhistheGreat on Medium</title>
            <link>https://medium.com/@samuelehis2003?source=rss-319200ab2d50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:33:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samuelehis2003/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[ Network Threat Detection in the Cloud Using Suricata and VPC Traffic Mirroring]]></title>
            <link>https://medium.com/@samuelehis2003/network-threat-detection-in-the-cloud-using-suricata-and-vpc-traffic-mirroring-f02d4b3635c0?source=rss-319200ab2d50------2</link>
            <guid isPermaLink="false">https://medium.com/p/f02d4b3635c0</guid>
            <category><![CDATA[aws-vpc]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[suricata]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <dc:creator><![CDATA[EhistheGreat]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 08:50:53 GMT</pubDate>
            <atom:updated>2025-07-29T08:50:53.120Z</atom:updated>
            <content:encoded><![CDATA[<h3>Objective</h3><p><strong>Goal:</strong> Detect suspicious network activity within an AWS VPC using open-source tools.</p><p>What we’ll build:</p><ul><li>A mini cloud lab with <strong>two EC2 instances</strong>:</li><li><strong>Victim Instance</strong> (simulates user/attacker activity)</li><li><strong>Monitor Instance</strong> (runs Suricata for deep packet inspection)</li><li><strong>VPC Traffic Mirroring</strong> to send victim traffic to the monitor instance</li><li><strong>Suricata</strong> for alert generation and log inspection</li></ul><h4>Architecture Diagram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbUtvhjU3xsJiFpLZwBJmA.png" /></figure><h3>Step 1: VPC and Network Configuration</h3><p><strong>Create a new VPC</strong> (or use an existing one):</p><ul><li>CIDR block: 10.0.0.0/16</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHfYl6Vn0uFNNAIw4SHsBg.png" /></figure><p><strong>Create one public subnets</strong></p><ul><li>10.0.0.0/24 for both EC2 instances in that subnet.</li></ul><p><strong>Set up an Internet Gateway</strong> and attach it to the VPC.</p><p><strong>Create a Route Table</strong>:</p><ul><li>Add a route: 0.0.0.0/0 → Internet Gateway.</li><li>Associate it with your subnet</li></ul><p><strong>Launch two EC2 instances</strong>:</p><ul><li><strong>Victim</strong>: Ubuntu, with basic tools (curl, nmap, etc)</li><li><strong>Monitor</strong>: Ubuntu, where you’ll install Suricata.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0GfHgc5ayagG6rYvgoxjPw.png" /></figure><p><strong>Security Groups</strong>:</p><ul><li>Allow SSH (port 22) for both.</li><li>Allow ICMP (ping) between them</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pnGzCAve3Oxf9TSRLWzO3w.png" /></figure><h3>Step 2: Set Up VPC Traffic Mirroring</h3><p><strong>Create a Traffic Mirror Target</strong>:</p><ul><li>Target type: Network Interface of the <strong>Monitor</strong> EC2 instance.</li></ul><p><strong>Create a Traffic Mirror Filter</strong>:</p><ul><li>Add rules to allow:</li><li><strong>All ingress and egress</strong> traffic (or filter specific TCP/UDP protocols).</li></ul><p><strong>Create a Traffic Mirror Session</strong>:</p><ul><li>Source: Network Interface of <strong>Victim EC2</strong>.</li><li>Target: The Mirror Target you created.</li><li>Filter: The Mirror Filter.</li><li>Session number: 1</li></ul><p>✅ This mirrors packets from the Victim’s interface to the Monitor’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WxOLpmIioy4rFGiVHGyVnQ.png" /></figure><h4>🛡️ Step 3: Install and Configure Suricata on Monitor EC2</h4><p>ssh into the monitor ec2 using “ ssh -i key.pem ubuntu@public_ip”</p><pre>commands :sudo add-apt-repository ppa:oisf/suricata-stable<br>sudo apt update<br>sudo apt install suricata -y</pre><p>Confirm Interface Name,</p><p>command: ip a</p><p>if it eth0, then leave — but if it ens5 you have to change he suricate config file</p><p>search for af-packet: in /etc/suricata/suricata.yaml and add</p><p>ens5 instead of eth0 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3vdMI7k-be-sjsI_Av3mg.png" /></figure><h4>Then start suricata tool using :</h4><pre>command: sudo systemctl enable suricata<br> sudo systemctl start suricata</pre><h4>Step 5: make sure both monitor ec2 and victim can ping each other</h4><p>ssh into both instances and check connectivity</p><p>. from monitor ec2 ping victim instance private ip</p><p>. from victim ec2 ping monitor instance private ip</p><pre>ping &lt; monitor private_ip &gt;<br>ping &lt; victim private_ip &gt;</pre><h3>Step 6. Simulate Attacks from the Victim</h3><p>SSH into the <strong>victim EC2</strong> and try:</p><p><strong>Port Scan (Nmap)</strong></p><pre>nmap -sS 8.8.8.8</pre><h3>Step 7. View Suricata Alerts</h3><p>On the <strong>Monitor EC2</strong>:</p><pre>sudo tail -f /var/log/suricata/fast.log</pre><p>for more detailed log :</p><pre>sudo tail -f /var/log/suricata/eve.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wk-pK8lIp0xRr_x6mre9Ug.png" /><figcaption>picture of the suricata fast.log</figcaption></figure><h3>🎯 What I Learned</h3><ul><li>VPC Traffic Mirroring is powerful for cloud threat detection.</li><li>Suricata is a flexible and open-source NIDS.</li><li>Network attacks (even small scans) can be easily detected when configured correctly.</li><li>Real-time packet monitoring in the cloud is very possible without needing paid tools or aws services ( aws guardduty )</li><li>you can add rules of your choice in suricate for whatever traffic you want to detect and log .</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f02d4b3635c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Root Account Monitoring with CloudTrail + SNS On AWS]]></title>
            <link>https://medium.com/@samuelehis2003/root-account-monitoring-with-cloudtrail-sns-on-aws-c77d496b40b3?source=rss-319200ab2d50------2</link>
            <guid isPermaLink="false">https://medium.com/p/c77d496b40b3</guid>
            <category><![CDATA[aws-event]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-cloudwatch]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[EhistheGreat]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 01:07:25 GMT</pubDate>
            <atom:updated>2025-07-24T01:14:07.997Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔧 Objective:</h3><p>Simulate sensitive activity from the AWS root account and detect it using CloudTrail logs and automated alerts via SNS.</p><h3>Tools Used:</h3><p>AWS CloudTrail</p><p>SNS (Simple Notification Service)</p><p>CloudWatch Events (now EventBridge)</p><p>IAM</p><p>AWS Management Console</p><h4>1. AWS CloudTrail</h4><h4>What it is:</h4><p>A service that <strong>logs every API call and activity</strong> in your AWS account — who did what, from where, and when.</p><h4>2. Amazon SNS (Simple Notification Service)</h4><h4>What it is:</h4><p>A <strong>messaging service</strong> used to send <strong>notifications</strong> (email, SMS, HTTP, etc.) to subscribers.</p><h4>3. IAM (Identity and Access Management)</h4><h3>What it is:</h3><p>The AWS service used to manage <strong>users, permissions, and roles</strong> securely.</p><h4>4. Amazon EventBridge (CloudWatch Events)</h4><h4>What it is:</h4><p>An <strong>event bus system</strong> that watches for specific activity in your AWS account and <strong>automatically triggers actions</strong>.</p><h3>5. Amazon S3 (Simple Storage Service)</h3><h3>What it is:</h3><p>An object storage service for storing files (objects), including <strong>logs and backups</strong>.</p><h4>STEP 1 : Log In Using Root Account</h4><p>Log in using the root user (email + password + MFA if configured).</p><p>Avoid using root in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4gFfymU8zZhvOCf8fzeuQ.png" /></figure><h4>Step 2: Perform Sensitive Action</h4><p>Examples:</p><ul><li>Disable MFA on root account</li><li>Open Billing Dashboard</li><li>Create/Delete an IAM user or policy</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VFbAyD4p7-g3k_ZQ95qatg.png" /><figcaption>The billing Dashboard</figcaption></figure><h4>Step 3: Enable CloudTrail</h4><p>Steps:</p><ul><li>Go to <strong>CloudTrail</strong> in AWS Console</li><li>Create a <strong>new trail</strong> if one doesn’t exis</li><li>Enable <strong>Management Events</strong></li><li>Send logs to an <strong>S3 bucket</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODrpCCCmpFN1_-Yax9VnjA.png" /></figure><h4>Step 4:Set Up SNS Topic</h4><ul><li><strong>Steps:</strong></li><li>Go to SNS &gt; Create Topic</li><li>Select “Standard”</li><li>Give it a name like RootAccountAlert</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*07EB-dViwAiCr4h6jYP5uQ.png" /></figure><h4><strong>Step 5: create a subscription</strong></h4><p>Create an Sns Subscription and Add the PROTOCOL of your choice (where you want SNS to send notifications to) - i used Email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JDczUu7YMFQzbAaeE6ehQg.png" /></figure><h4>Step 6. Create CloudWatch Event Rule</h4><p><strong>created an Amazon EventBridge (CloudWatch Events) </strong>and set the target to SNS Topic created earlier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56tX1UKjP6AQxC6o0TcJzw.png" /></figure><h4>Step 7: Testing Setup</h4><p>Log out and log in again using the root account.Perform another sensitive action (e.g., open billing or IAM).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fiWTW3TJnknSDSmLmjO8yg.png" /></figure><h3>What I Did:</h3><p>I set up a system to detect when the AWS root account is used. I first logged in with the root account and performed a sensitive action. I then enabled CloudTrail to log all management events into an S3 bucket. Next, I created an SNS topic and subscribed my email. Using CloudWatch Event Rules, I created a trigger that listens for any activity by the root account and sends an alert via SNS. I tested the entire setup by logging in again as root and confirmed that I received the alert.</p><h3>What I Learned:</h3><ul><li>How to use <strong>CloudTrail</strong> to monitor AWS activity</li><li>Importance of tracking <strong>root account usage</strong> for security</li><li>How to configure <strong>SNS alerts</strong> and automate notifications</li><li>Practical use of <strong>EventBridge</strong> (CloudWatch Events) for log-based detection</li><li>Root account activity is one of the highest-risk behaviors in AWS and should be closely monitored, if not disabled altogether in production.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c77d496b40b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Simulated and Secured an S3 Bucket: A Hands-On Cloud Security]]></title>
            <link>https://medium.com/@samuelehis2003/how-i-simulated-and-secured-an-s3-bucket-a-hands-on-cloud-security-71a97ea6d62e?source=rss-319200ab2d50------2</link>
            <guid isPermaLink="false">https://medium.com/p/71a97ea6d62e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[EhistheGreat]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 03:04:42 GMT</pubDate>
            <atom:updated>2025-07-23T03:04:42.997Z</atom:updated>
            <content:encoded><![CDATA[<h4>Demo OBJECTIVE : Understand how misconfiged S3 buckets and IAM policies can lead to security issues — and how to fix them.</h4><p>TOOLS NEEDED:</p><p>AWS console</p><p>IAM USER</p><p>AWS CLI(OPTIONAL)</p><p>S3 RESOURCE</p><h4>S3 bucket is Amazon (Simple Storage Service):</h4><p>is a fully managed cloud storage service provided by AWS. It allows you to store and retrieve any amount of data, at any time, from anywhere on the web. Each s3 bucket has a unique name . The files/folders you save are referred to as object while where you save them are called bucket. This service is used to save backup files, log files, application data and more.</p><h4>STEP 1: create an s3 bucket with a unique name :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ik5rBDouFWDpScaWrQ8RxA.png" /></figure><h4>Step 2: click on the s3 bucket you created and upload a file or a folder .</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQ8j519_NWQsXCiQ46VUSA.png" /></figure><h4>Step 3 : disable the “block all public access “</h4><p>By default, S3 buckets are private. This means:</p><p>No one (not even other AWS users) can access the files unless you explicitly grant permission.</p><p>AWS has “Block Public Access” settings enabled to prevent accidental exposure. To simulate a common misconfiguration, I manually removed these safeguards and made the bucket publicly accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzT99LS8jBuQTjWUIkpMCw.png" /></figure><h4>Step 4: Creating a bucket policy</h4><p>Created a bucket policy to allow every on the internet access to my s3 bucket and also allow them download the object in the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y46D-x1r8PsZi0e37m4s7w.png" /></figure><h4>Step 5: Securing the Bucket by Restricting Access to One IAM User</h4><p>After simulating a public misconfiguration, the next goal is to fix the issue by applying the principle of least privilege. Instead of letting everyone access the bucket, I now want only one IAM user.</p><p>created an new IAM USER named — junior-analyst</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6TxxGH0vlxAe5f2WHIc2Jg.png" /></figure><h4>Step 6 :Give the new IAM user ( junior-analyst ) amazons3fullaccess</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEk55LfOLnx8gSeW8Pdraw.png" /></figure><h4>Step 7: Remove Public Access from the Bucket</h4><p>✅ A. Re-enable “Block Public Access” Go to S3 Console → Click your bucket (thegreat-cloudsec-demo) — Go to Permissions — Click Edit under Block public access (bucket settings)</p><p>✅ Check all boxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Te5qIrvAN2NVI0vdBXS-GA.png" /></figure><h4>Step 8: Delete the bucket policy created.</h4><p>Deleted the stimulated bucket policy created in step 5 that gave the internet permission to access the s3 bucket and download the objects in that bucket ✅</p><h4>Step 9: Lockdown Complete</h4><p>Bucket Now Accessible Only by Root and Selected IAM User After deleting the bucket policy in Step 7, we’ve fully transitioned from bucket policy–based access control to IAM-based access control only. At this point:</p><p>🔐 Only the root user and the IAM user junior-analyst who has been granted full S3 access can access the bucket.</p><p>🚫 No other IAM user can see or access this bucket unless explicitly given permission via their IAM policy</p><p>🌍 The public cannot access or even detect the existence of this bucket.</p><p>💡 Security Best Practice is now achieved fine-grained, identity-based access without any overly permissive bucket policy exposure.</p><p>✅ Mission accomplished: our S3 bucket is now secure, private, and only accessible by trusted identities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71a97ea6d62e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>