Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Undetectable keylogger In 2024

How do you get undetectable keylogger for win10 and win11 in 2024 is it even worth spending time coding an keylogger now bc I know c++ and I planned coding one just don't know how to get it be undetectable and is it even possible and even if I build it undetectable how long will it be like that before I need to change code. I would like someone with knowledge to explain how keylogger work how does it get detected and how to prevent that. Thanks
When you build organic malware (and the code isn't some copy/paste nonsense) depending how much you spread it, how many people scan it, and what antiviral software analyze it will determine how long it stays FUD. In the end, you'll generally need to either purchase or code your own crypter. Sometimes not even changing the code is enough unless you really rework everything, which is a waste of time in the long run. Some keyloggers are so basic that they don't raise detections. I've written a Windows keylogger in Python that exfiltrates logs to a Discord webhook and it still has yet to be detected by Windows defender. I'm sure it's only a matter of time though.

When you build a keylogger, you're capturing low level key hooks and saving them to a file or storing them within memory, then you're sending them to some sort of endpoint (FTP server, email, Discord, Telegram, IRC, etc). That said, some keyloggers have additional functions, like clipboard logging, screen/webcam capturing, cache/form grabbing, etc. The more routines in your code you add for functionality, the more chance of raising a detection. Also, how the keylogger installs itself is huge. The common local registry start-up keys (Run, RunOnce, etc) are monitored often, as well as Windows Startup directory. The temp folder is heavily analyzed by antiviral software as that's where a lot of programs, malicious or not, unpack files and configurations of all sorts. File size of your binary is equally important. Obfuscation isn't a bad idea. Back in the day, compressing your binary with sometime like UPX helped, but it seems like nowadays certain methods of compression can be identified and actually raise flags more than avoid them.

Some antivirus software will look at the decoded strings in a compiled Windows PE and check for suspicious wording. Some use heuristics to determine the generic actions of a file. Every time said file displays some sort of suspicious property/actions a flag will be raised. After a certain amount of times the file itself becomes flagged and quarantined, if not removed altogether. Machine learning and AI are also being used by certain AV companies to help further this. You'll also need to deal with Windows Smartscreen. That alone can cause enough of a problem.

These are all aspects of what you'll want to consider when building your keylogger. If you have any more questions or if you want me to elaborate on something more please let me know.
(Jun 14, 2024 12:59 PM)mang0123 Wrote:  How do you get undetectable keylogger for win10 and win11 in 2024 is it even worth spending time coding an keylogger now bc I know c++ and I planned coding one just don't know how to get it be undetectable and is it even possible and even if I build it undetectable how long will it be like that before I need to change code. I would like someone with knowledge to explain how keylogger work how does it get detected and how to prevent that. Thanks

It will be undetectable from 24-48 hours to a week or more, depending on how many times it gets scanned, cloud features, and frequency of definition updates.
(Jun 14, 2024 01:22 PM)I cry blood Wrote:  When you build organic malware (and the code isn't some copy/paste nonsense) depending how much you spread it, how many people scan it, and what antiviral software analyze it will determine how long it stays FUD. In the end, you'll generally need to either purchase or code your own crypter. Sometimes not even changing the code is enough unless you really rework everything, which is a waste of time in the long run. Some keyloggers are so basic that they don't raise detections. I've written a Windows keylogger in Python that exfiltrates logs to a Discord webhook and it still has yet to be detected by Windows defender. I'm sure it's only a matter of time though.

When you build a keylogger, you're capturing low level key hooks and saving them to a file or storing them within memory, then you're sending them to some sort of endpoint (FTP server, email, Discord, Telegram, IRC, etc). That said, some keyloggers have additional functions, like clipboard logging, screen/webcam capturing, cache/form grabbing, etc. The more routines in your code you add for functionality, the more chance of raising a detection. Also, how the keylogger installs itself is huge. The common local registry start-up keys (Run, RunOnce, etc) are monitored often, as well as Windows Startup directory. The temp folder is heavily analyzed by antiviral software as that's where a lot of programs, malicious or not, unpack files and configurations of all sorts. File size of your binary is equally important. Obfuscation isn't a bad idea. Back in the day, compressing your binary with sometime like UPX helped, but it seems like nowadays certain methods of compression can be identified and actually raise flags more than avoid them.

Some antivirus software will look at the decoded strings in a compiled Windows PE and check for suspicious wording. Some use heuristics to determine the generic actions of a file. Every time said file displays some sort of suspicious property/actions a flag will be raised. After a certain amount of times the file itself becomes flagged and quarantined, if not removed altogether. Machine learning and AI are also being used by certain AV companies to help further this. You'll also need to deal with Windows Smartscreen. That alone can cause enough of a problem.

These are all aspects of what you'll want to consider when building your keylogger. If you have any more questions or if you want me to elaborate on something more please let me know.

Thank you really good explanation. I can know understand what I am trying to do, also your python keylogger is clever idea did you find it somewhere or was it your own
(Jun 14, 2024 01:58 PM)mang0123 Wrote:  Thank you really good explanation. I can know understand what I am trying to do, also your python keylogger is clever idea did you find it somewhere or was it your own

I've heard of people using Discord (via a Discord webhook) as a transport method to submit different data types. For example, Creal Stealer is a stealer in Python that sends stolen information to Discord. I've also heard of Discord RATs being a thing. I figured if both of those use Discord, then certainly sending keylogs to Discord would be equally as easy, and it was lol. So yeah, I wrote it on my own. I packaged it with AutoPyToExe which packages Python scripts (and their dependencies) into one executable. Although it worked out, I wouldn't recommend Python, nor using programs like AutoPyToExe for malware. You've got the right idea sticking with Cpp as a coding language. That, and Cpp can also be compiled to either EXE or ELF (if you're using Linux) which gives it not only a speed advantage (since its compiled rather than interpreted, like Python) but someone cant simply right click and view the active code. Cpp also works lower with the system than Python does.

Python funny enough has its own libraries that are capable to hooking keystrokes for you, so you don't really need to know about low level system calls or anything like that. It makes it easy for people to accomplish their job without doing any heavily lifting. The only issue is, the libraries that are used are more profilable since they're public. It is always best to write your own organic key hook.
(Jun 14, 2024 01:22 PM)I cry blood Wrote:  When you build organic malware (and the code isn't some copy/paste nonsense) depending how much you spread it, how many people scan it, and what antiviral software analyze it will determine how long it stays FUD. In the end, you'll generally need to either purchase or code your own crypter. Sometimes not even changing the code is enough unless you really rework everything, which is a waste of time in the long run. Some keyloggers are so basic that they don't raise detections. I've written a Windows keylogger in Python that exfiltrates logs to a Discord webhook and it still has yet to be detected by Windows defender. I'm sure it's only a matter of time though.

When you build a keylogger, you're capturing low level key hooks and saving them to a file or storing them within memory, then you're sending them to some sort of endpoint (FTP server, email, Discord, Telegram, IRC, etc). That said, some keyloggers have additional functions, like clipboard logging, screen/webcam capturing, cache/form grabbing, etc. The more routines in your code you add for functionality, the more chance of raising a detection. Also, how the keylogger installs itself is huge. The common local registry start-up keys (Run, RunOnce, etc) are monitored often, as well as Windows Startup directory. The temp folder is heavily analyzed by antiviral software as that's where a lot of programs, malicious or not, unpack files and configurations of all sorts. File size of your binary is equally important. Obfuscation isn't a bad idea. Back in the day, compressing your binary with sometime like UPX helped, but it seems like nowadays certain methods of compression can be identified and actually raise flags more than avoid them.

Some antivirus software will look at the decoded strings in a compiled Windows PE and check for suspicious wording. Some use heuristics to determine the generic actions of a file. Every time said file displays some sort of suspicious property/actions a flag will be raised. After a certain amount of times the file itself becomes flagged and quarantined, if not removed altogether. Machine learning and AI are also being used by certain AV companies to help further this. You'll also need to deal with Windows Smartscreen. That alone can cause enough of a problem.

These are all aspects of what you'll want to consider when building your keylogger. If you have any more questions or if you want me to elaborate on something more please let me know.

hey, you still have that keylogger? could you be able to share it?
(Oct 20, 2025 12:16 PM)bibeqqqq Wrote:  hey, you still have that keylogger? could you be able to share it?

What keylogger?
(Oct 20, 2025 01:52 PM)DramaKing Wrote:  What keylogger?

"I've written a Windows keylogger in Python that exfiltrates logs to a Discord webhook and it still has yet to be detected by Windows defender. I'm sure it's only a matter of time though."
i was talking bout that sentence i also writed a keylogger that sends logs to webhook on discord but its very easy to dectect
(Oct 20, 2025 02:10 PM)bibeqqqq Wrote:  "I've written a Windows keylogger in Python that exfiltrates logs to a Discord webhook and it still has yet to be detected by Windows defender. I'm sure it's only a matter of time though."
i was talking bout that sentence i also writed a keylogger that sends logs to webhook on discord but its very easy to dectect

Oh, right. Python scripts are invisible to antivirus. That's why.
(Oct 20, 2025 02:23 PM)DramaKing Wrote:  Oh, right. Python scripts are invisible to antivirus. That's why.

yea but not mine,do you maybe have some python key logger that is invisible to antivurus and sends webhook on discord?
wooooow insne! i try now


Possibly Related Threads...
Thread / Author Replies Views Last Post
by The 7th SageJun 2, 2021 05:19 PM 85 6,748 Jun 2, 2021 05:19 PM
Last Post: 00bot00
by DrOverBetMar 13, 2021 01:52 AM 5 347 Mar 13, 2021 01:52 AM
Last Post: PureCoder
by laentJul 3, 2019 09:34 PM 3 402 Jul 3, 2019 09:34 PM
Last Post: laent