Automatic Remediation with CloudBots
CloudBots automatically correct compliance issues discovered in your cloud environments by CloudGuard compliance checks. You can configure your CloudGuard account to use CloudGuard CloudBots.
On the Posture Management > Remediation page, you can configure remediation steps for specific rules in your rulesets.
You must deploy CloudGuard CloudBots in the cloud environments to apply remediation steps. See https://cloudbots.dome9.com/ for details.
CloudBots
CloudGuard CloudBots are small programs or scripts in Python that operate on the account or cloud asset to correct missing or misconfigured settings. For example, they can close Security Groups that are widely open. CloudGuard invokes CloudBots when compliance rules fail.
CloudBots work only with rules invoked from Continuous Posture policies and not from manually-invoked Posture Management policies.
For some rules, CloudGuard recommends you use one of the preconfigured CloudBots or create your CloudBot if there is a rule violation. For other rules, you can use only your custom CloudBots.
CloudBots provide:
-
Protection of your cloud environment.
-
Reduction in the workload on the enterprise cloud IT team, by performing remedial actions on misconfigured cloud assets and environments automatically.
-
Reduced response time to remedy a problem, to decrease the window of exposure to risk as a result of the misconfiguration.
-
As CloudBots work with continuous posture assessments, your cloud environments are assessed again and again, so any changes (as a result of accidental or not approved access to the cloud assets) are detected and corrected almost immediately.
-
Reliable application of the same correction to misconfigurations of the same type. That is, correcting an environment policy misconfiguration is the same for all environments. In addition, a full audit trace can be kept of all actions, so you know about the applied changes.

You can add a remediation for a specific rule in a ruleset or all rules in a ruleset. You limit a remediation to specific environments, entities, or environments and entities.
To add a remediation for a specific rule:
-
Navigate to Posture Management > Rulesets.
-
Open the ruleset that contains the rule to which to apply a remediation.
-
Use the Filter and Search toolbar to find the rule.
- Click Add to add a predefined CloudBot recommended by CloudGuard. If no recommendation exists, click Add CloudBot to create a new custom CloudBot and add it.
The Edit Remediation window opens with the selected rule and ruleset.
-
Select the remediation parameters. You can combine the options, so the remediation applies to the combination of all the selected options.
-
Environment that applies the remediation to rules in the selected ruleset only when the ruleset is applied to the selected environments.
-
Entity, by its entity ID (optional, if missing, all entities are implied); this selects all rules that contain the selected entities
-
-
For rules that recommend a remediation, the CloudBot appears in the field. For rules without recommendations, select the CloudBot from the list. If the CloudBot is not in the list, select Custom, and then add the name of the CloudBot, along with the runtime arguments. The CloudBot must be deployed in the selected environment, in the same folder as the other bots.
-
Add a comment (mandatory field) and click Save.
To add a remediation for all rules in a ruleset:
-
Navigate to the Remediation page in the Posture Management menu.
-
Click Create New Remediation, in the top right.
-
Select the rules for which the remediation applies, from the given options. You can combine the options, so the remediation applies to the combination of all the selected options.
-
a Ruleset (mandatory)
-
a specific Rule in the ruleset (optional, if missing, all rules are implied)
-
a specific Environment that applies the remediation to rules in the selected ruleset only when the ruleset is applied to the selected environments.
-
a specific Entity, by its entity ID (optional, if missing, all entities are implied); this selects all rules involving the selected entities
-
-
Select the CloudBot, from the list. If the CloudBot does not show, select Custom, and then add the name of the CloudBot, along with the runtime arguments. The CloudBot must be deployed in the selected environment, in the same folder as the other bots.
-
Add a comment (mandatory) and click Save.

-
Navigate to Posture Management > Remediation.
-
Select one or more remediations to delete and click Delete Selected.