The configuration structure of access rules contains definitions of securable objects in XML format. Structure elements are non-mandatory and all are using their default values when not specified explicitly.
The XML configuration structure contains a root <SelfDefense> element that contains several child elements. Each of the child elements corresponds to a particular type of securable objects and contains values for each the specific setting.
The following table lists settings that configure access rules for Self Defense.
Access rules for Secure Defense
Element |
Description |
|---|---|
|
Start-tag for |
|
Start-tag for |
|
Supported type: file. The following attributes are available for the element:
|
|
Supported type: folder. The following attributes are available for the element:
|
|
Supported type: registry key. The following attributes are available for the element:
|
<RegistryValue rootType="LocalMachine|AnyUser|AnyControlSet" keyMask="" valueMask="" valueDataMask="" /> |
Supported type: registry value. The following attributes are available for the element:
|
|
Supported type: executable file. The following attributes are available for the element:
|
|
Supported type: registry key. The following attributes are available for the element:
|
|
Supported type: registry value. The following attributes are available for the element:
|
|
Supported type: file. The following attributes are available for the element:
|
|
End-tag for |
|
End-tag for |
Limitations
Environment variables are not supported in the folder path. Please always specify expanded paths when configuring access rules.
Incorrect configuration:
<FilePathExclusion mask=""%programfiles%\*""/>
Correct configuration:
<FilePathExclusion mask=""C:\Program Files\*""/>
Sample configuration
A sample configuration that you may pass in the argument of kaveSelfDefenseSetConfig is listed below.
Example: <SelfDefense> <ResourceList> <FilePath mask="" /> <Folder path="" protectParent="1|0" protectChildren="1|0" /> <RegistryKey rootType="LocalMachine|AnyUser|AnyControlSet" keyMask="" /> <RegistryValue rootType="LocalMachine|AnyUser|AnyControlSet" keyMask="" valueMask="" valueDataMask="" /> <Executable filePath="" invisibility="1|0" /> <RegistryKeyExclusion rootType="LocalMachine|AnyUser|AnyControlSet" keyMask="" /> <RegistryKeyValueExclusion rootType="LocalMachine|AnyUser|AnyControlSet" keyMask="" valueMask="" /> <FilePathExclusion mask="" /> </ResourceList> </SelfDefense> |