Windows Defender Anti-virus Bypassed Using Direct Syscalls & XOR Encryption (cybersecuritynews.com)
from atrielienz@lemmy.world to technology@lemmy.world on 12 Apr 16:28
https://lemmy.world/post/28134251

“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:

hackmosphere.fr/bypass-windows-defender-antivirus…

hackmosphere.fr/bypass-windows-defender-antivirus…

#technology

threaded - newest

Cephalotrocity@biglemmowski.win on 12 Apr 16:37 next collapse

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?

0x0@lemmy.zip on 12 Apr 16:48 collapse

Sure, bring back Crowdstrike, that went well…

Btw I wasn’t aware XOR was encrytion…

atrielienz@lemmy.world on 12 Apr 16:51 next collapse

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

Quazatron@lemmy.world on 12 Apr 17:26 collapse

A one time pad, I think it called.

[deleted] on 12 Apr 17:52 collapse

.

heavydust@sh.itjust.works on 12 Apr 17:10 next collapse

en.wikipedia.org/wiki/One_time_pad

XOR may be the only encryption system that cannot be cracked. The length of the key is a PITA though.

Neverclear@lemmy.dbzer0.com on 12 Apr 17:13 next collapse

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.

Quazatron@lemmy.world on 12 Apr 17:25 next collapse

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.

InverseParallax@lemmy.world on 12 Apr 18:18 collapse

I use that daily in my accelerator work.

Once you learn the trick, you just use it naturally.

PetteriPano@lemmy.world on 12 Apr 21:27 next collapse

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.

Malfeasant@lemm.ee on 12 Apr 22:56 collapse

an x86 assembly programmer

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

QBertReynolds@sh.itjust.works on 13 Apr 14:12 collapse

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.

Malfeasant@lemm.ee on 13 Apr 14:33 collapse

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

QBertReynolds@sh.itjust.works on 13 Apr 15:50 collapse

I never made that claim, nor did the person you corrected.

Malfeasant@lemm.ee on 14 Apr 17:51 collapse

Yes, but that’s why x86 assembly programmers do it…

QBertReynolds@sh.itjust.works on 14 Apr 21:27 collapse

No argument there. It’s also why it’s done in ARM, 8080, SM83, z80, 6502, and basically every other assembly language. It’s only not done in RISC-V because you can fold 0 into any instruction as an operand, therefore eliminating the need to clear a register before an instruction.

So why correct the person with a more narrow claim that makes it seem like xor being faster than loading zero is a rarity in CPU architectures? If I said “birds can fly”, and your response was “eagles can fly. Ftfy. Not all birds can fly”, it would be both true and utterly unhelpful.

Malfeasant@lemm.ee on 15 Apr 13:08 collapse

Hey look, I’m good at something.

Zwuzelmaus@feddit.org on 12 Apr 17:36 collapse

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…

mbirth@lemmy.ml on 12 Apr 16:56 next collapse

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…

Brkdncr@lemmy.world on 12 Apr 17:41 collapse

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

ilmagico@lemmy.world on 12 Apr 17:01 next collapse

According to the research published by Hackmosphere, […]

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

Buelldozer@lemmy.today on 12 Apr 20:32 next collapse

Saw this attack in the wild this week. Huntress MDR detected and shut it down.

MonkderVierte@lemmy.ml on 13 Apr 10:47 collapse

That Vitus must be pretty bad.

atrielienz@lemmy.world on 13 Apr 12:43 collapse

Thanks! Fixed!