Skip to content
Export guide · Firewalls and network

How to export your Sophos XGS configuration, and what we check in it

Where you run it: Sophos Firewall web admin console, then a command line on your computer to unpack the download.

In short

Sophos XGS configuration export: the file Sophos XGS writes of its own settings, which a configuration review reads setting by setting without connecting to Sophos XGS.

How to export the Sophos XGS configuration, step by step, what the review checks in the file (59 checks run), and what it does not read.

The fileXML, one Entities.xml, unpacked from the .tar the firewall downloads
Checks run on it59
Highest grade its findings reachPROVEN
Feeds attack pathsNo
Not read from this export2 areas, listed below

Sources: Sophos XGS documentation (1); Sophos XGS documentation (2); the vendor table.

How to export it

Who can pull it
An administrator who can open Backup and firmware → Import export, because the export is on that page. Sophos’s documentation names no specific profile right for the export. It documents the Administrator profile ("full access to the web admin console and CLI") and custom profiles under Profiles → Device access that give each menu None, Read-only or Read-write, and it does not say which level the export needs.
Time
About 5 minutes.
The file
XML, one Entities.xml, unpacked from the .tar the firewall downloads

In the Sophos XGS console

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

    The vendor's page, checked 2026-11-11
  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

    The vendor's page, checked 2026-11-11
  3. Entities.xml is the configuration file: upload that one. hashFile.json and propertyfile are not part of a review

    The vendor's page, checked 2026-11-11

No command-line export: There is no command-line route to this file: the firewall’s XML application programming interface (API) answers one setting type per request in a different layout, and it is off by default, so using it would mean changing the firewall.

What the file looks like

XML, one Entities.xml, unpacked from the .tar the firewall downloads. It varies with the firewall: the file grows with its rules, hosts, users and policies. The upload takes files up to 10 MB.

What it holds: In Sophos’s words, "the full or partial configuration of Sophos Firewall": with "Export full configuration", the full one, in one Entities.xml.

Upload Entities.xml as Sophos writes it, not the .tar. The review reads part of the file: the two lists on this page say which settings it reads and which it does not.

Afterwards

Delete the .tar and the unpacked files (Entities.xml, hashFile.json, propertyfile) from your computer when you are done. The steps created nothing on the firewall, so there is nothing to remove there.

If the export goes wrong

What you seeThe fix
You upload an XML file and the upload says it does not match any expected format for Sophos XGSOpen the file and look at its first lines: Entities.xml starts with <?xml and its first element is <Configuration APIVersion="...">. A file that starts with <Response> is an answer from the firewall’s XML API, which holds one setting type and is not read. Export again with Backup and firmware → Import export → "Export full configuration". A refused file’s content is not stored.
You upload the .tar itself and it is refusedThe .tar is a container. Unpack it with tar -xvf <tarfilename>.tar and upload Entities.xml from inside it.
You have a file named Backup_<Device Key>_<SFOS version>_<timestamp>, from Backup and firmware → Backup and restoreThat is the encrypted backup, which cannot be read. The readable export is Backup and firmware → Import export → "Export full configuration".

What we read from it

Checks run
59
Formats read
XGS XML config export
Releases
v19 to v20.x

Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.

The areas checked

  • Firewall rules: an enabled Accept rule from any network to any network, an enabled Accept rule with no intrusion prevention policy, and whether a logged Drop or Reject rule for any source ends the rule set
  • What the WAN zone allows on the firewall itself: HTTPS and SSH administration, ping and the user portal
  • NAT rules: a destination translation open to any source, and a source translation toward any destination
  • Sign-in settings: the block after failed sign-ins, the administrator session timeout, the password complexity check, the login disclaimer, one-time passwords for administrators, and how many active accounts hold the Administrator profile
  • Protection settings: SSL/TLS inspection, active threat response, DoS flood protection and automatic pattern updates
  • Email: SPF and spam protection in SMTP policies, DKIM verification, and a relay open to any host
  • IPsec: aggressive mode, weak ciphers and hashes, no perfect forward secrecy and IKEv1, in the profiles an active connection uses
  • The backup schedule, NTP time sync, and an SNMP community string left at public or private
  • Remote syslog servers, when the file holds the syslog settings: a file without them is listed as not assessed, never as a finding

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.

Its findings stay in the review and its reports. Sophos XGS does not feed attack paths.

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

What we do not read from this export

  • 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

Limits of the reader

  • Findings stay in the review. They do not feed attack paths.
  • Some checks of this system are in the code and not counted: no test shows them firing on a file in the layout the vendor documents.

A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.

Questions

Who can export the Sophos XGS configuration?

An administrator who can open Backup and firmware → Import export, because the export is on that page. Sophos’s documentation names no specific profile right for the export. It documents the Administrator profile ("full access to the web admin console and CLI") and custom profiles under Profiles → Device access that give each menu None, Read-only or Read-write, and it does not say which level the export needs.

Does the export change anything?

Sophos describes the export as a download and names no change to the firewall. It does not say whether the export is written to the firewall’s log. The steps turn nothing on and create no key or user.

Does the file hold passwords or keys?

In Sophos’s words, the secure storage master key "encrypts sensitive information, such as passwords, secrets, and keys", and an export that holds such items adds hashFile.json and propertyfile beside Entities.xml. Sophos gives no list of what stays readable in Entities.xml, so treat the file as sensitive: it describes your rules, hosts and users. 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.