Amazon Web Services
What it does in Varman
Section titled “What it does in Varman”An AWS connection powers two things:
- 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.
- 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 |
Services scanned
Section titled “Services scanned”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.
Scan engine
Section titled “Scan engine”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.
What you need
Section titled “What you need”- 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:createpermission 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.
Permissions requested
Section titled “Permissions requested”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:AssumeRolefrom Varman’s role assumer, only whensts:ExternalIdequals 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
SecurityAuditandjob-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.
Create an IAM user with the AWS managed policies SecurityAudit and ViewOnlyAccess, then create an access key for it.
Temporary keys (starting with ASIA) also work if you paste the Session Token. They expire,
so replace them before they do. Auto-remediation is not available with access keys.
Optional: remediation role
Section titled “Optional: remediation role”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.
Connect
Section titled “Connect”-
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.
-
Pick the AWS Environment: Commercial AWS or AWS GovCloud (US).
-
Pick the connection method: IAM role or Access keys.
-
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.
-
Optional, role method only: under Auto-Remediation (Optional), run the remediation script in CloudShell and paste the printed ARN into Remediation Role ARN.
-
Under Scan Configuration, pick the Regions to scan. Only regions for the selected environment are listed.
-
Click Connect. Varman assumes the role (or checks the keys) before it saves anything, and shows an error if that fails.
-
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.
What gets synced and how often
Section titled “What gets synced and how often”- 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.
Settings
Section titled “Settings”- Environment aliases (optional): if your VPCs use other environment names, map them with
alias=environmentpairs, for examplerelease=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.
Disconnect
Section titled “Disconnect”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.
Troubleshooting
Section titled “Troubleshooting”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 missingSecurityAudit. Attach it, or re-run the script.Role ARN partition (aws) does not match selected AWS environment (aws-us-gov).A commercial ARN starts witharn:aws:, a GovCloud ARN witharn:aws-us-gov:. Pick the matching environment.Must be a valid IAM Role ARNorMust be an AWS Access Key ID. The value is not in the expected format (arn:aws:iam::123456789012:role/..., or a key starting withAKIAorASIA).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 withEnvironment=production,Environment=stagingand so on, or set Environment aliases.