| Attacks | (Not in Course) |
| Advanced Persistent Threat (APT) | Cybercrime aimed at business/political targets using various intrusion methods and malware over long periods, often by state-sponsored groups. |
| Adware | Software-integrated ads that create pop-ups or redirect browsers to commercial sites. |
| Attack kit | Tools that generate new malware with diverse propagation and payload methods. |
| Auto-rooter | Tools for remotely breaking into new systems. |
| Backdoor (trapdoor) | Bypasses normal security to provide unauthorized access to program functions or systems. |
| Downloaders | Code that installs additional malware on an already compromised system. |
| Drive-by-download | Website code exploiting browser vulnerabilities to infect client systems on visit. |
| Exploits | Code targeting specific vulnerabilities in software. |
| Flooders (DoS client) | Tools for denial-of-service attacks by generating large data volumes. |
| Keyloggers | Tracks and records keystrokes on compromised systems. |
| Logic bomb | Malware code that activates a payload when specific conditions are met. |
| Macro virus | Virus using scripting in documents, replicates when viewed or edited. |
| Mobile code | Scripts/macros that run identically across diverse platforms. |
| Rootkit | Tools giving attackers root-level access post-compromise. |
| Spammer programs | Sends high volumes of unwanted email. |
| Spyware | Collects and transmits information from a system by monitoring activity or scanning files. |
| Trojan horse | Program with hidden malicious functions that bypass security, often exploiting user permissions. |
| Virus | Self-replicating malware that infects other code upon execution. |
| Worm | Independent malware that spreads over networks via vulnerabilities or stolen credentials. |
| Zombie, bot | Infected program enabling attacks on other systems. |
Malware
Refers to any unwanted executable code designed to perform unauthorized, harmful actions on a computing device. It's an umbrella term that includes various harmful types of software, such as: Viruses, Worms, Trojans, Rootkits, Botnets.
Malware classification
| Means of distribution | Requires a host | Runs independently |
|---|---|---|
| Self-spreading | Virus | Worm |
| Non-spreading | Rootkit; Trojan horse | Dialer; Spyware; Keylogger |
Virus (Taxonomy 1)
Self-replicating Malware, requires a host file to infect. It can take several forms, including
- Boot viruses: Infect the master boot record (e.g., Brain virus).
- Overwrite viruses: Replace the host file with their own code.
- Parasitic viruses: Attach themselves to other executable files.
- Cavity viruses: Find empty spaces in executable files to insert themselves without increasing file size.
- Entry point obfuscation and code integration: Techniques used by specific viruses like W95/Zmist to avoid detection.
Worms (Taxonomy 2)
Self-replicating Malware, spreads autonomously over networks. It exploits vulnerabilities to infect multiple hosts and can send itself via email. e.g. Internet worm, Code Red, Blaster, Slammer
Rootkit (Taxonomy 3)
Malware that Maintains access to a compromised system, often hiding files, processes, and network connections. Rootkits can operate at both user and kernel levels and can be sophisticated enough to hide drivers.
Trojan Horse (Taxonomy 3)
Malware that disguises as legitimate software. Its actions can vary widely, including: Spying on sensitive data, Hiding its presence (e.g., using rootkits), Allowing remote access (e.g., Back Orifice, NetBus)
Viruses (in detail)
Viruses are parasitic; they attach to existing executable files, applications, utilities, or system files, like boot code.
Viruses stages:
- Dormant phase: The virus remains inactive until triggered by specific conditions.
- Propagation phase: The virus replicates by infecting other programs or system areas.
- Triggering phase: The virus activates its payload when a trigger condition is met.
- Execution phase: The virus performs its intended action, which may be harmless or destructive.
Macro Viruses:
targeting documents rather than executable code. They exploit macros in popular applications like Microsoft Word and Excel, or Adobe PDFs.
Dangerous due to:
- Platform independent propagation
- Targeting user documents rather than system files
- Ease of spread through document sharing
- Relative simplicity of creation.
Worms (in detail)
Type of malware that actively seek out more machines to infect, using network connections or shared media to spread from system to system. They exploit software vulnerabilities to gain access and replicate.
Worm propagation follows an epidemic model, going through three phases - exponential growth, rapid linear growth, and a slow finish as most vulnerable systems become infected.
Phases:
- Dormant Phase: The worm stays inactive, waiting for a specific trigger to activate.
- Propagation Phase: The worm replicates itself and spreads to other systems, using various mechanisms to find vulnerable systems.
- Triggering Phase: The worm becomes active when a particular condition is met (e.g., a specific date, time, or event).
- Execution Phase: The worm carries out its intended payload. This could range from harmless
Propagation Mechanisms:
To infect new systems, worms look for available paths such as:
- Address books and buddy lists: Contact lists or friends on instant messaging apps.
- Host tables and trusted peers: Known connections within a network.
- Target host addresses: A list of other computers within a network segment.
- Removable media: USB drives and other external storage devices, which can transfer worms between disconnected systems.
Propagation methods
- Malvertising:
This involves attackers paying for advertisements that contain malware, which can be placed on legitimate websites without compromising them directly.
- Drive-by Downloads:
Malicious Scripts injected into legitimate websites (e.g., via SQL injection). These Attacks are against web browser, embeds in ads and launched through client-side scripts like JavaScript. It then redirects users to a malicious site, often exploiting the user’s browser version or plug-ins. - Rogue Antivirus Software:
Fake antivirus programs trick users into thinking their computer is infected, urging them to download and install a "solution" that is malware.
- Clickjacking
Trick users into clicking on elements of a webpage that they did not intend to interact with. The attacker can overlay or position an invisible button or link over a legitimate button, causing the user to click the wrong target.
- Water hole attacks
A variant of drive-by downloads aimed at specific targets. Attackers research their victims to identify websites they frequent and then compromise those sites to deliver malware via drive-by downloads.
Fighting Malware
- Understand Malware Behaviors: Recognize how different types of malware act. Study malware's characteristics and categorize them
- Automatically Identifying and Classifying Malware: Speed up the analysis process.
- Generate Detection Models: A detection model has a set of rules designed to recognize specific malware traits.
- Collecting Malware Samples: Gather malware samples to create accurate detection models.
- Analyzing Malware Samples: can be done in two ways:
- Static Analysis: Examining a malware program without running it. Analysts might look at the code, file properties, and structure to identify malicious characteristics.
- Dynamic Analysis: Malware is executed in a controlled environment to observe its behavior.
- Deploying detection models in security systems to identify and prevent malware early based on known behavior patterns.
Command and Control
Infrastructure that attacks use to manage and communicate with compromised systems
- Centralized Control:
Command & Control server sends commands to the bots. The commands can be communicated through - IRC (Internet Relay Chat): uses IRC commands to issue commands
- HTTP: Commands delivered via web pages, commands are embedded in the HTML or JavaScript.
- Distributed Control:
Uses Peer-to-peer network. Commander publishes commands within P2P network. System is more resilient as there is no single point of failure - Push vs Pull:
- Push model: bot remains idle and waits for commands from commander
- Pull model: bot actively queries the commander at regular intervals to check for new tasks
Botnets
A botnet is a network of compromised computers (referred to as bots) that are controlled by a botmaster. These compromised machines can be manipulated to perform various malicious activities.
Botnets can be responsible for:
- Network probing: Scanning for vulnerabilities in networks.
- Distributed Denial of Service (DDoS) attacks: Overwhelming a target server with traffic to make it unavailable.
- Sending spam: Large-scale unsolicited emails.
- Click-fraud campaigns: Generating false clicks on advertisements to earn revenue.
- Information theft: Stealing sensitive data from victims.
Types:
- IRC Based Botnets
Bots continually connect to a central C&C server.
The botmaster (the individual controlling the botnet) sends commands to this server, which forwards them to all connected bots.
If the C&C server is isolated or taken down, the botmaster loses control over the bots. Multiple C&C servers can be used simultaneously to maintain control even if one server is compromised.

- HTTP Based Botnets
These operate similarly to IRC-based botnets but use HTTP for command delivery. Uses pull model. Difficult to block at network and DNS level
- P2P Based Botnets
Uses a P2P protocol. Bots search for keys in the network to locate proxies and connect for command execution. Workers with the best resources may be elected as proxies to relay commands between the botmaster and other bots.

Dynamic Rendezvous Points
Botnets can locate C&C servers through various methods:
- Hardcoded IP addresses.
- FastFlux networks dynamically change the IP addresses associated with a domain name
- DomainFlux, where dynamically generated URLs change over time.
- Searching for keys in a P2P network.
Preventing Rendezvous:
- Network, DNS, and HTTP Access Control Lists (ACLs).
- DDoS attacks against C&C servers.
- Clustering techniques to identify domains generated by DomainFlux.
Fast-Flux Service Networks
Consists of many agents and constantly replace problematic or offline agents, making it difficult to take down the botnet.
Multiple domains are used, so shutting down one domain is insufficient to dismantle the botnet. IP addresses resolving the domain name are cycled within seconds making it difficult for security systems to detect or takedown network
Infiltrating a Botnet
methods by which an attacker (infiltrator) could connect to a C&C server:
- They can act as a normal bot and can observe other bots connected to the server.
- Infiltrator has the ability to send commands to other bots (C&C Push)
In C&C pull, infiltrator cannot see other connected bots and cannot send commands
Rootkit (in detail)
A rootkit hides the presence of malware on a system, making it difficult for administrators or security tools to detect it.
Rootkit hijacks the flow of execution by Hooking
Types of Hooking:
- IDT (Interrupt Descriptor Table) Hooking:
IDT is a system table that manages interrupts and exceptions.
IDT hooking involves intercepting these signals by replacing the handlers (instructions for handling interrupts) with malicious code
e.g. hijacking the 0x2e handler for KiSystemService could mean redirecting certain system tasks to a malicious program instead.
⊖ It’s detectable, especially if system calls use sysenter/syscall instead of the IDT
- SSDT (System Service Descriptor Table) Hooking:
SSDT is a table that defines system calls (requests to the OS to perform specific actions). e.g. Rootkits that hijack entries in the SSDT, such as the 0x74 entry, which corresponds to NtOpenFile, can intercept or alter system calls.
⊖ Security tools can detect SSDT hooking by comparing entries with known values (e.g., if SSDT[0x74] doesn’t match NtOpenFile, it may indicate a rootkit).
- Run-time patching
Rootkit modifies multiple code points during execution, avoiding a single hook, makes detection harder(no common hooking point). Run-time patching is stealthier than IDT or SSDT hooking as it spreads changes across the system.
- DKOM (Direct Kernel Object Manipulation) Hooking:
DKOM directly modifies kernel objects. This modification happens directly in memory rather than through external hooks or patches, making it harder to detect. e.g. A DKOM rootkit can modify the data structure that tracks processes to hide malware.exe from tools like Task Manager, making it invisible despite still running.
RootKit Classification:
| Rootkit Type | Description |
| Persistent Rootkit | Remains active after reboot by embedding code in files or settings, easier to detect due to disk traces. |
| Memory-Based Rootkit | Resides only in RAM, disappearing upon reboot, making it more challenging to detect. |
| User-Mode Rootkit | Operates at the application level, altering interactions with the system, and is easier to identify due to its effect on normal applications. |
| Kernel-Mode Rootkit | Executes at the kernel level, controlling core functions and hiding processes, making it very difficult to detect. |
| Virtual Machine-Based Rootkit | Runs the OS inside a virtual machine, monitoring and manipulating behavior invisibly, extremely challenging to detect. |
| External Mode Rootkit | Hides within hardware components like BIOS or firmware, evading the OS entirely and is nearly impossible to detect with standard tools. |
User-Mode Rootkit Types:
| Type | Description |
| API Hooking Rootkits | Intercept system API calls to modify results, such as hiding their own processes when listing running applications. |
| DLL Injection Rootkits | Load malicious Dynamic Link Libraries (DLLs) into legitimate processes to execute malicious code. |
| Process Hiding Rootkits | Manipulate task managers or system utilities to make their processes invisible to users. |
| File Redirection Rootkits | Intercept file operations to change file paths or block access to certain files, concealing their presence. |