SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free🗺️ Learning Roadmaps

Cloud SecurityCheatsheets

Quick reference — commands, syntax, and patterns

✍️
Written by senior engineers. Reviewed for technical accuracy.· Updated 2025 · SynfraCore Cloud Security Team
Expert Content

Cloud Security — Quick Reference

IAM policy evaluation order (AWS)

1. Explicit Deny (anywhere in the chain: SCP, permission boundary, policy) → DENY, always wins
2. Explicit Allow → ALLOW
3. Implicit Deny (default, nothing matched) → DENY

Security group vs. NACL, quick comparison

Security GroupNACL

|---|---|---|

LevelInstance/ENISubnet
StateStateful (return traffic auto-allowed)Stateless (both directions need explicit rules)
Rule typeAllow onlyAllow and Deny
EvaluationAll rules evaluated togetherRules evaluated in numbered order, first match wins

Core AWS security services, one-line purpose

ServicePurpose

|---|---|

GuardDutyML-based threat detection
Security HubAggregated findings, central view
ConfigConfiguration drift/compliance detection
InspectorVulnerability scanning (EC2, containers, Lambda)
MacieSensitive-data (PII) discovery in S3
CloudTrailAPI audit log — who did what, when
WAFL7 web application firewall
ShieldDDoS protection (L3/L4)
IAM Access AnalyzerFinds unused/over-broad permissions

Common CSPM findings, quick triage guide

FindingTypical urgency

|---|---|

Public S3 bucket/blob with sensitive dataImmediate — active exposure
Security group open to 0.0.0.0/0 on admin ports (22/3389)Immediate
Root account without MFAImmediate
CloudTrail not enabled in all regionsHigh — closes a visibility gap
Unencrypted storage (RDS/EBS)High, SLA-based
IAM access keys older than 90 daysMedium, SLA-based
No password policyMedium

IMDSv1 vs IMDSv2 (AWS metadata service)

IMDSv1IMDSv2

|---|---|---|

AccessSimple GET requestRequires a session token via PUT first
SSRF exploitabilityVulnerable to simple SSRF (GET-only exploit works)Blocks typical SSRF (needs the PUT step too)
RecommendationDisableEnforce IMDSv2-only

Incident response order for a compromised credential

1. Revoke/rotate the credential — stop ongoing access first
2. Investigate scope — CloudTrail history for what it actually accessed
3. Remediate root cause — how it leaked, and fix that specific gap

Zero Trust — core principles, quick reference

Never trust based on network location alone
Verify identity + authorization explicitly, every request
Grant minimum access per-request, not broad standing access
Enforce policy at every service boundary, not just the perimeter
Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
Also Worth Exploring
← Back to all Cloud Security modules
CertificationNotes