aws security - last min rev

Aws

AWS ACM: A service to manage certificates for AWS services, simplifying their use and renewal.

AWS Identity Management Services:

  1. AWS SSO: Centralizes SSO access to AWS accounts.
  2. Amazon Cognito: Manages user authentication for apps.
  3. AWS IAM: Controls access to AWS resources using policies.

IAM is free and global, not region-specific.

Types of firewall in EC2

In EC2, there are two main types of firewalls:

  1. Security Groups: Act as virtual firewalls for EC2 instances to control inbound and outbound traffic. They are stateful, meaning if you allow inbound traffic, the response is automatically allowed.
  2. Network Access Control Lists (NACLs): Operate at the subnet level, controlling inbound and outbound traffic for all instances within a subnet. They are stateless, meaning responses must be explicitly allowed.

Prevention in security Lifecycle


AWS System Manager Inventory Function ss

The AWS Systems Manager inventory function offers centralized management, detailed instance inventory, automation for tasks like software and patch management, enhanced security through up-to-date instance information, and operational insights for improved efficiency within AWS environments.


Types of prevention measures (Onion layers)


OSI MODEL


WHICH THREE TASKS ARE PERFORMED AT THE PREVENTION PHASE OF SECURITY LIFE CYCLE


Network Hardening

Threats & Prevention

Architecture Hardening

AWS Security

🔹 Focus: Block threats, encrypt data, limit access, monitor traffic.

  1. AWS Systems Manager: Focused on managing and automating tasks on AWS resources (e.g., patching, inventory, secure shell access).
  2. Amazon CloudWatch: Provides real-time monitoring of AWS resources and applications (e.g., performance metrics and logs).
  3. AWS CloudTrail: Tracks all API and console actions in AWS for auditing and compliance.

Key Difference:


System hardening

![](/img/user/AWS CLOUD/attachments/Pasted image 20250202190751.png)


Feature AWS Trusted Advisor Amazon GuardDuty AWS Shield AWS CloudTrail
Purpose Provides recommendations for best practices in security, performance, cost, and fault tolerance. Detects threats using machine learning, anomaly detection, and threat intelligence. Protects against DDoS attacks. Tracks user activity and API calls for auditing and security.
Function Identifies security gaps and optimizes AWS resources. Monitors AWS accounts, workloads, and network activity for suspicious behavior. Defends applications against large-scale DDoS attacks. Logs AWS API calls for governance, compliance, and debugging.
Focus Area Security, cost optimization, performance, and resilience. Threat detection and anomaly identification. DDoS mitigation and network protection. User activity tracking and audit logs.
Detection & Prevention Preventative – Helps improve AWS configurations proactively. Detects ongoing security threats and alerts users. Mitigates DDoS attacks in real-time. Provides logs for post-incident analysis but does not actively prevent attacks.
Threat Handling No direct threat detection, only best-practice suggestions. Identifies threats such as compromised instances, credential theft, and malicious activities. Shields against volumetric, state-exhaustion, and application-layer DDoS attacks. Records actions for forensic investigation and compliance.
AWS Services Monitored AWS resources (EC2, RDS, IAM, S3, etc.). VPC Flow Logs, CloudTrail logs, and DNS logs. AWS applications and networks. All AWS API calls across accounts.
Use Case Optimize AWS resource security, cost, and performance. Identify security breaches, unauthorized access, and malicious activity. Protect against DDoS attacks on AWS-hosted applications. Audit AWS activity and detect policy violations.

PREVENTION - DATA SECURITY

CIA Triad: Confidentiality (protect data), Integrity (prevent tampering), Availability (ensure access).

Encryption

AWS Encryption Services


PREVENTION - PUBLIC KEY INFRASTRUCTURE

Public key infrastructure (PKI) is a collection of technologies that are used to apply cryptography principles to transfer information securely between two entities. It is based on a practical distribution and implementation of keys, with a set of tools to achieve confidentiality, integrity, non-repudiation, and authenticity

![](/img/user/AWS CLOUD/attachments/Pasted image 20250202193157.png)

Components:

How it Works: A user requests a certificate from RA, which passes it to CA. After verification, CA issues the certificate.

ACM - AWS Certificate Manager : A service to manage certificates for AWS services, simplifying their use and renewal.


PREVENTION - IDENTITY MANAGEMENT

AAA Principles:
- Authentication: Verifying identity (e.g., password, ID).
- Authorization: Granting access based on identity.
- Accounting: Tracking user actions (e.g., login logs).

AWS Identity Management Services:
- AWS SSO: Centralizes SSO access to AWS accounts.
- Amazon Cognito: Manages user authentication for apps.
- AWS IAM: Controls access to AWS resources using policies.


4. PREVENTION - IDENTITY AND ACCESS MANAGEMENT (AWS)


DETECTION