Configure a File Content Check control to check the content of a Unix file. You'll tell us which file you want to evaluate and what you're looking for. We'll return all lines in the file that match.
The statement you provide is like the control name that describes what it is and how it should be implemented in the environment. You'll also need to decide which category the control belongs to. This is important because users can search and filter controls by category, they can also search by keywords in the statement.
The scan parameters are used to gather data needed for compliance evaluation at scan time.
Click Add Parameters, and make these settings:
File path - This is the path to the Unix file to be evaluated.
Regular expression - This identifies content you want to look for in the Unix file. The regular expression must follow "Basic Regular Expression (BRE)" standard as supported by a "grep" command on specific Unix platforms. When using cloud agents (if Agent UDC Support is available for your account), this regular expression should follow "Perl Compatible Regular Expressions (PCRE)" standard.
You'll see that "Line List" is selected as the data type for this control type. This means the scan will return a list of line values.
The control description will appear in compliance policies and reports. If you change the description at a later time, the description will be updated for all controls that use the same set of parameters.
Your control may apply to many technologies. Select each technology you're interested in and provide a rationale statement and expected value.
Time Saving Tip: If you plan to enter the same settings for each technology you only need to do it once. Make your selections in the "Default Values for Control Technologies" section first and then select the check box for each technology you want. You'll see that the settings get copied automatically to each technology that you select.
Make these settings:
Rationale - Enter a rationale statement describing how the control should be implemented for each technology.
Cardinality - Select a cardinality for the control. Tell me about cardinality options
The available cardinality options are described below. X represents the value returned by the scanning engine and Y represents the expected value defined for the control.
Operator - (View only) The operator "regular expression" is used to compare the results to the default value, which is specified as a regular expression.
Default Value - Enter the expected value for each technology as a regular expression following PCRE standard. This regular expression is used to perform the pass/fail evaluation of the returned results. A list of strings returned in the scan results will be compared to the regular expression using the selected cardinality. Note that if you selected the "empty" or "not empty" cardinalities, the Default Value field is disabled and no value is entered.
Add up to 10 references for the control. These may be references to internal policies, documents and web sites. For each reference, enter a description, a URL or both. When providing a URL, you must start the URL with http://, https:// or ftp://. For example, enter http://www.qualys.com to link to the Qualys web site. Once added users have the option to include references in policy reports.