← Back to svetris.com · Book a Security Review
Acme Corp runs a customer-facing web platform on AWS (EC2, RDS, S3, Lambda). The review found that the core services are in use correctly, but several high-impact misconfigurations could allow an attacker to access customer data or take over the account. None of the critical and high issues require advanced skill to exploit, and most can be fixed in under a week.
Findings combine. Individually most issues are High or Medium, but several are connected. Section 5 shows three attack paths where two or three moderate issues together lead to a Critical outcome, such as session theft from an unprotected cache, or a full-admin compromise nobody would detect.
| Area | Rating | Comment |
|---|---|---|
| Identity and access | Critical | Root account and admin users not protected by MFA |
| Data protection | High | Public bucket, unencrypted public-facing database |
| Network | High | Admin ports open to the internet |
| Logging and detection | High | Trail not covering all regions, threat detection off in 4 regions |
| Serverless and secrets | Medium | Secrets in Lambda environment variables |
| Governance | Low | Tagging and cleanup gaps |
In scope: IAM, S3, EC2/VPC/security groups, RDS, EBS, CloudTrail, GuardDuty, Lambda configuration, KMS usage. Out of scope: application code, penetration testing, host-level (OS) hardening, third-party SaaS, Kubernetes.
| Rating | Meaning | Target fix time |
|---|---|---|
| Critical | Likely full compromise or data breach | Within 48 hours |
| High | Serious exposure, easy to exploit | Within 7 days |
| Medium | Weakens defenses, needs other conditions to exploit | Within 30 days |
| Low | Best-practice gap, minor risk | Within 90 days |
| ID | Finding | Severity | CIS ref | Effort |
|---|---|---|---|---|
| F-01 | Root account: no MFA, active access key | Critical | 1.5, 1.4 | Low |
| F-02 | S3 bucket publicly readable (acme-customer-exports) | High | 2.1.4 | Low |
| F-03 | IAM user with AdministratorAccess and no MFA (ci-deploy) | High | 1.10, 1.16 | Medium |
| F-04 | SSH (22) and RDP (3389) open to 0.0.0.0/0 | High | 5.2, 5.3 | Low |
| F-05 | CloudTrail not multi-region, no log file validation | High | 3.1, 3.2 | Low |
| F-13 | ElastiCache (Redis) with no encryption or authentication, holds session data | High | – | Medium |
| F-06 | RDS instance publicly accessible and unencrypted | Medium | 2.3.1 | Medium |
| F-07 | 7 IAM access keys older than 90 days | Medium | 1.14 | Low |
| F-08 | GuardDuty disabled in 4 of 6 used regions | Medium | – | Low |
| F-09 | Secrets stored in Lambda environment variables | Medium | – | Medium |
| F-10 | No account password policy | Low | 1.8–1.9 | Low |
| F-11 | 14 unused IAM roles and 5 inactive users | Low | 1.12 | Low |
| F-12 | S3 versioning off on 9 of 12 buckets | Low | – | Low |
The sample shows six detailed findings. A full report contains this level of detail for every finding.
Resource Account 111111111111 (prod) root user
What we found The credential report shows mfa_active = false and access_key_1_active = true for the root user. The key was last used 41 days ago.
Why it matters The root user cannot be restricted by IAM policies. A stolen root key or password gives an attacker unrestricted control: deleting backups, creating persistence, exfiltrating all data, and running up cost.
Recommendation
# Confirm and then delete the root key (as root, console recommended)
aws iam get-account-summary --query 'SummaryMap.AccountAccessKeysPresent'
aws iam list-access-keys # run with root credentials, then:
aws iam delete-access-key --access-key-id AKIAXXXXXXXXEXAMPLE
Reference: CIS 1.4, 1.5. Effort: under 1 hour.
Resource arn:aws:s3:::acme-customer-exports
What we found Block Public Access is disabled on the bucket and the bucket policy allows s3:GetObject to Principal: "*". The bucket holds 3,412 CSV exports (names of customer export files suggest personal data).
Why it matters Anyone who knows or guesses the URL can download customer data. Public S3 buckets are a common source of data breaches and trigger breach-notification duties.
Recommendation Enable account-level and bucket-level Block Public Access. Remove the wildcard principal. Share files with pre-signed, expiring URLs. Enable default encryption (SSE-KMS) and access logging. Review access logs to see whether the bucket was accessed externally.
aws s3api put-public-access-block --bucket acme-customer-exports \
--public-access-block-configuration \
BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
aws s3control put-public-access-block --account-id 111111111111 \
--public-access-block-configuration \
BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
Reference: CIS 2.1.4. Effort: under 1 hour (plus access-log review).
Resource IAM user ci-deploy (AdministratorAccess, 2 access keys, oldest 412 days)
What we found A long-lived user with admin rights is used by the build pipeline. Its key appears in a build-system variable according to the team.
Why it matters A leak from the CI system, a logs dump or a developer laptop gives an attacker permanent admin access.
Recommendation Replace the user with an IAM role assumed by the pipeline through OIDC (no stored keys). Scope the role to the services the pipeline actually deploys. Rotate and then delete the existing keys.
# Example trust policy for GitHub Actions OIDC (replace repo)
{ "Effect":"Allow",
"Principal":{"Federated":"arn:aws:iam::111111111111:oidc-provider/token.actions.githubusercontent.com"},
"Action":"sts:AssumeRoleWithWebIdentity",
"Condition":{"StringLike":{"token.actions.githubusercontent.com:sub":"repo:acme/web-app:ref:refs/heads/main"}}}
Reference: CIS 1.10, 1.16. Effort: half a day.
Resource Security groups sg-0a1b…web-admin and sg-0c9d…legacy (6 instances)
What we found Inbound 22 and 3389 allowed from 0.0.0.0/0. Authentication logs on two hosts (sample data) show repeated failed logins from unknown addresses.
Recommendation Remove the open rules. Use AWS Systems Manager Session Manager (no inbound ports) or restrict to a VPN or fixed office range. Turn on VPC Flow Logs.
aws ec2 revoke-security-group-ingress --group-id sg-0a1bEXAMPLE \
--protocol tcp --port 22 --cidr 0.0.0.0/0
Reference: CIS 5.2, 5.3. Effort: 1–2 hours.
Resource ElastiCache Redis replication group acme-sessions (prod)
What we found Encryption in transit and at rest are both disabled, no AUTH token or RBAC user is set, and the cache security group allows port 6379 from the entire VPC range (10.0.0.0/16). The cache holds user session tokens and cached customer profile data.
Why it matters Anything inside the network can read all sessions without a password, and traffic can be sniffed in plaintext. On its own this is a High finding because it needs a foothold in the VPC. See attack path AP-1, where it becomes Critical.
Recommendation Recreate the replication group with in-transit and at-rest encryption, enable AUTH or RBAC, restrict the security group to the application tier only, and shorten session lifetime. Enabling encryption on an existing cluster may need a maintenance window.
Effort: 0.5–1 day with a short maintenance window.
Resource Lambda functions process-orders, send-invoice
What we found Environment variables named DB_PASSWORD and SMTP_PASS contain plaintext values, readable by any identity with lambda:GetFunctionConfiguration.
Recommendation Move the values to AWS Secrets Manager (or SSM Parameter Store SecureString), grant the function role read access to those specific secrets only, and rotate the exposed credentials.
Effort: 2–4 hours. Related tool: lambda-audit-automation (open source, github.com/nsoni44).
Findings F-05 to F-08 and F-10 to F-12 would follow in the same format in a full report.
Scanners report each issue on its own. Attackers chain them. The three paths below show how moderate findings combine into Critical business risk. Each path can be broken by fixing a single link, which is how the roadmap is prioritized.
Why it is worse together: F-04 alone gives access to one server. F-13 alone needs a foothold. Together, an attacker who guesses or phishes one SSH credential can read every active session, impersonate users without knowing any password, and bypass MFA because the session is already authenticated.
Cheapest link to break: close SSH (F-04, 1–2 hours). Permanent fix: encrypt and authenticate the cache (F-13).
Why it is worse together: a leaked admin key is bad, but normally GuardDuty or CloudTrail would reveal its misuse. Here, activity in the four unmonitored regions leaves no record, so the compromise could last for months and the scope could not be proven afterward.
Cheapest link to break: enable multi-region CloudTrail and GuardDuty (F-05, F-08, under a day). Permanent fix: remove the long-lived admin key (F-03).
Why it is worse together: without logs, the company cannot show regulators or customers which records were accessed, and usually has to assume all of them were. That raises legal, notification and reputational cost far beyond the technical issue.
Cheapest link to break: block public access now (F-02), and turn on data-event logging so future access is provable.
| Fix | Breaks paths | Effort |
|---|---|---|
| Close SSH/RDP to the internet (F-04) | AP-1 | 1–2 hours |
| Block public access on bucket (F-02) | AP-3 | < 1 hour |
| Multi-region CloudTrail + GuardDuty (F-05, F-08) | AP-2, AP-3 | < 1 day |
| Replace CI admin user with scoped OIDC role (F-03) | AP-2 | 0.5 day |
| Encrypt and authenticate cache (F-13) | AP-1 | 0.5–1 day |
| When | Actions | Findings |
|---|---|---|
| Within 48 hours | Root MFA and key removal, close public bucket, close admin ports, enable multi-region CloudTrail and GuardDuty (breaks all three attack paths at their cheapest link) | F-01, F-02, F-04, F-05, F-08 |
| Within 7 days | Replace CI admin user with OIDC role, encrypt and authenticate the session cache, log file validation | F-03, F-13, F-05 |
| Within 30 days | Encrypt and make RDS private, rotate old keys, move secrets to Secrets Manager | F-06, F-07, F-09 |
| Within 90 days | Password policy, cleanup unused IAM, S3 versioning, tagging standard | F-10 to F-12 |
This is a point-in-time configuration review using read-only access. It is not a penetration test, a code review, or a compliance certification or attestation. Findings reflect the state of the environment during the assessment window. No guarantee is given that the environment is free of other vulnerabilities.
| Service | Description |
|---|---|
| Remediation support | Hands-on fixing of findings one by one, with change log and re-scan (billed separately) |
| Compliance readiness report | Control mapping for CIS, SOC 2 or ISO 27001 from the tool output (tool licences, if any, at cost) |
| Code and git posture review | Separate engagement |
Svetri Cloud Cyber Security · svetris.com · github.com/nsoni44 · SAMPLE DOCUMENT, FICTIONAL DATA