Malware Analysis

Malware Development Concepts

Malware Development Concepts

The field of Malware Development is chaotic without understanding the following key concepts ☠️:

  1. The field is not just limited to bypassing defenses; evasion itself is the core challenge.

  2. Actions or Functions: You might perfect the program’s functions, but if you forget about the traces or footprints the malware leaves behind on the machine, you are generating what are known as Host-Based Indicators.

  3. The Persistence Problem: If you want persistence (a continuous connection), you need to understand that dealing extensively with the Disk should be avoided. The reason is that the Disk is constantly subjected to scanning operations. If malware resides there, it will be periodically scanned, leading to the discovery of its behavior. Even if the payloads are encrypted, they will be decrypted at execution time, and thus detected. It is preferable to operate in memory, as detecting it there is more difficult and requires heuristic analysis, which is how EDRs (Endpoint Detection and Response) work.

    If you want to achieve PERSISTENCE, it’s typically done via the Registry or Task Scheduler so that it activates continuously.

    Of course, we are not talking about the technique used by Dugu 2.0, where the malware moved from one device to another and was loaded into memory, ensuring permanent access. Because it targeted Kaspersky Labs, when the infected machine transferred the malware to another machine at the memory level, it ensured the attacker maintained access. Even if a machine was rebooted, if there was another infected machine on the network, the active malware from there would migrate to the uninfected machine and reinfect it, guaranteeing continuous access.

  4. Real malware without strong packing operations like VMPROTECT or THEMIDA will be exposed to detection much more easily. This is one of the most critical aspects applied to programs if they interact at the DISK level.

  5. Network Indicators: This is often the biggest factor leading to the detection of an attacker’s malware. Ultimately, the attacker will need to interact with the compromised systems (to exfiltrate, modify, destroy, etc.), so there will be network-level communication. These actions will be monitored at the network level and classified as malicious. You need to minimize interaction with the compromised victims over the network and avoid actions that place a heavy load on the network, as any abnormal activity will be noticed.


These are some points from an analysis perspective, as most programs analyzed on the defensive side had very clear factors, especially with analysis augmented by AI technologies. There are still some unknown aspects, either due to a lack of knowledge or the existence of malware techniques globally that include Zero-Day exploits, allowing them to remain deeply hidden and difficult to detect simply because they are zero-days.