🌍 Ethical Hacking · subject
Ethical Hacking System Hacking Syllabus
The System Hacking syllabus for Ethical Hacking in full: 3 chapters and 9 topics, every one listed below, plus 50 System Hacking flashcards with answers.
System Hacking syllabus: all 3 chapters
Expand any chapter to see its topics and sub-topics.
-
Gaining Access
3 topics- Password Cracking Techniques
- Exploiting Vulnerabilities
- Privilege Escalation
-
Maintaining Access
3 topics- Rootkits
- Backdoors
- Trojan Horses
-
Covering Tracks
3 topics- Clearing Logs
- Steganography
- Anti-forensics Techniques
Ethical Hacking System Hacking flashcards — 50 questions with answers
What is password cracking in the context of system hacking?
The process of recovering or guessing passwords from stored or transmitted data — typically by comparing hashes of candidate passwords against a captured password hash until a match is found, granting unauthorized access.
Name and define the four main categories of password attacks.
1) Non-electronic (social engineering, shoulder surfing, dumpster diving); 2) Active online (guessing against a live system); 3) Passive online (sniffing, MITM, replay); 4) Offline (dictionary, brute-force, rainbow-table attacks against a captured hash file).
Compare a dictionary attack with a brute-force attack.
A dictionary attack tries a precompiled list of likely words/passwords (fast but misses non-words). A brute-force attack systematically tries every possible character combination (guaranteed to succeed eventually but exponentially slow).
What is a rainbow table and what problem does it solve?
A precomputed table of plaintext-to-hash chains that trades storage for speed, letting an attacker reverse a hash to its plaintext far faster than brute force. It is defeated by salting.
How does a password salt defeat rainbow-table attacks?
A salt is a unique random value appended to each password before hashing, so identical passwords produce different hashes. This makes precomputed tables useless because a separate table would be needed for every possible salt.
For an alphabet of size $N$ and password length $L$, what is the size of the brute-force keyspace?
$$K = N^{L}$$ The number of possible passwords grows exponentially with length $L$.
Give the formula for the average time to brute-force a password given keyspace $K$ and guess rate $R$ (guesses per second).
On average an attacker tries half the keyspace, so $$t_{avg} = \frac{N^{L}}{2R}$$
What is a hybrid password attack?
An attack that starts from dictionary words and applies systematic mutations (appending digits, symbols, case changes, leetspeak) — bridging pure dictionary and brute-force attacks.
What is password spraying and how does it evade lockouts?
Trying a few common passwords (e.g., 'Password123') across many accounts rather than many passwords against one account. By keeping attempts-per-account low, it stays under account-lockout thresholds.
Distinguish LM hashes from NTLM hashes in Windows.
LM (LAN Manager) is weak: it uppercases the password, splits it into two 7-character halves hashed independently with DES, so it is easily cracked. NTLM uses the MD4 hash of the full Unicode password and is case-sensitive and much stronger (though still unsalted).
What is a pass-the-hash (PtH) attack?
An attack where the attacker authenticates to a remote service using a captured NTLM hash directly, without ever cracking it to plaintext, because NTLM authentication uses the hash itself.
What does 'exploiting a vulnerability' mean in system hacking?
Using a piece of code, data, or a technique (an exploit) that takes advantage of a security flaw (bug, misconfiguration, or design weakness) to cause unintended behavior — typically to gain access, execute code, or escalate privileges.
Define the terms vulnerability, exploit, and payload.
Vulnerability = the weakness/flaw. Exploit = the technique or code that leverages the weakness. Payload = the code that runs after successful exploitation (e.g., a reverse shell or Meterpreter).
What is a zero-day vulnerability?
A vulnerability that is unknown to the vendor (or has no available patch), giving defenders zero days to fix it before it can be exploited in the wild.
How does a buffer overflow exploit typically achieve code execution?
By writing more data into a buffer than it can hold, overwriting adjacent memory including the saved return address on the stack, redirecting execution to attacker-controlled shellcode.
What is the difference between a stack-based and a heap-based buffer overflow?
Stack-based overflows overwrite local variables and the return address on the call stack. Heap-based overflows corrupt dynamically allocated memory and its management metadata to hijack control flow.
What common measures mitigate buffer-overflow exploitation?
Non-executable stack/DEP (Data Execution Prevention), ASLR (Address Space Layout Randomization), stack canaries, and bounds-checking / safe functions.
What is the CVSS score and its numeric range?
The Common Vulnerability Scoring System rates a vulnerability's severity on a scale from $0.0$ to $10.0$, where higher values indicate greater severity (0.0 None, 0.1–3.9 Low, 4.0–6.9 Medium, 7.0–8.9 High, 9.0–10.0 Critical).
Define privilege escalation and its two main types.
Privilege escalation is gaining rights beyond those originally granted. Vertical (privilege elevation) = moving from a low-privilege account to a higher one (e.g., user to root/admin). Horizontal = accessing another user's resources at the same privilege level.
Give three common Linux privilege-escalation vectors.
Misconfigured SUID/SGID binaries, exploitable sudo rules (or NOPASSWD misconfig), writable cron jobs/PATH, and kernel vulnerabilities.
Show the other 30 System Hacking flashcards
What is a SUID bit and why is it relevant to privilege escalation on Linux?
The SUID (Set User ID) permission bit makes an executable run with the file owner's privileges (often root) rather than the caller's. A vulnerable or misconfigured SUID-root binary can be abused to execute commands as root.
Name two common Windows privilege-escalation techniques.
Abusing unquoted service paths, weak service permissions (modifiable binaries), DLL hijacking, always-install-elevated policy, and token impersonation (e.g., SeImpersonatePrivilege / Potato attacks).
What is a rootkit?
Stealthy malware designed to gain and maintain privileged (root/administrator) access while hiding its own presence — and often other malware — from the operating system, users, and security tools.
List the major types of rootkits by the layer at which they operate.
User-mode (application), Kernel-mode (ring 0, hooks OS structures), Bootloader/bootkit (infects MBR/VBR/boot process), Hypervisor/virtualized (runs beneath the OS), Firmware/hardware (BIOS/UEFI, device firmware), and Library-level rootkits.
Why are kernel-mode rootkits harder to detect than user-mode rootkits?
They run at the same privilege level (ring 0) as the OS and security software, so they can hook or patch kernel data structures (e.g., via DKOM) to intercept and falsify the very API calls detection tools rely on.
What is DKOM in the context of rootkits?
Direct Kernel Object Manipulation — a technique where a rootkit directly modifies kernel data structures (like the process list) in memory to hide processes, drivers, or ports without altering code paths.
What is a backdoor?
A covert method of bypassing normal authentication to gain remote access to a system, planted so the attacker can return later even if the original vulnerability is patched.
How does a backdoor differ from a rootkit?
A backdoor provides a persistent hidden access channel into the system; a rootkit's primary purpose is to hide activity/presence and maintain privilege. They are often combined (a rootkit conceals a backdoor).
Contrast a bind shell with a reverse shell.
A bind shell opens a listening port on the victim that the attacker connects to (blocked by inbound firewalls/NAT). A reverse shell has the victim connect outbound to the attacker's listener, bypassing inbound filtering and NAT.
What is a Trojan horse?
Malware disguised as legitimate or desirable software that, once run by the user, executes hidden malicious functions such as installing a backdoor, stealing data, or damaging the system.
How does a Trojan differ from a virus and a worm?
A Trojan relies on the user to run it and does not self-replicate. A virus attaches to a host file and spreads when that file runs. A worm self-replicates and spreads across networks autonomously without a host file or user action.
List common categories of Trojans by function.
Remote Access Trojans (RATs), backdoor Trojans, banking/credential-stealing Trojans, downloader/dropper Trojans, keyloggers, botnet Trojans, ransomware Trojans, and DDoS Trojans.
What is a wrapper (binder) in the context of Trojans?
A tool that combines a Trojan payload with a legitimate executable into a single file, so running the seemingly benign program also silently installs the Trojan.
What is a RAT (Remote Access Trojan)?
A Trojan that gives an attacker full remote control over the infected machine — file access, keylogging, webcam/mic capture, command execution — typically through a covert command-and-control channel.
Why is clearing logs a key step after a system compromise?
It removes forensic evidence of the intrusion (logins, commands, file changes), helping the attacker evade detection and hindering incident response and attribution — part of the 'covering tracks' phase.
Which Windows event logs does an attacker typically target when covering tracks?
The Security, System, and Application event logs (viewed via Event Viewer, stored as .evtx files), often cleared with tools like wevtutil, clearev (Meterpreter), or PowerShell.
On a Linux system, which log files and artifacts are commonly cleared or manipulated to hide activity?
/var/log/auth.log (or secure), /var/log/syslog, /var/log/wtmp, /var/log/btmp, /var/log/lastlog, and the shell history file (~/.bash_history).
Why is selectively editing logs stealthier than deleting them entirely, and what defends against both?
Wholesale deletion or an empty/gapped log is itself a red flag, whereas removing only incriminating entries is less obvious. Remote/centralized log forwarding (SIEM/syslog server) and append-only/immutable logs defend against local tampering.
What is steganography?
The practice of hiding a secret message inside a non-secret carrier (image, audio, video, text) so that the very existence of the communication is concealed.
How does steganography fundamentally differ from cryptography?
Cryptography hides the meaning of a message (it is visibly encrypted); steganography hides the existence of the message (the carrier looks ordinary). They are often combined for defense in depth.
Describe the LSB (Least Significant Bit) steganography technique.
Secret data bits are embedded into the least significant bit of each pixel's color value (or audio sample). Because changing the LSB alters the value by at most 1, the visual/audible difference is imperceptible.
Define the terms cover, payload/embedded message, and stego-object in steganography.
Cover (carrier) = the original innocent file; payload/embedded message = the secret data to hide; stego-object = the resulting file containing the hidden data after embedding.
What is steganalysis?
The countermeasure to steganography: the science of detecting, and ideally extracting or destroying, hidden data within carrier files, often via statistical analysis of anomalies (e.g., LSB distribution).
State the steganographic capacity of LSB embedding for an image with $P$ pixels using $c$ color channels and 1 bit per channel.
$$C = \frac{P \times c}{8} \ \text{bytes}$$ For example, a $1000 \times 1000$ RGB image holds about $\frac{10^{6} \times 3}{8} = 375{,}000$ bytes.
What are anti-forensics techniques?
Methods used to obstruct, mislead, or defeat digital forensic investigation — by destroying, hiding, altering, or fabricating evidence, or by attacking the forensic tools/process themselves.
List the major categories of anti-forensics techniques.
Data destruction (wiping), data hiding (steganography, hidden partitions, ADS), encryption, trail obfuscation (log/timestamp manipulation), artifact wiping (secure deletion of specific traces), and attacks against forensic tools.
What is timestomping?
An anti-forensics technique that alters a file's MACE timestamps (Modified, Accessed, Created, Entry-modified) to hide when it was actually created or changed and break investigators' timelines.
What are NTFS Alternate Data Streams (ADS) and how are they abused?
ADS let an NTFS file carry additional hidden data streams besides its main content. Attackers hide malware or data in a stream (e.g., file.txt:hidden.exe) that does not appear in normal directory listings or affect the visible file size.
Why does simply deleting a file not remove its data, and what technique reliably destroys it?
Deletion only unlinks the directory entry and marks the space free; the raw data remains until overwritten and is recoverable via forensics. Secure wiping (overwriting with random/zero patterns, possibly multiple passes) or full-disk encryption is needed to truly destroy it.
How does full-disk encryption serve as an anti-forensics measure?
Without the key, the entire disk appears as unreadable ciphertext, so investigators cannot access files, metadata, or slack space. It shifts the challenge from data recovery to key recovery.
Ethical Hacking System Hacking FAQ
What is in the Ethical Hacking System Hacking syllabus?
Ethical Hacking System Hacking is split into 3 chapters: Gaining Access, Maintaining Access and Covering Tracks. Together they contain 9 topics.
How many chapters are in Ethical Hacking System Hacking?
3 chapters, containing 9 topics. The largest chapter is Gaining Access, with 3 topics.
Are there flashcards for Ethical Hacking System Hacking?
Yes — a 50-card System Hacking deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.