When the phone rang at 6 a.m., the ransomware crew was already at work.
How Avit ’s security team outsmarted a ransomware crew and quickly identified the entry point the attackers used to gain access—a vulnerability that most organizations aren’t even aware of.
The call came early on a beautiful Friday morning in July. At one of the clients our security operations team was monitoring, a ransomware crew had infiltrated the network, and that crew was hard at work finishing the job. Their next step would have encrypted everything, and after that, unfortunately, the conversation is no longer about defense but about negotiating a ransom amount with the attacker.
By 8:00 a.m. that same morning—two hours after the alert—the attackers had been cut off from the network, and by the Monday following the weekend, the client was back up and running. In an environment that had been cleaned up and fortified, while the rest of the world was enjoying its weekend. A few weeks later, Cisco Talos published its own analysis of the group behind the attack and acknowledged Avit for the role it played in the investigation.
This is a brief summary of what happened that morning, as far as we can describe it at this time. We’re omitting anything that could reveal the client’s identity, and part of what happened afterward is part of an ongoing police investigation. What remains is still worth noting, because the most dangerous part of this case happened long before anyone picked up the phone.
THIRTY-SIX HOURS OF SILENCE
Most ransomware groups have a reputation for being fast and loud. The more professional actors are more cautious and quiet, and this group was capable. Wouter, the SOC lead, summarized it as follows in his own report on the case: “They stole and used the floor plan before they tried to start the fire.”
More than a day and a half before any alarm went off, the attackers gained access through a firewall management system that was accessible from the internet. After 36 hours of inactivity, they resumed their attack and proceeded methodically. They created an account in the customer’s Active Directory to make it appear as though they were legitimate users, generated certificates via the customer’s certificate server so their traffic would look trustworthy, and built tunnels out of the network so they would still have a way back if someone shut the first door. Almost everything they did resembled the work of an administrator, and that is precisely why it went unnoticed.
Nothing during that phase triggered an alert higher than a “low” or “informational” level, and that is precisely what we want to be transparent about. The backdoor they used was not part of the systems being monitored. The systems that control the firewalls were online and unmonitored, so the entire silent phase took place in a blind spot. That gap is the real lesson from this case, and we’ll come back to that in a moment.
AT FOUR O’CLOCK IN THE MORNING, THE NOISE BEGINS
Around 4:00 a.m. that morning, the attackers stopped being quiet and cautious. They attempted to remove all existing endpoint protection from the entire environment at once—exactly what a crew does when it’s about to deploy ransomware and doesn’t want anything standing in its way. A move like that is conspicuous, and the Avit SOC team spotted it immediately.
What follows is the part of security work that never makes it onto a billboard or into the newspaper. The Avit team scaled up; the right people were on calls starting at six that morning, and the black coffee was flowing freely. The job had two parts that are always difficult to balance: you have to stop the attackers before the encryption takes effect, and you have to do so without destroying the evidence you need to understand what happened. Pull the plug too hard, and you lose the evidence. Move too slowly, and you lose the company.
Within about two hours of that first real alert, the breach had been contained. The attackers’ entry and exit points were sealed off, and a forensic investigation was launched to uncover the full story and secure the evidence. The encryption phase had been prevented; our team had flown in just in time. By 8:00 a.m., the Avit team knew it had won the race, and the more time-consuming work of securing, cleaning up, and strengthening the system could begin.
HOW THEY GOT STARTED
With the immediate danger averted, questions remained that could ruin the weekend for the IR team and the client. How did they get in, and is there still something waiting for them inside?
The answer to the first question was the management interface of the system that controls the firewalls. That system was accessible from the internet, and the attackers gained entry by chaining a known vulnerability with a zero-day vulnerability (a flaw that, at the time, no one other than the attackers knew existed). Talos later tracked the group and the steps they took under UAT-11988.
The fact that a crew used a zero-day exploit against a target shows just how determined they were to gain access. That zero-day exploit is now obsolete: it has been disclosed and patched in the latest Cisco Security hardening updates.
That detail only drives the lesson home even more. No one can patch a vulnerability that no one has found yet. What you can decide today, however, is whether the system that controls your security defenses should even be accessible from the internet, and whether someone is monitoring its log files if it is. A zero-day like this still needs a door that can be broken into. It also explains why the endpoint protection never detected the intrusion: that system was never an endpoint, and therefore wasn’t monitored.
WHAT HAPPENED NEXT
Most incident stories end once the attacker is removed from the network, but this story actually got more interesting from that point on.
During the investigation, intelligence was discovered from the (hacked) infrastructure controlled by the attackers. That information was shared with national CERTs and law enforcement partners, who used it to warn other organizations in multiple countries before the same group could attack them. We cannot say more about this at this time because the investigation is still ongoing.
Cisco Talos did, however, publish its analysis of the activity and acknowledged Avit for its contribution to the investigation. That means more to us than anything we could write about ourselves. As Wouter puts it: “A security company that praises its own work is like a butcher who inspects his own meat. If the people who track these crews for a living include your name in their report, we’ve done a good job.”
WHAT WE’D LIKE TO SHARE WITH COMPANIES
Treat the systems that control your security as production systems. Firewall management, VPN gateways, and admin consoles hold the keys to your building. They simply do not belong on the public internet, but if that is necessary, they must be equipped with robust access controls, included in your monitoring, and at the top of the patch list.
Watch out for trusted tools doing untrusted things—also known as LOTL, or “living off the land.” This team spent a day and a half gaining access using tools that an administrator uses every day. Detection systems that are tuned only to known malware will miss almost everything during such a phase, so watch out for the silent exploitation of accounts, certificates, and (remote access) tools that you normally trust.
Practice the phone call before it happens. Decide now who is authorized to isolate a system and who will speak with the authorities, so that no one has to negotiate roles and procedures at 6:00 a.m.
Know who’s answering the phone. In cases like this, the difference between a bad weekend and a catastrophic one is usually measured in hours. What helps is a team that keeps a cool head, contains the attack, and, in the meantime, preserves the evidence.
WHY WE’RE SHARING THIS
We usually do this work behind the scenes, and for our clients, we will always continue to do so. We’re sharing this case because the lessons it offers are valuable, and because it shows what the Avit team behind the network does when a real-life crew enters an environment we manage.
If you’d like the full technical report, including the complete timeline and the measures that would have prevented the breach, please read the technical write-up. If you’d like to hear the story from the perspective of the team at Avit, ask us for the case book “The Avit Files.” And if you’d like to know whether your own management interface is accessible from the internet, or how you can secure your network better, please get in touch. Because that’s a conversation we’d love to have.