Most of us in IT spend our energy trying to keep attackers out. But a recent incident investigated by Huntress tells us a lot about what happens after an attacker gets in (and why it matters just as much).
Once an attacker has gained initial access, they don’t rush straight to the smash-and-grab, doing things like stealing data, encrypting files, or dropping ransomware. Instead, they take time to dwell and settle in—creating backdoors, covering their tracks, and disabling the tools meant to catch them.
This post breaks down a real incident from June where an attacker did an unusually thorough job of doing exactly that. We’ll look at where the threat actor took aggressive steps to modify the environment after gaining initial access, and what it means for how defenders should think about post-breach cleanup.
Huntress’ security team first noticed suspicious activity tied to a Microsoft SQL Server process. Digging in, analysts found the attacker hadn’t gone after the database directly.
Instead, they found a webpage on the same server that wasn’t properly checking user input, a classic SQL injection vulnerability. That flaw allowed the attacker to access the underlying Windows machine.
Worth noting: SQL injection remains one of the most common (and most preventable) web application vulnerabilities. It happens when a website takes information a visitor types in, like a search box or login form, and passes it directly to a database without checking that it’s actually safe to use.
Hacker tradecraft’s evolving daily, so let’s break it down on Tradecraft Tuesday!
Join us monthly for an in-depth look at attacker tradecraft—no sales or product talk involved. Sign up for the series today or catch up on previous episodes. No tricks, just tradecraft.
Once inside, the attacker didn’t act rashly. They ran a built-in Windows command that lists which services are running on the machine—a simple recon step attackers commonly use to figure out what’s worth targeting or which processes they could disguise malicious activity as.
They even sent the results of that scan out to a server they controlled, likely to review later or feed into automated tooling.
From there, the attacker got to work making the environment their own:
They turned on Remote Desktop access, which wasn’t previously enabled.
They created a new user account and added it to the local Administrators group, giving them instant, high-level access that would also survive a reboot or a basic cleanup.
They logged in through Remote Desktop using that new account.
They disabled Windows Defender, Microsoft’s built-in antivirus. Though notably, they left other security monitoring tools (like EDR) untouched. That’s a bit unusual, and suggests they either didn’t notice EDR was present or didn’t have a way to disable it.
The attacker then installed a couple of malicious add-ons for the Internet Information Services (IIS) web server software running on the machine.
These add-ons are part of a known malware family called BadIIS, which is typically used to hijack legitimate website traffic for search-engine fraud, redirecting visitors, injecting hidden links, or serving up different content than what the real site intended.
It’s essentially turning someone else’s web server into a tool for manipulating search rankings and ad traffic, all without the website owner’s knowledge.
Next, the attacker dropped a cryptocurrency mining program onto the machine, a common way for attackers to squeeze extra value out of compromised systems by using their processing power to generate cryptocurrency, all on the victim’s electric bill.
Disguised the mining program’s files by marking them as hidden, system, and read-only—the kind of file attributes that make something less likely to show up during a casual look through File Explorer.
Set up the miner to run as a Windows service using a legitimate, freely available admin tool, ensuring it would start automatically and keep running even after a reboot.
Installed an additional tool designed to help the malware avoid detection.
Throughout the attack, the intruder downloaded a series of PowerShell scripts and batch files from external servers, a common way to bring in additional malicious tools without having to include everything in the initial attack.
They also used PowerShell in a way specifically designed to run silently: no visible windows, no security prompts, and no restrictions from Windows’ script execution policies.
Individually, none of these techniques are groundbreaking. Attackers install malware and try to hide their tracks all the time.
What stood out to Huntress analysts was just how many different changes this one attacker packed into a single incident, on a single machine.
If you want a look at our full investigation of this incident, check it out here.
It’s natural to feel like we have “home field advantage” as the people who own and manage our own systems. But without a solid plan for locking things down and watching for suspicious activity, an attacker who gets in can flip that advantage, reshaping the environment to suit their own goals, often well beyond just disabling antivirus and dropping malware.
The biggest lesson here: finding and fixing the entry point matters as much as cleaning up the mess left behind.
In this case, that entry point was an unvalidated input field on a web page. If a team had removed all the attacker’s tools and accounts but never fixed the underlying SQL injection flaw, the attacker could have simply walked back in through the same open door, and the next time might be harder to catch.
We recommend starting with the basics: know what you have. Build (and keep current) an inventory of every physical and virtual system, plus every application and its version, across your environment. From there:
Shrink your attack surface. Fewer exposed services and applications means fewer opportunities for attackers.
Remove anything unnecessary or unauthorized. If it’s not needed, it’s not worth the risk.
Lock down access. Only authorized users should have access, and multi-factor authentication (MFA) should be standard wherever possible.
Keep everything updated and monitored. Every active application should be patched regularly and included in your monitoring coverage.
Investigate root cause, every time. When you catch an incident, don’t stop at removing the obvious malware — figure out exactly how the attacker got in, and use that finding to strengthen your defenses going forward.
Attackers count on defenders stopping at the surface-level cleanup. Digging deeper (to the actual point of entry) is what keeps the home field advantage where it belongs: with you.
Tradecraft Tuesday provides cybersecurity professionals with an in-depth analysis of the latest threat actors, attack vectors, and mitigation strategies. Each weekly session features technical walkthroughs of recent incidents, comprehensive breakdowns of malware trends, and up-to-date indicators of compromise (IOCs).
Advance your defensive posture with real-time intelligence and technical education specifically designed for those responsible for safeguarding their organization’s environment.
Anthropic confirms Claude is down worldwide
OpenAI models used Artifactory zero-days to escape to the internet
Windows 11 KB5101684 update released with 42 changes and fixes
Overdue a password health-check? Audit your Active Directory for free
Uncover shadow AI apps, agents, and risky data sharing. Get started in 5 min.
Your Scanners Are Green. Your Pipeline Might Not Be. Here’s How to Close the Gap.
Pixellot discovered and secured hundreds of unmanaged AI agent identities in weeks, not months. Download the case study for how.
Stay one step ahead of new threats in the new year. Join Huntress for the monthly Tradecraft Tuesday.
Terms of Use – Privacy Policy – Ethics Statement – Affiliate Disclosure
Read our posting guidelinese to learn what content is prohibited.



