Skip to content

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

Firewall audit · Sophos XGS · how-to

How to audit a Sophos XGS firewall config: ten things to check

The ten most severe checks the review runs on a Sophos XGS 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. Any-any allow rule

    CriticalFirewall

    Default-allow rule.

    <FirewallRule> line 91 of sophos-xgs-insecure.xml (the sample file)

  2. Admin 2FA not enforced

    CriticalAdmin

    Admin login is single-factor.

    The setting it reads: TwoFactorAuthentication

  3. SSH (CLI) reachable from WAN zone

    CriticalManagement

    SSH CLI access is permitted from the WAN zone via the local service ACL, exposing the admin CLI to Internet-wide brute force and reconnaissance.

    The setting it reads: zone "WAN"

  4. Web admin (HTTPS) reachable from WAN zone

    CriticalManagement

    The web admin console (HTTPS) is permitted from the WAN zone via the local service ACL, exposing the management plane to the Internet for brute-force, DoS and zero-day exploitation.

    The setting it reads: zone "WAN"

  5. Default "admin" account active with unchanged password

    CriticalAuth

    The built-in super-admin "admin" account is active and its factory/default password has not been changed.

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

  6. Local admin without 2FA

    CriticalUsers

    Single-factor.

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

  7. IPS disabled on accept rules

    HighIPS

    Inbound rules without IPS = uninspected.

    <IntrusionPrevention>None</IntrusionPrevention> line 96 of sophos-xgs-insecure.xml (the sample file)

  8. Failed sign-in lockout disabled

    HighAuth

    The firewall does not block repeated unsuccessful sign-in attempts, leaving the admin and user portals open to unlimited online password guessing / brute force.

    The setting it reads: AdminSettings

  9. Anti-virus inspection disabled

    HighAV

    Inbound traffic is not checked for malware.

    The setting it reads: AntiVirusProtection

  10. SMTP relay open to any source

    HighEmail

    The MTA permits mail relay from any source network, an open-relay condition that enables spam/phishing abuse and IP-reputation blacklisting of the organization.

    The setting it reads: MailRelaySettings AllowedRelay

How to export the file

How long it takes: About 5 minutes.

  1. Backup and firmware → Import export → under Export, select "Export full configuration" → Export. Your browser saves a .tar file

  2. On your computer, open a command line in the folder that holds the download and run tar -xvf <tarfilename>.tar (the command Sophos gives for Windows and Linux). It unpacks Entities.xml and, when the configuration holds passwords, hashFile.json and propertyfile

  3. Entities.xml is the configuration file: upload that one. hashFile.json and propertyfile are not part of a review

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

What the export does not show

  • TLS versions for administration, SNMPv1, web filtering mode, anti-virus and zero-day settings, the WAF, QoS, high availability, firmware release and certificate expiry: Sophos documents no element for them in this file, so those checks are not counted and find nothing here
  • A rule hidden by a rule above it: Sophos rules also match on zones, and the rule-by-rule comparison does not read zones
  • hashFile.json and propertyfile: leave them out
  • Hit counts, logs and live connections: this is the configuration, not live data

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 59 checks on a Sophos XGS export. All of them, with the part of the export each reads: Sophos XGS firewall audit from the config file. The same items across every firewall: the firewall audit checklist.