AI Auditor

Introduction

Watch the Video

AI Auditor is a policy analysis and auditing tool that helps strengthen your organization's security posture. It compares access control policies against organizational requirements, enabling you to identify policy violations, detect inconsistencies, and ensure policies are implemented as intended. Use AI Auditor to verify compliance with corporate security standards and maintain consistent policy enforcement across your environment.

AI Auditor Workflow

  1. The administrator defines network segments.

    First, the administrator selects the network segments to audit. Each segment is defined by a network group, which is a collection of IP addresses and networks that represent a distinct part of the network. For example: DMZ, Branch Offices, and Data Center.

    After the administrator selects the network segments to audit, AI Auditor creates a table that contains the selected network segments. Each cell in the table represents a traffic flow between a source segment and a destination segment or within a segment.

  2. The administrator defines the guidelines

    For each cell in the table, the administrator specifies whether traffic is allowed between the source and destination segments. By default, all traffic between two segments is blocked and all traffic within a network segment is allowed.

    You can create multiple sets of guidelines, each focused on a different network area, based on your needs and the required level of granularity.

    For example:

    One set of guidelines focuses on the traffic flow between key segments, such as Data Center, DMZ, Public Cloud, Branch Offices, User Networks, and OT Network.

    Another set of guidelines focuses exclusively on traffic between the Branch Offices, with selected segments including, for example, the New York Office, Tokyo Office, London Office, and Paris Office.

  3. AI Auditor analyzes the Rule Base

    AI Auditor evaluates the rules in each table cell against the guidelines:

  4. The administrator audits the rules

    For each violating rule, the administrator can decide whether to:

    1. Approve the violation.

    2. Modify the rule to comply with the guidelines.

    3. Modify the guidelines.

Prerequisites

Supported Objects

In a network group, supported objects include:

  • Network objects with IPv4 addresses

  • Hosts with IPv4 addresses

  • Network objects with IPv6 addresses

  • Hosts with IPv6 addresses

Known Limitations

Creating AI Auditor Guidelines

To create AI Auditor guidelines

  1. In SmartConsoleClosed Check Point GUI application used to manage a Check Point environment - configure Security Policies, configure devices, monitor products and events, install updates, and so on., go to the Security Policies view > Access Control policy > AI Auditor.

  2. Click Create guideline.

    The New Policy Guideline window opens.

  3. Enter a name for the guidelines.

  4. In the General tab:

    1. Click the plus sign (+).

    2. From the drop-down list, add the relevant segments to include in the guidelines.

    Segments are represented by Network Group objects. For each segment, select a Network Group object, which is a collection of IP addresses and networks.

    Note - After assigning a global policy in a Multi-Domain environment, you can also select global network groups as network segments for your guidelines.

  5. Optional: To create a new group, click the icon.

  6. In the Assigned to tab, select the Policy LayerClosed Layer (set of rules) in a Security Policy. to which the guidelines apply.

    Note - You can assign the same policy guidelines to multiple Policy Layers.

  7. Click OK.

    AI Auditor creates a table in which each cell represents traffic between two segments.

    By default:

    • All traffic within a segment is allowed (cells marked in green).

    • All traffic between two different segments is not allowed.

  8. In each cell, click the drop-down menu and select one of these options:

    • All traffic is allowed - Allow all traffic between these segments. Do not flag any rule as a violation.

    • All traffic is not allowed - Do not allow traffic between these segments. Flag all Accept rules as violations.

      You can exclude specific services from violation detection. Rules that include an excluded service are not flagged as violations.

      To exclude services:

      1. Click Manage allowed services.

      2. Click the plus (+) sign and select the required services.

      3. Click OK.

      Traffic that matches the selected services is allowed and is not considered a violation.

      To see the services that you excluded from inspection, from the Show drop-down menu, select Approved Services:

    • Decide later - Do not evaluate rules for this cell.

    The guidelines are created.

  9. To edit the guidelines, click Edit in the top-right corner of the screen.

Auditing Policy Rules Based on the AI Auditor Guidelines

To audit the policy rules based on the AI Auditor guidelines:

  1. In the Policy Layer field above the guidelines, click the drop-down menu to select the Policy Layer you want AI Auditor to audit.

  2. In the top toolbar of AI Auditor, click Calculate.

    AI Auditor calculates the rules based on the guidelines that you created.

    Notes:

    • If you have unpublished changes, AI Auditor prompts you to Publish & Calculate.

    • Last and next calculation times are displayed above the Calculate button:

  3. Select a cell in the calculated results.

    Note - You can use the Services search box to filter the results by service.

    For example:

    For each selected cell, the bottom pane of the AI Auditor window shows these tabs:

  4. For each selected cell, see the Violating rules tab at the bottom pane of AI Auditor.

    • To approve a violation:

      1. Select the rule and click Approve violation in the toolbar.

      2. In the window that opens, enter the reason for the approval, and select the scope of approval:

        • All cells in this guideline from now on - Applies also to any future change made to the guidelines.

      3. Click OK.

    • To modify a rule:

      • You can edit the Source or Destination columns of a rule from the AI Auditor page. Double-click the applicable network object in the Source or Destination cell and change its value as needed.

      • For all other changes, select Go to rule to open the Access Control Rule Base, where you can make the required changes.

Notes:

  • AI Auditor supports simultaneous changes made by multiple administrators.

Filtering Options

To change the guidelines view, go to the show filter, and from the drop-down menu select one of these options:

  • Rules and violations - Show all rules and violations for the selected cell.
  • Approved violations - Show only violations that were approved by an administrator.

  • Approved services - Show traffic that is allowed because the service was explicitly approved, even when traffic between the related segments is otherwise not allowed.

Support for Global Policy Assignment

AI Auditor supports the assignment of global policy in a Multi-Domain environment. It keeps your guideline data accurate when global policies are assigned, reassigned, or removed from a local Domain.

After assigning global policy rules in a Multi-Domain environment, click Recalculate.

AI Auditor recalculates the guidelines while including any changes introduced by the global policy.

Note - If you have guidelines for a Shared Layer that is used in two or more policy packages, click Recalculate in each policy package. This is because the location of the Shared Layer may differ in each package after assigning global rules.

AI Auditor Scheduler

AI Auditor scheduler automatically recalculates guidelines once every 24 hours. It recalculates all sets of guidelines according to the order in which they were most recently calculated. Each scheduled run operates within a defined time frame that you set. There is a cool down period (the default is 5 minutes) between each calculation of a set of guidelines. In a Multi-Domain environment, AI Auditor scheduler processes one set of guidelines per Domain at a time.

Configuration Parameters

Parameter

Default value

Description

NGM_MATRIX_SCHEDULER_CRON

01-00 AM

Sets the time when the scheduler runs

NGM_MATRIX_SCHEDULER_DURATION_HOURS

6

Maximum duration of a scheduler run in hours (the maximum value is 23 hours).

NGM_MATRIX_SCHEDULER_WAIT_TIME

300000

Pause between calculations of each set of guidelines in milliseconds (the default is 5 minutes)

NGM_MATRIX_SCHEDULER_MAX_CONCURRENT

3

In a Multi-Domain environment, the maximum number of parallel recalculation tasks

NGM_MATRIX_SCHEDULER_KILL_SWITCH

false

Stops or starts the AI Auditor scheduler.

Set to true to stop the scheduler immediately

Applying Changes

To apply immediate and temporary changes:

Note - These changes take effect immediately, but are lost when the Security Management ServerClosed Dedicated Check Point server that runs Check Point software to manage the objects and policies in a Check Point environment within a single management Domain. Synonym: Single-Domain Security Management Server. restarts.

  1. Open an SSH connection to the Security Management ServerClosed Check Point Single-Domain Security Management Server or a Multi-Domain Security Management Server..

  2. Switch to Expert mode.

  3. Run:

    /opt/CPsuite-<version_of_management_server>/fw1/scripts/reload_env_vars.sh -e "VARIABLE=value"

To apply persistent and permanent changes:

Note - These changes survive restart of the Security Management Server, but require a reboot to take effect.

  1. Open an SSH connection to the Security Management Server.

  2. Switch to Expert mode.

  3. Run:

    • For a Security Management Server, run:

      $FWDIR/scripts/override_server_setting.sh -e VARIABLE value

    • For a Multi-Domain Server, run:

      $MDS_FWDIR/scripts/override_server_setting.sh -e VARIABLE value

Note - For urgent changes (for example, an emergency stop), use both methods together to apply the changes immediately and make sure they persist.

Examples

Goal

Command

Schedule AI Auditor calculation to 02:00 AM

reload_env_vars.sh -e "NGM_MATRIX_SCHEDULER_CRON=02-00"

Set the calculation window to 4 hours

reload_env_vars.sh -e "NGM_MATRIX_SCHEDULER_DURATION_HOURS=4"

Emergency stop

reload_env_vars.sh -e "NGM_MATRIX_SCHEDULER_KILL_SWITCH=true"

Resume after stop

reload_env_vars.sh -e "NGM_MATRIX_SCHEDULER_DKILL_SWITCH=false"

Troubleshooting

Symptom

Likely Cause

Scheduler not running

Kill switch is on or invalid the cron expression

Scheduler stops before completing the calculations of all sets of guidelines

The time window is too short. Increase DURATION_HOURS

Tasks are queued but not starting

All slots are occupied, increase MAX_CONCURRENT

Configuration change has no effect

DURATION_HOURS, WAIT_TIME, and MAX_CONCURRENT apply only to the next scheduled run