Spyke
technology·Technologybyatrielienz

Windows Defender Anti-virus Bypassed Using Direct Syscalls & XOR Encryption

"According to the research published by Hackmosphere, the technique works by avoiding the conventional execution path where applications call Windows API functions through libraries like kernel32.dll, which then forwards requests to ntdll.dll before making the actual system call to the kernel."

Additional Information:

https://www.hackmosphere.fr/bypass-windows-defender-antivirus-2025-part-1/

https://www.hackmosphere.fr/bypass-windows-defender-antivirus-2025-part-2/

https://cybersecuritynews.com/researchers-bypassed-windows-defender-antivirus-using-direct-syscalls/Open linkView original on lemmy.world

They also suggest organizations deploy additional security layers beyond Windows Defender, particularly solutions that can monitor behavior at the kernel level.

Anything like this for the typical home user?

26
0x0reply
lemmy.zip

Sure, bring back Crowdstrike, that went well...

Btw I wasn't aware XOR was encrytion...

32
Neverclearreply
lemmy.dbzer0.com

XOR cleartext once with a key you get ciphertext. XOR the ciphertext with the same key you get the original cleartext. At its core this is the way the old DES cipher works.

A bit of useful trivia: If you XOR any number with itself, you get all zeros. You can see this in practice when an assembly programmer XOR's a register with itself to clear it out.

21
Quazatronreply
lemmy.world

That's how it was done in the old days to save a few cycles in Z80 assembly. XOR A instead of LD A, 0.

14

Apple had this undocumented function for screenshotting back on iOS 3.1, and kind of let you use it while waiting for better frameworks in iOS 4.0

At some point they started rejecting your app automatically if they found the symbol for that function in your app. I didn't want to leave my 3.1 users in the dust for no reason, so I did the same trick to obfuscate the symbol name before dynamically linking it in.

It worked right up until they stopped supporting iOS 3.1 completely.

5
Malfeasantreply
lemm.ee

an x86 assembly programmer

Ftfy. not all CPUs have an xor register with itself instruction.

4
sh.itjust.works

There are a lot more architectures than just x86 that are capable of XORing a register with itself (ie. ARM and RISC-V), and if you took OP to mean the accumulation register specifically, pretty much all CPUs going back as far as I can think have had that functionality.

4
Malfeasantreply
lemm.ee

Yes, but it's not universal that xoring a register with itself is more performant than simply loading it with 0.

0
atrielienzreply
lemmy.world

It technically counts. It's a cipher that uses the same key for encryption and decryption.

6

Btw I wasn't aware XOR was encrytion...

It's even better than ROT13, because you always need to apply ROT13 twice for getting the good results...

4
lemmy.world

According to the research published by Hackmosphere, [...]

I cannot find a link to the original research, anybody has the link to the original research?

14
lemmy.ml

Wasn’t there something a few months ago about Microsoft handing out secret API calls to developers of other antivirus products so they can quietly disable Defender during the installation of their product? Some guy had this reverse engineered from an installer…

10

It’s not a secret. It’s a regkey. You need privs to do it though.

9

You reached the end