The short answer
Firewall Logging and Review
A firewall log is evidence of what tried to cross a boundary and what was allowed to, and it is useful only if every rule logs, the logs leave the firewall for a collector, and someone reads them. Denials at the office-to-control boundary are attempts that the design stopped and are reviewed for patterns; denials on the control network are misconfigurations or intrusions and are investigated; permits on the sensitive rules, such as programming access and remote sessions, are reviewed against change records. A weekly half hour reads the summary of denials by source and the list of sensitive permits, alerts wake someone for denials from the control network outward, for new sources at the boundary, and for changes to the rule set, and a rule review each year removes the rules whose hit count is zero. In an investigation the log says when the intruder first touched the boundary, what they reached, and what they tried.
Key points
- Log every rule, including the permits on sensitive paths; a permit that should not have happened is the finding that matters.
- Logs leave the firewall for a collector; a firewall that keeps its own log loses it at the moment it matters.
- Denials at the outer boundary are noise with patterns; denials inside the control network are incidents until explained.
- Weekly: denials by source, sensitive permits against change records, rule changes. Alerts for the rest.
- Annual rule review: hit counts find the rules nobody uses, which are removed.
- The log answers when, what, and where in an investigation; retain it long enough to look back.
What to log
| Rule type | Log | Why |
|---|---|---|
| Deny rules, including the final default deny | Every hit | The attempts the design stopped; the source list is the reconnaissance record |
| Permit rules for programming and configuration paths | Every hit | Each hit is a session that should match a change record |
| Permit rules for remote access and vendor paths | Every hit | Each hit is a session that should be scheduled |
| Permit rules for DMZ to inside paths | Every hit | The few inbound paths are the ones to watch |
| Permit rules for routine polling | Connection start and end, or sampled | Volume is high; the value is in the pattern and the new source |
| Rule set changes | Every change with the administrator account | A rule change is a change record or an intrusion |
| Administrative logins to the firewall | Every attempt | The firewall is a target |
Off the firewall
A firewall holds a limited log that rolls over in days, and an attacker who takes the firewall takes its log. Every entry is sent as it is written to a log collector on a hardened server that the firewall administrator account cannot reach, retained for the policy period, and backed up. The collector is where review, alerting, and investigation happen, and it holds the logs of the switches, the jump host, the servers, and the SCADA beside the firewall log so that one query shows a session across all of them.
What entries mean
- Denial at the internet or office boundary
- Scanning and probing, constant and mostly automated. Reviewed as a pattern: new sources, sources that persist, attempts against the specific ports the utility uses. Not investigated individually.
- Denial from inside the control network toward the office or the internet
- A control network device trying to reach somewhere it should not: a workstation with malware calling home, a device with a cloud feature, a misconfigured update client. Investigated the same day.
- Denial between control zones
- A device trying to reach another zone: a misconfiguration after maintenance, a new device someone connected, or lateral movement. Investigated.
- Permit on a programming or remote access rule
- A session. Matched against the change schedule; an unscheduled one is investigated.
- Permit from a new source on any rule
- A device that has not been seen before, which the collector can flag by comparing with the baseline of sources. Investigated.
- Rule set change
- Matched against a change record; an unmatched change is an incident.
The weekly review
- 1
Denials by source at the outer boundary
The top sources and any new ones; a persistent source aimed at the VPN port is worth a note to the sector center.
- 2
Denials inside
Every one, with its source and destination, explained or investigated.
- 3
Sensitive permits
Programming, remote access, vendor, and DMZ-inward sessions against the change records and the schedule.
- 4
Rule changes and administrative logins
Against change records.
- 5
Collector health
Every firewall still sending; the volume normal; disk headroom.
- 6
Record
A line in the security log: reviewed, findings, actions.
Alerts
- A denial from the control network toward the internet or the office.
- A permit on a programming rule outside a scheduled window.
- A remote access session from an unexpected country or at an unexpected hour.
- A new source address on any rule at a control zone boundary.
- A rule set change, or a failed administrative login sequence, on the firewall.
- A firewall that stops sending logs.
In an investigation
The questions are when it started, how they got in, what they reached, and what they tried. The firewall log at the collector answers them from the boundary: the first unusual permit or the first denial from a source that later succeeded, the rule that let them through, the destinations they reached, and the denials that show what they tried and could not. With synchronized time and the jump host and SCADA logs beside it, the story is complete. Without a collector, the story begins wherever the firewall log rolled over.
Frequently asked questions
- The logs are enormous. How does a small utility review them?
- By reviewing summaries, not entries: the collector or a simple script produces denials by source, sensitive permits, and new sources in a page. A half hour a week on that page is sustainable, and the alerts handle the urgent cases between reviews.
- Should we log the routine polling permits?
- At connection level or sampled, yes, so that a new source or a new destination on the polling rule is visible. Logging every packet of a Modbus poll is neither useful nor sustainable; most firewalls log the session rather than the packet.
- What collector should a small utility use?
- A syslog server on a hardened virtual machine with enough disk and a retention job is enough to start; open-source log platforms add search and dashboards; commercial security monitoring adds correlation and alerting. Start with the syslog server this month and grow.
- How long do we keep firewall logs?
- A year is common, with the retention set by the security policy and any regulatory or insurer expectation. The intrusions that matter are discovered months after they began, and the log has to reach back to the beginning.
Related topics
- Firewall Rule DesignWriting the rule set for a control network boundary: default deny, one rule per conduit with its reason, hosts not subnets, protocol and port and function, direction and initiator, logging on every rule, and the review that removes forgotten rules.
- Industrial FirewallsFirewalls built for control networks: how they differ from office firewalls, where they belong in a utility network, transparent versus routed modes, Modbus and DNP3 awareness, logging, and the ruggedized units that protect one controller or a remote site.
- Deep Packet InspectionWhat a firewall can do when it understands the control protocols: allowing reads and blocking writes, permitting programming only from one workstation in a window, rejecting malformed messages, and alerting on function codes that should never appear.
- Session LoggingRecording every remote session into the control system: who connected, from where, when, to what, and what they did, from the VPN log through jump host session recording to the SCADA audit trail and controller change log, stored off the systems and reviewed.
- Change Management for OTA change process sized for a utility control system: what counts as a change, the request with risk and rollback, owner approval, the window, backup before and verification after, the baseline update, the emergency path, and the record.
- OT Incident Response PlanThe plan for the day the control system is not trusted: who decides, the triggers, the first hour, isolating without stopping treatment, running by hand, preserving evidence, who to notify and when, recovery from backups, and the exercise that makes it real.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.