In early 2023, Debian and Ubuntu quietly removed a single configuration directive — $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat — from the default rsyslogd package configuration. Two and a half years later, this change is still detonating inside production detection pipelines as organizations upgrade to Debian 12 (Bookworm) and Ubuntu 22.04/24.04 LTS fleets. The SANS Internet Storm Center diary from November 22nd (Handler's Diary #33530) is a timely reminder that this is not a historical footnote — it is an active, ongoing operational hazard for every SOC that ingests Linux syslog.
The impact is not a vulnerability in the classic sense. There is no CVE, no exploit chain, no attacker required. The danger is silent detection failure: rsyslog's default output template switched from the traditional BSD syslog timestamp format (Nov 22 14:03:01) to high-precision RFC 3339 timestamps (2025-11-22T14:03:01.123456-06:00). Every regex-based parser, every SIEM ingestion rule, every awk/grep forensic one-liner, every logrotate assumption, and every compliance evidence-collection script built on the traditional format either breaks outright or — far worse — degrades silently, producing malformed parsed events, null timestamp fields, and time-correlation gaps that your SOC may not notice for months.
If you are a detection engineer, SOC analyst, or IR responder with Debian/Ubuntu systems in your estate, you need to audit your log pipeline today. Attackers do not need to blind your sensors if your sensors blind themselves during a routine OS upgrade.
Technical Analysis
Affected Platforms
- Debian 12 (Bookworm) and later releases shipping the updated
rsyslogpackage defaults - Ubuntu 22.04 LTS, 23.04, 23.10, and 24.04 LTS — Ubuntu dropped the directive from the packaged
/etc/rsyslog.confin early 2023 - Any downstream distribution derived from these package bases (including many cloud marketplace images, container base images that run rsyslog, and hardened CIS builds that inherit distro packaging)
Systems upgraded in-place may retain the old /etc/rsyslog.conf as a conffile (dpkg will typically prompt or keep the local version), which is precisely why the problem is so insidious: some of your fleet changed formats and some did not, depending on how each host handled the conffile prompt during apt dist-upgrade. The result is a mixed-format estate where timestamp handling is inconsistent host-to-host.
What Changed and Why It Breaks Defenses
Historically, Debian-family rsyslog packages shipped with this line in /etc/rsyslog.conf:
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
This forced rsyslog to write /var/log/syslog, /var/log/auth.log, and friends in the classic format:
Nov 22 14:03:01 web01 sshd[4821]: Accepted publickey for admin from 10.0.4.12 port 51244 ssh2
With the directive removed, rsyslog falls back to its compiled-in default template, which uses high-precision RFC 3339 timestamps:
2025-11-22T14:03:01.482112-06:00 web01 sshd[4821]: Accepted publickey for admin from 10.0.4.12 port 51244 ssh2
From a defender's perspective, the failure modes are:
- SIEM parser failures. Syslog collectors (Sentinel's AMA/syslog ingestion, Splunk's
syslogsourcetype transforms, Elastic's syslog processors, QRadar DSMs) frequently anchor field extraction on the BSD timestamp regex (^[A-Z][a-z]{2}\s+\d{1,2}\s\d{2}:\d{2}:\d{2}). An RFC 3339-prefixed line either fails parsing entirely or gets indexed with the collector's receipt time rather than the event time — destroying accurate timeline correlation during an incident. - Broken correlation rules. Detections that join Linux auth logs against EDR, firewall, or cloud telemetry on timestamp windows drift or fail when event-time extraction silently reverts to ingestion-time.
- Dead forensic tooling. Decades of IR muscle memory —
grep "Nov 22" /var/log/auth.log,awkfield positions,logwatch/fail2banassumptions — stop matching. During an active IR engagement, responders who don't know about the change will conclude logs are missing when they are merely formatted differently. - Compliance and logrotate drift. PCI-DSS Requirement 10 and HIPAA §164.312(b) audit-trail evidence scripts, plus logrotate date-based patterns, may reference the traditional format. Auditors finding unparsed or gap-ridden log evidence will write findings.
- Attacker advantage. Adversaries routinely probe for logging weaknesses before acting (MITRE ATT&CK T1562 — Impair Defenses). A fleet whose SIEM silently dropped Linux parsing post-upgrade is a pre-blinded target. No attacker action required.
Exploitation Status
This is a configuration/log-integrity issue, not a CVE, and there is no associated CISA KEV entry. However, the operational consequence — silent loss of detection fidelity — is functionally equivalent to the first half of an ATT&CK T1562.001 (Disable or Modify Tools) attack. Threat actors exploiting the window between an OS upgrade and the discovery of broken log parsing are operating in a genuine detection gap. Treat this with the same urgency as a sensor outage.
Detection & Response
Sigma Rules
The highest-value detections here target (1) unauthorized or unexpected modification of rsyslog configuration — which covers both the drift scenario and deliberate attacker tampering — and (2) attempts to stop, disable, or mask the rsyslog service, a hallmark pre-action step in Linux intrusions.
---
title: Rsyslog Configuration File Modified
id: 4f8c2a91-3b7e-4d5a-9c61-8e2f0a7b3d44
status: experimental
description: Detects modification of rsyslog configuration files, which may indicate legitimate drift from package upgrades or deliberate tampering to alter log formats, forwarding, or disable logging (e.g., removal of ActionFileDefaultTemplate or forwarding rules).
references:
- https://isc.sans.edu/diary/rss/33530
- https://attack.mitre.org/techniques/T1562/001/
author: Security Arsenal
date: 2026/01/15
tags:
- attack.defense_evasion
- attack.t1562.001
logsource:
category: file_event
product: linux
detection:
selection:
TargetFilename|contains:
- '/etc/rsyslog.conf'
- '/etc/rsyslog.d/'
condition: selection
falsepositives:
- Legitimate package upgrades (apt/dpkg conffile handling)
- Configuration management runs (Ansible, Puppet, Chef)
level: medium
---
title: Rsyslog Service Stop Disable or Mask Attempt
id: 9b1e6d34-7c2f-4a8b-b5e3-2d9a4f6c0e17
status: experimental
description: Detects attempts to stop, disable, or mask the rsyslog service, a common attacker technique to blind host logging before malicious activity.
references:
- https://isc.sans.edu/diary/rss/33530
- https://attack.mitre.org/techniques/T1562/001/
- https://attack.mitre.org/techniques/T1070/
author: Security Arsenal
date: 2026/01/15
tags:
- attack.defense_evasion
- attack.t1562.001
logsource:
category: process_creation
product: linux
detection:
selection:
Image|endswith:
- '/systemctl'
- '/service'
CommandLine|contains:
- 'rsyslog'
selection_action:
CommandLine|contains:
- 'stop'
- 'disable'
- 'mask'
- 'kill'
condition: selection and selection_action
falsepositives:
- Administrators troubleshooting logging
- Migration to journald-only or alternative log forwarders
level: high
KQL — Microsoft Sentinel
The most operationally valuable hunt for this issue is detecting the timestamp format shift itself in your ingested syslog, plus identifying hosts that went dark after an OS upgrade window. These queries assume Linux syslog is flowing into Sentinel via the Syslog table (AMA or Legacy agent) and should be run over your last major patch/upgrade window.
// Hunt 1: Detect RFC 3339 vs traditional timestamp format mix in ingested syslog
// A host appearing in BOTH format buckets, or recently switching formats, indicates the rsyslog directive was dropped
Syslog
| where TimeGenerated > ago(30d)
| extend First10 = substring(SyslogMessage, 0, 10)
| extend Format = case(
SyslogMessage matches regex @"^\d{4}-\d{2}-\d{2}T", "RFC3339",
SyslogMessage matches regex @"^[A-Z][a-z]{2}\s", "Traditional",
"Unknown")
| summarize FormatCounts = make_set(Format), EventCount = count() by HostName, Format
| summarize FormatsSeen = make_set(Format), TotalEvents = sum(EventCount) by HostName
| where array_length(FormatsSeen) > 1
| project HostName, FormatsSeen, TotalEvents
| order by TotalEvents desc;
// Hunt 2: Detect hosts that stopped sending syslog after a probable upgrade event
// Correlate rsyslog restart messages with subsequent ingestion silence
let RestartHosts =
Syslog
| where TimeGenerated > ago(14d)
| where SyslogMessage has_any ("rsyslogd", "rsyslog")
| where SyslogMessage has_any ("start", "restart", "HUPed", "version")
| summarize LastRestart = max(TimeGenerated) by HostName;
let RecentSenders =
Syslog
| where TimeGenerated > ago(1d)
| distinct HostName;
RestartHosts
| where LastRestart > ago(1d)
| where HostName !in (RecentSenders)
| project HostName, LastRestart
| order by LastRestart desc;
// Hunt 3: Find events where event-time parsing failed and collector reverted to ingestion time
// Large skew between embedded event timestamp and TimeGenerated indicates parser breakage
Syslog
| where TimeGenerated > ago(7d)
| where SyslogMessage matches regex @"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}"
| extend EmbeddedTime = extract(@"^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})", 1, SyslogMessage)
| extend EventTime = todatetime(EmbeddedTime)
| where isnotnull(EventTime)
| extend SkewSeconds = abs(datetime_diff("second", TimeGenerated, EventTime))
| summarize AvgSkew = avg(SkewSeconds), MaxSkew = max(SkewSeconds), Events = count() by HostName
| where MaxSkew > 300
| order by MaxSkew desc
Velociraptor VQL
This artifact audits your Linux fleet for the exact condition described in the SANS diary: whether the ActionFileDefaultTemplate directive survived the package upgrade, which rsyslog version is installed, and whether the service is running. Deploy it as a hunt across your Debian/Ubuntu endpoints to enumerate your exposure in one pass.
-- Audit rsyslog configuration drift across Linux endpoints
-- Identifies hosts missing the TraditionalFileFormat directive (Debian/Ubuntu 2023 change)
SELECT Fqdn,
OS,
ConfigPath,
HasTraditionalTemplate,
RsyslogVersion,
ServiceState,
ConfigMtime
FROM foreach(
row={
SELECT FullPath AS ConfigPath
FROM glob(globs=["/etc/rsyslog.conf", "/etc/rsyslog.d/*.conf"])
},
query={
SELECT
ConfigPath,
if(condition=read_file(filename=ConfigPath) =~ "ActionFileDefaultTemplate",
then="PRESENT",
else="MISSING") AS HasTraditionalTemplate,
read_file(filename=ConfigPath) AS RawConfig
FROM scope()
})
AS ConfigResults,
foreach(
row={
SELECT
Fqdn,
OS,
(SELECT Version FROM rpm(name="rsyslog")) AS RsyslogVersion,
(SELECT State FROM service(name="rsyslog")) AS ServiceState
FROM info()
}
)
WHERE HasTraditionalTemplate = "MISSING"
For a lighter-weight variant that simply checks the main config and flags exposed hosts, use glob() plus read_file() against /etc/rsyslog.conf directly and filter on the regex match for RSYSLOG_TraditionalFileFormat. Either way, the output gives you a fleet-wide exposure list you can hand directly to your remediation team.
Remediation and Verification Script
Run this on Debian/Ubuntu hosts (or bake it into your configuration management) to detect the missing directive, restore the traditional format via a drop-in (the safest approach — it survives package upgrades), validate the configuration, and verify the output format end-to-end.
#!/bin/bash
# rsyslog-traditional-format-check.sh
# Detects and remediates missing RSYSLOG_TraditionalFileFormat after Debian/Ubuntu package change
# Usage: sudo ./rsyslog-traditional-format-check.sh [--verify-only]
set -euo pipefail
DROPIN="/etc/rsyslog.d/00-traditional-format.conf"
RSYSLOG_MAIN="/etc/rsyslog.conf"
if ! command -v rsyslogd >/dev/null 2>&1; then
echo "[-] rsyslogd not installed on this host. Nothing to do."
exit 0
fi
echo "[*] rsyslogd version: $(rsyslogd -v | head -n1)"
# Check main config and all drop-ins for the directive
if grep -Rqs 'RSYSLOG_TraditionalFileFormat' "$RSYSLOG_MAIN" /etc/rsyslog.d/; then
echo "[+] RSYSLOG_TraditionalFileFormat directive is PRESENT."
PRESENT=1
else
echo "[!] RSYSLOG_TraditionalFileFormat directive is MISSING (Debian/Ubuntu 2023 default)."
PRESENT=0
fi
if [[ "${1:-}" == "--verify-only" ]]; then
[[ $PRESENT -eq 1 ]] && exit 0 || exit 1
fi
if [[ $PRESENT -eq 0 ]]; then
echo "[*] Writing drop-in: $DROPIN"
cat > "$DROPIN" <<'EOF'
# Restore traditional BSD syslog timestamp format (Nov 22 14:03:01)
# Required for SIEM parsers and IR tooling expecting traditional format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
EOF
chmod 644 "$DROPIN"
fi
echo "[*] Validating rsyslog configuration..."
if rsyslogd -N1 | grep -q "End of config validation"; then
echo "[+] Config validation passed."
else
echo "[-] Config validation FAILED. Review output above."
exit 2
fi
echo "[*] Restarting rsyslog..."
systemctl restart rsyslog
sleep 2
echo "[*] Emitting test message and verifying format..."
logger -p auth.info "ARSENAL-RSYSLOG-TEST $(date +%s)"
sleep 2
TESTLINE=$(grep 'ARSENAL-RSYSLOG-TEST' /var/log/syslog | tail -n1)
echo "[>] Observed: $TESTLINE"
if echo "$TESTLINE" | grep -qE '^[A-Z][a-z]{2} +[0-9]{1,2} [0-9]{2}:[0-9]{2}:[0-9]{2}'; then
echo "[+] SUCCESS: Traditional timestamp format confirmed."
elif echo "$TESTLINE" | grep -qE '^[0-9]{4}-[0-9]{2}-[0-9]{2}T'; then
echo "[-] STILL RFC 3339 format. Check /etc/rsyslog.d/ load order (00-*.conf loads first)."
exit 3
else
echo "[-] Test message not found. Check rsyslog status: systemctl status rsyslog"
exit 4
fi
Remediation
You have two valid strategic options. Pick one deliberately, document it, and enforce it fleet-wide — the worst possible state is the silent mixed-format estate most organizations are in right now.
Option A — Restore the traditional format (fastest, lowest risk). Deploy the drop-in /etc/rsyslog.d/00-traditional-format.conf containing $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat via your configuration management (Ansible/Puppet/Salt), run rsyslogd -N1 to validate, and restart the service. This instantly restores compatibility with existing SIEM parsers and IR tooling. This is the correct choice if your downstream consumers cannot be updated quickly.
Option B — Keep RFC 3339 and modernize your parsers (better long-term). RFC 3339 timestamps carry the year and timezone — the traditional format does not, which causes genuine correlation bugs every New Year's Day and in multi-timezone environments. If you take this path, you must update every consumer: SIEM syslog parsers/DSMs, logrotate patterns, fail2ban filters, and forensic runbooks. Then enforce consistency with the fleet audit (VQL above) as a recurring hunt.
Immediate action checklist:
- Audit now. Run the Velociraptor hunt (or the Bash script in
--verify-onlymode) across all Debian/Ubuntu hosts. Enumerate which format each host emits. - Check your SIEM for parse failures. Run the KQL hunts above against the last 30–90 days. Look specifically for hosts whose event volume dropped or whose
SyslogMessagevalues begin with a four-digit year after an upgrade date. - Gap analysis for IR. Identify any incident-response windows where Linux log parsing was broken. If you had an incident during that window, re-examine the raw log files on the affected hosts — the data is likely present but was never parsed into your SIEM.
- Pin the decision in config management. Do not rely on manual edits to
/etc/rsyslog.conf— the nextaptconffile prompt will reintroduce drift. Use a drop-in under/etc/rsyslog.d/managed by code. - Add detection coverage. Deploy the two Sigma rules above (converted to your SIEM's native format) to catch both accidental drift and deliberate log-pipeline tampering, which maps directly to MITRE ATT&CK T1562.001.
- Update compliance evidence. If you attest to PCI-DSS Req 10 or HIPAA audit controls, verify your log samples actually parse and re-baseline your evidence-collection scripts against whichever format you standardize on.
There is no vendor patch to apply and no CVE to track — the fix is disciplined configuration management and validated log-pipeline integrity. Reference the original SANS ISC diary (https://isc.sans.edu/diary/rss/33530) and the rsyslog documentation on output templates (rsyslog.conf(5)) for authoritative detail.
Related Resources
Security Arsenal Red Team Services AlertMonitor Platform Book a SOC Assessment pen-testing Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.