Notes / Module 1
Threats, Vulnerabilities & Attacks
This module is the catalogue of what can go wrong: where attackers get in, who they target, and the named attacks behind each route. Checkpoint questions mostly ask you to name, tell apart and match these attacks.
1.1Threat domains and categories
A threat domain is an area of control, authority or protection that an attacker can exploit to reach a system. Attackers have eight routes into a domain.
- Physical
- Direct access to systems and networks.
- Wireless
- Signal that reaches beyond the building.
- Bluetooth / NFC
- Short-range devices.
- Malicious attachments.
- Supply chain
- The least secure link in the chain.
- Social media
- Accounts used as an entry point.
- Removable media
- Flash drives.
- Cloud
- Cloud applications.
Threats fall into eight categories. Sorting threats this way lets you judge likelihood and monetary impact, so security effort can be prioritised.
| Category | Example |
|---|---|
| Software attacks | DoS, a virus |
| Software errors | A bug, an app going offline |
| Sabotage | An authorised user wrecks the database |
| Human error | Data entry mistake, firewall misconfiguration |
| Theft | Laptop taken from an unlocked room |
| Hardware failure | A drive crash |
| Utility interruption | Power cut, sprinkler flood |
| Natural disaster | Storm, quake, flood, fire |
Internal threats come from current and former staff, contractors and partners mishandling data, accidentally or deliberately (infected media, malicious mail). External threats come from amateur or skilled outsiders who exploit device vulnerabilities or use social engineering.
Internal threats are usually worse because insiders already have the access and the knowledge:
- Direct access to premises and infrastructure devices.
- They know the network, its resources and its confidential data.
- They know the countermeasures in place.
1.1Threats by domain: user, device, LAN, cloud, applications
Each part of an organisation has its own typical threats. The user is the weakest link: no control makes a system more secure than the behaviour of the people using it.
| Domain | Common threats |
|---|---|
| User | No security awareness; poorly enforced policies; data theft; unauthorised downloads and media; unauthorised VPNs (encryption hides the exfiltration); unauthorised websites (scripts, adware, device takeover); destruction of systems, applications or data |
| Device | Left powered on and unattended; downloads from unreliable sources; unpatched software; new viruses, worms and malware daily; unauthorised USB drives, CDs, DVDs; deliberate policy violations; outdated hardware or software |
| LAN | Access to wiring closets, data centres, computer rooms; unauthorised access to systems, applications and data; NOS and software vulnerabilities and missing updates; rogue users on the wireless network; exploits of data in transit; mixed server hardware and OS; probing and port scanning; misconfigured firewalls |
| Private cloud | Unauthorised probing and port scanning; unauthorised access to resources; OS and software vulnerabilities in routers, firewalls and network devices; configuration errors on those devices; remote users downloading sensitive data |
| Public cloud | Data breaches; loss or theft of intellectual property; compromised credentials or account hijacking; social engineering; compliance violations |
| Application | Access to data centres, computer rooms, wiring closets; server downtime during maintenance; network OS vulnerabilities; data loss; client-server and web app development vulnerabilities |
A private cloud is one organisation's own resources. A public cloud is provider services shared across organisations, in three models: SaaS, PaaS and IaaS. SaaS is subscription software hosted centrally and reached by browser or app, not stored locally. In the public cloud the provider secures the cloud; you secure your own resources on it.
1.1Advanced threats and threat intelligence
- APT
- Advanced persistent threat: a continuous, well-funded attack that stays undetected for a long time. It uses elaborate espionage tactics, multiple actors and sophisticated malware, and targets governments and high-level organisations.
- Algorithm attack
- Abuses algorithms in legitimate software to force unintended behaviour. Energy-reporting data can pick targets or trigger false alerts; a machine can be disabled by exhausting RAM or overworking the CPU.
- Backdoor
- Bypasses authentication. Examples: Netbus and Back Orifice.
- RAT
- Remote administrative tool: how a backdoor gets installed when the user unknowingly runs it. It gives the criminal administrative control and survives the original vulnerability being patched.
- Rootkit
- Modifies the OS to create a backdoor, then hides by altering forensics and monitoring tools. It uses privilege escalation and modifies system files, so it is very hard to detect; usually the machine must be wiped and rebuilt.
Defenders share what they learn. The CVE list (Common Vulnerabilities and Exposures) is the public dictionary of known flaws, sponsored by US-CERT and DHS and maintained by the MITRE Corporation. Each entry has an ID number, a description and references.
The dark web is encrypted content that search engines don't index; it needs special software or authorisation. Researchers monitor it for new threat intelligence. Closed source intelligence needs a paid subscription, while OSINT (open source intelligence) is publicly available; sharing is growing across government, universities, healthcare and business.
IOCs (indicators of compromise) are evidence of a breach, such as malware signatures, domain names and file hashes. AIS (Automated Indicator Sharing) shares them in real time, using the structured languages STIX and TAXII.
1.3Malware and network attacks
Malware is any code that steals data, bypasses controls or harms a system. Three kinds are told apart by how they spread or hide.
| Type | Behaviour |
|---|---|
| Virus | Inserts its code into other files |
| Worm | Replicates independently via network vulnerabilities |
| Trojan horse | Malicious operations behind a legitimate front |
A logic bomb is dormant code that fires on a trigger such as a date or a database entry. It sabotages records, erases files or attacks the OS; newer ones destroy hardware by overdriving fans, CPU, memory, drives and power supplies until they fail.
Ransomware encrypts your data and holds it hostage until you pay, via an untraceable system. Many victims never get their data back. It spreads through phishing attachments or a software vulnerability.
A DoS attack comes in two forms: an overwhelming quantity of traffic, or maliciously formatted packets the receiver can't process. Either way the result is a slowdown or crash. A DDoS is built from zombies (infected hosts) controlled by handler systems. The zombies scan and infect more hosts, and on command the whole botnet attacks at once.
| Attack | How it works |
|---|---|
| DNS spoofing / cache poisoning | False data planted in a resolver's cache (the record of recent lookups) redirects a domain to the attacker; exploits a weakness in DNS software |
| Domain hijacking | Attacker takes over the administrator's email, which is public in the WHOIS record, by social engineering or hacking the mailbox, then makes unauthorised DNS changes |
| MAC spoofing | Pose as a valid device to bypass authentication |
| ARP spoofing | A forged ARP binds the attacker's MAC to a real IP |
| IP spoofing | Packets sent from a forged source address |
| MAC flooding | Flood the switch with fake MAC addresses until its table is overwhelmed, compromising its security and the data it forwards |
| MitM | Take control of a device unnoticed; intercept, manipulate and relay false information |
| MitMo | The mobile version; exfiltrates sensitive data. ZeuS captures two-step verification SMS |
| Replay | Capture a message and send it again to bypass authentication |
| Zero-day | Exploits a flaw before the vendor knows or has patched it; the window runs from zero hour to patch release |
| Keylogging | Records every keystroke (software on the system or hardware attached) and mails the log out; reveals usernames, passwords, sites visited |
Keylogging also has legitimate uses, such as parental monitoring, and anti-spyware suites detect and remove it. Defending against a zero-day needs a holistic view of the network architecture.
Defending against network attacks:
- Firewalls drop outside packets claiming internal addresses.
- Keep patches and upgrades current.
- Distribute the workload across servers.
- Block external ICMP to blunt DoS and DDoS.
1.4Wireless and mobile attacks
Grayware is annoying or undesirable behaviour that is technically legitimate, e.g. location tracking, legitimised in the small print of the licence. SMiShing is phishing by text message, with fake texts pushing a malicious site or fraudulent number.
A rogue access point is an access point on a secure network that nobody authorised. Even a well-meaning employee's AP creates a way in, and attackers use social engineering to get the physical access to plant one. An evil twin is a lookalike hotspot with a stronger signal that watches everything you do.
RF jamming drowns the signal so it never reaches the receiver; the jammer's frequency, modulation and power must match the target. Wireless is also prone to EMI, RFI, lightning and fluorescent noise.
Bluetooth is a short-range, low-power personal area network protocol (mobiles, laptops, printers) that uses pairing. Both attacks below need the attacker within Bluetooth range.
| Attack | Direction | Effect |
|---|---|---|
| Bluejacking | Sends TO you | Unauthorised messages or shocking images |
| Bluesnarfing | Takes FROM you | Copies emails and contact lists off the device |
WEP failed for two reasons: the key was shared ever more widely with no way to manage it, and the initialisation vector was too small, readable and static. WPA, then WPA2, replaced it; with WPA2 the key can't be recovered by watching traffic.
Wi-Fi and mobile defence:
- Change default settings; enable authentication and encryption.
- Place APs outside the firewall or in a DMZ.
- Use WLAN tools such as NetStumbler to find rogue APs.
- Write a guest access policy.
- Employees use a remote-access VPN for the WLAN.
1.5Application, email and browser attacks
| Attack | What it is |
|---|---|
| XSS | Malicious script injected into a page runs in the victim's browser, steals cookies, session tokens and sensitive data, and sends them back so the criminal can impersonate the user |
| XML injection | Corrupts the XML database via a manipulated query |
| SQL injection | Malicious SQL statement in an entry field |
| DLL injection | App tricked into calling a malicious DLL |
| LDAP injection | Queries injected into directory servers |
| Buffer overflow | Data written past a buffer's limit reaches memory belonging to other processes |
| RCE | Remote code execution: run commands with the running user's privileges |
| Privilege escalation | Exploits a bug, design flaw or misconfiguration to reach restricted resources |
| CSRF | Unauthorised commands sent from your browser to a site that trusts you, via crafted image tags, hidden forms or JavaScript, without your knowledge |
| Race condition | Force a system to do two ordered operations at the same time (TOC/TOU, time of check / time of use), e.g. two threads changing shared data at once |
| Directory traversal | Read server files outside the site directory; exposes config files and can lead to server takeover |
| Resource exhaustion | Overwhelms hardware, not bandwidth |
The four code injection attacks (XML, SQL, DLL, LDAP) all come from unvalidated input. A buffer overflow causes a crash, data compromise or privilege escalation, can give an attacker complete control of the device, and accounts for nearly half of all program exploits according to Carnegie Mellon.
Metasploit Framework develops and runs exploit code on remote targets. Meterpreter is its payload, loaded into a running process and run from memory, never the hard drive, so it evades antivirus. It also has a module for controlling the webcam.
The first line of defence for applications is solid code: validate everything coming from outside a function. Keep the OS and applications up to date, because not every program updates automatically.
Spam shows itself through: no subject line, a request to update account details, misspellings or strange punctuation, long or cryptic links, a legitimate look with tiny differences, and an urgent request to open an attachment.
| Attack | Aim |
|---|---|
| Phishing | Masquerades as a legitimate person or organisation |
| Spear phishing | Customised from your interests, activities and projects |
| Vishing | Voice phishing via spoofed VoIP or recorded messages |
| Pharming | Misdirects you to a fake version of a real site |
| Whaling | Targets executives, politicians, celebrities |
Defending against email and browser attacks: ISPs filter most spam before it arrives; antivirus and email software remove dangerous spam; educate employees about unsolicited mail; always scan attachments, even from trusted contacts; join the APWG (Anti-Phishing Working Group); keep all software patched.
Four modern attack surfaces go beyond the browser:
- Physical
- Malicious USB drives, doctored cables, card skimming.
- Adversarial AI
- Tainted data corrupts machine-learning predictions.
- Supply chain
- Intercept third-party parts, software or agreements.
- Cloud-based
- Target data, apps and platforms hosted off-site.
Check yourself
Answer these out loud, without scrolling up. Any you can't, reread that section — then let the deck mark you.
- 1.Name the eight routes an attacker can use into a threat domain.
- 2.Why are internal threats usually worse than external ones?
- 3.Tell apart a virus, a worm and a Trojan horse.
- 4.How is a DDoS botnet built, from zombies to the attack command?
- 5.What is the difference between bluejacking and bluesnarfing?
- 6.How does phishing differ from spear phishing, vishing, pharming and whaling?
1.2Social engineering
Social engineering is a non-technical attack on people, not on software. It manipulates people into acting or revealing information, and exploits their willingness to help, greed or vanity.
Counters: ATM screens are viewable only at certain angles to defeat shoulder surfing; shred documents or use burn bags against dumpster diving; a mantrap, where the outer door closes before the inner opens, stops tailgating. Tailgaters appear to be escorted in, join a crowd, or target someone careless about the rules.
Attackers lean on seven tactics:
Five more deception methods:
Defence is mostly behaviour: