<?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 Surya Naga Sesank Munukutla on Medium]]></title>
        <description><![CDATA[Stories by Surya Naga Sesank Munukutla on Medium]]></description>
        <link>https://medium.com/@sesanknagamunukutla?source=rss-b319c767e95b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FnCedQKMQ2tMr5vWFqREAw.png</url>
            <title>Stories by Surya Naga Sesank Munukutla on Medium</title>
            <link>https://medium.com/@sesanknagamunukutla?source=rss-b319c767e95b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:07:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sesanknagamunukutla/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 Zero Trust Serverless Security Architecture on Google Cloud]]></title>
            <link>https://sesanknagamunukutla.medium.com/building-a-zero-trust-serverless-security-architecture-on-google-cloud-51630e2f404a?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/51630e2f404a</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[gcp-app-dev]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Fri, 29 May 2026 05:09:27 GMT</pubDate>
            <atom:updated>2026-05-29T05:20:37.876Z</atom:updated>
            <content:encoded><![CDATA[<p>Most serverless deployments start with a simple objective:</p><p>Deploy an application and make it accessible.</p><p>Unfortunately, that often translates into publicly exposed services with minimal security controls, limited observability, and little understanding of how requests traverse the platform.</p><p>I wanted to take a different approach.</p><p>Instead of simply deploying a Cloud Run application, I wanted to answer a more interesting question:</p><p><strong>How would a security engineer design a Zero Trust architecture around a serverless workload on Google Cloud Platform (GCP)?</strong></p><p>The result was a layered security architecture built entirely with Terraform using:</p><ul><li>Cloud Run</li><li>Global External HTTP Load Balancer</li><li>Cloud Armor</li><li>Serverless Network Endpoint Groups (NEG)</li><li>Cloud Logging</li><li>Cloud Monitoring</li></ul><p>The goal was not application functionality.</p><p>The goal was security architecture.</p><h3>The Security Problem</h3><p>A common misconception in cloud environments is that placing an application behind a load balancer automatically makes it secure.</p><p>It doesn’t.</p><p>Security requires answering several questions:</p><ul><li>Who can access the application?</li><li>How do we filter malicious requests?</li><li>How do we monitor attack activity?</li><li>How do we detect abuse patterns?</li><li>How do we ensure infrastructure remains reproducible?</li></ul><p>For this project, I treated the Cloud Run service as a protected asset and designed every component around controlling access to it.</p><h3>Architecture Design</h3><p>The final request path looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CW9DKZjk03GA0Y1CTOdwXQ.png" /></figure><p>A request entering the environment follows this sequence:</p><ol><li>User reaches Global External HTTP Load Balancer</li><li>Cloud Armor evaluates the request</li><li>Backend service receives approved traffic</li><li>Serverless NEG forwards requests</li><li>Cloud Run validates IAM permissions</li><li>Application processes authorized traffic</li></ol><p>Every layer performs a specific security function.</p><h3>Why Cloud Run Was Not Made Public</h3><p>The first architectural decision was keeping Cloud Run private.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*IAjctPuVDjf9npPobJ_Nuw.jpeg" /></figure><p>Many tutorials enable:</p><pre>Allow unauthenticated invocations</pre><p>because it makes testing easier.</p><p>It also removes a major security control.</p><p>Instead, IAM authentication was enforced.</p><p>This means:</p><ul><li>anonymous users cannot invoke the service</li><li>service accounts become trusted identities</li><li>access decisions are identity-based</li></ul><p>This aligns directly with Zero Trust principles.</p><p>Identity becomes the perimeter.</p><h3>Why a Load Balancer Was Added</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFD3wolUFrkkCzI7qD-kcg.jpeg" /></figure><p>Cloud Run already provides a public endpoint.</p><p>So why introduce a load balancer?</p><p>Because security controls need a centralized enforcement point.</p><p>The Global External HTTP Load Balancer provides:</p><ul><li>centralized ingress</li><li>traffic routing</li><li>future SSL termination</li><li>WAF integration</li><li>observability</li></ul><p>Rather than exposing workloads directly, all requests enter through a managed security boundary.</p><p>This creates a clean separation between edge security and application logic.</p><h3>The Role of Serverless NEG</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ybPiYOR7SH2tqXA-G-UkuA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ybPiYOR7SH2tqXA-G-UkuA.jpeg" /></figure><p>One of the more interesting GCP components in this architecture is the Serverless Network Endpoint Group.</p><p>Unlike traditional VM-based backends, Cloud Run cannot be attached directly to backend services.</p><p>The Serverless NEG acts as an abstraction layer between:</p><ul><li>Load Balancer</li><li>Backend Service</li><li>Cloud Run</li></ul><p>From a security perspective, it allows Cloud Run to participate in enterprise-grade ingress architectures without sacrificing serverless scalability.</p><h3>Introducing Cloud Armor</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*inZd_Tmgf10VnxuGLLK_-A.jpeg" /></figure><p>At this point, traffic can reach the application.</p><p>The next question becomes:</p><p>“What happens when attackers arrive?”</p><p>That is where Cloud Armor enters the design.</p><p>Cloud Armor operates at the edge and evaluates requests before they reach backend services.</p><p>For this deployment, I enabled:</p><ul><li>SQL Injection protection</li><li>Cross-Site Scripting (XSS) protection</li></ul><p>Cloud Armor uses Google’s preconfigured WAF rule sets based on OWASP threat patterns.</p><p>This means malicious payloads are blocked before application execution occurs.</p><p>From a security engineering perspective, this is extremely valuable.</p><p>Rejecting attacks at the edge is cheaper, faster, and safer than allowing applications to inspect malicious traffic themselves.</p><h3>Testing the Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*3SSLyqCFlUbFL4Urz-Ykag.jpeg" /></figure><p>Security controls should never be assumed.</p><p>They should be validated.</p><p>The first validation involved directly accessing the service without authentication.</p><p>The result:</p><pre>403 Forbidden</pre><p>Exactly as expected.</p><p>The load balancer was reachable.</p><p>The application was not.</p><p>That distinction is important.</p><p>The infrastructure was accessible.</p><p>The workload remained protected.</p><h3>Simulating an Injection Attack</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_VtYVUWy7Osg0WkK_CvkA.jpeg" /></figure><p>Next, I tested a basic SQL injection payload.</p><p>Example:</p><pre>curl &quot;http://LOAD_BALANCER_IP/?id=&#39; or 1=1 --&quot;</pre><p>The response returned:</p><pre>403 Forbidden</pre><p>Cloud Armor intercepted the request before it could reach the backend.</p><p>The attack never reached Cloud Run.</p><p>This demonstrated that:</p><ul><li>Cloud Armor inspected traffic</li><li>WAF policies executed correctly</li><li>Backend exposure was reduced</li></ul><p>The objective was not penetration testing.</p><p>The objective was verifying security controls behave as designed.</p><h3>Observability Matters</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUyZiBAZeQV0fihGpaMP2w.jpeg" /></figure><p>Many cloud security labs stop after implementing controls.</p><p>Production environments require visibility.</p><p>Without logs, defenders have no way to answer:</p><ul><li>What was attacked?</li><li>When did it happen?</li><li>Where did it come from?</li><li>Was it successful?</li></ul><p>Using Cloud Logging, every blocked request became observable.</p><p>The logs revealed:</p><ul><li>HTTP status codes</li><li>source IPs</li><li>request paths</li><li>user agents</li><li>denied requests</li></ul><p>This transformed the architecture from a protected system into a monitorable system.</p><h3>Monitoring and Detection</h3><p>Blocking attacks is useful.</p><p>Knowing when attacks increase is even more useful.</p><p>Cloud Monitoring was integrated to provide detection capability.</p><p>Alerting policies were configured around abnormal request behavior, particularly repeated denial events.</p><p>This creates an operational feedback loop.</p><p>Security controls no longer operate silently.</p><p>They generate signals that security teams can investigate.</p><h3>Terraform as a Security Control</h3><p>Terraform is often viewed as an automation tool.</p><p>I view it as a security control.</p><p>Infrastructure defined as code provides:</p><ul><li>version control</li><li>peer review</li><li>reproducibility</li><li>auditability</li></ul><p>Every security configuration in this project existed as code.</p><p>Nothing was manually configured.</p><p>This eliminates configuration drift and creates a repeatable deployment process.</p><h3>Lessons Learned</h3><p>Several interesting observations emerged during implementation.</p><p>First, Zero Trust on GCP is heavily identity-driven.</p><p>Traditional firewall thinking becomes less important than understanding IAM relationships.</p><p>Second, Cloud Armor significantly reduces backend exposure by moving security decisions closer to the edge.</p><p>Third, observability should be treated as part of security architecture rather than an operational afterthought.</p><p>Finally, Infrastructure as Code is essential for maintaining security consistency at scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8W4alum5JL3D-k4lvwddMw.jpeg" /></figure><h3>Final Thoughts</h3><p>What started as a simple Cloud Run deployment evolved into a practical Zero Trust architecture built entirely with managed Google Cloud services.</p><p>The architecture combined:</p><ul><li>Identity-based access control</li><li>Layer 7 threat protection</li><li>Centralized ingress</li><li>Logging</li><li>Monitoring</li><li>Infrastructure as Code</li></ul><p>The most important takeaway was not the individual services.</p><p>It was understanding how those services interact to create multiple layers of defense.</p><p>Modern cloud security is rarely about a single control.</p><p>It is about designing systems where identity, networking, monitoring, and automation work together to reduce risk.</p><p>That is where Zero Trust becomes more than a buzzword and starts becoming architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51630e2f404a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing a Zero-Trust AWS Governance Architecture Using AWS Organisations, SCPs, and CloudTrail]]></title>
            <link>https://sesanknagamunukutla.medium.com/designing-a-zero-trust-aws-governance-architecture-using-aws-organisations-scps-and-cloudtrail-afbbd470ab34?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/afbbd470ab34</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloudtrail]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Sun, 10 May 2026 11:15:57 GMT</pubDate>
            <atom:updated>2026-05-10T11:18:50.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sN8Ff2bcX1wQp8pUXihNXQ.png" /></figure><p>Most AWS security discussions focus on services such as IAM, Security Groups, and WAFs.</p><p>But real cloud governance starts much higher in the control plane.</p><p>The real challenge is controlling:</p><ul><li>Who can do what</li><li>where resources can be deployed</li><li>How audit logging is protected</li><li>How the blast radius is reduced across environments</li></ul><p>To explore this, I built a Zero-Trust governance architecture in AWS using:</p><ul><li>AWS Organizations</li><li>Service Control Policies (SCPs)</li><li>CloudTrail</li><li>Terraform</li><li>Centralised audit logging</li><li>The goal was not just deployment, but governance validation.</li></ul><h3>Architecture Design</h3><p>The organisation hierarchy was designed to separate governance domains from workload domains.</p><pre>Root<br> ├── Security<br> │    ├── Audit<br> │    └── LogArchive<br> │<br> └── Workloads<br>      ├── Prod<br>      └── Dev</pre><p>This structure creates a clear separation between:</p><ul><li>governance infrastructure</li><li>audit systems</li><li>production workloads</li><li>development workloads</li></ul><p>It also enables hierarchical SCP inheritance and blast-radius segmentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*1Ojrkbo8d74q4q3sj7N6Dw.jpeg" /><figcaption><strong>AWS Organisations hierarchy deployed using Terraform</strong></figcaption></figure><h3>Why SCPs Matter</h3><p>IAM controls permissions inside an account.</p><p>SCPs control the maximum allowed permissions across accounts and OUs.</p><p>That difference is critical.</p><p>In this project, I implemented SCPs to:</p><ul><li>prevent CloudTrail tampering</li><li>restrict actions outside approved regions</li><li>validate preventive governance controls</li></ul><h3>CloudTrail Tamper Protection</h3><p>One of the first controls implemented was blocking:</p><ul><li>cloudtrail:StopLogging</li><li>cloudtrail:DeleteTrail</li></ul><p>This ensured that audit logging could not be easily disabled.</p><p>The SCP was initially attached to the Workloads OU, but testing exposed an important governance nuance:</p><pre>SCP inheritance only applies downward from the attachment point.</pre><p>Because testing was performed from the management account under the organisation root, the SCP initially did not apply.</p><p>The fix was attaching the SCP directly at the root level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*do4IYAZjoF6one6zex-miA.jpeg" /><figcaption><strong>CloudTrail tamper-protection SCP attached at the organization root</strong></figcaption></figure><h3>Centralised Audit Logging</h3><p>A centralised CloudTrail pipeline was built using:</p><ul><li>Organisation-wide CloudTrail</li><li>Encrypted S3 storage</li><li>S3 versioning</li><li>Public access blocking</li></ul><p>This ensured:</p><ul><li>centralized visibility</li><li>audit retention</li><li>encrypted log storage</li><li>forensic traceability</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJHNuxiYvKVSjhqBtz5k3Q.jpeg" /><figcaption><strong>Organization-wide CloudTrail logging enabled</strong></figcaption></figure><h3>Failure Simulation and Governance Validation</h3><p>Instead of assuming the controls worked, they were validated through intentional failure simulation.</p><p>An AWS CLI command attempted to disable CloudTrail logging:</p><pre>aws cloudtrail stop-logging --name OrganizationTrail --region ap-south-1</pre><p>After SCP enforcement, the request returned:</p><pre>AccessDenied</pre><p>This confirmed:</p><ul><li>preventive governance enforcement</li><li>SCP functionality</li><li>centralized policy inheritance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzV4m7lnkxzZnUDn4RS_Lg.jpeg" /><figcaption><strong>SCP successfully blocked CloudTrail tampering</strong></figcaption></figure><p>The most interesting part of the project was not deployment — it was debugging.</p><p>Several operational edge cases appeared during implementation:</p><ul><li>SCP inheritance issues</li><li>CloudTrail S3 bucket policy failures</li><li>Terraform reconciliation drift</li><li>AWS Organizations eventual consistency behavior</li><li>Versioned S3 bucket deletion problems</li><li>Organization destroy lifecycle constraints</li></ul><p>For example, Terraform repeatedly encountered AWS Organizations policy reconciliation errors due to asynchronous propagation behavior.</p><p>This required lifecycle tuning inside Terraform:</p><pre>lifecycle {<br>  ignore_changes = [<br>    enabled_policy_types<br>  ]<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7xG9-gdxNuZBo0pL_4_PQ.jpeg" /><figcaption><strong>Terraform reconciliation issue caused by AWS Organizations propagation behavior</strong></figcaption></figure><h3>Key Takeaways</h3><p>This project reinforced several important cloud governance lessons:</p><ul><li>Preventive controls should always be validated through failure simulation</li><li>AWS Organisations behaves differently from normal infrastructure resources</li><li>SCP inheritance boundaries matter significantly</li><li>Governance infrastructure is operationally persistent</li><li>Terraform and AWS Organisations can drift due to eventual consistency</li><li>Audit systems require explicit protection controls</li></ul><h3>Final Thoughts</h3><p>Building governance controls is relatively straightforward.</p><p>Operationalising them reliably is the difficult part.</p><p>The most valuable outcomes from this project were not the successful deployments, but the edge cases, failures, and debugging scenarios encountered during implementation.</p><p>Those operational realities are what make cloud governance engineering fundamentally different from simple infrastructure provisioning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afbbd470ab34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Threat Containment in AWS: What Building a Cloud SOAR Pipeline Taught Me]]></title>
            <link>https://sesanknagamunukutla.medium.com/automated-threat-containment-in-aws-what-building-a-cloud-soar-pipeline-taught-me-06641f5dd434?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/06641f5dd434</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-guardduty]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Fri, 13 Feb 2026 15:35:57 GMT</pubDate>
            <atom:updated>2026-02-13T15:35:57.938Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloud security often stops at detection.</p><p>Dashboards light up. Alerts fire. Notifications flood inboxes.</p><p>And then… someone responds.</p><p>But in a cloud environment where infrastructure scales in seconds, manual response is often too slow.</p><p>In this project, I built a simple but powerful Cloud-native SOAR pipeline that automatically isolates an EC2 instance when a high-severity threat is detected.</p><p>More importantly, it changed how I think about cloud security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*hCj7GaxueivVzMEJ.jpg" /></figure><h3>The Problem: Detection Without Action</h3><p>Most cloud environments already have strong detection capabilities:</p><ul><li>Threat intelligence</li><li>Behavioural anomaly detection</li><li>DNS monitoring</li><li>VPC flow log analysis</li></ul><p>Services like Amazon GuardDuty continuously monitor activity and generate findings.</p><p>But a detection by itself does nothing.</p><p>If a compromised instance continues communicating for 5–10 minutes before someone reacts, the blast radius grows.</p><p>The real challenge isn’t detecting threats.</p><p>It’s reducing the time between detection and containment.</p><h3>The Shift: From Alerts to Automated Response</h3><p>Instead of relying on humans to respond, I built an event-driven containment pipeline:</p><p>GuardDuty → EventBridge → Lambda → EC2 Isolation → SNS Alert</p><p>Here’s what happens:</p><ol><li>GuardDuty detects a high-severity finding.</li><li>EventBridge filters the event.</li><li>A Lambda function is triggered automatically.</li><li>The EC2 instance is moved into a quarantine security group.</li><li>A notification is sent.</li></ol><p>The entire process happens in seconds.</p><p>No tickets. No dashboards. No waiting.</p><p>That’s the difference between monitoring and response.</p><h3>Why Isolation Instead of Termination?</h3><p>One key design decision was containment over destruction.</p><p>Instead of terminating the instance, the automation:</p><ul><li>Removed all inbound rules</li><li>Removed outbound communication</li><li>Preserved the instance for investigation</li></ul><p>This reflects a real incident response mindset.</p><p>In many environments, deleting infrastructure immediately can:</p><ul><li>Destroy forensic evidence</li><li>Break critical services</li><li>Cause unintended downtime</li></ul><p>Containment gives control without chaos.</p><h3>What This Project Really Demonstrates</h3><h4>1. Event-Driven Architecture Is the Backbone of Cloud Security</h4><p>Everything in the cloud emits events.</p><p>Security automation works when you treat those events as triggers, not logs.</p><p>This model scales naturally.</p><h4>2. Permissions Define Security Reality</h4><p>The automation worked only because:</p><ul><li>IAM roles were configured correctly</li><li>Lambda had EC2 modification rights</li><li>EventBridge had permission to invoke Lambda</li><li>SNS ARN was properly structured</li></ul><p>Security engineering in the cloud is often less about code and more about identity and policy precision.</p><h4>3. Logs Are the Source of Truth</h4><p>The system did not work on the first try.</p><p>There were:</p><ul><li>JSON structure mismatches</li><li>Invalid ARN errors</li><li>Synthetic instance IDs in sample findings</li></ul><p>CloudWatch logs revealed every issue.</p><p>Security automation demands debugging discipline.</p><h4>4. Detection Alone Is Not Defence</h4><p>GuardDuty is powerful.</p><p>But without orchestration and remediation, it remains passive.</p><p>The real power comes from connecting:</p><p>Detection → Decision → Action</p><p>That is the essence of SOAR.</p><h4>Limitations and Real-World Considerations</h4><p>This lab was intentionally scoped, but production environments would require:</p><ul><li>Dynamic parsing of real instance IDs</li><li>Multi-resource remediation logic</li><li>Approval workflows for sensitive systems</li><li>Incident logging in a database</li><li>Cross-account automation</li><li>Rollback strategies</li><li>Change control integration</li></ul><p>Automation increases speed — but also increases risk if misconfigured.</p><p>Precision matters.</p><h4>What Changed After Building This</h4><p>Before this project, I viewed cloud security as:</p><p>Monitoring + alerting.</p><p>After building this, I see it as:</p><p>Reactive infrastructure control.</p><p>The cloud allows infrastructure to be modified instantly.</p><p>That means security response can also be instant.</p><h4>The Bigger Lesson</h4><p>Modern cloud security is not about visibility alone.</p><p>It’s about control through automation.</p><p>Detection reduces uncertainty.</p><p>Automation reduces impact.</p><h4>Final Thought</h4><p>In cloud environments, attackers move fast.</p><p>If your response still depends on someone noticing an alert, you are already behind.</p><p>The future of cloud security isn’t more alerts.</p><p>It’s automated containment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06641f5dd434" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just-In-Time Access for EC2 Is an Architectural Decision, Not an Automation Trick]]></title>
            <link>https://sesanknagamunukutla.medium.com/just-in-time-access-for-ec2-is-an-architectural-decision-not-an-automation-trick-1ab0fd84f2e4?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ab0fd84f2e4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 19:23:49 GMT</pubDate>
            <atom:updated>2026-02-09T19:23:49.152Z</atom:updated>
            <content:encoded><![CDATA[<p>Most cloud security incidents don’t happen because teams lack tools.<br> They happen because access is <strong>designed to persist</strong>.</p><p>Open SSH ports, long-lived credentials, and permanent trust relationships are usually treated as operational conveniences. In reality, they are <strong>architectural liabilities</strong>.</p><p>This article is not about <em>how</em> to implement Just-In-Time (JIT) access for EC2.<br> It is about <strong>why JIT access changes the shape of your security architecture</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*gnSQnzGIUEgY9QzRpEjOsQ.png" /></figure><h3>The Real Problem: Access Is Treated as Static State</h3><p>Traditional EC2 access models assume:</p><ul><li>Access is configured once</li><li>Trust remains valid indefinitely</li><li>Humans will remember to clean up</li><li>Security groups are documentation</li></ul><p>This mindset creates systems where:</p><ul><li>SSH is always open “just in case”</li><li>Temporary rules quietly become permanent</li><li>Nobody knows why a port was opened</li><li>Audits rely on memory instead of evidence</li></ul><p>The flaw here is subtle but critical:</p><blockquote><strong><em>Access is modeled as configuration, not behavior.</em></strong></blockquote><h3>JIT Access Forces a Different Mental Model</h3><p>Just-In-Time access reframes access as a <strong>time-bound event</strong>, not a static permission.</p><p>Instead of asking:</p><blockquote><em>“Who is allowed to access this instance?”</em></blockquote><p>JIT asks:</p><blockquote><em>“Under what conditions may access exist, and when must it disappear?”</em></blockquote><p>This shift has architectural consequences.</p><h3>Architectural Insight #1: Secure Defaults Become Natural</h3><p>In a JIT architecture, the <em>default state</em> of an EC2 instance is:</p><ul><li>Unreachable</li><li>Inaccessible</li><li>Silent</li></ul><p>Access is not removed after work is done.<br> Access <strong>never exists unless explicitly created</strong>.</p><p>This matters because secure systems should fail closed <strong>by design</strong>, not by discipline.</p><p>If automation breaks, the system becomes <strong>more secure</strong>, not less.</p><h3>Architectural Insight #2: Time Becomes a First-Class Security Control</h3><p>Most access control systems answer <em>who</em> and <em>what</em>.<br> JIT introduces a third dimension: <strong>when</strong>.</p><p>Time is not enforced by policy documents or runbooks.<br> It is enforced mechanically.</p><p>This eliminates entire classes of failure:</p><ul><li>Forgotten SSH rules</li><li>“Temporary” exceptions</li><li>Access reviews that happen months too late</li></ul><p>In JIT architectures, <strong>access expires even if humans forget</strong>.</p><h3>Architectural Insight #3: Separation of Duties Is Enforced by Infrastructure</h3><p>In many environments, EC2 instances are over-trusted:</p><ul><li>They can modify their own network access</li><li>They can request and grant access implicitly</li></ul><p>A proper JIT design breaks this loop.</p><ul><li>Instances are passive targets</li><li>Access decisions live outside the workload</li><li>Authority is centralised, not distributed</li></ul><p>This prevents workloads from expanding their own attack surface — intentionally or accidentally.</p><h3>Architectural Insight #4: Auditability Is Not an Afterthought</h3><p>Most systems log activity <em>inside</em> the server:</p><ul><li>SSH logs</li><li>Application logs</li><li>User history</li></ul><p>JIT architectures log <strong>intent at the control plane</strong>:</p><ul><li>Who authorized access</li><li>What changed</li><li>When it changed</li><li>How long it existed</li></ul><p>This matters because auditors don’t ask:</p><blockquote><em>“Did someone log in?”</em></blockquote><p>They ask:</p><blockquote><em>“Why was access allowed at all?”</em></blockquote><p>JIT systems can answer that question definitively.</p><h3>Architectural Insight #5: Cost and Security Align Instead of Compete</h3><p>In many security designs:</p><ul><li>Better security = more infrastructure</li><li>More infrastructure = higher cost</li></ul><p>JIT access flips this.</p><ul><li>No access → no compute</li><li>No activity → no cost</li><li>No usage → no exposure</li></ul><p>Security becomes cheaper when unused, which is exactly what you want from a control that exists for rare events.</p><h3>Why This Matters Beyond EC2</h3><p>The real value of JIT access is not SSH.</p><p>It is the <strong>pattern</strong>:</p><ul><li>Access as an event, not a state</li><li>Authority separated from workload</li><li>Time enforced mechanically</li><li>Evidence produced automatically</li></ul><p>Once you internalise this model, it applies to:</p><ul><li>Database access</li><li>Production break-glass scenarios</li><li>Admin APIs</li><li>Incident response workflows</li></ul><p>JIT is not a feature.<br>It is a <strong>way of designing access systems</strong>.</p><h3>Why This Is Different from “Just Use SSM”</h3><p>Tools are interchangeable. Architecture is not.</p><p>You can replace:</p><ul><li>SSH with SSM</li><li>Lambda with another controller</li><li>Security groups with another network primitive</li></ul><p>What must remain is the <strong>design intent</strong>:</p><ul><li>No standing trust</li><li>Explicit access creation</li><li>Automatic expiry</li><li>Verifiable evidence</li></ul><p>Without that intent, changing tools only changes the surface, not the risk.</p><h3>Final Thought: Security Should Expire by Default</h3><p>The most dangerous permissions are not malicious ones — they are <strong>forgotten ones</strong>.</p><p>JIT access works because it assumes:</p><blockquote><em>Humans forget. Systems must not.</em></blockquote><p>If your architecture requires people to remember to revoke access, it is already broken.</p><p>The moment access becomes temporary by design, security stops being a checklist and becomes a property of the system itself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ab0fd84f2e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why SSH No Longer Fits Zero-Trust EC2 Access in AWS]]></title>
            <link>https://sesanknagamunukutla.medium.com/why-ssh-no-longer-fits-zero-trust-ec2-access-in-aws-4ee9c4b66fe8?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ee9c4b66fe8</guid>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 16:53:51 GMT</pubDate>
            <atom:updated>2026-02-01T17:17:19.946Z</atom:updated>
            <content:encoded><![CDATA[<h3>(And What to Use Instead)</h3><p>For years, SSH has been the default way to access Linux servers. It’s familiar, flexible, and deeply ingrained in engineering culture.<br> But in modern cloud environments — especially AWS — <strong>SSH no longer aligns with Zero-Trust principles</strong>.</p><p>This article explains <strong>why SSH is a poor fit for Zero-Trust EC2 access</strong>, and how AWS-native identity and control-plane services provide a stronger alternative.</p><blockquote><em>This post focuses on </em>architecture and security reasoning<em>.<br> The full hands-on lab with logs and evidence is documented separately.</em></blockquote><h3>The Core Problem with SSH in Cloud Environments</h3><p>SSH assumes two things that Zero-Trust explicitly rejects:</p><ol><li><strong>Network reachability implies legitimacy</strong></li><li><strong>Possession of a key equals authorisation</strong></li></ol><p>In AWS, this typically leads to:</p><ul><li>Open port 22 (often scoped, but still exposed)</li><li>Long-lived SSH keys</li><li>Bastion hosts as choke points</li><li>OS-level users loosely mapped to real identities</li><li>Fragmented and inconsistent audit trails</li></ul><p>At a small scale, this is manageable.<br>At the organisational scale, it becomes a liability.</p><h3>Zero-Trust Reframed for AWS</h3><p>Zero-Trust is often misunderstood as a networking concept.<br> In AWS, it is fundamentally an <strong>identity and control-plane problem</strong>.</p><p>A Zero-Trust EC2 access model should ensure:</p><ul><li>No implicit trust in network location</li><li>Identity verified at every access attempt</li><li>Least privilege is enforced centrally</li><li>Access is fully observable and auditable</li></ul><p>The key insight is this:</p><blockquote><strong><em>If access decisions can be made in the AWS control plane, they should not be delegated to the network or the OS.</em></strong></blockquote><h3>A Modern Alternative: Identity-Driven EC2 Access</h3><p>Instead of SSH, AWS provides a native access broker: <strong>Systems Manager Session Manager</strong>.</p><p>At a high level, the access model looks like this:</p><pre>Human Identity (IAM)<br>        ↓<br>Authorization (IAM Policies)<br>        ↓<br>Session Broker (SSM)<br>        ↓<br>EC2 Instance (No inbound access)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YEhb4tcnYZ4FP0zpC_49Q.png" /><figcaption>Identity-driven EC2 access via IAM and SSM</figcaption></figure><p>This model eliminates:</p><ul><li>SSH keys</li><li>Inbound ports</li><li>Bastion hosts</li><li>Network-based trust assumptions</li></ul><h3>Why This Model Is More Secure by Design</h3><h3>1. Identity Is the Control Boundary</h3><p>Access is granted to <strong>IAM identities</strong>, not IP addresses or key pairs.</p><ul><li>Revocation is immediate</li><li>Permissions are centrally managed</li><li>MFA and conditions can be enforced</li></ul><h3>2. The Network Is No Longer Trusted</h3><p>EC2 instances do not listen for inbound management traffic.</p><p>This removes entire attack classes:</p><ul><li>SSH brute force</li><li>Port scanning</li><li>Bastion compromise</li></ul><p>Security is achieved by <strong>removal</strong>, not hardening.</p><h3>3. Auditability Moves to the Control Plane</h3><p>Instead of relying on:</p><ul><li>/var/log/auth.log</li><li>Host-based logs</li><li>Inconsistent SSH configurations</li></ul><p>Access is recorded centrally via <strong>CloudTrail</strong>.</p><p>Each session generates:</p><ul><li>A start event</li><li>A termination event</li><li>An attributable IAM identity</li><li>A precise timestamp</li></ul><h3>Detection Becomes Practical</h3><p>Once access is centralised and logged, detection becomes feasible.</p><p>By integrating <strong>GuardDuty</strong>, AWS can:</p><ul><li>Analyze IAM behavior</li><li>Detect anomalous access patterns</li><li>Flag privilege escalation attempts</li></ul><p>Importantly:</p><ul><li>Detection operates <strong>outside the instance</strong></li><li>Compromising an EC2 host does not blind visibility</li></ul><p>This separation is critical in Zero-Trust architectures.</p><h3>Trade-offs (And Why They’re Acceptable)</h3><p>No design is perfect. This model introduces deliberate trade-offs:</p><ul><li>OS-level commands are not logged by default</li><li>Detection is reactive, not blocking</li><li>IAM becomes a critical control point</li></ul><p>These are acceptable because:</p><ul><li>Identity attribution is preserved</li><li>Audit evidence is stronger than SSH logs</li><li>Preventive controls belong in IAM, not on hosts</li></ul><p>Explicit trade-offs are a sign of <strong>mature security design</strong>.</p><h3>When SSH Might Still Exist</h3><p>There are valid exceptions:</p><ul><li>Legacy systems</li><li>Air-gapped environments</li><li>Emergency break-glass scenarios</li></ul><p>But these should be <strong>exceptions</strong>, not the baseline.</p><p>In cloud-native environments, SSH should no longer be the default access mechanism.</p><h3>Key Takeaway</h3><blockquote><strong><em>Zero-Trust EC2 access is not about adding tools — it’s about removing unnecessary trust</em></strong></blockquote><p>By shifting access control from the network and OS to AWS’s identity and control plane, security improves while operational complexity decreases.</p><h3>Further Reading</h3><p>The complete hands-on implementation — covering EC2 setup, IAM roles, CloudTrail evidence, GuardDuty validation, and cost cleanup — is documented here:</p><p><a href="https://fridaysecurity.hashnode.dev/project-5-zero-trust-ec2-access-in-aws-using-iam-ssm-cloudtrail-and-guardduty">https://fridaysecurity.hashnode.dev/project-5-zero-trust-ec2-access-in-aws-using-iam-ssm-cloudtrail-and-guardduty</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ee9c4b66fe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eliminating SSH in AWS: Why Identity-Based Access Beats Network Trust]]></title>
            <link>https://sesanknagamunukutla.medium.com/eliminating-ssh-in-aws-why-identity-based-access-beats-network-trust-375c13d8f4f8?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/375c13d8f4f8</guid>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Sun, 25 Jan 2026 14:27:11 GMT</pubDate>
            <atom:updated>2026-01-25T14:27:11.624Z</atom:updated>
            <content:encoded><![CDATA[<p>SSH has been the default way to access servers for decades. Even in cloud environments, many teams still rely on port 22, bastion hosts, and long-lived keys — often because “that’s how it’s always been done.”</p><p>In this article, I want to focus less on <em>how</em> to connect to EC2 and more on <em>why SSH is no longer the right abstraction</em> for modern AWS environments.</p><p>This post is a <strong>conceptual and architectural walkthrough</strong>.<br> The Core Problem with SSH in Cloud Environments</p><p>SSH itself is not “broken,” but the model around it does not scale well in the cloud:</p><ul><li>Open inbound ports expand attack surface</li><li>Long-lived SSH keys are hard to rotate</li><li>Access is tied to network reachability, not identity</li><li>Auditability of interactive access is weak by default</li><li>Bastion hosts become privileged choke points</li></ul><p>In short, SSH optimises for <strong>connectivity</strong>, not <strong>control</strong>.</p><p>Cloud environments require the opposite.</p><h3>Reframing the Question: “Who” Instead of “From Where”</h3><p>A more useful question than <em>“Can I reach this server?”</em> is:</p><blockquote><strong><em>“Who is allowed to access this system, and can I prove it?”</em></strong></blockquote><p>AWS already provides primitives to answer this question:</p><ul><li>IAM for identity and authorisation</li><li>Systems Manager for controlled access</li><li>CloudTrail for auditability</li></ul><p>The challenge is not the availability of tools — it’s <strong>changing the mindset around access</strong>.</p><h3>Identity-Based Access with Systems Manager</h3><p>AWS Systems Manager Session Manager enables interactive access to EC2 <strong>without</strong>:</p><ul><li>Opening inbound ports</li><li>Managing SSH keys</li><li>Exposing the instance to the internet</li></ul><p>Access is granted entirely through IAM and brokered by AWS control planes.</p><p>This creates a strong separation of concerns:</p><ul><li><strong>Network</strong> controls traffic flow</li><li><strong>IAM</strong> controls who can access</li><li><strong>CloudTrail</strong> records what happened</li></ul><p>The instance itself no longer needs to “trust” users directly.</p><h3>Visibility ≠ Capability (An Important IAM Lesson)</h3><p>One of the most important realisations from the lab was this:</p><blockquote><strong><em>Being able to see a resource does not mean you are allowed to act on it.</em></strong></blockquote><p>An IAM user with read-only permissions:</p><ul><li>Can view EC2 instances</li><li>Can see the Session Manager tab</li><li>Still cannot start a session</li></ul><p>Only when a specific permission (ssm:StartSessionIs access becoming possible?</p><p>This distinction is critical for:</p><ul><li>Least-privilege design</li><li>Audit clarity</li><li>Incident response</li></ul><p>It also highlights why IAM policies should be tested rather than assumed.</p><h3>Auditability Without SSH</h3><p>A common concern when removing SSH is:</p><blockquote>“How do we audit access?”</blockquote><p>Session Manager answers this cleanly:</p><ul><li>Every session start is logged in CloudTrail</li><li>User identity, timestamp, and target instance are recorded</li><li>Access revocation is immediate via IAM</li></ul><p>You gain <strong>more visibility</strong>, not less.</p><p>This aligns far better with compliance and security monitoring requirements than traditional SSH access.</p><h3>Operational and Security Implications</h3><p>Moving away from SSH changes the operational model in meaningful ways:</p><ul><li>No key distribution or rotation overhead</li><li>No bastion hosts to maintain</li><li>Faster access revocation during incidents</li><li>Reduced blast radius if credentials are compromised</li><li>Cleaner separation between infrastructure and identity</li></ul><p>Most importantly, <strong>access becomes intentional and provable</strong>.</p><h3>When SSH Still Makes Sense (And When It Doesn’t)</h3><p>SSH may still be appropriate:</p><ul><li>In air-gapped environments</li><li>In non-AWS platforms</li><li>For temporary debugging in constrained systems</li></ul><p>But for standard AWS workloads, especially those with compliance or scale concerns, <strong>SSH should be the exception, not the default</strong>.</p><h3>Closing Thoughts</h3><p>Eliminating SSH is not about being trendy — it’s about aligning access patterns with how cloud platforms are actually designed.</p><p>By shifting trust from:</p><ul><li><strong>Network location → Identity</strong></li><li><strong>Keys → Temporary credentials</strong></li><li><strong>Assumption → Evidence</strong></li></ul><p>We reduce the attack surface while improving auditability.</p><p>If you’re interested in the <strong>full technical walkthrough</strong>, including:</p><ul><li>IAM policy design</li><li>Failure-first validation</li><li>Side-by-side SSH vs SSM proof</li><li>CloudTrail audit evidence</li></ul><p>👉 <strong>Read the complete lab here:</strong></p><p><a href="https://fridaysecurity.hashnode.dev/project-4-eliminating-ssh-with-aws-systems-manager-iam-controlled-auditable-ec2-access">https://fridaysecurity.hashnode.dev/project-4-eliminating-ssh-with-aws-systems-manager-iam-controlled-auditable-ec2-access</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=375c13d8f4f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing IAM Least Privilege for EC2: From Zero Access to Auditable Enforcement]]></title>
            <link>https://sesanknagamunukutla.medium.com/designing-iam-least-privilege-for-ec2-from-zero-access-to-auditable-enforcement-e1bd12e55b8c?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1bd12e55b8c</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[cloud-sec]]></category>
            <category><![CDATA[cloud-services]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Fri, 16 Jan 2026 08:30:35 GMT</pubDate>
            <atom:updated>2026-01-16T08:58:22.276Z</atom:updated>
            <content:encoded><![CDATA[<p>Identity and Access Management (IAM) is one of the most powerful — and most commonly misconfigured — components in AWS.<br> In many environments, excessive permissions are granted simply to “make things work,” creating long-term security risk.</p><p>In this project, I focused on designing and validating <strong>least-privilege IAM access</strong> for an EC2 instance interacting with <strong>CloudWatch Logs</strong>, using only AWS-native controls and verifiable evidence.</p><p>This was not about adding more tools.<br> It was about <strong>controlling access deliberately, validating behavior, and proving enforcement</strong>.</p><h3>Threat Model and Scope</h3><p>Before touching IAM, the scope was defined clearly.</p><p><strong>In scope</strong></p><ul><li>EC2 instance permissions via IAM roles</li><li>Read-only access to CloudWatch Logs</li><li>Explicit allow and deny validation</li><li>Audit visibility through CloudTrail</li></ul><p><strong>Out of scope</strong></p><ul><li>Cross-account access</li><li>SCPs and organization-wide controls</li><li>Federated identity and SSO</li><li>Data exfiltration scenarios</li></ul><p>The objective was simple but strict:<br> <strong>Allow only what is required, deny everything else, and prove it.</strong></p><h3>Starting with a Zero-Permission Baseline</h3><p>The EC2 instance was launched with an <strong>IAM role that had no permissions attached</strong>.</p><p>There were:</p><ul><li>No IAM users</li><li>No static access keys</li><li>No managed policies</li></ul><p>At this stage, every AWS API call from the instance failed with AccessDenied, which is the <strong>correct and expected baseline</strong> for least-privilege design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iz6XyKXkYTu9EFU4AEJCTQ.jpeg" /><figcaption>EC2 IAM role created with no permissions attached, establishing a zero-access baseline.</figcaption></figure><h3>Verifying Role Assumption via IMDSv2</h3><p>The instance assumed the IAM role using <strong>IMDSv2</strong>, which enforces token-based access to instance metadata and mitigates several classes of metadata abuse.</p><p>This confirmed:</p><ul><li>No credentials were stored on the instance</li><li>Temporary credentials were issued dynamically</li><li>The role assumption path was secure and intentional</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*lQnhTKavl6YKWNrDukLpig.jpeg" /><figcaption>EC2 instance assuming an IAM role via IMDSv2, providing temporary credentials without static secrets.</figcaption></figure><h3>Designing the Minimum Required IAM Policy</h3><p>Instead of attaching a broad AWS managed policy, the required access was identified by <strong>observing failures</strong>.</p><p>For basic log visibility, the EC2 instance required only the following CloudWatch Logs actions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gY7r3FlR0Ss8TevUmDooWQ.jpeg" /><figcaption><strong>custom IAM policy</strong> was created</figcaption></figure><p>A <strong>custom IAM policy</strong> was created with only these actions allowed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ImLPbEhqTZ4KpWJIargfzg.jpeg" /><figcaption>Custom IAM policy allowing only the minimum CloudWatch Logs read actions required by the EC2 instance.</figcaption></figure><h3>Validating Permissions from the EC2 Instance</h3><p>Validation was performed from inside the EC2 instance using the AWS CLI.</p><p>This step is critical — permissions were not assumed to work; they were <strong>explicitly tested</strong>.</p><h3>Read-only actions (Expected to succeed)</h3><ul><li>Listing log groups returned an empty result (correct behaviour when no resources are visible)</li><li>Describing log streams failed only when the log group did not exist</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4aVeMAeUTxGgn8xe-QDrdg.jpeg" /><figcaption>Read-only CloudWatch Logs actions succeed, returning empty or scoped results where appropriate.</figcaption></figure><h3>Write actions (Expected to fail)</h3><p>Attempts to create a log group were explicitly denied.</p><p>This confirmed that:</p><ul><li>Permissions were scoped correctly</li><li>The EC2 instance could not modify the logging infrastructure</li><li>Least privilege was enforced as intended</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XuHNvkcdJ_8naqIpxcIGaA.png" /><figcaption>Write access to CloudWatch Logs is explicitly denied, enforcing least privilege.</figcaption></figure><h3>Auditing Denied Actions with CloudTrail</h3><p>To complete the security loop, denied actions were inspected in <strong>CloudTrail</strong>.</p><p>The CloudTrail event showed:</p><ul><li>An <strong>assumed role identity</strong></li><li>The EC2 instance as the source</li><li>An explicit AccessDenied error for CreateLogGroup</li></ul><p>This confirmed that IAM enforcement is <strong>centrally logged, traceable, and auditable</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-zl9G4rQAH5NcQXLgBDaQ.jpeg" /><figcaption>CloudTrail records a denied CloudWatch Logs write attempt, including assumed role identity and enforcement details.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pzEEcvIWnnupAJP3BDZXUA.jpeg" /></figure><h3>Key Takeaways</h3><p>This project reinforced several important principles:</p><ul><li>Least privilege starts with <strong>zero permissions</strong></li><li>Permissions should be added only after observing failure</li><li>IMDSv2 is a critical security boundary for EC2</li><li>Empty API responses can indicate correct scoping</li><li>Denied actions are security signals, not errors</li><li>CloudTrail provides essential audit visibility for IAM decisions</li></ul><p>Security is not about making access work quickly — it is about <strong>making access provable and defensible</strong>.</p><h3>What I Learned and Why This Approach Matters</h3><p>First, <strong>least privilege is a process, not a policy</strong>.<br> Starting with zero permissions and observing AccessDenied errors before adding access ensured that permissions were granted intentionally, not accidentally.</p><p>Second, <strong>failures are valuable signals</strong>.<br> Instead of treating denied actions or empty responses as problems, they were used to understand how AWS evaluates permissions and scopes access. This mindset is essential when designing secure cloud environments.</p><p>Third, <strong>IMDSv2 is a critical security boundary</strong>.<br> Verifying role assumption through IMDSv2 reinforced why temporary credentials and metadata protection are foundational to secure EC2 design, especially against credential leakage and SSRF-style attacks.</p><p>Fourth, <strong>security controls must be auditable</strong>.<br> CloudTrail provided clear evidence of enforcement, showing not just that an action failed, but <em>who attempted it, from where, and why it was denied</em>. This level of visibility is what makes IAM suitable for real production environments.</p><p>Finally, this approach emphasised that <strong>correct security design is deliberate and verifiable</strong>.<br> Rather than relying on broad managed policies or assumptions, each decision was tested, validated, and documented. This is the difference between making access work and making access defensible.</p><h3>Why This Was the Right Approach</h3><p>This approach aligns closely with how mature cloud teams operate:</p><ul><li>Permissions are introduced only when required</li><li>Over-privileged roles are avoided by design</li><li>Security decisions are backed by evidence, not assumptions</li><li>Auditability is treated as a first-class requirement</li></ul><p>By combining least privilege with validation and audit visibility, IAM becomes a control that supports both security and operational clarity.</p><h3>Closing Thoughts</h3><p>This exercise demonstrated that effective cloud security does not require complex tooling.<br> It requires <strong>intentional design, validation, and visibility</strong>.</p><p>By starting with zero access, adding only what was required, and auditing every decision, IAM becomes a control you can trust — not one you hope is correct.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1bd12e55b8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing SSH Access to AWS EC2: From Perimeter Controls to Detection]]></title>
            <link>https://sesanknagamunukutla.medium.com/securing-ssh-access-to-aws-ec2-from-perimeter-controls-to-detection-b313e152aa8f?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b313e152aa8f</guid>
            <category><![CDATA[system-hardening]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Fri, 09 Jan 2026 19:19:08 GMT</pubDate>
            <atom:updated>2026-01-09T19:19:08.191Z</atom:updated>
            <content:encoded><![CDATA[<p>SSH remains one of the most targeted services on the internet.<br> In cloud environments, most SSH-related incidents are not caused by zero-day exploits, but by <strong>misconfigurations, overexposure, and lack of visibility</strong>.</p><p>In this article, I walk through a hands-on exercise where I secured SSH access to an AWS EC2 instance using <strong>AWS-native controls</strong>, <strong>host-level hardening</strong>, and <strong>network-level detection</strong>, while validating each step with evidence.</p><p>This is not a tool-heavy setup. It focuses on <strong>fundamentals that actually reduce risk</strong>.</p><h3>Architecture Overview</h3><p>The security model follows a simple defence-in-depth approach:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*BbHufBwSDPoYQq_os294Aw.jpeg" /></figure><p>The goal is to <strong>stop attacks before they reach the host</strong> and to <strong>prove when they are blocked</strong>.</p><h3>1. Perimeter Control: Restricting SSH at the AWS Level</h3><p>The first and most important control is the <strong>Security Group</strong>.</p><p>Instead of exposing SSH to the internet (0.0.0.0/0), SSH access was restricted to a <strong>single trusted public IP</strong>.</p><p>Key decisions:</p><ul><li>Removed default launch security groups</li><li>Attached a single, purpose-built security group</li><li>Allowed SSH (port 22) from &lt;trusted_ip&gt;/32 only</li></ul><p>This ensures that most attacks are stopped <strong>at the AWS networking layer</strong>, before the EC2 instance ever sees the traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s13DSSZScYsgU3wSnrQ2sA.jpeg" /></figure><h3>2. Host-Level SSH Hardening on EC2</h3><p>Perimeter controls are necessary, but not sufficient.<br> If an attacker bypasses the network layer, the host must still be resilient.</p><p>On the EC2 instance, SSH was hardened with the following controls:</p><ul><li>Root login disabled</li><li>Password-based authentication disabled</li><li>Key-based authentication enforced</li><li>Authentication attempts limited</li></ul><p>Effective configuration was verified using:</p><pre>sshd -T</pre><p>This step is critical. It confirms what SSH is <strong>actually enforcing</strong>, not what the config file claims.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*gLBdl7JtpUKqatF86NU7dA.jpeg" /></figure><h3>3. Validating Access Behavior</h3><p>After hardening:</p><ul><li>SSH access from the allowed IP succeeded using keys</li><li>SSH access from any other IP resulted in a timeout</li><li>No password prompts were accepted</li></ul><p>This confirmed that:</p><ul><li>Access was controlled at the perimeter</li><li>Weak authentication paths were removed at the host</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*bHUCN04S_MChtBzM9s4smQ.jpeg" /></figure><h3>4. Detection: Enabling VPC Flow Logs</h3><p>Hardening without visibility is incomplete.</p><p>To gain visibility into blocked traffic, <strong>VPC Flow Logs</strong> were enabled with the following configuration:</p><ul><li>Scope: VPC</li><li>Traffic type: <strong>REJECT</strong></li><li>Destination: CloudWatch Logs</li></ul><p>This setup captures only denied traffic, reducing noise and focusing on security-relevant events.</p><h3>5. Observing Blocked SSH Attempts</h3><p>Once Flow Logs were active, blocked SSH attempts immediately became visible.</p><p>CloudWatch logs showed:</p><ul><li>External source IPs</li><li>Destination port 22</li><li>Action marked as REJECT</li></ul><p>These were unsolicited connection attempts that never reached the EC2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJ_o7O851_YroaraurR5AQ.jpeg" /></figure><p>An important observation:</p><ul><li>These blocked attempts did <strong>not</strong> appear in the EC2 authentication logs</li><li>This confirms that traffic was stopped <strong>before</strong> reaching the operating system</li></ul><p>This distinction matters when designing detection strategies.</p><h3>6. Automation: Verifying Security Posture with a Script</h3><p>To avoid “set and forget” security, a small Bash audit script was created to verify:</p><ul><li>Effective SSH configuration</li><li>Active listening ports</li><li>Recent failed authentication attempts</li></ul><p>This turns security validation into a <strong>repeatable check</strong>, not a one-time task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*sNJppIrTgWL1EA1wrVmVkA.jpeg" /></figure><h3>Key Takeaways</h3><p>A few important lessons from this exercise:</p><ul><li>The most effective SSH defense happens <strong>before traffic reaches the host</strong></li><li>Security groups are a primary security control, not just networking</li><li>Host hardening without detection leaves blind spots</li><li>Verification (sshd -T, Flow Logs, scripts) matters more than assumptions</li></ul><p>Good security is quiet.<br> Most successful defenses never generate alerts on the server — because the traffic never gets there.</p><h3>Closing Thoughts</h3><p>This setup does not rely on advanced tools or complex architectures.<br> It relies on the <strong>correct use of fundamentals</strong>, layered properly and validated with evidence.</p><p>In cloud environments, understanding <strong>where security decisions are enforced</strong> is just as important as the decisions themselves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b313e152aa8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Years in Security Engineering — and I’m Still Learning Every Day]]></title>
            <link>https://sesanknagamunukutla.medium.com/years-in-security-engineering-and-im-still-learning-every-day-289f1e74966e?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/289f1e74966e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[professional-experience]]></category>
            <category><![CDATA[security-engineering]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 17:45:35 GMT</pubDate>
            <atom:updated>2026-01-05T17:45:35.835Z</atom:updated>
            <content:encoded><![CDATA[<h3>Years in Security Engineering — and I’m Still Learning Every Day</h3><p>After years of working across security engineering, network infrastructure, and security research, one truth has remained constant: <strong>understanding complex environments takes time</strong>. Trying to rush that process does not create efficiency — it creates risk.</p><p>This is not something I learned from books or certifications. These lessons came from being in real environments, dealing with real systems, real users, and real consequences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*QEpEyjI1rgx-f-N97BnicA.jpeg" /></figure><p>Making changes without fully understanding an environment is one of the most dangerous patterns I have observed in security and infrastructure work. It may look fast on the surface, but it silently increases exposure.</p><p>Acting without full context is not productive.<br> It is a risk.</p><p>Not everything in an environment is documented.<br>But every change still has consequences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*iKw44uyu-7t2GGUIEJKHDw.png" /></figure><p>In high-stakes systems, a single misstep — a firewall rule, a NAT change, a routing decision — can disrupt production, break dependencies, or expose critical assets. The risk is rarely obvious until after the damage is done.</p><p>Over time, I’ve learned that security is not just about implementing controls. It is about understanding:</p><ul><li>The architecture behind the system</li><li>The business impact of every decision</li><li>The potential blast radius of even small changes</li></ul><p>A firewall rule is never “just a rule.”<br>A configuration change is never isolated.</p><p>Security work requires patience, context, and restraint. Reacting quickly without understanding may feel decisive, but in reality, <strong>deep understanding before action</strong> is what protects systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*dT659lxXEO2JE47U6_E-iw.jpeg" /></figure><p>To junior engineers, especially: take the time to understand before you act. Ask questions. Trace dependencies. Learn how systems behave under normal conditions before attempting to secure or modify them.</p><p>Security is not only a technical role.<br> It is a responsibility.</p><p>These insights come from experience, mistakes observed, and lessons earned over time — not theory. And even after years in the field, the learning never stops.</p><p><strong>In security, speed impresses — but understanding protects.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=289f1e74966e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Baseline Linux Server Hardening & Exposure Validation]]></title>
            <link>https://sesanknagamunukutla.medium.com/baseline-linux-server-hardening-exposure-validation-e89564b85e17?source=rss-b319c767e95b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e89564b85e17</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[server-hardening]]></category>
            <dc:creator><![CDATA[Surya Naga Sesank Munukutla]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 17:31:34 GMT</pubDate>
            <atom:updated>2026-01-05T17:31:34.190Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Overview</strong></h3><p><strong>Ma</strong>ny security incidents do not start with advanced exploits. They start with <strong>basic exposure</strong> — open ports, unnecessary services, and default configurations.</p><p>This short hands-on exercise focuses on validating a <strong>baseline Linux system</strong>, identifying what is exposed, and applying minimal hardening to reduce the attack surface. The goal was not complexity, but <strong>clarity and verification</strong>. The emphasis is on <strong>verification</strong>, not tooling.</p><h3>Objective</h3><p>The objectives of this project were:</p><ul><li>Identify <strong>listening ports and active services</strong></li><li>Review <strong>SSH exposure</strong></li><li>Understand how an attacker would enumerate the system</li><li>Apply <strong>basic hardening</strong></li><li>Re-validate exposure after changes</li></ul><p>This reflects the <strong>initial reconnaissance phase</strong> from an attacker’s perspective and the <strong>first validation step</strong> from a defender’s side.</p><h3>Environment</h3><ul><li>Linux system with default configurations.</li><li>No additional security tools used initially.</li><li>Validation performed using built-in commands.</li></ul><h3>Port &amp; Service Validation</h3><p>The first step was to enumerate all listening ports and services to answer a fundamental question:</p><p><strong>“What is exposed right now?”</strong></p><p>This revealed:</p><ul><li>Services running without a clear requirement</li><li>Ports listening on all interfaces</li><li>Entry points visible during basic reconnaissance</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*OkOxd5_-pfOjONc1E6NTHg.jpeg" /></figure><p>This step demonstrates how much information is available to an attacker <strong>without any exploitation</strong>.</p><h3>SSH Exposure Review</h3><p>SSH is one of the most frequently targeted services on Linux systems.</p><p>Validation focused on:</p><ul><li>Whether SSH was required.</li><li>How broadly it was exposed.</li><li>The risk of default access patterns.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*GydZQJg3QGRKgN8ooc-jnQ.jpeg" /></figure><p>Even without brute-force attempts, this highlights how SSH often becomes a <strong>primary attack vector</strong>.</p><h3>Basic Hardening</h3><p>Based on the findings, minimal but effective hardening was applied:</p><ul><li>Disabled unnecessary services</li><li>Reduced exposed ports</li><li>Restricted access to required services only</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*mYf4q-44wPqsy3mJLHBS8A.jpeg" /></figure><p>Re-validating after hardening clearly showed a <strong>reduced attack surface</strong>.</p><h3>Detection Perspective</h3><p>If an attacker attempted:</p><ul><li>Port scanning</li><li>Service enumeration</li><li>Repeated SSH access</li></ul><p>Indicators would surface through:</p><ul><li>Authentication logs</li><li>Service access logs</li><li>Connection attempts</li></ul><p>This reinforces a key principle: <strong>detection begins with knowing what should and should not be active</strong>.</p><h3>Key Takeaways</h3><ul><li>Default configurations introduce unnecessary risk</li><li>Exposure validation should be routine</li><li>Hardening does not require complex tooling</li><li>Verification matters more than assumptions</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*kJa8kdm7-Fwd7XVoez0Vnw.jpeg" /><figcaption>Bash Script used for detection</figcaption></figure><h3>Conclusion</h3><p>This small project reinforced a core security principle:</p><p><strong>Baseline security and continuous verification are foundational.</strong><br>Before adding tools or automation, controlling exposure significantly reduces risk.</p><p>You Will See More Incoming every Week … Happy Reading … !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e89564b85e17" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>