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.fr
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.
Creation of a rule made of multiple equations requires using the API. The rule creation form in Cyberwatch allows to create mono equation rules only.
Create a custom rule
- Go to the Compliance rules encyclopedia
- Click on the button + Add
Fulfill 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 in which the rule will be added to
- Accept the terms of service that comes with the creation of a custom compliance rule
- Save
If all fields are valid, the rule will immediately be added to the Rule encyclopedia.
Every rule created with the Compliance custom module has its Reference
prefixed by “custom-“.
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 fulfilled with the duplicated rule fields
- Accept the terms of service that comes 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.
Every rule duplicated with the Compliance custom module has its Reference
prefixed by “custom-“.
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 (necessarily prefixed by “custom-“)
- In the rule’s specific page, click on the button “Actions > Edit”
- Modify the fields in the form. These fields are automatically fulfilled with the edited rule fields
- Accept the terms of service that comes 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 (necessarily prefixed by “custom-“)
- 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.