Skip to content
Firewall audit · from the configuration

FortiGate firewall audit from the config file

Export the FortiGate configuration, upload the config file, and the review runs 55 checks on it, each on the setting it reads. Nothing connects to the firewall.

The 55 checks run on the FortiGate export

These are the checks that reached a result on a FortiGate export in its own layout in our tests: the same 55 the vendor table counts as checks run. Each row says what part of the export the check reads.

Auth 9

CheckSeverityReads
Admin accounts must enforce two-factor authentication Criticalsystem admin
Every admin account must set a password Criticalsystem admin
Admin lockout threshold should be configured Highsystem global
Admin accounts should restrict source IPs (trusthost) Highsystem admin
Default `admin` account should be renamed or disabled Mediumsystem admin
Admin HTTPS redirect should be enabled Mediumthe Auth settings
Admin idle timeout should be 5 minutes or less Mediumsystem global
Limit accounts holding the super_admin profile Mediumsystem admin
Concurrent admin sessions should be disabled Lowsystem global

Crypto 6

CheckSeverityReads
SSHv1 must not be permitted Criticalsystem global
IPsec phase-1 should not use weak DH groups (1, 2, 5) Highvpn ipsec phase1-interface
IPsec phase-1 should negotiate over IKEv2, not IKEv1 Highvpn ipsec phase1-interface
`strong-crypto` should be enabled Highsystem global
Admin HTTPS must require TLS 1.2 or higher Highsystem global
Admin GUI should not use the factory/self-signed certificate Mediumthe Crypto settings

HA 2

CheckSeverityReads
Production firewalls should run in HA Mediumsystem ha
Active-active HA carries operational caveats Infothe HA settings

Inspection 1

CheckSeverityReads
No deep SSL inspection profile applied to outbound policies Mediumfirewall policy

Intent 4

CheckSeverityReads
A policy named as a block/deny rule is set to ACCEPT Highfirewall policy
A policy named as inspected/secure carries no security profile Highfirewall policy
A policy named as restricted/scoped uses an any selector Highfirewall policy
A policy named as logged/audited has logging disabled Mediumfirewall policy

Interfaces 5

CheckSeverityReads
WAN interfaces should not allow HTTPS management Criticalsystem interface
WAN interfaces should not allow SSH Criticalsystem interface
CIS 4.1: no SNMP community is named `public` Highsystem snmp community
WAN interfaces should not allow SNMP Highsystem interface
Every interface should have a role assigned Lowsystem interface

Logging 3

CheckSeverityReads
A syslog destination should be configured Highlog syslogd setting
Configuration revision backup should be enabled Mediumsystem global
Timezone should be explicitly set Lowsystem global

NAT 2

CheckSeverityReads
Virtual IP static NAT with mappedip range covering many hosts Highthe NAT settings
Mixed central + per-policy NAT Lowthe NAT settings

Password policy 4

CheckSeverityReads
A password policy must be enforced Highsystem password-policy
Password policy should require character complexity Mediumsystem password-policy
Password minimum length should be at least 14 Mediumthe Password policy settings
Admin passwords should expire Lowsystem password-policy

Policies 12

CheckSeverityReads
No firewall policy should allow any-any-any with action accept Criticalfirewall policy
Accept policies from untrusted zones should have an IPS sensor Highfirewall policy, system interface
Accept policies should log UTM events at minimum Highfirewall policy
Internet-bound policies should have SSL/SSH inspection Highfirewall policy, system interface
Accept policies should apply an application-control profile Mediumfirewall policy
Inbound accept policies should run AV scanning Mediumfirewall policy, system interface
Implicit-deny policy should log Mediumfirewall policy
Outbound accept policies should apply a DNS filter profile Mediumfirewall policy
Accept policies should apply a web filter profile Mediumfirewall policy
Implicit deny not configured to log violations Mediumthe Policies settings
Disabled policies suggest pending cleanup Lowfirewall policy
Policies should be named for searchability Lowfirewall policy

SNMP 1

CheckSeverityReads
SNMP must not use a default/public community or SNMPv1 Highsystem snmp community

System 4

CheckSeverityReads
The maintainer (physical-access reset) account should be disabled Mediumsystem global
NTP time synchronization should be enabled Mediumsystem ntp
USB auto-install should be disabled Mediumsystem auto-install
A pre-login warning banner should be configured Lowsystem global

VPN 2

CheckSeverityReads
IPsec phase-1 in aggressive mode Highvpn ipsec phase1-interface (to-branch)
SSL-VPN portal with local-only authentication Highthe VPN settings

The FortiGate export

How long it takes
About 5 minutes per FortiGate; a large configuration takes a minute or two more to print.
Who can pull it
An administrator with the super_admin profile, or a profile with System set to Read/Write
The file
Plain text, one .conf file in FortiOS command-line interface (CLI) syntax. Our reader needs its top line to start with #config-version=
Formats read
show full-configuration text export

The steps, console and command line, are on the Fortinet FortiGate export guide.

What the export does not show

  • Multi-VDOM files: settings inside config global and config vdom blocks are not read yet
  • Rule comments, so rule documentation is not checked
  • Hit counts, so unused rules are not found
  • Logs, sessions and traffic: this is the configuration and nothing else

Limits of the reader

  • Multi-VDOM exports are read as partial: the settings inside config global and each VDOM are not read, and the review says so.
  • The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.

A configuration audit reads settings. Live traffic, hit counts the export does not carry, running hosts and logs are not in the file, so no finding comes from them.

A FortiGate finding from the sample

Sample company: Acme Capital (fictional)

Policy 47 allows any internal-corp traffic to prod-payments

HighHQ FortiGate · firewall policy › edit 47 · L1288

From the sample company’s own estate. Run the sample to see it with its fix and the attack paths it sits on.

The grade its findings reach

Proven A finding from this file can reach PROVEN: the stored file is read a second time by a separate reader, and the finding is found at the setting it names.

FortiGate findings feed attack paths: each one can be a step on a path an attacker could take to your crown jewels.

Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.

Questions

Does the FortiGate audit connect to the firewall?

No. The review reads the config file you export and upload, setting by setting. Nothing is installed on the firewall and nothing connects to it.

How long does the FortiGate export take?

About 5 minutes per FortiGate; a large configuration takes a minute or two more to print.

What does the FortiGate export not show?

Multi-VDOM files: settings inside config global and config vdom blocks are not read yet. Rule comments, so rule documentation is not checked. Hit counts, so unused rules are not found. Logs, sessions and traffic: this is the configuration and nothing else.

Does the file hold passwords or keys?

Fortinet: "The passwords, and private keys used in certificates, that are stored on the FortiGate are encrypted using a predefined private key". They show as ENC values, and Fortinet advisory FG-IR-19-007 says to consider them "easy to decrypt" if the file gets out. Administrator passwords are stored as hashes. With private-data-encryption on (it is off by default) the FortiGate uses its own key. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.