Trust Rules

2025-06-11 01:31:56

Overview

When the system uses the trust rules for matching, it will not use the security rules and no alarm will be issued.

 

Procedure

1. In the left menu, select Configure Rules > Trust Rules to enter the Trust Rules page.

2. Click Add and edit the relevant information in the new rule dialog box that pops up. See the table below for the specific parameters.

Item

Parameter

Parameter Description

Basic Info

Name

Set the rule name. Must consist of   Chinese characters, letters, numbers, underlines (_), dots (.)   or dashes (-), within 64 characters.

Description

Description of the rule.

Level

Required. The system's default risk   level is medium. The risk level can be high, medium, or low.

Associated Rule Group

Required. You can select a custom rule   group or a default rule group. To manage custom rule groups, follow the steps   below:

On the   right side of the associated rule group, click Manage Rule Group to   add, modify and delete the custom rule group.

Rule Type

Currently, two types of rules are   supported: general rules and statistical rules.

  • General rules: When a single audit        record matches a common rule configured, a general alarm will be        triggered (for example, a select statement may trigger a general alarm).

  • Statistical rules: If the        configured statistical rules are matched multiple times within a        specified time, a statistical alarm will be triggered (for example, 10        select failures within five minutes may trigger a statistical alarm).

Behaviors

Currently available are alarm, and alarm and   blocking.

  • Alarm: After an operation matches        a rule, it is still executed normally without special control.

  • Alarm and blocking: After an        operation matches a rule, the database connection corresponding to the        operation is disconnected.

Client

Client Source

Client IP or IP group for accessing a   service type. You can fill in multiple entries, and separate them with commas   (,).

Client Tools

You can configure multiple client tools by   separating them with commas (,). Example: db2bp.exe,java.exe.

Client port

You can configure multiple values or   ranges, and separate them with commas (,). Example: 10-15,20,25,30-40.

Client MAC Address

You can fill in multiple values, and separate them   with commas (,).

Operating System User

You can select a string or a regular expression.   The string can contain multiple values separated with commas (,).

Host Name

You can select a string or a regular expression.   The string can contain multiple values separated with commas (,).

Application IP

Specifies the application IP or IP   group that matches the rule, corresponding to the associated IP in audit   logs. Multiple values can be filled in. Separate them with commas (,).

Application Username

Specifies the application user or user   group that matches the rule, corresponding to the associated account in audit   logs. Multiple values can be filled in. Separate them with commas (,).

Server

Server IP

You can fill in multiple values, and separate them   with commas (,).

Server Port

You can configure multiple values or   ranges, and separate them with commas (,). Example: 10-15,20,25,30-40.

Database Account

Specifies the database login user   account or account group that matches the rule, or a regular expression.   Multiple values can be filled in. Separate them with commas (,).

Server MAC Address

You can fill in multiple values, and   separate them with commas (,).

Database Name (SID)

You can select a string or regular   expression. For an Oracle database, enter an SID. For other databases, enter   a database name. The string can contain multiple values. Separate them with   commas (,).

Behaviors

Object

Specifies the object group that matches the rule.

Operation Type

Specifies the operation type of an SQL statement,   for example, select, update, delete, etc.

SQL Template ID

Optional. Multiple values can be filled   in. Separate them with commas (,).

SQL Keywords

SQL   keywords: Supports matching packets with regular expressions.

Click Regular   Verification to enter the packet content, click Verify to verify   whether the input content matches the regular expression in the execution   result keyword; click Add Condition to add multiple conditions.

Logical   expression of conditional operation: If the SQL keyword is filled in, this   item is required. The relationship between conditions can be based on AND,   OR, NOT, and bracket operations (&: AND; |: OR; ~: NOT). Conditions are   represented by serial numbers, that is, 1 represents condition 1. For   example, 1&2 means there are two SQL keyword conditions and both keywords   must be met for an alarm to be generated.

SQL Length

Specifies the length of a SQL statement. Value   range: 1 B to 64 KB.

Number of Associated Tables

This rule is triggered when the number   of tables involved in the SQL operation is greater than or equal to this   value. The maximum input value allowed is 255.

WHERE Clause

Whether there is any WHERE clause.   Supports three options:

  • Do not check

  • With WHERE clause

  • Without WHERE clause

The   default is "Do not check". A WHERE clause is used to extract SQL   records that meet the specified conditions. The syntax is as follows:

SELECT   column_name,column_name

FROM   table_name

WHERE   column_name operator value;

Result

Execution Duration

(Optional) Unit: Seconds, milliseconds,   microseconds. Value range: zero to half an hour. If the SQL execution   duration falls within this range, the rule is triggered.

Number of Affected Rows

Value range: 0 to 999,999,999. If the   number of records returned by the SQL operation or the number of affected   rows falls within this range, the rule is triggered.

Returned Result Set

Supports matching with regular   expressions.

Click Regular   Verification to enter the packet content, click Verify to verify   whether the input content matches the regular expression in the execution   result keyword; click Add Condition to add multiple conditions.

Logical   expression of conditional operation: If the SQL keyword is filled in, this   item is required. The relationship between conditions can be based on AND,   OR, NOT, and bracket operations (&: AND; |: OR; ~: NOT). Conditions are   represented by serial numbers, that is, 1 represents condition 1. For   example, 1&2 means there are two SQL keyword conditions and both keywords   must be met for an alarm to be generated.

Execution Status

There   are three types of execution status:

  • All

  • Successful

  • Failed

The   default is "All".

Execution Result Description

Supports matching with regular   expressions.

Others

Effective At

You can customize the time group or   select one.

Maximum Number of Alarms Per Day

Value range: 0 to 99,999. Where, 0 for   no limit.

Result Set Storage Policy

Set the storage policy for the returned   result set of the alarm logs of the rule, including "Same as asset   settings", "Save", and "Do not save".

3. After completing the configuration, click Save to complete the configuration of the trust rules.


YfUYJHBBKnaz