Docsity

Securing AWS Cloud Resources: IAM and Network Security, Summaries of Computer Security

Toggle sidebar
bg1
Securing AWS Cloud Resources:
Identity, Access Management, and
Network Security
Securing Access to Cloud Resources
AWS Identity and Access Management (IAM)
AWS Identity and Access Management (IAM) securely shares and controls
individual and group access to AWS resources. It integrates with many
other AWS services, supports federated identity management, granular
permissions, and multi-factor authentication (MFA). IAM also provides
identity information for assurance. IAM addresses who is requesting access
to the AWS account and the resources within it, handling authorization by
checking policies relevant to the request to determine whether to allow or
deny it.
IAM Overview
An IAM user is a person or application that can authenticate with an AWS
account. A group is a collection of IAM users who are granted identical
authorization. A role is an identity used to grant a temporary set of
permissions to make AWS service requests. An IAM policy is a document
that defines which resources can be accessed and the level of access to
each resource.
IAM Terminology
An IAM entity is used by AWS for authentication, encompassing users and
roles. An IAM identity is used to identify and group users, groups, or roles.
A policy can be attached to an IAM identity. An IAM resource includes the
user, group, role, policy, and identity provider objects stored in IAM.
Resources can be added, edited, and removed from IAM. A principal is a
person or application that uses the AWS account root user, IAM user, or
IAM role to sign in and make requests to AWS.
Requests in IAM
A request is made when a principal attempts to use the AWS Management
Console, API, or AWS CLI. The request contains actions or operations,
resources, the principal, environment data (IP address, user agent, SSL
status, time of day), and resource data.
pf3
pf4
pf5

Partial preview of the text

Download Securing AWS Cloud Resources: IAM and Network Security and more Summaries Computer Security in PDF only on Docsity!

Securing AWS Cloud Resources:

Identity, Access Management, and

Network Security

Securing Access to Cloud Resources

AWS Identity and Access Management (IAM)

AWS Identity and Access Management (IAM) securely shares and controls individual and group access to AWS resources. It integrates with many other AWS services, supports federated identity management, granular permissions, and multi-factor authentication (MFA). IAM also provides identity information for assurance. IAM addresses who is requesting access to the AWS account and the resources within it, handling authorization by checking policies relevant to the request to determine whether to allow or deny it.

IAM Overview

An IAM user is a person or application that can authenticate with an AWS account. A group is a collection of IAM users who are granted identical authorization. A role is an identity used to grant a temporary set of permissions to make AWS service requests. An IAM policy is a document that defines which resources can be accessed and the level of access to each resource.

IAM Terminology

An IAM entity is used by AWS for authentication, encompassing users and roles. An IAM identity is used to identify and group users, groups, or roles. A policy can be attached to an IAM identity. An IAM resource includes the user, group, role, policy, and identity provider objects stored in IAM. Resources can be added, edited, and removed from IAM. A principal is a person or application that uses the AWS account root user, IAM user, or IAM role to sign in and make requests to AWS.

Requests in IAM

A request is made when a principal attempts to use the AWS Management Console, API, or AWS CLI. The request contains actions or operations, resources, the principal, environment data (IP address, user agent, SSL status, time of day), and resource data.

Authenticating with IAM

A person, application, or AWS service can assume a role. Common use cases include applications running on Amazon EC2, cross-account access for an IAM user, and mobile applications. IAM credentials are used for authentication.

Multi-Factor Authentication (MFA)

Multi-factor authentication adds an extra layer of protection on top of a username and password. Users are prompted for an authentication code. It can be hardware-based or a virtual device. MFA should be activated for AWS Management Console users and AWS API users (requiring temporary security credentials). Examples of MFA devices include security keys (YubiKey, Gemalto), applications (Google Authenticator, Authy), and hardware devices.

Authorizing with IAM

IAM policies define permissions.

Evaluation Logic for IAM Policies

IAM policies are evaluated to determine authorization.

Identity-Based Policy Example

An identity-based policy is an example of authorizing with IAM.

Cross-Account, Resource-Based Policy Example

A cross-account, resource-based policy is another example of authorizing with IAM.

IAM Policy: Allow Statement Example

An example IAM policy demonstrates an allow statement.

Identity Federation

Identity federation is a system of trust between two parties to authenticate users and convey information needed to authorize resource access. AWS Single Sign-On (AWS SSO) and AWS Identity and Access Management (IAM) are two AWS services available to provide federation to AWS accounts and applications.

AWS Single Sign-On (AWS SSO)

AWS SSO allows you to create or connect identities once and manage access centrally across AWS accounts. It provides a unified administration

connection to those instances. It requires specifying the public subnet in which the NAT gateway should reside and an Elastic IP address to associate with it. After creation, the route table for private subnets must be updated to direct internet-bound traffic to the NAT gateway.

Private Subnet

Private subnets consist of a contiguous range of IP addresses. Interfaces attached to instances in private subnets cannot be reached from outside the parent VPC. Private subnets are often used to host database instances that don't need to be accessed through the public internet.

Public IP Address

A public IP address is an IP address that is used to access the internet.

Elastic IP Address

An Elastic IP address is associated with an AWS account, is static and doesn't change over time, and comes from Amazon's pool of IPv4 addresses. It is used when working on a long-term project and configuring IP addresses can be time-consuming.

Route Tables and Routes

A route table contains a set of rules (or routes) that direct network traffic from your subnet.

Public and Private Subnets and Internet Protocols

Public subnets are used when external traffic needs to reach an interface, such as an EC2 instance. Private subnets are often used to host database instances that don't need to be accessed through the public internet.

Security Groups

Security groups have rules that control inbound and outbound instance traffic. Inbound rules specify the source, protocol, and port range to allow traffic from network interfaces assigned to the same security group.

Network ACLs

Network ACLs are stateless, meaning that responses to inbound traffic are subject to the rules for outbound traffic (and vice versa).

Default Inbound and Outbound Rules

Default inbound and outbound rules for Network ACLs allow all IPv4 traffic from 0.0.0.0/0 and then deny all IPv4 traffic from 0.0.0.0/0.

Comparing Security Groups and Network ACLs

Security groups operate at the instance or interface level and support allow rules only, are stateful, and all rules are evaluated before a decision is made. Network ACLs operate at the subnet level and support both allow and deny rules, are stateless, and rules are evaluated in number order.

VPC Security Features

VPC security features include security groups, network ACLs, subnets, and route tables. VPC Flow Logs can log activity down to the interface level.

Elastic Load Balancing (ELB)

Elastic Load Balancing distributes incoming application traffic, supports high availability, and performs health checks on instances. It provides Application Load Balancer, Network Load Balancer, and Classic Load Balancer options.

Data Protection in ELB

ELB provides a single point of contact and supports encryption at rest and in transit.

Best Practices to Protect Your Network

Control traffic at all layers, inspect and filter traffic at the application level, and automate network protection.