Learn Mode Tool
The Learn Mode Policy Builder (lmpb
) is an OpenSource Python-based tool for processing the CipherTrust Transparent Encryption Learn Mode audit logs and generating security policies. Learn Mode allows access to guarded paths while logging access details. This tool helps administrators understand the gap between the current policy and the required policy and suggests corrective changes. The CipherTrust Manager and file system administrators are advised to review the changes before pushing them to CipherTrust Manager.
Note
This is an unsupported tool. Users are free submit request for enhancements and bugs, but Thales will not treat them as escalations.
Prerequisite
To collect logs that can be processed by the Learn Mode tool, enable the Learn Mode toggle on the CipherTrust Manager GUI while creating a policy.
Using the Learn Mode Tool
The Tool is available from the Thales site CipherTrust Transparent Encryption Git repository.
After you have the logs for Learn Mode, proceed as follows:
-
Clone the CipherTrust Transparent Encryption Git repository.
-
Navigate to the
learn-mode-policy-builder
directory. -
View the common commands.
Sample Output
Log Related Commands
Sample Output
View the log status:
-
If unprocessed logs are present, output displays as follows:
Sample Output
-
If all log files are already processed, output displays as follows:
Sample Output
-
For processing the unprocessed log files, run the command:
Sample Output
-
Input the
output.json
file to Splunk to visualize the data.In the example above, the SPLUNK server is configured to listen on port
6666
forjson_no_timestamp
events. The IP address10.171.56.220
is an example. -
For viewing the log report:
Sample Output
The output will show all processes, accesses performed by them, and the directories over which they have been performed.
After the logs are processed by the Learn Mode policy builder tools, the following policy related commands can be run to list the existing policies or show updates recommended by the tool.
Policy Related Commands
Sample Output
-
List the policies with Learn Mode updates:
Sample Output
-
Show Learn Mode policy updates:
Sample Output
-
Policies can be viewed based on users or processes. By default, it is user-based.
-
The output of policy show in this case will be sorted, based on user sets. This is the default setting for policy show command.
-
The output of policy show in this case will be sorted, based on process sets.
Sample Output
Uploading Policy to CipherTrust Manager
- To upload the policy to the CipherTrust Manager, run the command:
The above command will upload a policy to the CipherTrust Manager with modifications on top of the original policy suggested by the Learn Mode policy builder tool. Note that the above command will fail if the original policy is not found on the specified CipherTrust Manager.