Wednesday, April 29, 2026
Cohort 3 | Project CloudIgnite Topics: Security Threats, Cloud Security Strategy, Shared Responsibility Model, Security Controls, Network Hardening, IAM Duration: ~3 hours
🎯 CLF-C02 Relevance: This lecture maps heavily to the Security & Compliance domain (Domain 2) of the AWS Certified Cloud Practitioner exam, which accounts for 30% of the exam score. Sections marked with ☁️ are directly examinable.
Key Takeaways
- AWS Shared Responsibility Model: AWS = "Security OF the cloud"; Customer = "Security IN the cloud"
- Threats: malware (virus/worm/trojan/ransomware), DDoS, phishing, MitM, social engineering
- Security lifecycle: Prevention → Detection → Response → Analyze
- Prevention phase: identify assets (nmap, Systems Manager), assess vulnerabilities (CVE), implement countermeasures
- Network hardening: default-deny firewall, close unused ports, network segmentation with public/private subnets
- Layered security: Perimeter → Network → Endpoint → Application → Data (each layer uses different methods)
- IAM: Principle of least privilege — grant only minimum permissions needed
Table of Contents
- Bash Challenge (Warm-up)
- Types of Security Threats
- Cloud Security Strategy
- AWS Shared Responsibility Model
- Security Controls
- Security Lifecycle
- Prevention Phase – In Depth
- Network Hardening
- System Hardening
- Data Security Controls
- Identity & Access Management
- Layered Security Model
- Network Tools Demo
- Quiz & Knowledge Check Answers
Bash Challenge
#!/bin/bash
read -p "Enter filename: " file
if [ ! -f "$file" ]; then
echo "File not found"
exit 1
fi
lines=$(wc -l < "$file")
if [ "$lines" -gt 10 ]; then
echo "Large file"
else
echo "Small file"
fi
Explanation: The script prompts for a filename, checks if it exists, counts its lines, and prints whether it's a "Large file" (>10 lines) or "Small file".
Types of Security Threats
Malware (Malicious Software)
Malware is any software designed to disrupt operations, gain unauthorized access, or collect/modify sensitive information.
| Type | Description |
|---|---|
| Virus | A category of malware that infects files/applications |
| Spyware | Secretly monitors activity (e.g., keyloggers record every keystroke) |
| Worm | Self-replicating malware that spreads across systems |
| Trojan (RAT) | Remote Access Trojan – gives attacker control over your device |
| Ransomware | Encrypts/locks data until a ransom is paid; can be time-triggered |
Other Threat Types
| Threat | Description |
|---|---|
| DoS / DDoS | Floods a server with millions of requests so legitimate users can't connect. DDoS uses many machines (botnet). |
| Man-in-the-Middle (MitM) | Attacker intercepts traffic between client and server, can modify requests or hijack sessions |
| Phishing | Impersonates a legitimate website/person (e.g., spoofing "maybank.com" with a lookalike Unicode character) |
| Social Engineering | Manipulating people (via phone, video, or in-person) to reveal sensitive information |
Cloud Security Strategy
A security strategy answers three core questions:
- What to protect? (identify resources: EC2, VPC, S3, RDS, etc.)
- When to protect? (security lifecycle – when is the resource running/exposed?)
- Who is responsible? (shared responsibility model)
AWS Shared Responsibility Model ☁️
This is a heavily tested CLF-C02 topic.
Customer Responsibility ("Security IN the Cloud")
- Customer data
- Application code and installed software
- IAM (users, roles, policies)
- OS, network, and firewall configuration on EC2
- Client-side and server-side encryption (if using own keys)
- Network traffic protection (security group / NACL configuration)
AWS Responsibility ("Security OF the Cloud")
- Physical infrastructure (data centres, hardware, cabling)
- Compute, storage, database, and networking infrastructure
- Hypervisor and virtualisation layer
- Managed services' underlying OS and patching
Shared Responsibility
- DDoS mitigation (partly AWS tools like AWS Shield, partly your application design)
- Administrative controls (IAM user management)
Security Controls
Three types of security controls:
| Type | Purpose | Examples |
|---|---|---|
| Preventive | Stop an attack before it happens | Card reader access, firewall, IAM least privilege |
| Detective | Identify an attack in progress or after the fact | Security cameras, antivirus, log analysis, AWS CloudTrail |
| Corrective | Recover after a breach | Backups, restore operations, incident response |
Controls are also categorised as:
- Physical – Mostly AWS's responsibility (data centre security)
- Technical – Antivirus, firewalls, encryption
- Administrative – IAM policies, acceptable use policies (shared)
Security Lifecycle ☁️
A continuous loop with four phases:
Prevention → Detection → Response → Analyze → (back to Prevention)
| Phase | Description |
|---|---|
| Prevention | Identify assets, assess vulnerabilities, implement countermeasures |
| Detection | Monitor logs, detect unusual activity or unauthorised access attempts |
| Response | Act on detected threats; contain damage |
| Analyze | Review what happened; use findings to improve prevention |
💡 Exam tip: Security countermeasures are implemented in the Prevention phase.
Prevention Phase – In Depth
Step 1 – Identify Assets to Protect
- Network devices – routers, physical connections
- Servers – EC2 instances
- Applications & Services – e.g., Apache HTTPD running as a background service
Tools for asset discovery:
| Tool | Purpose |
|---|---|
ping | Check if a host is reachable |
traceroute | Trace the network path a packet takes |
nmap | Scan a network for hosts and open ports |
| AWS Systems Manager Inventory | Lists EC2 instances, installed apps, OS version, key pairs, IP addresses |
Step 2 – Assess Vulnerabilities
- Network assessment – which ports are open? which devices are public-facing?
- Host assessment – are OS security patches up to date?
- Application assessment – are libraries/dependencies free of known CVEs? (e.g., Axios vulnerability example)
- Data assessment – is data encrypted in transit (HTTPS) and at rest?
🔗 Resource: Common Vulnerabilities and Exposures (CVE)
Step 3 – Implement Countermeasures
- Apply the correct fix based on the CVE description
- Upgrade or downgrade affected software versions as needed (e.g., Apache Log4j2)
Network Hardening
Network Discovery Hardening
- Block network exploration protocols – prevent attackers from mapping your topology
- Close all unused ports – only open ports that are actively needed (e.g., 22, 80, 443)
- Keep all software up to date
Network Architecture Hardening ☁️
| Measure | AWS Implementation |
|---|---|
| Firewall | Security Groups (instance-level) & NACLs (subnet-level) |
| Intrusion Prevention System (IPS) | AWS Network Firewall, third-party tools |
| Network Segmentation | Subnets (public/private), VLANs |
Security Group vs NACL:
- Security Group – denies all by default; stateful; applied at instance level
- NACL – allows all by default; stateless; applied at subnet level; must explicitly deny if needed
Firewall Best Practice:
Deny ALL traffic by default → explicitly allow only what is needed
Key ports to know:
| Port | Service |
|---|---|
| 22 | SSH |
| 80 | HTTP |
| 443 | HTTPS |
| 3306 | MySQL |
| 1433 | MSSQL |
| 8080 | HTTP alternate |
System Hardening
Focus area: the Operating System and installed software.
- Apply all security patches and updates promptly
- Remove unused applications – reduce attack surface
- Monitor configuration changes continuously
⚠️ "Outdated OS" doesn't mean the previous version – it means a version whose vendor support has ended (no more security patches). Always check the OS maintenance lifecycle.
Data Security Controls
- Ensure data is encrypted in transit → use HTTPS / TLS certificates
- Ensure data is encrypted at rest → enable server-side encryption (S3, EBS, RDS)
- Verify data integrity → use digital certificates (SSL/TLS)
- If you are using your own encryption keys, their security is your responsibility, not AWS's
💡 Never enter sensitive information (passwords, credit card details) on a site that uses plain HTTP.
Identity & Access Management ☁️
Core CLF-C02 topic.
Principle of Least Privilege:
Grant a user access to only the resources they are authorised to use – nothing more.
Best practices:
- Deny all access by default; grant permissions granularly
- Enforce strong password policies via IAM password policy
- Enable Multi-Factor Authentication (MFA) for all privileged accounts
- Regularly audit and remove unnecessary permissions
- AWS IAM is conceptually similar to Linux users and groups
Layered Security Model
Inspired by defence-in-depth (like castle walls: moat → outer wall → inner wall → keep).
Perimeter Security → Network Security → Endpoint Security
→ Application Security → Data Security
| Layer | Description | AWS Example |
|---|---|---|
| Perimeter | Outermost firewall | Security Groups, AWS WAF |
| Network | Internal traffic control | NACLs, VPC routing |
| Endpoint | Host protection | OS patching, antivirus on EC2 |
| Application | App-level firewall | WAF (blocks SQLi, XSS, DDoS) |
| Data | Encryption + access control | IAM, KMS, S3 encryption |
Why layered security?
If one layer is breached, the next layer provides protection. Each layer uses different methods – repeating the same method at every layer provides no real benefit.
OSI model analogy: security can be implemented at every layer (L1–L7); if L7 is breached, L6 provides a backstop.
Network Tools Demo
nmap – Network Scanner
# Install
sudo apt install nmap
# Scan specific ports on a target
nmap -p 21,22,80,443,8080 <target-ip>
# Scan all hosts on a subnet
nmap 192.168.100.0/24
# Scan without DNS resolution
nmap -n 192.168.100.0/23
Output shows: host IP, MAC address, open/filtered/closed ports per host.
telnet – Quick Port Check
telnet <ip-address> <port>
# "Connected" = port is open
# Connection refused / timeout = port is closed/filtered
Wireshark – Packet Sniffer
- Captures all packets travelling over a network interface
- Shows: source IP, destination IP, protocol (TCP/UDP), packet length, raw data (hex)
- Filtered port = accessible from specific IP ranges only, not the public internet
- If traffic is unencrypted (HTTP), packet contents are fully readable
- If traffic is encrypted (HTTPS), captured packets show only ciphertext
⚠️ Public Wi-Fi warning: Anyone on the same network can run nmap to discover your device and Wireshark to sniff your unencrypted traffic. Use a VPN on public Wi-Fi.
Amazon Inspector ☁️
- AWS-native tool that automatically assesses your EC2 instances and network
- Reports on: open unused ports, outdated/vulnerable software versions, missing patches
- Produces a prioritised findings report so you can remediate issues
Quiz & Knowledge Check Answers
| Question | Answer |
|---|---|
| Role of Confidentiality in CIA triad | Ensures resources are accessed by authorised users only |
| Which security perspective is about data not being modified in transit? | Integrity |
| Which threat floods a resource with requests from multiple systems? | DDoS (Distributed Denial of Service) |
| Which is a phase in the security lifecycle (not SDLC)? | Prevention (deployment belongs to SDLC) |
| Example of administrative security control? | Acceptable Use Policy document |
| Three tasks in the prevention phase? | Assess asset vulnerability, identify assets to protect, implement countermeasures |
| Which AWS service creates an inventory of EC2 instances? | AWS Systems Manager |
| Benefit of layered security strategy? | Asset is protected by multiple layers of different types of security measures |
| Types of security prevention measures? | System hardening, network hardening, data security controls |
| Principle of least privilege means? | Grant users access to only the resources they are authorised to access |
📌 CLF-C02 Exam Relevance Summary
The following topics from this lecture are directly relevant to the AWS Certified Cloud Practitioner (CLF-C02) exam:
| Topic | CLF-C02 Domain |
|---|---|
| Shared Responsibility Model | Domain 2: Security & Compliance |
| IAM & Principle of Least Privilege | Domain 2: Security & Compliance |
| Security Groups & NACLs | Domain 2 + Domain 3: Cloud Technology |
| Security Lifecycle (Prevent/Detect/Respond/Analyze) | Domain 2: Security & Compliance |
| MFA & Password Policies | Domain 2: Security & Compliance |
| Encryption in transit and at rest | Domain 2: Security & Compliance |
| AWS Systems Manager | Domain 3: Cloud Technology |
| Amazon Inspector | Domain 2: Security & Compliance |
| Types of threats (malware, DoS, phishing, MitM) | Domain 2: Security & Compliance |
| Defence in depth / layered security | Domain 2: Security & Compliance |
📚 Recommended next step: Review the AWS Shared Responsibility Model and practice IAM policy scenarios.
Notes compiled from lecture – April 29, 2026. Some content lightly paraphrased for clarity.