Flying Under the AV Radar — Part 01
A custom PowerShell reverse shell script evaded Windows Defender's signature-based detection, allowing an attacker to obtain a reverse shell on a fully updated Windows 11 machine. The author reported this to Microsoft, who acknowledged it as a low-severity security feature bypass.
Published on infosecwriteups.com
After an individual research, I decided to bring some articles on evading Anti-Virus software. This is the first article of the series and in this article I am going to talk about evading Windows Defender and obtaining a reverse shell as an attacker with PowerShell.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, Windows Defender relies heavily on signature-based detection, so a custom script without a known signature is not flagged.
Impact
An attacker could bypass Windows Defender and obtain a reverse shell on a fully updated Windows 11 machine, potentially leading to data exfiltration, though sophisticated EDR solutions like Defender for Endpoint may detect the attack.
What the attacker needed
Access to victim machine; ability to execute PowerShell script; attacker machine with Netcat
The fix
Microsoft acknowledged the issue but stated it does not meet the bar for immediate servicing, marking it for future review; a proper fix would involve enhancing detection beyond signatures.
How it was found
- Set up a fully updated Windows 11 victim machine and a Parrot Security OS attacker machine.
- Confirm that Windows Defender real-time protection is on and automatic sample submission is off.
- Test a well-known PowerShell reverse shell and observe that Defender blocks it immediately.
- Write a custom PowerShell reverse shell script and save it as a .ps1 file.
- Start a Netcat listener on the attacker machine on port 4444.
- Execute the custom script on the victim machine and observe that Defender does not detect it, and a reverse shell is obtained.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Windows Defender uses signatures—patterns of known malicious code—to spot malware. If you write your own simple reverse shell script, it may not match any known signature, so Defender lets it run. This shows that relying only on signatures can miss new or custom attacks.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.