Malware is software intentionally designed to cause disruption, and it encompasses a wide range of threats with goals ranging from data theft and system control to ransomware and adware. Understanding malware means examining its components — vectors, payloads, droppers, and command-and-control mechanisms — rather than forcing it into rigid categories.
Malware
Some software is built specifically for malicious behavior, and we call this type of software malware — mal for malicious and ware because it's software. So let's talk about malware and what that looks like.
Malware is just software that's intentionally designed to cause disruption. The mal means malicious and the ware is the software side of this. Malware is designed to do a lot of different things. It has many different goals. Maybe it's for data exfiltration. Maybe it's to gain access. Maybe it's some sort of denial of service attack to cause chaos. Maybe it's to control systems. Or perhaps it's to present ads to the end user. Or it could be to encrypt data and hold it for ransom until that user pays money, and we call that ransomware.
Now, I've seen a lot of sources, a lot of articles, a lot of things that try to categorize these different malware. Some of the common categories that you may see out there are viruses, worms, trojans, logic bombs, ransomware, spyware, adware. I'm actually not a big fan of categorizing. I've tried to do the same thing myself. But the problem is you've got something like ransomware or logic bombs — that could be a virus or a Trojan or a worm. It could be any of these. So we really kind of mix these all up. There's an attempt to categorize them, but it doesn't always fit in a nice neat box. So a lot of times you'll see them try to fit things into three main categories: viruses, worms, or Trojans. I'm not a big fan of this either, because not everything fits into these three boxes, but these are some of the most common types of malware that are out there.
If we have something like ransomware, where it will encrypt data and hold it ransom until the victim pays money to the attacker — what we see is ransomware can be inserted inside of a worm, or inside of a virus, or inside of a Trojan. So these are the spreading mechanisms to get this around, but then this is going to be what actually carries out the attack. We actually call this the payload. So a worm could have a payload that carries out the attack, but the worm is the mechanism to distribute it.
So rather than thinking of these strict categories, I like to think of it more as different characteristics. We can think of it in several different forms, like vector. Vector is how it gets into an organization. How are you going to do that? It could be through an email attachment, or maybe you're sending a link that will bring them to a website and then it gets downloaded from that website, or maybe there's some sort of removable media, and that's how it gets inserted. That's the vector into the organization.
There's also the exploit code, whether it's a virus, a Trojan, or worm. We also have that payload that we talked about. What is the intent of this malware? What's it doing? Maybe it's going to be for data exfiltration, or denial of service attack, or access, or command and control, or the adware.
There's also something called the dropper, which is how it kind of gets hidden in here. Maybe it's fileless, or maybe it's a rootkit, or maybe it's a boot sector virus. There are ways that we can start hiding this code so that way it goes unseen.
And then there's the command and control part of it. The command and control could be the intent of it, or it could just be a component of it as well, such as a botnet. And not everything really fits neatly into this as well, because it could be a logic bomb — any one of these items could be a logic bomb that we send off and we launch at a certain time or a certain trigger.
So maybe even better yet, we think of it as different modules or components that we assemble together, maybe kind of like Legos. So here we've got some sort of malware assembly. Maybe what we want to do is launch a ransomware attack. So we're going to have this ransomware that's going to encrypt it, but we don't want it to act right away. We want it to have a chance to spread. So we create some sort of logic bomb. Maybe it's going to get triggered at a certain time. But we also want it to go undetected, so maybe we have a fileless virus here, or fileless malware, that goes undetected. So there are a lot of different components that we can use to assemble this together to make this malware.
But we have to be careful, because any one of these that we add to this could increase the size and also increase the chances that this is going to be detected. So we have to be concerned about the size of the malware that we're building.
For that purpose, sometimes we use some sort of staged delivery. We have some sort of simplistic malware that we create — maybe it's a command and control. We deliver that. Once we've delivered that, then we increase it and do other things on the system. So we might not deliver all of the malware, all of our tools, all at once. We might stage it and deliver it in components. It's one of the reasons why we have different phases in both the cyber kill chain and the MITRE ATT&CK, because we might be launching some sort of delivery and exploitation, and then going into the persistence, and then there's the command and control, and there's the discovery. Each one of these might have a different staged approach towards this malware and delivering that malware.
Now throughout the rest of this module, we're going to talk more about malware, but we're also going to introduce a few other concepts as well — things that might not be considered malware, malicious software. For instance, a virus is definitely malware. There's no question about that, because it's causing harm to the computer, or it's designed by definition to carry out some sort of harm to the computer. But we have things like adware, which gets a little bit in between here, where sometimes it's malicious and sometimes it's not as malicious, but it might not be something we really want.
There's also things like buggy software. The intent is really not to be malicious at all, but it could cause just as much harm, or maybe possibly even more harm, than a virus or some sort of other malware. So we have to look at the intent. And the intent of this is to cover really just kind of all aspects of this. So we might be covering mostly the malware that falls on this side of the spectrum, but we could be covering a few other things as well.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →