Malware

Software designed to infiltrate a computer system without users knowledge.

Threat Vector: Specific method used by an attacker to infiltrate a victim machine (Breaks into the system).

Attack Vector: Means by which attacker gains access to a system to infect it with malware (Breaks into and infects the system).

Viruses

Malicious code run on a machine with user’s knowledge that allows code to infect the computer it is run on.

Types:

  1. Boot Sector: Stored in first sector of a hard drive and is then loaded into memory whenever the computer boots.
  2. Macro: Form of code that allows a virus embedded inside another document so that when it is opened, the virus is executed.
  3. Program: Tries to find executables or application files to infect with their malicious code.
  4. Multipartite: Combination of boot sector and program virus. Even if part of the virus is cleaned, they may miss it in the boot sector, etc.
  5. Encrypted: Hides itself from being detected by encrypting its malicious code/payloads.
  6. Polymorphic: Advanced version of encrypted virus that changes virus code each time it is executed by altering decryption module in order to evade detection.
  7. Metamorphic: Rewrites itself entirely before it attempts to infect a file (essentially more advanced than polymorphic).
  8. Stealth: Not really a virus, but a technique used to prevent detection by antivirus software.
  9. Armor: Have a layer of protection to confuse a program/person analyzing it.
  10. Hoax: Form of technical social engineering that attempts to scare end users into performing an action.

Worms

Malicious software that can replicate itself without user interaction.

Worm vs. Virus: A worm does not need user consent.

Dangers:

  1. Can infect workstation and other computer assets.
  2. Can cause disruptions to network traffic because they are constantly trying to replicate (Denial of Service).

Trojans

Piece of malicious software disguised as a piece of harmless or desirable software.

Remote Access Trojan (RAT)

Trojan that provides attacker with remote control of victim machine.

Ransomware

Malware designed to block access to system or its data by encrypting it until a random is paid.

Defense:

  1. Regularly backup all important data, files, and systems.
  2. Update all software, especially Operating Systems and Antivirus programs.
  3. Security user awareness.
  4. Use Multi-Factor Authentication.

Response:

  1. Never pay the ransom. Does not guarantee data. Encourages other attackers to attack you.
  2. Disconnect machines from network immediately.
  3. Notify authorities if in line with organization instant response processes.
  4. Restore from backup after ransomware removed.

Zombies & Botnets

Botnet: Network of computers or devices controller remotely by malicious actors.

Zombies: A computer or device that is part of a botnet and used to perform tasks using remote commands.

Command and Control Node (C2): Responsible for managing and coordinating the activities of other nodes or devices within a network.

Examples: using botnet for file storage, spamming others by sending out phishing campaigns/other malware, DDoS (most common), cryptomining, compute-heavy tasks.

Rootkits

Designed to gain admin-level control over a computer/system without being detected.

DLL Injection: Technique used to run arbitrary code within the address space of another process by forcing it to load a dynamic-link library.

Shim: Software code that is placed between two components (e.g., Windows OS <–> Shim <–> DLL Injection).

Detection: Boot from an external drive and scan the disk.

Backdoors & Logic Bombs

Backdoor: Used to bypass normal security and authentication functions.

Easter Egg: Insecure coding practice that was used by programmers to provide a joke or gag gift to the users.

Logic Bomb: Malicious inserted into a program that only executes when certain conditions are met.

Keyloggers

Records every single keystroke made on a computer or mobile device.

Can lead to:

  1. Identity theft
  2. Financial fraud
  3. Corporate espionage

Defense:

  1. Regular updates and patches
  2. Quality Antivirus and antimalware solutions
  3. Phishing awareness training
  4. Multi-Factor Authentication
  5. Encrypt keystrokes being sent to systems
  6. Physical checks of desktops/laptops/servers

Spyware and Bloatware

Spyware: Designed to gather and send information about a user or organization.

Typical Install Methods:

  1. Bundled with other software
  2. Installed through malicious website
  3. Deceptive pop-up advertisement

Bloatware: Any software that comes preinstalled on a new computer.

Removal:

  1. Manual removal process
  2. Bloatware removal tools
  3. Clean operating system installation

Malware Attack Techniques

Specific Method by which malware infects a target host.

Fileless Malware: Creates process in system memory without relying on local file system of infected host.

Example: typical two-stage attack

Stage 1: Dropper/Downloader

Stage 2: Downloader & “Actions on Objective” & Concealment

Delivery Methods:

  1. Code Injection
  2. DLL Sideloading
  3. Masquerading
  4. Process Hollowing
  5. DLL Injection

“Living off the Land”: Use standard system tools to intrude (e.g., Powershell). Used by many Advanced Persistent Threats.

Indications of Malware Attacks

  1. Account lockouts
  2. Concurrent session utilization
  3. Blocked content (e.g., sudden increase in requests for blocked content).
  4. Impossible travel (in terms of geographic distance).
  5. Resource consumption (spikes in CPU, memory, network utilization).
  6. Resource inaccessibility (e.g., ransomware).
  7. Out-of-cycle logging (logs being generated at odd times).
  8. Missing logs (or fewer logs at peak hours).
  9. Published or documented attacks (the final way of finding out).