Full text
Corresponding author: Bogdan Barchuk Copyright © 2025 Author(s) retain the copyright of this article. This article is published under the terms of the Creative Commons Attribution License 4.0. Antivirus evasion techniques in modern malware Bogdan Barchuk 1, * and Kyrylo Volkov 2 1 Chief Technology Officer at CQR Cybersecurity. 2 Senior Penetration Tester. World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 Publication history: Received on 12 April 2025; revised on 19 May 2025; accepted on 21 May 2025 Article DOI: https://doi.org/10.30574/wjarr.2025.26.2.1966 Abstract Cybercriminals use new antivirus evasion techniques in their malware to continue operating in a system despite security programs. It explores how the newest malware uses obfuscation, packing, anti-debugging, and tampering with system security to bypass modern protection solutions at endpoints. The research points out that, attackers find ways to take advantage of weaknesses in antivirus heuristics, signature databases, and models that analyze behaviors. Hackers give additional focus to modifying programs, editing data in the hex format, dodging debuggers, and using fileloading tools. The research group also studied how measures like Windows’ SmartScreen and SafeSEH prevent bad software from being started. Detection by today’s antivirus solutions has improved, but it turns out that most evasion techniques can still work because they are flexible and mutable. As a result, organizations must always work on new methods of preventing attacks and stay informed about any threats that may arise. Keywords: Malware Evasion; Code Obfuscation; Anti-Debugging; File Binding; Antivirus Detection; Runtime Packers 1. Introduction Malware, short for malicious software, has undergone significant evolution since its inception, adapting continuously to counter emerging cybersecurity defenses. In their early forms, viruses only used straightforward tricks to spread and infect newly infected computers. When antivirus detection relied on signatures, malware began using harder-to-detect techniques. Companies have started using heuristic and behavioral analysis in their modern antivirus programs to deal with new threats. Even so, malware is evolving, using clever tricks that make it tough to detect for most security systems. Making malware invisible is extremely important to those who develop it. By evading detection, malware can remain for a longer period in computers and execute its tasks without being detected. Usually, cyber criminals apply obfuscation, polymorphism, packing, anti-debugging, and anti-virtualization tactics. Consequently, it is now important for cybersecurity experts to come up with more flexible defense methods. Being aware of the battle between malware makers and developers of antivirus software is necessary to improve cybersecurity measures. Because malware master’s new ways to avoid being detected, studying trending threat methods and evasion techniques helps shape the future of security solutions (Sahay et al., 2019). Malware detection technologies must improve as cyber threats are becoming more advanced (Alenezi et al., 2020). 1.1. Overview Current antivirus products rely on various mechanisms to spot and prevent malware viruses. This technique continues to depend on a database of signature patterns to detect and flag malware-infected data. Still, this way of handling threats is not enough to deal with modern and updated threats. For this reason, modern antiviruses can spot suspicious routines
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3155 in code, even if they have not identified the particular malware before. Also, real-time logs are studied to identify malware through the way it is active in the system. Thanks to machine learning and artificial intelligence, it is easier for systems to spot details that could reveal the presence of malware. Still, in spite of these inventions, criminals find ways to get their malware past antivirus software. Some hackers disguise their malicious code using techniques called code obfuscation and packing to avoid being discovered. Malware checks for special environments that are used for analysis, and as a result, it stops or changes what it does when such environments are found. Further, malware can evade detection by ignoring rules given to them in test environments and acting normally. Learning about each method and its evasion is necessary to improve cyber protection. Because attackers keep improving their tactics and malware, antimalware specialists are always coming up with better ways to stop them (Samociuk, 2023). To face new viruses and protect against them effectively, we must keep updating antivirus software (Rohith & Kaur, 2021). 1.2. Problem Statement Antivirus products have a hard time coping with the rapid development of malware. Most old antivirus software has difficulty finding malware that is not yet known or has been changed extensively. When malware authors use techniques to make their code harder to detect, like obfuscation, packing, anti-debugging, and sandbox evasion, ordinary antivirus can no longer stop them. With there diverse evasion methods, malware becomes harder to identify, keeps working longer, and causes even greater harm. Moreover, the emergence of malware that can change its code structure makes it even harder to find. The complexity of these dangers pushes for the use of more innovative and flexible security systems. The evolving nature of cyber-attacks means that current endpoint protection must also improve to stop them from working. Should improvements in antivirus technology stop, the chance of successful cyber-attacks and security breaches dealing severe damage to individuals, organizations, and important systems would grow. 1.3. Objectives I am researching the innovative ways that malware can sneak by advanced virus protection. The main goal is to realize how malware evades usual means of detection using various sophisticated approaches like making itself hard to understand or understand and compressing itself. Researchers examine these strategies to find out if they affect the effectiveness of today’s antivirus and endpoint protection tools. It is also necessary to check whether security software can recognize and block simple forms of evasive malware. The research will also look into new ways malware hides from antivirus software and how these solutions are amended. To sum up, the goal is to equip experts with recommendations for making cybersecurity measures more effective. It is helpful for better detecting malware and minimizing the risk of stealthy attacks today. 1.4. Scope and Significance This study examines the use of software techniques by malware to avoid being caught by antivirus software. Only software-related threats are included, since hardware-based attacks are not evaluated. The paper studies both basic and advanced evasion techniques, among them are code obfuscation, packing, anti-debugging, anti-virtualization, and sandbox evasion. The reason this study is significant is that it can aid cybersecurity experts as they work on improving malware detection tools. Realizing the different evasion strategies allows developers to improve their protection solutions for endpoints. Besides, the study helps cybersecurity experts understand current risks and suggests where improvements can be made. Today’s heavy use of digital systems means bolstering antivirus against evasive malware is key to keeping sensitive data secure and the system stable. 2. Literature Review 2.1. Basic Information on Evasion and Obfuscation Developers of malware implement different ways to make it difficult for antivirus programs to spot. Fully UnDetectable (FUD) malware means malware created to go undetected by common antivirus programs. Many organizations use crypting and obfuscation to gain FUD status. The use of crypting covers up the malware by making it unclear, and obfuscation is applied to make its code harder to understand. Because of these tactics, antivirus software has difficulty identifying malicious programs using recognized or suspicious patterns.
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3156 If used properly, anti-debugging and anti-VM strategies can make it difficult for both researchers and automated systems to analyze a threat. To avoid being studied, anti-debugging methods find signs of debugging tools and sometimes block the analyst or abort the malware’s execution. They also work by finding out if a virtual machine is being used to run malware, as this is a frequent method in dynamic analysis. The fewer places malware visits, the less likely it is to be spotted by a security system. Anti-virtualization and anti-debugging methods have been reexamined and made stronger, such as by modifying system hooks that analysts rely on to spy on what malware does. This kind of malware is able to avoid even rigorous monitoring methods, creating additional challenges for its detection (Apostolopoulos et al., 2021). Moreover, examining antidebugging techniques reveals that attackers may engage in timing checks, use exception handling, or tamper with APIs, and the study suggests ways to manage and mitigate these tactics. Knowing about these evasion and obfuscation techniques allows us to make better detection systems that can manage and respond to modern threats. 2.2. Compiling from Source & Code Obfuscation Figure 1 Screenshot of the .netshrink GUI showing options for compressing, encrypting, and protecting .NET executables, exemplifying code obfuscation and packing tools By compiling malware, attackers are able to make adjustments to their software that help it avoid being spotted by antivirus software. If the source code is modified, the resulting effects are often unnoticeable, while the malware’s goal does not change. Renaming variables, adding unnecessary steps, or including new functions that slow down the process
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3157 or hide parts or errors from the tools used to analyze the program. Because of these points, it is hard for antivirus programs to identify the malware. Code obfuscation is a useful method; it aims to make the code harder to understand and recognize. Altering the program’s control flow, scrambling strings, or adding intrusive bits of code are examples of obfuscating techniques. If the authors’ names and other, unique data are also removed, the effectiveness of these tactics is almost unbeatable. Tools like Visual Studio may be used to build and alter Quasar RAT, which is an open-source remote access trojan available everywhere. Attackers can purposefully modify the code of a malware before it is compiled to match and hide the malware in antivirus scans. Extra protection for the compiled executable comes from .netshrink, in addition to what is provided by changing the source code. Image 4 outlines that .netshrink includes the ability to set a password, keep an eye on threads, and adjust settings for the .NET version and installer options. Because of these parts, it is more challenging to catch this malware with automated solutions. By using obfuscation and .netshrink, the source code is compiled in a way that helps malware to stay hidden on the target computer for a longer period. 2.3. Hex Editing and Manual File Modification Developers of malware and analysts manipulate the binary structure of files through hex editing. With such an approach, modifying and controlling the program’s functions can be done using the executable without editing the source code it comes from. The code within the malware can be changed to hinder detection by removing giveaways and fixing spots that the antivirus program can identify. Figure 2 Hex Editor view of a Windows system file with checksum details showing CRC-32, SHA-1, and MD5 values, demonstrating binary-level file analysis and verification Commonly, HxD and WinHex are used as hex editors for reading and changing the raw data in files or sectors. In Image 1, you can notice that HxD represents each value with hexadecimal and ASCII codes, which makes it simple to find and change specific information. Using this interface, you can view operations on the Windows system file ntdll.dll, and test their checksums against the CRC-32, SHA-1, and MD-5 algorithms. File integrity relies on checksums, and changing these values lets attackers functionally alter files without being detected.
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3158 It is possible to use hex editing to remove signs left by antivirus software within software files or to add code to evade detection by some antivirus tools. This practice allows people to manually alter the pattern of a virus to get past antivirus software. Statically detecting malicious files often fails as malware creators can change the files when being analyzed. In addition, using hex editing is crucial for analysts investigating and analyzing malware. By looking at and analyzing binary content and comparing its checksums, analysts can uncover any changes or hidden threats. As a result, hex editors have a dual function in preventing and spotting viruses, making them crucial for modern malware research and cybersecurity efforts. 2.4. Debuggers and Anti-Debugging Techniques Analysts use debuggers to investigate and observe the activities of malware. Yet, it’s common for malware coders to add methods to detect and escape from being debugged. When malware detects that a program is being investigated, it may override its execution, close itself down early, or hide its true behavior. Sometimes, the system checks the structures and handlers connected to debugging as an anti-debugging method. As an illustration, malware can examine the SafeSEH protections in the modules it loads to discover places that might allow debuggers to enter and hook into the program. As shown in Image 2, different system DLLs like oleaut32.dll, ntdll.dll, and mpr.dll show if they use SafeSEH or not, and give the number of exception handlers attached to them. If no SafeSEH was added, or patching was not done, to these modules as you noticed with ole32.dll and mspmsnsv.exe, this can mean that these files may be accessible for debugging and manipulation. Such checks are used by malware so that it can notice if it is being fixed in a debugger and prevent its work from being interrupted. More anti-debugging methods involve timing delays, changing API calls, and taking advantage of any weaknesses in the debugger itself to either freeze or misdirect the analysis system. Figure 3 Debugger log data displaying Safe Structured Exception Handling (SafeSEH) protections across system DLLs, illustrating anti-debugging defenses and analysis indicators Using SafeSEH and setting it up with proper configuration do make debugger-based attacks more challenging, but still, malware can overcome these protections. As a result, analysts need to use special debugging tools and methods to get around or handle security steps meant to stop them from analyzing the software.
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3159 Understanding how debuggers are stopped helps improve your skills in detecting and identifying malware. It demonstrates that malware keeps changing and that we must continue to find new ways to defend against it and solve forensic cases. 2.5. Packers, Cryptors, and Code Wrappers Using packers, cryptors, and code wrappers, malware creators hide their harmful code, making it more difficult for antiviruses to detect. As a result, the altered executable looks different but works the same, blocking signature-based systems in popular antivirus tools. Using packers, it is possible to compress or encrypt the content of executable files and put them into a secure container. When executed, the packer takes the code compressed or encrypted in memory and unpacks it so the malware can do what it wants to do. With packed files, antivirus software mainly analyzes the initial form of a file, not its actual code, so any investigation is made confusing. Some popular packers are UPX, ASPack, and VMProtect, and each one provides a different amount of protection from decompilation. Cryptors are designed in a similar way but rely on high-level algorithms to encrypt the payload, also often including anti-debugging and anti-emulation to make it more difficult to reverse engineer. Code wrappers or joiners, on the other hand, put together different computer programs into one file, often mixing bad programs like viruses with good programs to help ‘hide’ the delivery. This combination of different malware hides the presence of the malware, making it less likely for it to be found during the first scan. Recent studies and surveys have shown that modern antivirus programs are finding it hard to detect and stop runtime packers, since these types of malware can hide damage until they actually start running on a computer. These malicious packers often use API hooking, polymorphic code, and the creation of run-time code to prevent being detected more easily (Alkhateeb, Ghorbani, & Lashkari, 2023). When people behave this way, it allows malware to get past static scanners and sometimes beat dynamic analysis programs that use behavior to detect threats. Moreover, figuring out and looking into hidden malware is still an area that many researchers are working on. Modern cryptors are designed to not only hide data by encryption, but also observe the environment to find virtual machines, sandboxes, and any debugging tools used. Because of these mechanisms, it can take longer for malware to be discovered in a system and it is able to damage these systems for a longer period (Alkhateeb, 2024). Consequently, security researchers keep coming up with new ways to break open and unravel packed or encrypted binaries, like using machine learning tools, in order to turn them back into simple code that can be studied and understood. For this reason, it is necessary to learn about the actions and tactics of packers and cryptors to improve detecting malware. When antivirus software discovers common packaging and cryptographic styles, it can more effectively spot suspicious files in advance. Additionally, when you combine running checks of programs with looking at their signatures ahead of time, you get a stronger security system that can spot packed malware after it’s been opened in memory. In summary, packers, cryptors, and code wrappers are basic tools the creators of malware use to help their programs avoid being detected. Encrypting, compressing, and bundling by malicious developers makes it harder for traditional antivirus technologies to detect their malware. Advances in these approaches require continuous updates and efficient solutions to fight off obfuscated malware (Alkhateeb et al., 2023; Alkhateeb, 2024). 2.6. Loaders, Droppers, and File Binders Many malware authors spread their software by embedding it in loaders, droppers, and file binders that are used to transfer it on target devices. Thus, by hiding the malware, segmenting it, or hiding it among several other files, the attackers manage to deliver it silently without raising suspicion. Loaders are small programs that help download and run the main part of the malware. They are often silent and only stay active for a little while, aiming to transmit the malicious part onto the machine they attack. Malware can be loaded onto a system by using scripts such as VBScript, JavaS, batch files, and PowerShell, which use permitted Windows functions to execute malware code. Droppers, on the other hand, are small files used to spread malware on a person’s computer. The extra payload can be on the attack when downloaded or embedded in the files, and extra evasion techniques are often added to ensure things go undetected as installation happens. These joiners put several files together to disguise dangerous code among the innocent files in a single archived file. This technique can be seen in Image 5, where an EXE Joiner tool puts together the two real programs (Regedit.exe and
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3160 Notepad.exe) into a new file called virus.exe. When malware is embedded in a secure program, there are fewer chances for detection and successful running of the code. Users are more likely to open programs they already know, which can accidentally start a malicious China DigiHunter virus. Attackersoften use code obfuscation, crypting, and anti-debugging along with these methods to stay hidden and remain in the system for longer. Because droppers, loaders, and file binders can easily fool signature detection with their modified malware, they are still big hurdles for antivirus programs. How infections spread is important to know in order to find the best ways to detect and control them. Looking at script actions, reviewing file information, and reviewing system behaviors, security tools protect the system better against the risks of loaders, droppers, and binders. Figure 4 EXE Joiner tool interface combining multiple executables into a single file, illustrating file binding techniques used for malware delivery and evasion 2.7. Windows Security Mechanisms and Evasion Windows operating systems include several security features that help protect users from getting infected by harmful software. A way Windows achieves this is through Windows SmartScreen, which filters out unknown or suspicious programs so they won’t run until the user approves. It measures software using information about the publisher’s background, the source of the file, and how common it is. When an application does not have a recognized digital signature or hasn’t been used by many other people, SmartScreen will show you a warning, just like in Image 3. This dialog notifies users about the possible hazards and provides buttons for users to either block or permite the execution of the code. Malware creators have come up with ways to get around or trick protection programs like SmartScreen and similar. With a fake digital certificate, malware can seem genuine and bypass the warnings given by SmartScreen. In some cases, attackers delay putting the program into action or rely on tricking people to carry out malicious applications despite any security alerts. Malware authors may repackage or resign their software many times to trick systems into believing it is safe. Some types of malware try to exploit the update and approved list functions of SmartScreen in order to load themselves onto trusted paths. While SmartScreen is designed to protect users, its dependance on what users do and the reputation of websites can lead to mistakes. Some users might forget to pay attention to the hints or not know about the risks, which enables the attackers. The human element and advanced evasion techniques give malware a way to get past security measures. Being aware of the flaws and ways to carve around SmartScreen helps create strong defense plans. Using SmartScreen in combination with other similar systems can improve security and decrease the dependence on users’ judgments.
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3161 Figure 5 Windows SmartScreen security warning dialog preventing execution of an unrecognized app, highlighting user interaction in malware defense and bypass tactics 3. Methodology 3.1. Research Design In this study, we use a qualitative approach to study how current malware evades antivirus products. By carefully looking at data, the research hopes to find out how malware authors can bypass detection. The method involves checking different evasion methods and types of malware to spot patterns and unusual ways attackers use them. Paying more attention to qualitative aspects than to numerical values allows the study to explain how these evasion techniques actually work and how well they do so. This setup makes it possible to look at a wide range of malware protection approaches and understand how threats evolve against current antivirus methods. It makes it possible to highlight both the benefits and drawbacks of various evasion techniques and to analyze the response of current endpoint protection products. All in all, this setup allows for a thorough investigation of how malware evasion methods are changing. 3.2. Data Collection The data gathering step includes accessing both malware samples and evasion tools that users can find online. They use online repositories of malware and forums as well as open-source projects, where people share code and methods related to security. The malware samples included help display many different kinds and their methods of avoiding detection. Additionally, evasion toolkits and cryptors are used to find out what tools the attackers use to change or hide bad code. The data is gathered to have examples that are new and show what types of evasion methods are common right now. Implementing this technique helps to base the study on actual threats and keep up with the new ways malware authors exploit users. Gathering information from more than one platform allows the techniques to be checked against each other, increasing the reliability and scope of the study. 3.3. Case Studies/Examples • Case Study 1: Ransomware Using Obfuscation and Packing Techniques Ransomware remains a common and troublesome type of malware that evades antivirus programs and wreaks the most damage it can. This study focuses on an advanced ransomware variant that included various methods to prevent detection for a long time and cause a lot of damage. This attack relied mainly on obscuring the coding used in the ransomware. With this technique, the code was changed so that it became difficult for people and computers to detect malicious features, but it still carried out the same tasks. Ways of obfuscating the code were to rename things with meaningless names, introduce unnecessary steps, and play with the code’s movement to confuse tools used by antivirus programs. Because obfuscation gave the ransomware new patterns, it avoided being detected by software that checked for well-known signatures of malware. Further protecting itself, the ransomware was packaged with a runtime packer that made the executable smaller and unreadable. Executing the packer would make the malware’s code difficult to see for analyzing tools searching the file, as the code would be unpacked in memory. The use of runtime unpacking creates more difficulties for antivirus systems, as they must use either simulation or other methods to detect suspicious things happening with the code.
World Journal of Advanced Research and Reviews, 2025, 26(02), 3154-3166 3162 Moreover, the malware was made from a modified version of the source code, which made it possible for attackers to include evasion methods that could avoid being spotted by specific antivirus products. With updated source code, antidebugging tools that detect security analyst tools could now be added. If it finds an environment like this, the ransomware may halt its execution or end the process to circumvent analysis and delay being found. The tool used by the ransomware was specially designed to carry its task safely and quietly. This small program was in charge of launching the unpacked malicious code, usually carrying out its task without showing any obvious signs. The loader separated the real malware code from the execution, hiding the malware and avoiding the risk of raising suspicion to detection tools. An additional security measure used was file binding, where the ransomware combined with regular software was used. It involved bundling ransomware with common applications so it seemed safe at first sight. As soon as the users ran the tool, the hidden ransomware was set in motion. With this, the attackers easily installed the malware on devices because users trusted it and didn’t doubt that it was suspicious. As a result of these steps, the ransomware could remain in operation for a long while without being noticed, which allowed it to lock down critical information and force payments. Due to how the malware was well-obfuscated, packed, and made it tough for sandbox analysis, finding and solving the issue was put on hold. This case points out how sleekly ransomware has become, and how hard it is for traditional antivirus programs to cope. It calls for implementing security strategies that use different types of analysis, such as signature-based, heuristic, behavioral, and runtime, to fight these types of threats. It also stresses the need for ongoing research on evasion methods and the creation of powerful countermeasures that spot and cancel out extremely hidden and packed malicious codes. All in all, this case study proves that today’s malware uses many creative methods to escape detection. Because ransomware threats are getting harder to detect, companies need to adapt by adding advanced detection, proactive threat collection, and educating staff to help fight them. • Case Study 2: Banking Trojan Employing Anti-VM and SmartScreen Bypass Targeting people’s banking information, Banking Trojans are especially dangerous due to very sophisticated tricks to hide and avoid being noticed. In this case, a banking Trojan was able to steal confidential data by hiding in systems using a mix of anti-VM, anti-debugging, cryptors, dynamic unpacking, and SmartScreen bypass techniques. A major way the Trojan evaded was by using anti-VM methods. It is common for security researchers to check malware in sandboxed or virtual machine environments to ensure their safety. But this banking Trojan had been programmed to spot such environments using analysis of different elements and time differences. When it detected being in a virtualized environment, the malware acted differently by either stopping or sending harmless responses, thus bypassing any analysis or detection in a sandbox. As a result, the malware could only run on true computers, making it more likely that searches would not find it. As well as its anti-VM abilities, the Trojan also relied on anti-debugging features to deter analysis both by humans and automation. In other words, they reviewed whether debuggers were available, restructured how errors were handled, and ran tests to find if a slowdown was due to a debugger. In these situations, the malware responded with tricks such as closing down processes or messing up the testing, stopping any attempts to analyze it. It used cryptors to hide the payload, thus dodging detection by antivirus programs based on virus signatures. Additionally, the unpacking process allowed the malware to decrypt and run its payload just when the system was being used, making it harder for detection tools to spot it. An antivirus running a static analysis on the file would likely miss a virus due to the application’s ciphered state. After getting into the system, the malware used encryption to hide its payload, bypassing typical static and rule-based detection methods. A dropper was used to ensure that the malware virus got onto the victim’s computer. The malware came in the form of what appeared to be an everyday or trusted file, so it went undetected by many users. The Trojan stood out for being able to bypass Windows SmartScreen, a function made to warn people before they run unidentified programs. The Trojan managed to pose as a reliable program by using stolen or fake digital certificates and