Security Mindset
Learning Path
📘 Phase 1 – Overview
🎯 Lesson Objective
Section titled “🎯 Lesson Objective”By the end of this lesson, you will be able to:
- Think like a Cloud Security Engineer.
- Understand how attackers identify opportunities.
- Understand how defenders reduce risk.
- Apply core security principles before implementing cloud services.
- Analyse systems from both attacker and defender perspectives.
📚 Lesson Information
Estimated Time: 60–90 Minutes
Difficulty: Beginner
Prerequisites: Course Overview
Hands-on Lab: Yes
Assignment: Yes
💼 Business Value
Section titled “💼 Business Value”Every security decision starts with a mindset—not a tool.
Cloud Security Engineers don’t simply configure AWS services. They continuously ask:
- What could go wrong?
- How would an attacker abuse this?
- How can we reduce the risk while enabling the business?
Developing this way of thinking is the foundation of every successful Cloud Security Engineer.
🌍 What is a Security Mindset?
Section titled “🌍 What is a Security Mindset?”A security mindset is the habit of questioning assumptions and identifying weaknesses before attackers do.
Instead of asking:
“Does this application work?”
A Cloud Security Engineer asks:
- Is it secure?
- Who can access it?
- What happens if credentials are stolen?
- What if this server is compromised?
- Are logs available?
- Can we recover quickly?
- Is sensitive data protected?
Security is not a product.
It is a way of thinking.
⚔️ Think Like an Attacker
Section titled “⚔️ Think Like an Attacker”Attackers don’t start by hacking.
They start by gathering information.
A typical attack follows this process:
Reconnaissance │ ▼Identify Weaknesses │ ▼Exploit Vulnerabilities │ ▼Gain Initial Access │ ▼Escalate Privileges │ ▼Move Laterally │ ▼Steal Data │ ▼Maintain PersistenceCloud attacks commonly begin with:
- Public S3 buckets
- Overly permissive IAM policies
- Exposed API keys
- Weak passwords
- Missing MFA
- Open security groups
- Unpatched systems
- Misconfigured cloud services
Most successful attacks exploit configuration mistakes rather than sophisticated hacking techniques.
🛡️ Think Like a Defender
Section titled “🛡️ Think Like a Defender”Cloud Security Engineers work to reduce opportunities for attackers.
Ask yourself:
- What are we protecting?
- Who should have access?
- What happens if this resource is compromised?
- How can we detect suspicious behaviour?
- How quickly can we recover?
Security is about reducing risk while enabling the business to operate effectively.
🏢 Enterprise Scenario
Section titled “🏢 Enterprise Scenario”CloudNova Technologies
Section titled “CloudNova Technologies”CloudNova Technologies is preparing to launch a new customer portal on AWS.
During your security review, you discover:
- An S3 bucket allows public access.
- IAM users have AdministratorAccess.
- MFA has not been enabled.
- CloudTrail logging is disabled.
- Customer files are stored without encryption.
As the Cloud Security Engineer, answer the following questions:
- What are the security risks?
- Which issue is most critical?
- What should be fixed first?
- Which AWS services would help?
- How would you explain these risks to senior management?
🧱 Core Security Principles
Section titled “🧱 Core Security Principles”1. Least Privilege
Section titled “1. Least Privilege”Provide users and systems with only the permissions required to perform their tasks.
Poor Example
Section titled “Poor Example”All developers receive AdministratorAccess.
Better Example
Section titled “Better Example”Developers receive only the permissions required for their role.
Benefits:
- Reduces accidental changes
- Limits attacker movement
- Minimises business impact
2. Defence in Depth
Section titled “2. Defence in Depth”Never rely on a single security control.
Example:
Internet │ ▼AWS WAF │ ▼Application Load Balancer │ ▼Security Groups │ ▼Application │ ▼IAM Controls │ ▼Encryption │ ▼Logging & MonitoringIf one layer fails, additional controls continue protecting the environment.
3. Assume Breach
Section titled “3. Assume Breach”Design systems assuming attackers may eventually gain access.
Focus on:
- Detection
- Containment
- Monitoring
- Recovery
The objective is to minimise damage.
4. Zero Trust
Section titled “4. Zero Trust”Never trust any user or system automatically.
Always verify:
- Identity
- Device
- Permissions
- Context
- Risk
Trust must be earned continuously.
5. Secure by Default
Section titled “5. Secure by Default”Every new cloud resource should begin with secure settings.
Examples:
- MFA enabled
- Encryption enabled
- Logging enabled
- Private networking
- Least privilege access
Security should never be an afterthought.
🧠 Five Questions Every Cloud Security Engineer Asks
Section titled “🧠 Five Questions Every Cloud Security Engineer Asks”Before deploying any cloud resource, ask:
Identity
Section titled “Identity”Who can access this resource?
Network
Section titled “Network”Who can reach this resource?
Is sensitive information protected?
Monitoring
Section titled “Monitoring”Can suspicious activity be detected?
Recovery
Section titled “Recovery”What happens if this resource is compromised?
If you develop the habit of asking these questions, you’ll naturally begin thinking like a Cloud Security Engineer.
🧪 Hands-on Exercise 1 — DNS Investigation
Section titled “🧪 Hands-on Exercise 1 — DNS Investigation”Objective
Section titled “Objective”Understand how attackers begin gathering information.
Windows PowerShell
Section titled “Windows PowerShell”Resolve-DnsName amazon.comLinux/macOS
Section titled “Linux/macOS”dig amazon.comor
nslookup amazon.comObserve
Section titled “Observe”- IP addresses
- Name servers
- Multiple records
Questions
Section titled “Questions”- Why are multiple IP addresses returned?
- What does this suggest about availability?
- How might attackers use this information?
🧪 Hands-on Exercise 2 — HTTP Header Analysis
Section titled “🧪 Hands-on Exercise 2 — HTTP Header Analysis”Inspect a website’s response headers.
curl -I https://example.comReview:
- HTTP status code
- Server header
- Redirects
- Security headers
Questions:
- Is HTTPS enforced?
- Are security headers present?
- Is unnecessary information exposed?
🧪 Hands-on Exercise 3 — SSL/TLS Certificate Review
Section titled “🧪 Hands-on Exercise 3 — SSL/TLS Certificate Review”Visit:
https://example.comClick the padlock icon.
Review:
- Certificate issuer
- Subject
- Expiration date
- Encryption algorithm
Questions:
- Why are certificates important?
- What happens if a certificate expires?
- How do browsers establish trust?
🧪 Hands-on Exercise 4 — Port Awareness
Section titled “🧪 Hands-on Exercise 4 — Port Awareness”Install Nmap
Section titled “Install Nmap”Ubuntu/Debian
Section titled “Ubuntu/Debian”sudo apt updatesudo apt install nmapFedora
Section titled “Fedora”sudo dnf install nmapbrew install nmapWindows
Section titled “Windows”Download and install Nmap from the official website.
Scan Your Local Machine
Section titled “Scan Your Local Machine”nmap localhostObserve:
- Open ports
- Running services
Questions:
- Which services are listening?
- Which ports are unnecessary?
- How does reducing open services improve security?
Important: Only scan systems you own or have explicit permission to assess.
🧪 Mini Threat Modelling Exercise
Section titled “🧪 Mini Threat Modelling Exercise”Imagine CloudNova Technologies launches an online shopping platform.
Assets include:
- Customer accounts
- Payment information
- Product catalogue
- Order history
- Administrative portal
Answer:
- What are the most valuable assets?
- What threats exist?
- What vulnerabilities could attackers exploit?
- Which security controls would reduce the risk?
- How would you detect suspicious activity?
📝 Assignment
Section titled “📝 Assignment”Select one application or website that you use regularly.
Prepare a short report (1–2 pages) covering:
- Assets
- Threats
- Vulnerabilities
- Existing security controls
- Recommended improvements
- Business impact if compromised
💡 Key Takeaways
Section titled “💡 Key Takeaways”After completing this lesson, you should understand:
- Security is a mindset before it is a technology.
- Attackers exploit weaknesses, not products.
- Defenders reduce risk using layered security controls.
- Every cloud resource should be evaluated from multiple security perspectives.
- Asking the right questions is often more valuable than memorising cloud services.
📚 Further Reading
Section titled “📚 Further Reading”- AWS Shared Responsibility Model
- AWS Well-Architected Framework – Security Pillar
- NIST Cybersecurity Framework (Overview)
- OWASP Top 10 (Introduction)
🚀 Next Lesson
Section titled “🚀 Next Lesson”➡️ Cloud Computing Fundamentals