<?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 Anusha Manchala on Medium]]></title>
        <description><![CDATA[Stories by Anusha Manchala on Medium]]></description>
        <link>https://medium.com/@anusha.manchala84?source=rss-96d5e5bcb268------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s6EYJV_79vpAKF0GBtoFww.jpeg</url>
            <title>Stories by Anusha Manchala on Medium</title>
            <link>https://medium.com/@anusha.manchala84?source=rss-96d5e5bcb268------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:45:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anusha.manchala84/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[Launch an app with ECS — Ec2]]></title>
            <link>https://medium.com/@anusha.manchala84/launch-an-app-with-ecs-ec2-a74f755a520?source=rss-96d5e5bcb268------2</link>
            <guid isPermaLink="false">https://medium.com/p/a74f755a520</guid>
            <dc:creator><![CDATA[Anusha Manchala]]></dc:creator>
            <pubDate>Wed, 01 Mar 2023 08:29:14 GMT</pubDate>
            <atom:updated>2023-03-01T19:13:56.793Z</atom:updated>
            <content:encoded><![CDATA[<h3>Launch an app with ECS — Ec2</h3><p>This blog provides a very quick overview to deploy an app in the ECS with infra that looks like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f-9PRuH_wioOB9DnWrPFMg.png" /></figure><p><strong>Create ECR &amp; push Docker image:</strong></p><p>Once you are ready with your app and configured the dockerfile,</p><ol><li>Create an ECR repo</li><li>Configure aws cli</li><li>Locally, execute this to authenticate between your docker client and ECR `aws ecr get-login-password — region &lt;region&gt; | docker login — username AWS — password-stdin &lt;repo_url&gt;`</li><li>Then, `docker build -t &lt;app directory&gt; .`</li><li>Tag the image — `docker tag &lt;repo_url:latest&gt;`</li><li>Push the image to repo — `docker push &lt;repo_url:latest&gt;`</li></ol><p><strong>VPC Steps:</strong></p><ol><li>Create a VPC — enable DNS for the VPC</li><li>Create 6 subnets — 3 private, 3 public in availability zones a, b, c</li><li>Create an Internet gateway and attach it to the VPC</li><li>Create a NAT gateway and attach it to the VPC. This will allow the private ec2 instances communicate with AWS services. In this case it will let ec2 communicate with ECR</li><li>Create 2 route tables — 1 for private subnets (private-rt-table), 1 for public subnets (public-rt-table)</li><li>For private-rt-table, create a route to internet via NAT gateway</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ORd06a5Dq-v2SIGQXMeHIw.png" /></figure><p>7. For public-rt-table, create a route to internet via Internet gateway</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WELXGYVwM9c5kE1etjUmXQ.png" /></figure><p>8. Associate the Private subnets to `private-rt-table` and public subnets to `public-rt-table`</p><p>9. Edit all the public subnet settings to enable auto-assign public IP</p><p><strong>Create security groups</strong></p><ol><li>Create 2 security groups — 1 for App load balancer, 1 for the ec2 container</li><li>For ALB SG, allow all inbound traffic on port 80</li><li>For the EC2 container, allow all the inbound traffic from ALB SG</li></ol><p><strong>Create a Load balancer &amp; Target groups:</strong></p><ol><li>Create a target group, select instances</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5Vh4NVvhGXm5sYVlAWJAw.png" /></figure><p>Give a name, select the protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qC2Rhu_LexUP9AIPQR4u_w.png" /></figure><p>2. Create a Application Load balancer, select Internet facing, VPC, <strong>public subnets, listener port 80 with above target group, select ALB SG</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIF1MwjcMEFGdgwjkeT6ww.png" /></figure><p><strong>ECS setup</strong></p><ol><li>Create a Auto scaling group Launch configuration with a template that selects the ec2 container security group for the instance, and select the load balancer &amp; Target groups we created above</li><li>Create a cluster, use ec2 launch type with ASG launch config</li><li>Create a Task definition:</li></ol><p>i) select the container image from ECR ii) select bridge mode, with EC2 launch type iii)Host port 80, Container port 5000 (or whatever is used in the dockerfile)</p><p>4. Run the task in the cluster</p><p><strong>Test the app</strong></p><ol><li>From App load balancer, select the dns name</li><li>Open new tab and enter the dns name to test if the app index page is seen.</li></ol><p>#ecs #deployapp</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a74f755a520" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat modeling Basics — Part 2]]></title>
            <link>https://medium.com/@anusha.manchala84/threat-modeling-basics-part-2-1afb6fe9d799?source=rss-96d5e5bcb268------2</link>
            <guid isPermaLink="false">https://medium.com/p/1afb6fe9d799</guid>
            <category><![CDATA[threat-modeling]]></category>
            <dc:creator><![CDATA[Anusha Manchala]]></dc:creator>
            <pubDate>Sat, 18 Feb 2023 23:03:00 GMT</pubDate>
            <atom:updated>2023-02-19T02:20:57.446Z</atom:updated>
            <content:encoded><![CDATA[<h3>Threat modeling Basics — Part 2</h3><p>Here’s a simple guide to get you started with Threat modeling. Part 1 focuses on understanding some important definitions including STRIDE, diagram representations &amp; Trust zones. Part 2 covers the definition of Threat modeling, steps involved in Threat modeling and explains each step with an example.</p><h3>Threat modeling</h3><p>Threat modeling is a structured approach to identifying and assessing potential security threats and vulnerabilities to an application, system, or network. It involves analyzing the system’s architecture, components, and assets to identify potential attack vectors and the risks associated with each.</p><p><strong>4 simple questions to ask while threat modeling:</strong></p><ol><li>What are you doing?</li><li>What can go wrong?</li><li>What are you going to do about it?</li><li>Did you do an acceptable job?</li></ol><p>the process basically identifies any design flaws.</p><h3>Threat modeling Steps:</h3><ol><li><strong>What are you doing?</strong></li></ol><ul><li>Understand the needs to threat model. Understand the security requirements/compliance requirements to threat model.</li><li>Define a scope, divide it into smaller components. It is very important to keep the scope as small as possible for efficient results.</li><li>Create a rough diagram of the design/data flow/network of the system you want to threat model. Gather your teams &amp; create a rough diagram, there’s no need to aim for a perfect diagram here.</li><li>Mark the Trust zones. Understand what most trusted and least trusted zone is.</li><li>Identify the sensitive data flowing/stored in the scope.</li></ul><p><strong>Example:</strong></p><p>Here’s an example of a simple scope where a user logs in to an application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*SCi-ZM5urFCiX-ZlKk869w.png" /></figure><p>First, understand the system/scope, what does the scope do? Here’s what the application does:</p><ul><li>User uses the login process to enter the application.</li><li>For that, User enters his credentials.</li><li>Login process validates the credentials by connecting to database.</li></ul><p>Next, Identify the sensitive data: Here, as shown in the diagram, the sensitive data flowing through the system is username, password. And the database may hold sensitive user data such as usernames, passwords, address, emails, phone numbers etc.<strong> Understand what type of data flows here &amp; how sensitive it is/not</strong>.</p><p>Now, mark the trust zones.</p><ul><li>User is an external entity — so he’s at a 0-trust zone.</li><li>Database is internal and holds sensitive data — it is given 9, since it is the most trusted zone.</li><li>Login process is at the boundary between least &amp; most trusted zone — it is given 1.</li></ul><p>2. <strong>What can go wrong?</strong></p><p>Ask what an Attack vector can do &amp; what would be an Attack outcome. Based on that determine how would that be categorized in the STRIDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*SCi-ZM5urFCiX-ZlKk869w.png" /></figure><p><strong>Possibility:</strong> User sends SQL queries as credentials to gain access to the database and read data -&gt; ID, EoP -&gt; severity depends on what data is accessed.</p><p>User sends SQL queries as credentials. — Attack vector</p><p>To gain access to the database and read data — Attack outcome.</p><p>Impact — Affects Confidentiality</p><p>Threats — Information Disclosure, Elevation of Privileges</p><p><strong>Possibility: </strong>User sends sql queries as credentials to gain access to the database and modify data -&gt; <strong>EoP, Tampering, Repudiation</strong></p><p>Impact — Integrity</p><p><strong>Possibility: </strong>User sends sql queries as credentials to gain access to the database and delete data -&gt; EoP, DoS, Repudiation → Critical</p><p>Impact — Availability, Integrity</p><p><strong>Possibility: </strong>User performs brute force attack to guess other user credentials and execute operations as other users. These users can have various privileges -&gt; Elevation of Privilege, Spoofing → CRITICAL.</p><p><strong>Possibility: </strong>Credential stuffing (uses compromised credentials) to gain access to other user account — Elevation of Privilege, Spoofing</p><p><strong>Possibility: </strong>Mess with the lockout feature by attempting multiple logins — Denial of Service Threat</p><p><strong>Possibility: </strong>Sniffing user passwords during login process — Tampering, Information Disclosure</p><p>3. <strong>What are you going to do about it?</strong></p><p>Next step would be, determining what steps were already taken to prevent these threats?</p><p>4. <strong>Did you do an acceptable job?</strong></p><p>Determine if the controls are sufficient? Do you have to add additional controls? Or change what you have? Understand about the existing controls in place. And look for any gaps within the existing controls.</p><p>If no controls exist, it is time to prioritize placing new controls.</p><p><em>Steps 3 &amp; 4 are not explained in great detail here, but the basic idea is to identify the threats and start working on a plan of remediation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1afb6fe9d799" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threat modeling Basics — Part 1]]></title>
            <link>https://medium.com/@anusha.manchala84/threat-modeling-basics-part-1-eb56bd3e08d7?source=rss-96d5e5bcb268------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb56bd3e08d7</guid>
            <category><![CDATA[threat-modeling]]></category>
            <category><![CDATA[secure-design]]></category>
            <dc:creator><![CDATA[Anusha Manchala]]></dc:creator>
            <pubDate>Sat, 18 Feb 2023 22:48:07 GMT</pubDate>
            <atom:updated>2023-03-09T01:08:42.827Z</atom:updated>
            <content:encoded><![CDATA[<h3>Threat modeling Basics — Part 1</h3><p>Here’s a simple guide to get you started with Threat modeling. Part 1 focuses on understanding some important definitions including STRIDE, diagram representations &amp; Trust zones. <a href="https://medium.com/@anusha.manchala84/threat-modeling-basics-part-2-1afb6fe9d799">Part 2</a> covers the definition of Threat modeling, steps involved in Threat modeling and explains each step with an example.</p><h3>Important terms to know:</h3><p><strong>Vulnerability</strong>: A vulnerability is a weakness or a flaw in a system, device, or software application that may give unauthorized access to a person. These weaknesses could be misconfigured permissions, design flaws, or coding errors.</p><p>(If someone locks their front door to not let anyone enter the house while they attend a party, However, the backdoor or a window is kept open.)</p><p><strong>Threat</strong>: A security threat is any event or action that has the potential to compromise the vulnerability.</p><p>(Someone enters your house through the window to rob something in the house).</p><p><strong>Threat Actor</strong>: A threat actor is a person, group, or entity that has the capability and intention to exploit vulnerabilities to cause harm.</p><p>(“Someone” or “Something” that entered the house)</p><p><strong>Attack vector</strong>: An attack vector is a path or method used by a threat actor or attacker to exploit a vulnerability.</p><p>(Window/Backdoor is the attack vector that someone used.)</p><p><strong>Attack Surface</strong>: The attack surface refers to the sum of all the possible ways that an attacker could target the vulnerabilities and other potential entry points.</p><p>(Once the attacker enters through the window/backdoor, all the possible rooms, furniture, important assets are exposed for attacker to steal)</p><p><strong>Impact</strong>: Degree of harm caused by the attack. Does it affect Confidentiality? Or Integrity? Or Availability?</p><p>(If the attacker’s intension is stealing some documents from your closet, it impacts confidentiality. If he wants to change the furniture to annoy you, it impacts integrity. If he decides to burn down the house, it impacts Availability.)</p><p><strong>Probability</strong>: Chances of executing an attack</p><p>(If it’s raining heavily, maybe the attacker might decide to not go out and enter the house through the window.)</p><p><strong>Risk</strong>: Risk is the likelihood of attack happening. Threat * Vulnerability * Impact * Probability (Likelihood)</p><p>(If the house is empty, the impact of attacker stealing is low. If the window gives access to only one room and the room has just a table and chair, the impact is attacker just steals the table &amp; chair, but if the window gives access to the whole house, the impact is quite high.)</p><h3>What is STRIDE?</h3><p>STRIDE is a framework for threat modeling that provides a mnemonic for identifying different types of security threats. The STRIDE acronym stands for the following:</p><p>S — Spoofing affects Authentication. An attacker falsifies or manipulates data to make it appear as though it comes from a trusted source.</p><p>T — Tampering affects Integrity. Attacker modifies or alters data in an unauthorized way.</p><p>R — Repudiation affects Integrity. Attacker denies having performed a particular action and creates uncertainty or doubt about the data to hide their actions.</p><p>I — Information Disclosure affects Confidentiality. Unauthorized or accidental disclosure of sensitive or confidential information to an unintended recipient.</p><p>D — Denial of Service affects Availability. Attacker aims to disrupt or disable the normal operation of a targeted system, service, or network by overwhelming it with traffic or resource requests.</p><p>E — Elevation of Privilege affects Authorization. Attacker gains unauthorized access to a system or resource with higher privileges than they should have, this may lead access to sensitive data or resources.</p><h3>Diagram representations in Threat modeling:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*UIaTvxJn-zKEHw9ZTXlKyw.png" /><figcaption>User login example</figcaption></figure><p>- <strong>Rectangle</strong> indicates external entity; User is an external Entity.</p><p>- <strong>Circle</strong> indicates a process; Login is a process.</p><p>- <strong>Arrows</strong> show the flow of data.</p><p>- <strong>Lines</strong> indicate a data store; User credentials are stored in a database.</p><h3><strong>Trust Zones</strong></h3><p>Trust zone indicates the change in the level of trust. These trust zones can be identified by understanding:</p><p>- The systems that you own/manage or responsible to maintain or run them vs something that is not under your control.</p><p>- If there is any increased or decreased level of access. This should be a lookout for any authorization changes.</p><p>Based on your answers you’d mark the Trust Zones from 0–9.</p><p><strong>0 being lowest trust and 9 being the highest trust</strong>.</p><p><strong>(Contd..)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb56bd3e08d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>