Compliance Custom module
Documentation page describing Compliance Custom module usage.
Feature’s goals
The Compliance Custom module allows:
- the creation of new rules
- the duplication of existing rules
- the edition of custom rules
Activate the feature
The full activation of the module requires a pre-activation by Cyberwatch.
You can send us an e-mail at support@cyberwatch.com to ask for this pre-activation.
Once this pre-activation is effective, you can go to the Administration page and activate “Custom analyses”.
Rules evaluation
To understand how rules are evaluated in Cyberwatch, consult the documentation section on the rules evaluation.
Create a custom rule
- Go to the Compliance rules encyclopedia
- Click on the button + Add
Fill in the fields of the rule creation form:
Reference: unique reference for each rule (e.g.,CIS-debian-9-2.3.4)Name: brief description of the rule’s goal (e.g.,Ensure telnet client is not installed)Description: description of the product/configuration concernedRationale: description of security concerns linked to non-complianceAudit: description of the analysis to be conducted (e.g.,Ensure package name equals 'telnet' is not installed)Remediation: technical solution to become compliantScript type: language of the script that will be runScript content: complete code of the scriptRegular expression of compliance: regular expression the script’s output has to match to be compliant with the ruleRegular expression of non-compliance: regular expression the script’s output has to match to be non-compliant with the ruleConcerned operating systems: list of operating systems to which the rule appliesAdmin rights: whether the script requires admin rights to be runLevel: compliance level of the ruleRepositories: repositories to which the rule will be added
- Accept the terms of service that come with the creation of a custom compliance rule
- Save
If all fields are valid, the rule will immediately be added to the Rule encyclopedia.
Duplicate a rule
- Go to the Compliance rules encyclopedia
- Click on the reference of the rule to duplicate
- In the rule’s specific page, click on the button “Actions > Duplicate rule”
- Modify the fields in the form. These fields are automatically filled with the duplicated rule fields
- Accept the terms of service that come with the creation of a custom compliance rule
- Save
If all fields are valid, the rule will immediately be added to the Rule encyclopedia.
Among the default rules, only those with an SCE script can be duplicated. It is also possible to duplicate custom rules. However, there are limitations when duplicating rules that have multiple checks.
Edit a custom rule
Only rules created with the Compliance custom module can be edited.
- Go to the Compliance rules encyclopedia
- Click on the reference of the rule to duplicate
- In the rule’s specific page, click on the button “Actions > Edit”
- Modify the fields in the form. These fields are automatically filled with the edited rule fields
- Accept the terms of service that come with the creation of a custom compliance rule
- Save
If all fields are valid, the rule will immediately be updated in the Rule encyclopedia.
Delete a custom rule
Only rules created with the Compliance custom module can be deleted.
- Go to the Compliance rule encyclopedia
- Click on the reference of the rule to delete
- In the rule’s specific page, click on the button “Actions > Delete”
- Accept the deletion popup
The rule is immediately deleted from the Rule encyclopedia.