Sophos XG Firewall

Sophos XG is an on-premises next-generation firewall appliance that can send its logs to InsightIDR. You can read the admin guide here: https://docs.sophos.com/nsg/sophos-firewall/v17.0.2/PDF/Sophos%20XG%20Firewall%20Web%20Interface%20Reference%20Guide.pdf

To ensure Sophos XG forwards its log to InsightIDR, you must configure:

  1. Syslog Forwarding
  2. Sophos XG Event Source

Configure Syslog Forwarding

You can configure your Sophos XG to forward its logs to a syslog server. Follow the instructions provided by Sophos here: https://community.sophos.com/kb/en-us/123184

For best results, use the system with the InsightIDR Collector as your syslog server location for:

  • Port (where 514 is the default)
  • IP Address

Additionally, choose the following options during configuration:

  • Facility: DAEMON
  • Severity Level: Debug
  • Format: Device Standard Format

Sophos Central is the tool that allows for central management of firewall configuration. You can use the Sophos Central API to configuring log forwarding to a SIEM, or InsightIDR. Follow the directions here: https://community.sophos.com/kb/en-us/125169

Configure Sophos XG Event Source

  1. From your dashboard, select Data Collection on the left hand menu.
  2. When the Data Collection page appears, click the Setup Event Source dropdown and choose Add Event Source.
  3. From the “Security Data” section, click the Firewall icon. The “Add Event Source” panel appears.
  4. Choose your collector and event source. If you want, you can also name your event source.

The event source Sophos XG is not the same as Sophos Firewall (UTM).

When choosing an event source from the firewall options, be sure to select the correct one.

  1. Choose the time zone that matches the location of your event source logs.
  2. Optionally choose to send unfiltered logs.
  3. Configure your default domain and any advanced settings.
  4. Select syslog and specify the port and protocol you configured earlier.
    • Optionally choose to Encrypt the event source if choosing TCP by downloading the Rapid7 Certificate.
  5. Click the Save button.

Verify Log Parsing

After you configure this event source, check that the Sophos XG logs appear in log search and adhere to the following format:

1
30> device="SFW" date=2019-03-06 time=23:04:00 timezone="EST" device_name="XG330" device_id=A11111AAA1F9R30 log_id=010101600001 log_type="Firewall" log_component="Firewall Rule" log_subtype="Allowed" status="Allow" priority=Information duration=0 fw_rule_id=94 policy_type=1 user_name="" user_gp="" iap=0 ips_policy_id=0 appfilter_policy_id=0 application="" application_risk=0 application_technology="" application_category="" in_interface="Port1" out_interface="Port2" src_mac=00: 0:00: 0:00: 0 src_ip=10.1.1.2 src_country_code=R1 dst_ip=10.10.10.10 dst_country_code=R1 protocol="TCP" src_port=43874 dst_port=458 sent_pkts=0 recv_pkts=0 sent_bytes=0 recv_bytes=0 tran_src_ip= tran_src_port=0 tran_dst_ip= tran_dst_port=0 srczonetype="LAN" srczone="LAN" dstzonetype="VPN" dstzone="VPN" dir_disp="" connevent="Start" connid="3205265920" vconnid="" hb_health="No Heartbeat"