Malicious Activity

Denial of Service

Denial of Service (DoS): Attack that attempts to make a computer/server’s resources unavailable.

Types:

Distributed Denial of Service

More machines are used to launch an attack simultaneously against a single server to create DoS condition.

DNS Amplification Attack

Specialized DDoS that allows an attacker to initiate DNS requests from a spoofed IP address to flood a website. Amplified because the request from Bot to DNS server is small, but the request from the DNS server to the User is full of information.

Mitigations

DNS Attacks

DNS Translates domain names into IP addresses.

Example: Hijack v. Transfer

Domain Hijacking changes the domain registration (ownership status) at the registrar level.

DNS Zone Transfer steals the entire zone file (DNS records mapping) by exploiting AXFR requests.

Directory Traversal Attack

Type of injection attack that allows access to commands, files, and directories; either connected to web document root directory or not (e.g., example.com/../../etc/shadow).

File Inclusion

Allows attacker to either download files from arbitrary location or upload an executable or script file to open a backdoor.

Exam Tip: If you see ../ in logs, think of directory traversal or file inclusion.

Execution and Escalation Attacks

Replay Attacks

Type of network based attack that involves maliciously repeating or delaying valid data transmissions.

Session Hijack v. Replay Attack: Session Hijack is when attacker alters real-time data transmission; replay attack is when attacker intercepts data and decides whether to retransmit it later.

Mitigation

Use session tokens and Multi-Factor Authentication for unique authentication ID. Use latest security protocols like WPA3.

Session Hijacking

Session Management: Fundamental security component that enables web applications to identify a user.

Session Hijacking: Type of spoofing attack where host is disconnected and replaced by the attacker.

Cookie Poisoning: Modifying the contents of a cookie to be sent to a client’s browser and exploit the vulnerabilities in an application.

On-Path Attacks

On-path Attack: Attack where penetration tester puts the workstation logically between two hosts during communications.

Replay and Relay

Downgrade

Injection Attacks

LDAP Injection

Lightweight Directory Access Protocol (LDAP): Protocol for access and maintenance of distributed directory information services. LDAP Injection: Attack where LDAP statements, typically created by user input, are fabricated.

Command Injection

Command Injection: Threat actor able to execute arbitrary shell commands via vulnerable web application. Mitigation: Input validation and sanitization.

Process Injection

Method of executing arbitrary code in the address space of a separate live process.

Indicators of Compromise (IoC)

Data pieces that detect potential malicious activity on a network or system. Not all signs of compromise guarantee an actual breach.

  1. Account lockouts: Signals compromise when triggered by numerous failed login accounts.
  2. Concurrent session usage: One user having multiple active sessions.
  3. Blocked content: When users try to access or download content that security measures have prevented.
  4. Impossible travel: When suspicious logins occur from distant locations in a timeframe that makes physical travel between them impossible.
  5. Resource consumption: Unusual resource spikes can signal a compromise (e.g., DDoS, botnet).
  6. Resource inaccessibility: Inability to access certain resources, files, databases, or network services.
  7. Out-of-cycle logging: Logging events happening at odd times when no one is supposed to be active.
  8. Missing logs: Attackers deleting logs to cover their tracks and hinder investigation.