Skip to content

Amazon Web Services

An AWS connection powers two things:

  1. Cloud security scans on the Cloud tests page. Each scan reads the services in the regions you picked and lists findings with severity and remediation steps.
  2. Evidence checks mapped to evidence tasks. These keep the tasks below up to date.
Check Passes when Evidence task
IAM, password policy and root protections A password policy exists with min length 14 and symbols, numbers, upper and lower case required. Root has MFA and no access keys. Role-based Access Controls
S3, default encryption enabled Each bucket has default server-side encryption Encryption at Rest
S3, public access blocked Each bucket has S3 Block Public Access fully enabled (account or bucket level) Production Firewall & No-Public-Access Controls
EC2, no security groups open to the internet No security group allows all traffic, or SSH, RDP and other sensitive ports, from 0.0.0.0/0 Production Firewall & No-Public-Access Controls
RDS, storage encryption enabled Each RDS instance and cluster has storage encryption Encryption at Rest
RDS, automated backups enabled Each RDS instance has a backup retention period above 0 days Backup logs
KMS, customer key rotation enabled Each rotation-eligible customer-managed key has automatic rotation on Encryption at Rest
CloudTrail, multi-region trail logging with validation A multi-region trail is logging with log file validation on Monitoring & Alerting
Separation of environments Production and at least one non-production environment are found on separately tagged, non-default VPCs Separation of Environments

The scan covers these services: Security Hub, IAM Access Analyzer, CloudTrail, S3, EC2 and VPC, RDS, KMS, CloudWatch, AWS Config, GuardDuty, Secrets Manager, WAF, ELB and ALB, ACM, AWS Backup, Inspector, ECS and EKS, Lambda, DynamoDB, SNS and SQS, ECR, OpenSearch, Neptune, Redshift, Macie, Route 53, API Gateway, CloudFront, Cognito, ElastiCache, EFS, MSK, SageMaker, Systems Manager, CodeBuild, Network Firewall, Shield, Kinesis, Glue, Athena, EMR, Step Functions, EventBridge, Transfer Family, Elastic Beanstalk and AppFlow.

Varman uses Cost Explorer to detect which services you actually use and scans those. CloudTrail, AWS Config, GuardDuty, IAM Access Analyzer, CloudWatch and KMS are always scanned.

Each connection uses one scan engine:

  • Varman Scanners (default). Varman runs its own checks against your account. No extra AWS cost.
  • AWS Security Hub. Varman reads the findings your Security Hub already produces, including its NIST 800-53, CIS and PCI control mappings. Security Hub must be enabled in the account, and AWS bills Security Hub per finding ingested and per control checked.
  • Permission in the AWS account to create IAM roles and attach policies (for the role method), or to create an IAM user and access key (for the key method).
  • Access to AWS CloudShell in that account, if you use the setup script.
  • The integration:create permission in Varman (Owner or Admin).

Commercial AWS and AWS GovCloud (US) are both supported. You can connect several accounts; add each one as its own connection.

Varman only reads your configuration. You pick one of two connection methods.

The setup script on the connect screen creates a role named Varman-Auditor with:

  • Trust policy: allow sts:AssumeRole from Varman’s role assumer, only when sts:ExternalId equals your External ID. The script fills in the role assumer ARN for the AWS environment you picked. Maximum session duration is 12 hours (43200 seconds).
  • AWS managed policies SecurityAudit and job-function/ViewOnlyAccess.
  • Inline policy Varman-CostExplorer: ce:GetCostAndUsage (used to detect active services).
  • Inline policy Varman-ExtraReadAccess: ssm:GetDocument, ssm:DescribeDocument, ssm:ListDocuments, iam:GetLoginProfile.

The trust policy the script writes looks like this:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "AWS": "<Varman role assumer ARN, filled in by the script>" },
"Action": "sts:AssumeRole",
"Condition": { "StringEquals": { "sts:ExternalId": "<your External ID>" } }
}
]
}

The External ID is your Varman organization ID. The connect screen puts it into the script for you.

AWS explains the external ID pattern in Access to AWS accounts owned by third parties.

Auto-remediation (one-click fixes for findings) needs a second role named Varman-Remediator, so the audit role stays read-only. The connect screen has a separate Remediation Role Setup script that creates it with the same trust policy, a 1 hour maximum session, and inline write policies for the services it can fix (for example kms:EnableKeyRotation, cloudtrail:StartLogging, s3:PutPublicAccessBlock, plus a Varman-Rollback policy so fixes can be undone). Read the script before you run it. You can add this role later.

  1. In Varman, open Integrations, find Amazon Web Services and click Set up. Varman opens the Cloud tests page with the Connect Amazon Web Services dialog.

  2. Pick the AWS Environment: Commercial AWS or AWS GovCloud (US).

  3. Pick the connection method: IAM role or Access keys.

  4. For IAM role: copy the setup script, open AWS CloudShell in the target account (the dialog links to it), paste and run the script. Copy the Role ARN it prints and paste it into Role ARN.

    For Access keys: paste the Access Key ID, Secret Access Key and, for temporary keys, the Session Token.

  5. Optional, role method only: under Auto-Remediation (Optional), run the remediation script in CloudShell and paste the printed ARN into Remediation Role ARN.

  6. Under Scan Configuration, pick the Regions to scan. Only regions for the selected environment are listed.

  7. Click Connect. Varman assumes the role (or checks the keys) before it saves anything, and shows an error if that fails.

  8. To connect another account, run the script in that account and add it from Cloud tests with Add Cloud.

To switch the scan engine to AWS Security Hub, open Cloud tests, click the settings (gear) button, and under Scan engine click Switch to AWS Security Hub. The next scan starts a fresh baseline.

  • Cloud security scan: every active AWS connection is scanned daily at 05:00 UTC. Click Scan on the Cloud tests page to scan now.
  • Evidence checks: run on the daily 06:00 UTC schedule for the tasks they map to. See When checks run.

Varman stores the scan findings and check results, with resource IDs, regions and the evidence each check collected. It does not copy your data out of the account.

  • Environment aliases (optional): if your VPCs use other environment names, map them with alias=environment pairs, for example release=production, preview=staging. Supported environments are production, staging, development, test, sandbox and non-production.
  • Account settings (from the gear on Cloud tests, then Account settings) lets you replace keys, the Role ARN, the Remediation Role ARN, regions and the AWS environment.

Open Cloud tests, click the settings (gear) button, and click Disconnect for the account. Then delete the Varman-Auditor role (and Varman-Remediator, if you created it) or the IAM user’s access key in AWS. See Disconnecting for what Varman keeps.

  • Cannot assume the IAM role. Please verify: (1) The Role ARN is correct, (2) The trust policy allows our role assumer (...), (3) The External ID matches exactly. Re-run the script from the connect screen in the right account, so the trust policy and External ID match, and paste the ARN it prints.
  • Access denied. Please check that your IAM role has the required permissions (SecurityAudit policy). The role is missing SecurityAudit. Attach it, or re-run the script.
  • Role ARN partition (aws) does not match selected AWS environment (aws-us-gov). A commercial ARN starts with arn:aws:, a GovCloud ARN with arn:aws-us-gov:. Pick the matching environment.
  • Must be a valid IAM Role ARN or Must be an AWS Access Key ID. The value is not in the expected format (arn:aws:iam::123456789012:role/..., or a key starting with AKIA or ASIA).
  • Temporary keys (starting with ASIA) need the Session Token as well. Paste the session token too.
  • These temporary credentials have expired. Generate a fresh set and try again. Create new temporary keys, or use a long-lived key or the role method.
  • AWS rejected these access keys. Check the Access Key ID, Secret Access Key and Session Token (if any), and that the key is active. The key is wrong, deleted or inactive.
  • Server configuration error - contact support. The Varman deployment is missing its role assumer configuration. Contact whoever runs your Varman instance.
  • A finding titled Could not verify .... A read failed. If the error is a permission denial, grant the missing read permission. If a region is disabled or not opted in, remove it from the connection’s regions or enable it in AWS. Otherwise re-run the check.
  • Could not confirm environment separation. If you use one AWS account per environment, connect each account separately, because the check looks at one account at a time. Otherwise tag VPCs with Environment=production, Environment=staging and so on, or set Environment aliases.