AWS and cloud security guides
The guides on this topic cover a full AWS security review, starting with "who has access to what?" and ending with what to do when something goes wrong. In between come what is exposed, how the data is protected and what the environment logs.
24 guides on this topic
Most of the cloud incidents that turn up in environment reviews start with something more mundane than a software vulnerability. It might be a permission nobody reviewed, a bucket that went public during an old migration, a long-lived access key stored in an environment variable, or a log that was never enabled in the very account where the problem happened.
That is why the guides below follow the order in which these questions usually get answered in the field. Identity comes first because it is the control that decides how far any other mistake can reach: a leaked key that can only read one bucket does much less damage than the same key with administrative access. Exposure comes next, since it defines who can even try anything. Encryption and secrets still protect the data when those two layers fail. Finally, detection and logging determine whether you will find out about the problem, and how long that will take.
You will not find step-by-step exploitation here. The focus is defensive: each guide shows what to configure, how to check that the configuration is in place and what happens in practice if you leave everything as it is.
Where to start
If you came here with a specific problem, start with the guide that answers it. The others are right below, grouped by subject.
We have never done a security review of the account
Start with the checklist. Its checks show the current state of the account, and with that in hand it is easier to decide what to prioritize.
AWS security checklistThe problem is too many permissions
How to apply least privilege in practice with policies and conditions, and which privilege escalation paths tend to go unnoticed.
IAM security on AWSWe need to know what is going on
How CloudTrail, GuardDuty, Security Hub and Inspector divide the work, and what each one can (and cannot) see.
GuardDuty, Security Hub, and Inspector
When it makes sense to bring in outside help
The guides show what to check and how. When your team lacks the time to run the review, or is too close to judge what it configured itself, the AWS security assessment does that work in your environment and delivers the findings prioritized by risk.
- Inventory of configuration risks, with the severity and context of each one
- IAM, exposure, detection and encryption recommendations in priority order
- Hardening guide written for your environment
- Executive summary with your current security posture and the next steps
Other topics
- Penetration testing and application security
- Vulnerability management and prioritization
- Detection, logging and response
- Hardening and infrastructure
- LGPD and privacy
- Governance and maturity
Identity and access
Permissions decide how far the damage from any other mistake in the account can go.
- AWS security
IAM security on AWS
Cut excessive permissions with least privilege, MFA, policy reviews, roles, and IAM Identity Center.
Read about IAM security on AWS 9 min read - AWS security
IAM Identity Center and MFA
Secure federated access with SSO, permission sets, groups and MFA that cuts down on long-term credentials.
Read about IAM Identity Center and MFA 8 min read - Governance
AWS Organizations and SCPs
Multi-account governance with guardrails: SCPs, OUs, Region restrictions and protection for critical services.
Read about AWS Organizations and SCPs 9 min read
Exposure and network surface
Compare what the internet can reach today with what it should be able to reach.
- AWS security
Security groups on AWS
Reduce public exposure by reviewing open ports, 0.0.0.0/0, inbound and outbound rules, and drift detection.
Read about security groups on AWS 9 min read - AWS security
S3 bucket security
Avoid public data exposure in S3 with Block Public Access, correct policies, encryption, and logging.
Read about S3 bucket security 9 min read - AWS security
Configuring Route 53 securely
Secure DNS on AWS: hosted zones, correct records, SPF, DKIM, DMARC, DNSSEC, and the risks of a bad configuration.
Read about configuring Route 53 securely 12 min read - WAF and edge
AWS WAF with CloudFront
Protect web applications at the edge with AWS WAF and CloudFront: managed rules, rate limiting, tuning, and origin protection.
Read about AWS WAF with CloudFront 7 min read
Data, keys and secrets
This layer still protects the data after someone has already gained access.
- Data protection
AWS KMS: encryption and keys
KMS best practices: key types, rotation, key policies, grants, envelope encryption and access control you can audit.
Read about AWS KMS: encryption and keys 11 min read - AWS security
AWS Secrets Manager
Store and rotate secrets safely: automatic rotation, KMS, least-privilege access and an end to hardcoded credentials.
Read about AWS Secrets Manager 9 min read - AWS security
RDS security
Protected databases on AWS: private networking, encryption, backups, IAM authentication and an end to public exposure.
Read about RDS security 9 min read - Incident response
Secure backups on AWS
Retention, encryption, cross-account copies and deletion protection so you can recover from incidents and ransomware.
Read about secure backups on AWS 9 min read
Detection, logging and investigation
Without logging and detection the incident happens just the same, except that nobody finds out.
- AWS security
GuardDuty, Security Hub, and Inspector
How to combine threat detection, security posture, and vulnerability management without drowning your team in alerts.
Read about GuardDuty, Security Hub, and Inspector 7 min read - Logs and incidents
CloudTrail: auditing and investigation
Set up CloudTrail for reliable auditing: a multi-region trail, data events, log file integrity validation, and encryption.
Read about CloudTrail: auditing and investigation 7 min read - Logs and incidents
CloudWatch Logs Insights
Useful queries for defensive investigation over CloudTrail and other logs: events, source IPs and identities.
Read about CloudWatch Logs Insights 8 min read - Logs and incidents
VPC Flow Logs
Use network logs for visibility and investigation: accepted and rejected traffic, ENIs and correlation with other logs.
Read about VPC Flow Logs 8 min read - Logs and incidents
ALB and CloudFront logs
Analyze web traffic with a security focus: status codes, IPs, user agents and URIs to detect abuse and anomalies.
Read about ALB and CloudFront logs 9 min read - Logs and incidents
Cloud security logs
What to collect for investigations: CloudTrail, VPC Flow Logs, WAF logs and GuardDuty, with centralization and retention.
Read about cloud security logs 9 min read - Logs and incidents
Incident response on AWS
First steps when you suspect a compromise: isolate, preserve evidence, contain and communicate without destroying traces.
Read about incident response on AWS 9 min read
Workloads: containers, serverless and APIs
Here the application starts to depend on platform configuration, and the defaults stop being good enough.
- Cloud security
EKS and Kubernetes security
Essential cluster controls: IAM and IRSA, RBAC, network policies, secrets, images, and service exposure.
Read about EKS and Kubernetes security 9 min read - Container security
Amazon ECR security
Safer container images: scanning, immutable tags, lifecycle policies, permissions and care with the supply chain.
Read about Amazon ECR security 10 min read - Serverless security
AWS Lambda security
Secure serverless functions: least-privilege roles, secrets kept out of the code, logs, dependencies and controlled exposure.
Read about AWS Lambda security 9 min read - Serverless security
API Gateway security
Protect your APIs with authentication, authorizers, throttling, WAF, CORS and logs, so no endpoint is left exposed or open to abuse.
Read about API Gateway security 11 min read
Assessment and architecture
Where to start the review and where to take the architecture afterward.
- AWS security
AWS security checklist
Critical points to review in production: root account, IAM, CloudTrail, GuardDuty, S3, Security Groups, KMS and backups.
Read about AWS security checklist 9 min read - Cloud security
Zero Trust in practice
Reduce implicit trust gradually with identity, device posture, segmentation, MFA, and contextual policies.
Read about Zero Trust in practice 11 min read
Need help with AWS and cloud security?
In the first conversation we learn about your environment and tell you frankly whether we can help, and how. The proposal comes later, in writing, with scope, timeline and deliverables.
Prefer to write? Email [email protected] or reach us on GUARDIASEC's LinkedIn page. No scope defined yet? Ask for scoping guidance.
Please don't send credentials or sensitive data in your first message. See how we handle confidentiality and access