Modern computing systems operate in an environment of constant adversarial pressure. As software architectures have grown in complexity, the attack surface available to unauthorized actors has expanded correspondingly. Malicious software and unauthorized intrusions represent the primary mechanisms through which the core security goals of confidentiality, integrity, and availability are compromised. Defending modern networks requires a deep mechanical understanding of how unauthorized code infects host systems, conceals its presence from detection engines, and replicates across distributed infrastructure. Security engineering treats malicious software not as an unpredictable anomaly, but as executable logic engineered to exploit architectural assumptions within hardware, operating systems, and network protocols. Whether an attack takes the form of a parasitic binary injection, an automated network-layer worm, or a stealthy kernel-level implant, the underlying execution patterns follow deterministic rules. Analyzing these programmatic structures enables engineers to design rigorous detection frameworks, build robust runtime sandboxes, and construct effective intrusion detection systems. This chapter establishes a comprehensive foundation in the taxonomy, anatomy, and behavior of malicious software, followed by the defensive architectures designed to monitor, intercept, and analyze system intrusions. Understanding these principles allows practitioners to model threat behavior accurately and deploy defensive controls that operate effectively across host operating systems and enterprise networks.
1. Malicious Software
Malicious software represents any program, script, or binary routine deliberately introduced into a computing system to perform unauthorized operations that violate the system owner's security policy. This topic explores the technical taxonomy of malware by examining its core characteristics, the vectors through which it gains initial execution, and the payload functions it detonates. We then analyze the overarching objectives driving malware development and classify the primary families of unauthorized code operating across modern platforms.
Definition of Malicious Software
Malicious software, commonly contracted as malware , is defined in computer science as code intentionally inserted into an information system to compromise the confidentiality, integrity, or availability of the host data, applications, or operating system. The distinguishing boundary of malware lies strictly in human developer intent rather than execution failure. Unintentional programming flaws, memory leaks, and logic errors constitute software bugs; they may introduce security vulnerabilities, but they do not qualify as malware because they lack an intentional adversarial objective. Malware encompasses any software component whose primary architectural design is to execute operations without the informed consent of the system owner. Standard bodies such as the National Institute of Standards and Technology (NIST Special Publication 800-83) formalize malware as a program that is covertly inserted into another program with the intent to destroy data, run destructive or intrusive programs, or otherwise compromise the security of the host. In theoretical computer science, malware represents an unauthorized state transition function applied to the host machine's memory, file system, or network interface. The code executes within an acquired processor privilege context, using standard operating system application programming interfaces (APIs) or direct system calls to alter system state. Because malware utilizes the exact same hardware instructions and processor pipelines as legitimate applications, an operating system cannot inherently distinguish malicious execution from benign operations based solely on CPU execution. Detection therefore demands external behavioral observation, static structural inspection, or cryptographic integrity verification.