Securing Your AWS Account: Root User, Organizations, Encryption, KMS, Secrets Manager and Security Services Overview
Layers of Protection
Good security uses many layers. If one layer fails, another still protects you (defense in depth).
text
Account level : root MFA, Organizations, SCP guardrails, CloudTrail logging
Identity level : IAM least privilege, roles, MFA
Network level : VPC, security groups, NACLs, WAF, Shield
Data level : encryption (KMS), backups, S3 Block Public Access
Detect & respond: GuardDuty, Inspector, Security Hub, alarms
AWS Organizations
- AWS Organizations lets you manage many AWS accounts together
- Accounts are grouped into Organizational Units (OUs) such as
Prod,Dev,Security - Consolidated billing: one bill for all accounts and combined volume discounts
- Service Control Policies (SCPs) set maximum permissions for accounts. Example: forbid using unapproved Regions or turning off CloudTrail
- SCPs limit permissions, they do not grant them
- AWS Control Tower sets up a well-organized multi-account environment (landing zone) with guardrails
| Why separate accounts? | Benefit |
|---|---|
| Dev, test, prod in different accounts | Mistakes in dev cannot touch prod |
| Separate security/log account | Logs cannot be deleted by workload owners |
| Account per team or project | Clear cost and permission boundaries |
Encryption Basics
| Type | Meaning | AWS example |
|---|---|---|
| Encryption at rest | Data is scrambled while stored on disk | S3 default encryption, encrypted EBS volumes, encrypted RDS |
| Encryption in transit | Data is scrambled while moving over a network | HTTPS/TLS, VPN |
| Key | The secret used to lock and unlock data | A KMS key |
AWS KMS (Key Management Service)
- KMS creates and manages encryption keys and controls who can use them. Keys never leave KMS unencrypted
- Key types: AWS owned keys (invisible, free), AWS managed keys (created by services, e.g.
aws/s3), customer managed keys (you control policy and rotation) - Turn on automatic key rotation for customer managed keys
- Almost every storage service integrates with KMS (S3, EBS, RDS, DynamoDB, Lambda environment variables)
- Every key use is logged in CloudTrail
bash
aws kms create-key --description "app data key"
aws kms create-alias --alias-name alias/app-data --target-key-id <key-id>
aws kms enable-key-rotation --key-id <key-id>
aws s3api put-bucket-encryption --bucket my-bucket --server-side-encryption-configuration '{"Rules":[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"aws:kms","KMSMasterKeyID":"alias/app-data"}}]}'
Secrets Manager, Parameter Store and ACM
| Service | Use |
|---|---|
| AWS Secrets Manager | Store database passwords and API keys. Can rotate them automatically |
| Systems Manager Parameter Store | Store configuration values and simple secrets (standard tier is free) |
| AWS Certificate Manager (ACM) | Free public TLS/SSL certificates for load balancers, CloudFront and API Gateway, with automatic renewal |
bash
aws secretsmanager create-secret --name prod/app/db --secret-string '{"username":"app","password":"change-me"}'
aws secretsmanager get-secret-value --secret-id prod/app/db --query SecretString --output text
aws ssm put-parameter --name /prod/app/mode --value "production" --type String
Security Services Overview
| Service | One-line purpose |
|---|---|
| AWS CloudTrail | Records who did what (API calls) in your account |
| Amazon GuardDuty | Detects threats from logs, such as unusual logins or crypto mining |
| Amazon Inspector | Scans EC2, containers and Lambda for vulnerabilities |
| Amazon Macie | Finds sensitive data (like personal information) in S3 |
| AWS Security Hub | One place to see security findings and compliance checks |
| AWS Config | Records configuration changes and checks rules |
| AWS WAF | Web application firewall that blocks bad web requests (SQL injection, bots, rate limits) |
| AWS Shield | DDoS protection (Standard is free for everyone, Advanced is paid) |
| AWS Firewall Manager | Apply firewall rules across many accounts |
| Amazon Detective | Investigate the cause of security findings |
| AWS Artifact | Download AWS compliance reports and agreements |
| IAM Access Analyzer | Finds resources shared outside your account |
Compliance
- AWS supports many standards such as SOC, ISO 27001, PCI DSS, HIPAA, GDPR programs
- AWS Artifact gives you the audit reports. These prove AWS's controls. You must still configure your part correctly
- Using AWS does not make you automatically compliant
Security Checklist for a New Account
- Root MFA on, no root keys
- Admin access through Identity Center with MFA
- CloudTrail enabled for all Regions
- S3 Block Public Access on (account level)
- Default EBS encryption on
- Budgets and billing alerts set
- GuardDuty enabled
- Use roles instead of keys
Practice
- Create a KMS key with rotation and encrypt an S3 bucket with it
- Store a database password in Secrets Manager and read it with the CLI
- Enable S3 Block Public Access for the account
- Turn on GuardDuty and review the sample findings
- Find AWS Artifact and open the list of reports
Conclusion
Layer your security: protect the root user, use Organizations and SCPs, encrypt data at rest and in transit with KMS and TLS, store secrets in Secrets Manager, and know the roles of CloudTrail, GuardDuty, Inspector, Macie, Security Hub, WAF, Shield and Artifact.
Quick Summary: layers; Organizations; encryption; KMS; secrets and ACM; services overview; compliance; checklist.

