markarov.dev

Articles / AI-COVID26

Chapter 3 · The asymptomatic

Asymptomatic: the breach that shows no signs for months

The most dangerous infections bring no fever. A typical breach goes unnoticed for two weeks; in espionage cases, for four months.

I have a habit. When a new detector shows green, I don't admire it, I try to provoke it: I do something it is supposed to react to. Green doesn't yet mean all is well. Sometimes it means the detector simply sees nothing.

Since the autumn there have been noticeably more breaches around, and shortly before, two critical vulnerabilities turned up in PHP itself that let anyone take over a server without logging in. So the intrusion detector went on unplanned, onto a server everyone had long considered healthy.

There was no need to provoke this one. The first check finished five seconds later and returned five critical alerts. I can't recall the exact words, something like “probable breach, check required”.

First thought: the detector is wrong. It's new, the rules are raw, it happens. Four of the five alerts seemed to confirm it: the accounts with root rights turned out to be our own, created by administrators at some point. Unneeded, but not foreign.

The fifth looked worse. A process posing as a kernel thread, running as root, starting with the system and holding an open channel to the outside.

We removed its autostart and stopped the process. A second later it was back in memory: the backdoor had a watchdog that kept bringing it back. That ended the doubts. No emotions, just a fact: a breach, one hundred per cent.

The attacker had root for about ten months, and access to the websites for almost a year and a half.

In spring 2020, at least you could see who was coughing. The people who worried everyone most felt perfectly fine and were infecting others.

Security works the same way. A noisy attack encrypts disks, demands a ransom and so announces itself. A quiet one lives next to you, reads your mail and waits.

How long an unnoticed breach lives

Mandiant measures the time from intrusion to detection. In 2025 the median grew to 14 days, up from 11 a year earlier. In espionage and in cases involving North Korean “remote workers”, the median reaches 122 days. And one espionage backdoor, by their count, lived in networks for almost 400 days.

How long a breach goes unnoticed, days
  • Median, 202411 days
  • Median, 202514 days
  • Espionage and “remote workers”, 2025122 days
  • One espionage backdooralmost 400 days

Source: Mandiant M-Trends 2026

These numbers come with a caveat, and it isn't in our favour. 14 days is the median only for those who were investigated at all. There are no statistics for companies where nobody looked. The reason is familiar from the last chapter: no tests, no cases.

Why nobody saw it earlier

Back to that server. I'll skip the details; four circumstances matter.

First: the system was green. Monitoring watched load and uptime, and the backdoor neither loaded the CPU nor brought the websites down. One thread, not a single child process.

Second: it hid well. It was named like a kernel thread, and a process list has dozens of those. It kept a single connection out on port 443, like ordinary HTTPS, to a relay at a large hosting provider. Its autostart had a dull, service-like name. And the attacker gave the file on disk a 2011 modification date. It looked like one of the system's old-timers.

Third: nobody was looking for it. There was no reason to. No complaints, happy customers, flat graphs. The website logs were kept for less than two weeks, so how the attacker got in can no longer be found out.

Fourth, and worst: part of the breach became the norm. On start-up the detector takes a “baseline”, a snapshot of how the system should look. It took one this time too, from a system where the attacker had long been root. The SSH interceptor the attacker had put into root's profile went into the baseline as normal. A comparison with the baseline would never have noticed it. It was found later, when the search was already targeted.

Where did this come from?

The old checks asked whether anything had changed since last time. The new detector asked a different question: where did this come from?

Every file, process and connection should have an explanation. And that explanation has to be checked, not remembered. The file came from a package, and its checksum matches the one the package's author published. The process was started by a known service. The connection goes where the system is supposed to go according to its description.

On that server it looked like this. A real kernel thread has no file: the kernel itself starts it. Our “thread” had one, held in memory, with the copy on disk erased. No explanation. Alert.

Anything that can't be explained is a reason to take a look.

A check like this doesn't need the past. It doesn't care what things looked like yesterday. That's why it fired on the very first pass.

A fresh example. On 5 November, XLab researchers described the CWPdoor backdoor. A script posing as an update replaced the web server executable in Control Web Panel, a hosting control panel. Then it set the file's and the folder's modification dates back to the old ones and wiped the command history. The backdoor kept its owner's requests out of the access log. Not one antivirus on VirusTotal recognised it. And there are more than 340,000 of these panels on the open internet.

The same trick as our 2011 “old-timer”. A check by modification date will miss a file like this: the dates are the old ones. So will a comparison with a baseline taken after the swap. The question “where did it come from?” catches it at once: the file doesn't match what the vendor released, and no dates can hide that.

There's a price too. On day one, a detector like this is noisy: every living system has plenty of things someone once installed by hand and forgot. Half a day goes into working out which of them are just old junk. The junk is better cleaned up too, by the way: tomorrow it will be a convenient place to hide.

What to check at home

You don't need special tools to start. Six questions will do:

  1. Are there accounts and access keys nobody can explain?
  2. Which tasks run on a schedule, and who added them?
  3. Are there executables on your servers that didn't come from any package or build?
  4. Where do your servers connect to on the outside, and do you even have that list?
  5. Can anyone log in to your servers with a password?
  6. When, and from which system, was the “baseline” everything is compared with taken?

Start with one system, the most important one. An evening is enough.

“I don't know” doesn't mean you've been hacked. It means that's where an asymptomatic one can live for as long as it likes.

A baseline taken from a sick patient

The last question on the list strikes me as the most underrated.

Comparing against a baseline is a good and necessary check. It quickly catches a swapped system file. But it has a blind spot: it trusts the baseline.

If the snapshot was taken from a system that was already infected, the infection becomes the norm. For years the check will answer “everything as before”. Formally, it will be right.

It's like taking as your model of health the test results of a patient who is already sick, just without symptoms yet. Every later test will come back “normal”.

Hence two rules.

Take the baseline from the source, bypassing the live system: from the build, from official packages, from whatever can be rebuilt from scratch. And every now and then ask the question with no baseline at all: where did this come from?

And keep the baseline apart from the system it describes. If an attacker can edit both the system and the snapshot, they will simply update the baseline along with the backdoor. The comparison becomes a formality.

How it ended

Removing the backdoor wasn't enough. Where one way in turns up, there are usually more.

The first review ran on an alpha version of my scanner, and it got two things wrong. It looked for loaders by typical patterns, and the SSH interceptor was hooked in differently. It looked for web shells only over the last two weeks, and they had been sitting on the server for more than a year. The scanner has been improved since. A deep check found a couple more PHP files the attacker could have used to come back.

They were removed. All privileges were revoked. Every unneeded root account was deleted. Passwords were dropped altogether: the interceptor stole those too, so login is now by key only. The repeat check found nothing. The whole clean-up took two days.

Since then the detector looks wider. The places where malware takes hold: service autostart, schedules, SSH keys, shell profiles. Root accounts and new accounts. Processes whose file sits where no program belongs, or has been erased from disk. Processes posing as kernel threads. Executables that aren't in any package. Attempts to tidy up the logs. And the baseline is kept off the server, so the attacker can't rewrite it along with the system.

Still, we were lucky: it was an automated breach, not aimed at a specific company. Had it been targeted, everything would have been much worse.

Hundreds of alerts on day one

Say all these checks are switched on. The tests work, and on the very first day there are hundreds of alerts. Who is going to read them?

The next chapter is “The red zone”. It's about why an alert only counts once a human has read it.

Sources

  1. CVE-2026-109618 and CVE-2026-109619: Critical Unauthenticated Remote Code Execution in PHP — Rapid7, 2026-10-21
  2. M-Trends 2026 — Mandiant / Google Cloud, 2026-03-23
  3. CWPdoor: The Invisible Backdoor Living Inside Control Web Panel — XLab, QiAnXin, 2026-11-05