| United States-English |
|
|
|
![]() |
HP-UX Host Intrusion Detection System Version 4.1 Administrator's Guide: HP-UX 11i v1, HP-UX 11i v2 and HP-UX 11i v3 > Appendix A Templates and AlertsTemplate Property Types |
|
A template property has one of the following types: For a description about the syntax to use to specify values for various template types, see “Template Property Syntax”. The pathnames_to_watch and pathnames_to_not_watch template properties are of Type I. Type I is a list of n, with n>0, regular expressions that are separated by the pipe (|) character. A file or directory is [not] monitored if its full path name matches a regular expression in the pathnames_to_[not]_watch template property.
The following line in the template configuration file defines a property called pathnames_to_not_watch, so that the /var/log/cron and /etc/passwd files are not monitored for alerts:
Use the regular expression anchor characters ^ and $ to denote the start and end of the file path name. The following line defines a property named pathnames_to_watch that specifies monitoring all files or directories with starting path name /var/t substring or the path names that start with the /opt string:
For examples of regular expressions, see “UNIX Regular Expressions ”. These property types enable users to specify combinations of file path names and program path names. As a result, alerts that are normally generated for files specified in the pathnames-to-be-monitored property are suppressed when the files are modified by specified programs. Path names and programs are specified as regular expressions the same as pathnames_to_[not]_watch properties are specified. See the default property settings for the kernel templates for examples of path names and program pair specifications. Path names and program properties come in pairs. There can be n > 0 pairs in a configuration file. For each member of a pair, its property values consist of a set of m > 0 lists. For the path name member of a pair, each property value consists of a list of p > 0 regular expressions separated by ampersand (&) characters. For the corresponding program member of a pair, each property value is a list of q > 0 regular expressions as its value. In general, p is not equal to q. Following is an example of a valid property pair:
With these two lines, an alert is not generated for file f1 if the event was triggered by any of the p1, p2, or p3 programs. Similarly, f2 is not monitored if the event was triggered by p1, p2,or p3. Analogously, an alert is suppressed for f3, f4, and f5 if the alert is triggered by program p3 or p4.
This provides granularity for specifying their file- monitoring dependencies. That is, in the last example an alert for f2 is generated if the event was triggered by p2, in contrast to what happens when any of the three previous examples are used.
Type III property values consists of lists of user names or user IDs that specify critical users or users that the template is to explicitly take into account (type IIIa) or explicitly ignore (type IIIb). The following template property specifies three critical user IDs and three user names that determine the severity of an alert:
The following template property specifies that alerts are not generated if the following three user IDs or user names are encountered:
Type IV property values include pairs of user names or user IDs. This property type is currently used only in the Modification of Another User’s File Template. The two members of each pair are separated by a comma. When an event is received for a file that is being monitored, the following criteria are applied for every pair in the list:
If both of these conditions are met, no alert is issued. Following is an example of this type of property value:
In this example, an alert is not triggered if any of the following conditions are met: - If the file owner’s name is root and the effective user ID of the modifying process corresponds to the user name daemon. - If the file owner’s user ID is 0 and the effective user ID of the modifying process corresponds to the user name bin. - If the file owner’s user ID corresponds to the user name root and the effective user ID of the modifying process is 3. - If the file owner’s user ID is 0 and the effective user ID of the modifying process is 4. Type V property values include network information triplets. The members of a triplet are as follows:
The following template configuration illustrates a Type V property value:
The time strings property represents time intervals. Each time string has the following syntax:
The integer component is a positive integer representing a time interval. The units component, when present, indicates the time units the integer is expressed in. The following units are supported: When the unit component is not present, the integer component is assumed to be in seconds. For example, the following lines in the template configuration file contain time strings representing values of 23 seconds, 10 minutes, 1 hour and 23 seconds; the s component in the last line is redundant, but can be used for clarity.
The Type VII property value is an integer used to enable or disable a flag. A value of 1 means enabled, and a value of 0 means disabled. For example, the following properties of the Login/Logout template specify that the monitoring of logins is enabled, and the monitoring of successful su commands is disabled:
The Type VIII property value is a single integer. However, this value can be any integer. For example, the following property of the Buffer Overflow template specifies that 500 is considered an unusually long argument length when invoking a priviledged setuid program:
The Type IX property specifies pairs of path names and integers. In each pair, the two members are separated by a comma and pairs are separated by a pipe. The path name is interpreted as regular expressions and extended regular expressions. For more information on regular expressions, see “UNIX Regular Expressions ”. The integer is interpreted to be of type Type VI: Time Strings. Currently, only the global alert aggregation tuples property is of this type. For more information, see “Surveillance Schedule Text File”. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||