Back to Engineering Blog
Infrastructure & Reliability 3 min read

An Upstream Bug, an XML Mistake and a One-Minute SIEM Outage

Rootcheck's documented ignore tag does not work for containers on Proxmox, so the obvious fix was a dead end. The workaround worked, until we put a literal XML tag inside a rule description and took the manager down for about a minute.

Jason NevillBy , Houston, TX
#Wazuh#LXC#Rate Limiting#Post-mortem

Key Architectural Takeaways

  • Check the scope before building a fix: the same noise appeared on every container, not one host.
  • Search upstream issues before assuming the documented option works; this one was a known bug.
  • Rule descriptions are unescaped XML context, so never write a literal tag in one.

The challenge

A vulnerability scanner's twice-daily rootcheck scan generated 40 or more near-identical "file present on /dev" alerts within about 35 seconds. The cause is an LXC artefact, a /dev/.lxc directory. Our alert pipeline into Discord had no retry, so the burst saturated it: we measured 656 HTTP 429 rate-limit responses in one sampled hour and 44 of 50 workflow executions failing in a nine-minute window. Real alerts from any host dropped silently in those bursts.

Scope correction

Before building anything we checked whether the scanner was special. It was not. The same /dev/.lxc tree, 49 files, exists on every LXC-hosted agent we looked at, and the same rule was already firing on another host. This was fleet-wide latent noise on each host's twelve-hour rootcheck cycle. The fix widened from "exclude it on one host" to "suppress it everywhere".

The obvious fix does not work

Rootcheck has an <ignore type="sregex"> option documented to cover this check. It is confirmed broken for this exact scenario, with an upstream issue titled "rootcheck not ignoring specified files in LXC hosted by Proxmox". We used the community workaround instead: a manager-side rule override that sets level 0 for that rule when the path is under /dev/.lxc/. It is the same mechanism as three earlier suppressions in the fleet. We also added retry behaviour to the Discord POST node: up to five tries, five seconds apart. That is a mitigation, not a real queue, and we said so.

The outage we caused

The first deploy put prose inside the new rule's <description> field, including the literal text of an ignore tag. XML parsed it as an unclosed element, the analysis daemon refused to load the local rules file, and the manager went down fleet-wide for about a minute. The journal showed it plainly: XMLERR: Element 'ignore' not closed. A raw hot-fix over SSH was blocked by the safety controls, which was the right call. We fixed it properly: reworded the description, redeployed through Ansible, and used a start-at task so the managed block could overwrite the whole broken section and the restart handler could fire cleanly. The manager came back active with a clean journal.

What is not proven

We confirmed the deployed rule and config by inspection. The real test, whether a burst is suppressed, is each host's next rootcheck cycle, and we had not observed one yet when we wrote this up.

A note on reading Discord back

If you read an alerts channel through a bot API and see empty messages, it may not be an outage. Without the Message Content privileged intent, a bot sees redacted content for messages it did not post as itself, including webhook posts. We confirm what was really sent from n8n's execution history instead.

Takeaway

Search for the upstream bug before debugging the documented option, escape or reword anything that lands in an XML field, and prove a suppression with the real event, not with an inspection of the config.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.