Edit a HIPS rule

See HIPS rule management first.

Rule name – User-defined or automatically chosen rule name.

Action – Specifies an action – Allow, Block or Ask – that should be performed if conditions are met.

Operations affecting – You must select the type of operation for which the rule will be applied. The rule will be used only for this type of operation and for the selected target.

Enabled – Disable the slider bar if you want to keep the rule in the list but not apply it.

Logging severity – If you activate this option, information about this rule will be written to the HIPS log.

Notify user – A small pop-up window appears in the lower-right corner if an event is triggered.

The rule consists of parts that describe the conditions triggering this rule:

Source applications – The rule will be used only if the event is triggered by this application(s). Select Specific applications from drop-down menu and click Add to add new files or you can select All applications from the drop-down menu to add all applications.

Target files – The rule will be used only if the operation is related to this target. Select Specific files from drop-down menu and click Add to add new files or folders or you can select All files from the drop-down menu to add all files.

Applications – The rule will be used only if the operation is related to this target. Select Specific applications from the drop-down menu and click Add to add new files or folders or you can select All applications from the drop-down menu to add all applications.

Registry entries – The rule will be used only if the operation is related to this target. Select Specific entries from the drop-down menu and click Add to type it manually, or you can click Open Registry Editor to select a key from Registry. Also, you can select All entries from the drop-down menu to add all applications.


note

Some operations of specific rules predefined by HIPS cannot be blocked and are allowed by default. In addition, not all system operations are monitored by HIPS. HIPS monitors operations that may be considered unsafe.

Descriptions of important operations:

File operations

Delete file – Application is asking for permission to delete the target file.

Write to file – Application is asking for permission to write to the target file.

Direct access to disk – Application is trying to read from or write to the disk in a non-standard way that will circumvent common Windows procedures. This may result in files being modified without the application of corresponding rules. This operation may be caused by malware trying to evade detection, backup software trying to make an exact copy of a disk, or a partition manager trying to reorganize disk volumes.

Install global hook – Refers to calling the SetWindowsHookEx function from the MSDN library.

Load driver – Installation and loading of drivers onto the system.

Application operations

Debug another application – Attaching a debugger to the process. While debugging an application, many details of its behavior can be viewed and modified and its data can be accessed.

Intercept events from another application – The source application is attempting to catch events targeted at a specific application (for example a keylogger trying to capture browser events).

Terminate/suspend another application – Suspending, resuming or terminating a process (can be accessed directly from Process Explorer or the Processes pane).

Start new application – Starting of new applications or processes.

Modify state of another application – The source application is attempting to write into the target applications' memory or run code on its behalf. This functionality may be useful to protect an essential application by configuring it as a target application in a rule blocking the use of this operation.


note

It is not possible to intercept process operations on the 64-bit version of Windows XP.

Registry operations

Modify startup settings – Any changes in settings that define which applications will be run at Windows startup. These can be found, for example, by searching for the Run key in the Windows Registry.

Delete from registry – Deleting a registry key or its value.

Rename registry key – Renaming registry keys.

Modify registry – Creating new values of registry keys, changing existing values, moving data in the database tree or setting user or group rights for registry keys.


note

You can use wildcards with certain restrictions when entering a target. Instead of a particular key the * (asterisk) symbol can be used in registry paths. For example HKEY_USERS\*\software can mean HKEY_USER\.default\software but not HKEY_USERS\S-1-2-21-2928335913-73762274-491795397-7895\.default\software. HKEY_LOCAL_MACHINE\system\ControlSet* is not a valid registry key path. A registry key path containing \* defines "this path, or any path on any level after that symbol". This is the only way of using wildcards for file targets. First, the specific part of a path will be evaluated, then the path following the wildcard symbol (*).


warning

If you create a very generic rule, the warning about this type of rule will be shown.

In the following example, we will demonstrate how to restrict unwanted behavior of a specific application:

1.Name the rule and select Block (or Ask if you prefer to choose later) from the Action drop-down menu.

2.Enable the slider bar next to Notify user to display a notification any time that a rule is applied.

3.Select at least one operation in the Operations affecting section for which the rule will be applied.

4.Click Next.

5.In the Source applications window, select Specific applications from the drop-down menu to apply your new rule to all applications attempting to perform any of the selected application operations on the applications you specified.

6.Click Add and then ... to choose a path to a specific application and then press OK. Add more applications if you prefer.
For example: C:\Program Files (x86)\Untrusted application\application.exe

7.Select the Write to file operation.

8.Select All files from the drop-down menu. This will block any attempts to write to any files by the selected application(s) from the previous step.

9.Click Finish to save your new rule.

CONFIG_HIPS_RULES_EXAMPLE