Cloud Account Hardening: Identity, Exposure, Logging and Recovery
Harden cloud accounts with protected owner access, least privilege, private services, audit logs and tested recovery. Plan evidence for AWS and other platforms.
Cloud account hardening starts with control of the account itself. A well-configured application can still be exposed through an overprivileged deployment identity, forgotten access key or recovery mailbox. Treat identity, network exposure, data access and recovery as connected controls.
Use this checklist to organise a review across AWS, DigitalOcean and other cloud services. Translate each objective into the platform's actual features and confirm which controls are included in the service you use.
Protect ownership and recovery
Identify the people who can change billing, account ownership, identity providers and security settings. Use named administrative access, strong MFA and a protected recovery process. Keep emergency access available through a controlled procedure that is tested and monitored.
For AWS, protect the root identity and reserve it for tasks that require it. Review organisation-level root access arrangements where applicable. A shared root password used for daily work prevents useful attribution and expands the consequences of credential exposure.
Reduce standing privilege
Prefer federated human access and short-lived workload credentials where the platform supports them. Limit service identities to the resources and actions their job requires. Separate staging and production access so that a development job cannot silently change a live system.
Review the effective permission path, including group memberships, assumable roles, resource policies and cross-account trusts. A policy that looks narrow in isolation may sit alongside another route that grants broad access.
Check public exposure deliberately
Inventory public IPs, load balancers, object stores, databases, control panels and serverless endpoints. Record why each public entry point exists and who owns it. Default sensitive databases and storage to private access unless a documented design requires otherwise.
Review firewall and security group rules for all address families. Include IPv6 and service-specific network paths. If an application uses a gateway or CDN, check whether a direct backend address bypasses the controls expected at the public edge.
Protect data and secrets
| Control | Evidence to collect |
|---|---|
| Storage access | Public access settings and representative permission tests. |
| Encryption | Relevant service settings and key access permissions. |
| Secrets | Storage location, permitted readers and revocation process. |
| Database access | Network restrictions and application account permissions. |
| Backups | Retention, separation and a successful recovery exercise. |
Avoid copying production data into development merely to make testing convenient. Where realistic test data is required, establish a suitable handling process and access controls first.
Make changes visible
Enable the relevant account audit logs and retain them in a location ordinary workload identities cannot alter. Monitor important changes such as new privileged credentials, disabled logging, public storage and unusual deployments.
Assign someone to receive and act on alerts. A notification sent to an abandoned mailbox or a log without a review process gives limited operational value. Check the retention period against investigation needs and applicable obligations.
Verify recovery and residual access
Test a representative restore and record what was recovered, the time taken and any missing dependencies. Include identity, encryption keys, DNS and external services in the recovery plan where the application relies on them.
For an access review, remove a test identity and confirm that its active sessions, tokens and downstream permissions behave as expected. After a leaked key, revoke it, investigate its use and replace the affected trust; hiding the original value in a repository does not invalidate it.
Maintain an accountable baseline
Record the account owner, reviewed resources, configuration revision, exceptions and next review trigger. Use infrastructure as code and policy checks where practical, while checking the deployed state for drift. Follow significant changes with a focused configuration review and appropriate security testing.
Further reading: AWS IAM best practices.
Related resources
Read our testing methodology or discuss your assessment.