Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Firewall Change Audit Logs: What to Keep

· 6 min read · Home Networking

In this article
  1. Why Firewall Change Audits Matter
  2. What to Log: The Essential Data Points
  3. Retention Requirements and Standards
  4. How to Implement Comprehensive Logging
  5. Common Mistakes and Pitfalls
  6. Tools and Alternatives for Log Management
  7. Frequently Asked Questions

To pass a firewall change audit, you must log and retain every change to firewall rules, object definitions, and administrative actions—including who made the change, when, what exactly changed, and the approval ticket—for at least one year, though many standards require longer. This article details the specific log types, retention periods, and best practices you need for compliance and troubleshooting.

in t | Retention period | months | 12 | 0
in c | Number of changes per month | - | 50 | 0
in s | Average log size per change (KB) | KB | 5 | 0
out total | Estimated storage needed | GB | (t * c * s * 1024) / (1024 * 1024 * 1024) | 2

Why Firewall Change Audits Matter

Firewalls are the primary gatekeepers between trusted and untrusted networks, and every rule change alters that security boundary. Audits serve two main purposes: verifying that changes were authorized and implemented correctly, and providing a forensic trail if a change later proves harmful. Without comprehensive logs, you cannot prove compliance with internal policies or external regulations like PCI DSS, HIPAA, or SOX. Auditors look for evidence that changes follow a formal process—request, approval, implementation, and review—and that the actual configuration matches what was approved.

What to Log: The Essential Data Points

At a minimum, your firewall change logs must capture the following for every change:

  • Timestamp: Exact date and time (with timezone) of the change.
  • User identity: Username or administrative account that made the change.
  • Source IP: The IP address from which the change was made.
  • Change type: Added, modified, or deleted rule/object.
  • Configuration detail: The exact before-and-after values of the rule (source, destination, port, protocol, action).
  • Rule name/number: Identifier of the affected rule.
  • Approval reference: Ticket or change request number that authorized the change.
  • Description: The stated reason for the change.

Additionally, log all administrative actions such as logins, logouts, failed login attempts, configuration saves, and firmware updates. These events provide context and help detect unauthorized access.

Retention Requirements and Standards

There is no single universal retention period, but common frameworks suggest the following:

  • PCI DSS (Requirement 10): Retain audit logs for at least one year, with at least three months immediately available for analysis.
  • HIPAA: Retain audit records for six years from the date of creation or last effective date.
  • SOX: Retain relevant records for seven years, though this applies to financial data, security logs often align.
  • ISO 27001: No specific duration, but logs should be kept for a period defined by your risk assessment and legal requirements.
  • NIST SP 800-92: Recommends retaining logs for a period sufficient to reconstruct events, often 90 days to two years.

Your organization may have stricter policies. When in doubt, keep logs longer—storage is cheap compared to the cost of a failed audit.

How to Implement Comprehensive Logging

Most enterprise firewalls (e.g., Palo Alto, Fortinet, Check Point, Cisco ASA) have built-in logging capabilities, but they often need to be enabled and configured. Here is a practical approach:

  1. Enable audit logging: Turn on configuration change logging on your firewall. This is often separate from traffic logging.
  2. Centralize logs: Forward logs to a central syslog server or SIEM (Security Information and Event Management) system. This prevents logs from being lost if the firewall fails or is compromised.
  3. Set log rotation: Configure log rotation based on size or time to prevent storage exhaustion.
  4. Protect log integrity: Use write-once-read-many (WORM) storage or cryptographic hashing to prevent tampering.
  5. Test regularly: Verify that logs are being generated and stored correctly by performing periodic test changes.
  6. Establish a retention policy: Document how long logs are kept and ensure automatic deletion after that period, unless legal hold applies.

Common Mistakes and Pitfalls

Even with logging enabled, audits often fail due to these oversights:

  • Not logging the “who”: If changes are made via a shared admin account, you cannot attribute changes to individuals. Use individual accounts or a privileged access management (PAM) solution.
  • Incomplete before/after values: Some firewalls only log that a change occurred, not the exact old and new values. Ensure your logs capture full configuration diffs.
  • Logs overwritten too quickly: Default rotation settings may overwrite logs in days, not months. Adjust settings to meet your retention policy.
  • No time synchronization: If firewall clocks drift, correlating logs with other systems becomes impossible. Use NTP.
  • Ignoring failed logins: Failed login attempts are critical for detecting brute-force attacks, yet they are often not logged.

Tools and Alternatives for Log Management

While native firewall logs are essential, they are just one layer. Consider these complementary tools:

  • SIEM platforms: Tools like Splunk, QRadar, or Elastic Stack aggregate logs from multiple sources, provide alerting, and simplify audit reporting.
  • Configuration management databases (CMDB): Track the intended state of your firewall rules and compare with actual configuration.
  • Automated change management: Tools that integrate with ticketing systems (e.g., ServiceNow) can automatically link changes to tickets and enforce approval workflows.
  • Firewall rule analysis tools: Products like Algosec or Tufin can analyze rule usage and identify stale or shadowed rules, which helps during audits.

Using these tools not only helps with audits but also improves overall security posture by reducing rule clutter and attack surface.

Frequently Asked Questions

How long should I keep firewall logs?

At least one year is the most common requirement (PCI DSS), but many organizations keep logs for two to three years to support internal investigations and legal matters. Check your industry regulations and consult legal counsel for specific retention mandates.

What is the difference between traffic logs and change logs?

Traffic logs record connections that passed through the firewall (source, destination, port, action). Change logs record modifications to the firewall configuration itself. Both are important, but audits focus primarily on change logs to verify that configuration matches approved requests.

Can I rely on the firewall's local logs?

Local logs are a good start but not sufficient for robust auditing. They are vulnerable to loss if the device fails or is compromised. Centralizing logs to a separate server or SIEM ensures they survive device failure and provides a single point of review.

What if a change was made but not logged?

This is a red flag during an audit. It suggests either logging was disabled, the admin bypassed the process, or logs were tampered with. You should treat this as a security incident and investigate thoroughly. Implement technical controls to prevent this, such as disabling direct console access and requiring change management approval.

Do I need to log every rule modification, even temporary ones?

Yes. Temporary changes are often where mistakes happen. Log them just like permanent changes, and ensure they are removed after the intended period. Auditors will look for such changes and expect to see corresponding approval and removal records.

How can I prove logs haven't been tampered with?

Use cryptographic hashing or digital signatures on log files, store logs on write-once media, or use a SIEM with built-in integrity monitoring. Additionally, restrict access to log storage to a small set of administrators and enable audit logging on the log management system itself.