Qualys Zero-touch Snapshot-based scanning is an agentless scanning technique that helps customers detect risk, vulnerabilities, and compliance posture for virtual machine/compute instances without affecting their current workload.
Snapshot-based assessment offers greater security by using a service account for running scans. The service account will be independent of the target AWS account, where most of your workload operates. The service account can perform scans on multiple target accounts, allowing for bulk scans. This ensures no disruptions and more cost-effective, faster, and reliable scans.
The below Qualys and AWS console configurations are required from the customer to enable Snapshot-based assessment on TotalCloud. With agentless scans, you can enable zero-touch Snapshot-based scan to perform vulnerability assessments on your new assets.
The following section lists the OS versions and supported platforms for Qualys Zero Touch Snapshot-based scan. Refer to Snapshot-based Scan OS Compatibility.
You will need one CSPM connector registered as a service account to activate the Snapshot scan functionality.
Follow the steps below to generate Subscription Token
curl --location --request POST 'https://< API Gateway URL >/auth' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'username=<QualysUsername>' --data-urlencode 'password=<QualysPassword>' --data-urlencode 'token=true'
curl --location --request POST 'https://< API Gateway URL>/qas/subscription-token' --header 'Content-Type: application/json' --header 'Authorization: Bearer <Auth Token>' --data-raw '{ "expiry": 500000}'
The 'Enable Snapshot Based Scan' option is not visible to you yet. This is because the AWS account is yet to be registered as a service account.
Register your AWS account as a service account to scan the assets of your target accounts. A service account is necessary to run snapshot scans.
10. Click Submit.
Once the Service Account Template configuration is completed, proceed to the next step.
Only a single AWS Account connector with CSPM capability can be registered as a service account.
A target account is where the snapshot scans run on. You can configure multiple target accounts to run scans on different accounts.
The remaining configurations are the same as Generate a Subscription Token .
Check the acknowledgments before submitting.
Note: A QualysTargetAccount CF template must be deployed for every account on which Snapshot-Based Assessment needs to be carried out.
5. Enable Cloud Security Posture Management, if necessary.
6. Add tags, if necessary.
7. Validate and Save.
1. Login to Qualys Console > Navigate to Connectors Application.
2. Click Amazon Web Service > Create Connector.
3. Configure Basic Details: Name, Description, Application > Next
4. Configure Authentication Details: Account Type, Polling Frequency, Role ARN > Next.
5. Configure Region Selection: Select regions for the AV inventory.
6. Configure Tags and Activation: - Select “Enable Zero-Touch API Snapshot Based Scan” and tags for the discovered assets as per requirement. Download the CFT templates as specified on the right.
7. Review and Confirm.
1. Login to Qualys Console > Navigate to Connectors Application.
2. Click Amazon Web Services > Select the Connector where the Service account CFT was deployed > Click Edit > Navigate to Tags and Activation.
3. Select Automatically activate all assets for the VM Scanning application > Check the Enable Zero- touch Snapshot Based Scan box.
4. Click Save.
Note: The Zero-touch Snapshot-based Scan checkbox remains greyed until a CSPM Connector is registered as a Service Account.
A: Deploy the CFT-S on an AWS account which customer wishes to register as a service account.
Or, customer can also use the newly introduced API to register a service account. Learn more.
A: We have introduced new API to deregister service account. Learn more.
Or, the customer can delete the connector which was registered as a service account.
A: The checkbox remains greyed-out when your snapshot scan is enabled from the portal back office but you have not registered a service account.
A: The 'register-service-account' step function fails in below scenarios:
A: The error shows up when you have exhuasted your IP limit. Contact support to get your licence extended.
A: Follow the steps below to delete a service account CloudFormation Template.
How to update Region/Tags/QToken
Replace the current template
Upload the cft-s that you used before
Edit Region/Tags/QToken
A: Yes, a customer can subscribe to both scans at once.
A: No, tags do not suppot prefixes, suffixes, spaces or tabs in the CFT-S.
A: No, there can only be one service account for a subscription.
Note: Customer can configure multiple target accounts
A: Yes, the service account can be a target account as well.
A: No. The minimum scan interval is 24 hours.
Configure Zero-touch API-based Assessment
Was this topic helpful?