Policies

Policies evaluate data collected by Policy Rules and uses it to measure compliance. Each Policy contains one or more levels of Policy Test Groups, which organize Policy Tests.

Policy Tests are the smallest unit of compliance measurement in CM, and they assign a pass/fail result to a single, specific configuration setting. Policy Tests can only be created as part of a Policy, but the same Policy Test can be used in multiple Policies and Groups.

Note:  

For an overview of Rules, Policies, and other types of content see Getting Started with Custom Content.

Working with Policies

On the Policies page, you can work with existing Policies or create your own. Policies created by Tripwire (Author=Tripwire) are read-only, but you can duplicate them and then edit the duplicates.

Policy Test Reference

Info Tab Settings

Level

This setting is used by some benchmarks (like CIS) to label a test as belonging to a certain "level" of the benchmark.

Description

Describes how the Test works, so it should be as descriptive as possible.

Manual Remediation Instructions

Provides manual remediation instructions to make the Test pass if it is failing.

Rule

Specifies the Policy Rule used to retrieve data for this Test.

Output Description

Describes the output of this Test in the Test Details section of the Cloud dashboard.

Input Filter

A JMESPath expression that CM uses to initially process data retrieved by a Policy Rule.

Evaluation Type

Specifies the language used for the Evaluate Expression below.

Evaluate Expression

Evaluates the filtered data to determine if the Test passes or fails.

Here are some common JMESPath expressions:

  • !@ - The Test fails if anything is returned.
  • !!@ - The Test passes if anything is returned.
  • length(object)>`0` - The Test passes if an object's length is greater than (or less than) an integer.
  • Object==`value` - The Test passes is an object is equal to a value.

Response Tab Settings

Response Description

Describes exactly what this Policy Response does if a Test fails.

This information appears in the Cloud dashboard when a user is configuring remediation, so it's important to explain how the remediation works and exactly what it's going to do.

Validation Delay (Minutes)"

After a Policy Response runs to remediate a failing Policy Test, CM immediately runs another Scan to confirm that the remediation has resolved the issue, and that the test is now passing.

To prevent CM from running a validation Scan for this Response, change this setting to any value other than 0.

(In a future implementation, you will be able to delay the start of the validation Scan in case a remediation requires extra time to complete.)

Response Script

Specifies a Policy Response Custom Script that users can run if this Test fails.

If this Test fails, CM will display this Response in the Cloud dashboard and give users the option to run it one time, or to run it every time the Test fails.

Add Parameter

Many Policy Responses have configurable parameters. For example, a Response may reset the max password age for an account to a configurable number of days.

Use this field to add parameters used by the Response, and to set a default value for each. In the Cloud dashboard, users will have the option to override each value.

For example, say a Response Script requires a custom parameter maxPasswordAgeDays, which resets the max password age on a Cloud Account. If a Policy Test requires a maximum age of 14 days to pass, you would select maxPasswordAgeDays from the Add Parameter dropdown and enter 14 in that field. If a user wants a more secure value, they could override this setting (to 7 days, for example) in the Cloud dashboard.