Secure Check Point with cnspec
Scan Check Point Security Management servers and the gateways they manage against security and compliance best practices with cnspec.
Scan your Check Point Security Management servers to find security risks before they become incidents. cnspec connects to the management plane behind SmartConsole through the Check Point Management API and evaluates administrators, permission profiles, trusted clients, API settings, and the security gateways and clusters the server manages.
Check Point is one of the network devices cnspec can assess. For the full list of supported devices, see the network device scanning overview. New to cnspec? Start with the quickstart.
cnspec queries the Check Point Security Management Server (the management plane behind SmartConsole), not individual gateways. It opens a read-only Management API session and never modifies policy or objects. Through the management server, cnspec also reads the configuration of the gateways and clusters that server manages. They appear as resources of the management server asset, not as separate assets.
Prerequisites
To scan a Check Point management server with cnspec, you must have:
- cnspec installed on your workstation
- Network access to the Check Point Security Management Server's Management API (default port 443)
- Credentials for the Management API: either an API key or a username and password
Give cnspec access to your management server
cnspec connects to the Check Point Management API over HTTPS. You authenticate with an API key (recommended) or with a username and password. The account needs only read access to the management configuration.
API key setup instructions
Create an API key
To create an API key for an administrator in SmartConsole:
- In SmartConsole, go to Manage & Settings > Permissions & Administrators > Administrators.
- Select an existing administrator or create a new one with a read-only permission profile.
- In the administrator's Authentication Method, choose API Key and generate a key.
- Publish the session so the change takes effect.
- Copy the generated API key.
For detailed instructions, see the Check Point Management API reference.
Test your connection
Before running a full scan, verify that cnspec can connect by opening a cnspec shell. For MGMT_HOST, substitute the hostname or IP address of your management server, and for YOUR_API_KEY, substitute your API key:
cnspec shell checkpoint --hostname MGMT_HOST --api-key YOUR_API_KEYTo authenticate with a username and password instead, and prompt for the password:
cnspec shell checkpoint --hostname MGMT_HOST --username admin --ask-passTo skip TLS certificate verification (for management servers with self-signed certificates):
cnspec shell checkpoint --hostname MGMT_HOST --api-key YOUR_API_KEY --insecureIf cnspec connects successfully and shows a prompt, you're ready to scan.
Connection options
| Option | Description |
|---|---|
--hostname | Hostname or IP address of the Check Point management server (required) |
--port | Management API port (default: 443) |
--api-key | API key for authentication (alternative to username and password) |
--username | Username for authentication |
--user, -u | Same as --username, and takes precedence over it |
--password, -p | Password for authentication |
--ask-pass | Prompt for the password |
--domain | Management domain to target on a Multi-Domain Security Management server |
--insecure, -k | Skip TLS certificate verification |
--fingerprint | Pin the management server's TLS certificate SHA-1 fingerprint |
--gaia-user | Gaia user for reading the operating system settings over SSH (a monitorRole user is enough) |
--gaia-password | Password of the Gaia user |
--gaia-identity-file | SSH private key of the Gaia user |
--gaia-port | SSH port of the Gaia machine (default: 22) |
Scanning more than one Check Point Security Management Server? Use an inventory
file to define every target and its credentials in one place, then scan them
all with a single cnspec scan --inventory-file command.
To target a specific domain on a Multi-Domain Security Management server, add the --domain flag:
cnspec shell checkpoint --hostname MGMT_HOST --api-key YOUR_API_KEY --domain CorporateRead Gaia operating system settings
The checkpoint.gaia resource reads the management server's Gaia operating system settings, such as password controls, banners, NTP, SNMP, Telnet, backups, and TACACS+ and RADIUS servers. cnspec reads them over SSH through Gaia's clish, with a credential separate from the Management API credential. A Gaia user with only the built-in monitorRole is enough: it can run show commands but can't change anything and has no shell.
To read Gaia settings, add a Gaia user and either its SSH private key or its password:
cnspec shell checkpoint --hostname MGMT_HOST --api-key YOUR_API_KEY --gaia-user monitor --gaia-identity-file ~/.ssh/gaia--gaia-password works where the machine allows SSH password logins. CloudGuard images in AWS and Azure turn password logins off, so use a key there. A user whose login shell is bash (expert mode) instead of clish also works.
Without a Gaia user, everything else in the scan works as usual and only checkpoint.gaia returns an error. The commands a role may run differ by machine: on an R82 Security Management Server, a monitorRole user can't run show dhcp server status, so checkpoint.gaia.dhcpServerEnabled returns an error while the other fields read normally.
Scan a Check Point management server
To scan a management server, use the cnspec scan command:
cnspec scan checkpoint --hostname MGMT_HOST --api-key YOUR_API_KEYWhen the scan completes, cnspec prints a pass or fail result for each check and an overall risk score. To output results in other formats such as JSON, JUnit, or SARIF, read Report Results.
Scan with the Mondoo Check Point Security policy
Mondoo maintains an out-of-the-box Check Point Security policy that checks Access Control policy rules, global properties, management access, gateway blades and software versions, site-to-site VPN settings, and more.
Mondoo Platform users: Enable the policy in your space. In the Mondoo App, go to Findings > Policies, search for "Check Point", and add the policy. All future scans of your Check Point management servers automatically evaluate against it. To learn more, read Manage policies in Mondoo Platform.
Open source users: Pass the policy bundle URL directly to cnspec:
cnspec scan checkpoint --hostname MGMT_HOST --api-key YOUR_API_KEY \
--gaia-user monitor --gaia-identity-file ~/.ssh/gaia \
--policy-bundle https://raw.githubusercontent.com/mondoohq/cnspec/refs/heads/main/content/mondoo-checkpoint-security.mql.yamlThe policy's Gaia operating system checks need a Gaia user. Without one, those checks report an error and the rest of the policy runs as usual. To learn more, read Read Gaia operating system settings.
You can also create your own policies to meet your specific requirements.
Example checks
You can interactively explore and test checks using the cnspec shell. To open a shell connected to your management server:
cnspec shell checkpoint --hostname MGMT_HOST --api-key YOUR_API_KEYBelow are some example queries and checks you can run from the shell.
Retrieve the management server details
cnspec> checkpoint.management.server { name apiVersion domain }
checkpoint.management.server: {
name: "mgmt"
apiVersion: "1.9.1"
domain: "SMC User"
}Find administrators with no password expiration
cnspec> checkpoint.management.administrators.where(expiration == "") { name authMethod }Ensure the Management API is not reachable from anywhere
cnspec> checkpoint.management.apiSettings.accessibleFrom != "all"Ensure the trusted-client allowlist does not contain "Any"
cnspec> checkpoint.management.trustedClients.none(type == "any")List gateways and their versions
cnspec> checkpoint.gateways { name version osName }Find gateways without HTTPS inspection enabled
cnspec> checkpoint.gateways.where(blades.httpsInspection == false) { name }Find interfaces missing anti-spoofing
cnspec> checkpoint.gateways { name interfaces.where(antiSpoofing == false) { name } }List VPN communities and their member gateways
cnspec> checkpoint.vpn.communities { name type members { name ipv4Address } }List clusters and their members
cnspec> checkpoint.clusters { name version members { name ipv4Address sicState } }Ensure Telnet is disabled on the management server
Requires a Gaia user (--gaia-user).
cnspec> checkpoint.gaia.telnetEnabled == falseEnsure Gaia passwords are at least 14 characters
Requires a Gaia user (--gaia-user).
cnspec> checkpoint.gaia.passwordControls.minPasswordLength >= 14List enabled NAT rules with their translated objects
cnspec> checkpoint.natRules.where(enabled) { packageName ruleNumber translatedSourceName }Learn more
-
To scan multiple Check Point Security Management Servers at once instead of one at a time, read Remote Scanning with Inventory Files.
-
To learn about all the Check Point resources and properties you can query, read the Check Point Resource Pack Reference.
-
To learn more about how the MQL query language works, read Write Effective MQL.
-
For more information about the Check Point Management API, see the Check Point Management API reference.
Last updated on