Skip to content

FBI advisory on FortiGate (FortiBleed): what to check in your config

Firewall audit · Juniper SRX · how-to

How to audit a Juniper SRX firewall config: ten things to check

The ten most severe checks the review runs on a Juniper SRX export, each with the setting or line it reads. The lines come from a made-up insecure sample file, so you can find the same setting in your own export.

Ten things to check

  1. Security policy permit any-any

    CriticalPolicies

    Default-allow.

    set security policies from-zone untrust to-zone trust policy allow-all match source-address any line 40 of juniper-srx-insecure.set.txt (the sample file)

  2. Telnet management service enabled

    CriticalServices

    Telnet transmits credentials and session data in cleartext, exposing the management plane to sniffing and hijack.

    set system services telnet line 17 of juniper-srx-insecure.set.txt (the sample file)

  3. Default security policy is permit-all

    CriticalPolicies

    A global default-policy of permit-all means any traffic not matching an explicit rule is forwarded — the firewall fails open instead of failing closed.

    In the Policies settings of the export; the reader cites no single line for this check.

  4. IKE aggressive mode enabled

    HighIKE

    IKEv1 aggressive mode exposes the PSK identity hash on the wire, enabling offline cracking of the pre-shared key.

    set security ike policy IKE-POL mode aggressive line 55 of juniper-srx-insecure.set.txt (the sample file)

  5. IKE weak Diffie-Hellman group (1/2/5)

    HighIKE

    DH groups 1, 2 and 5 use small MODP primes (768/1024/1536-bit) that are within reach of nation-state and increasingly commodity attacks (Logjam).

    set security ike proposal IKE-PROP dh-group group2 line 52 of juniper-srx-insecure.set.txt (the sample file)

  6. IKE/IPsec weak encryption (DES/3DES)

    HighIKE

    DES and 3DES are deprecated (small block size, Sweet32) and must not protect VPN traffic.

    set security ike proposal IKE-PROP encryption-algorithm 3des-cbc line 53 of juniper-srx-insecure.set.txt (the sample file)

  7. J-Web served over HTTP (cleartext)

    HighServices

    J-Web over plain HTTP exposes admin credentials and session cookies to network interception.

    set system services web-management http interface ge-0/0/0.0 line 18 of juniper-srx-insecure.set.txt (the sample file)

  8. SNMP v1/v2c configured

    HighSNMP

    No encryption / weak auth.

    set snmp community public authorization read-only line 31 of juniper-srx-insecure.set.txt (the sample file)

  9. IDP not enabled on policies

    HighIDP

    No threat inspection.

    The setting it reads: security

  10. IPsec without PFS

    HighIPsec

    No forward secrecy.

    The setting it reads: security

How to export the file

How long it takes: About 5 minutes once your login can view the configuration; add about 10 minutes when an administrator has to create the login class.

Every step, the command-line route, and the errors you may meet: the Juniper SRX export guide.

What the export does not show

  • Hit counts and last-change data, so unused rules are not found
  • Address-book entries resolved to addresses
  • The members of custom application sets
  • XML and brace-format output: just display set output is read
  • FIPS mode: not checked yet
  • System scripts and event options: a login with view-configuration does not see them, so they are not in the file

Live sessions, logs and running hosts are not in a configuration export, so no finding comes from them.

The rest of the review

The review runs 44 checks on a Juniper SRX export. All of them, with the part of the export each reads: Juniper SRX firewall audit from the config file. The same items across every firewall: the firewall audit checklist.