Cybersecurity is the practice of protecting digital systems, networks, applications, and data from unauthorized access, theft, misuse, modification, disruption, or destruction. It is the digital slice of information security: infosec covers every form of information (paper, people, buildings), while cybersecurity focuses on what lives in computers and networks. IT security sits in between, protecting the hardware, software, and networks that make up an organization's IT.

The goals are the CIA triad:

  • Confidentiality: only authorized people can see the data
  • Integrity: data is not altered without authorization
  • Availability: systems and data are there when needed

Malware

Malicious software that runs on a victim's system.

  • Viruses and worms: viruses attach to files and need a user to run them; worms spread on their own across networks
  • Trojans: software that looks legitimate but hides a payload
  • Ransomware: encrypts files (often also steals them) and demands payment
  • Spyware and keyloggers: record activity, keystrokes, and credentials
  • Rootkits and bootkits: hide deep in the OS or boot process to stay undetected
  • Botnets: infected machines controlled remotely, used for DDoS and spam
  • Fileless malware: runs in memory or abuses built-in tools (PowerShell, WMI) so there is no file to scan
  • Cryptojacking: secretly uses your CPU/GPU to mine cryptocurrency
  • Wipers: destroy data instead of ransoming it

Social engineering and phishing

Attacks that target people instead of machines.

  • Phishing: fake emails that trick you into clicking a link, opening a file, or entering credentials
  • Spear phishing and whaling: targeted at a specific person, or at executives
  • Smishing and vishing: the same trick over text message or phone call
  • Quishing: malicious QR codes
  • Business email compromise (BEC): impersonating a boss or vendor to request a wire transfer or invoice change
  • Pretexting: inventing a believable story (IT help desk, auditor) to extract information
  • Baiting: free downloads or infected USB drives left as lures
  • Watering hole: compromising a site the target group already visits
  • Deepfakes and voice cloning: AI-generated audio or video of someone you trust
  • MFA fatigue: spamming push approvals until the user taps "accept"

Network attacks

Attacks on traffic and the devices that carry it.

  • Reconnaissance and port scanning: mapping hosts, open ports, and services before an attack
  • Denial of service (DoS) and DDoS: flooding a target so legitimate users can't reach it
  • Man-in-the-middle (MITM): sitting between two parties to read or alter their traffic
  • Packet sniffing: capturing unencrypted traffic
  • ARP and DNS spoofing/poisoning: redirecting traffic to the attacker's machine or site
  • Session hijacking and replay attacks: stealing or reusing a valid session or captured message
  • Rogue access points and evil twins: fake Wi-Fi networks that mimic a real one
  • VLAN hopping: jumping from one network segment to another
  • BGP hijacking: rerouting internet traffic at the routing level

Web application attacks

Flaws in websites, web apps, and APIs.

  • SQL injection (SQLi): sneaking database commands into input fields
  • Cross-site scripting (XSS): injecting scripts that run in other users' browsers
  • Cross-site request forgery (CSRF): tricking a logged-in user's browser into sending an unwanted request
  • Server-side request forgery (SSRF): making the server fetch internal resources for the attacker
  • Broken authentication and access control: skipping login, or reaching data you shouldn't (IDOR)
  • Directory/path traversal: reading files outside the intended folder with ../
  • Unrestricted file upload: uploading a script that the server then runs
  • Insecure deserialization: feeding crafted objects to an app that trusts them
  • API abuse: missing rate limits, exposed endpoints, leaky responses
  • Clickjacking: hiding a clickable element under a harmless-looking page

Credential and identity attacks

Stealing or guessing the keys instead of picking the lock.

  • Brute force: trying every possible password
  • Password spraying: trying a few common passwords against many accounts
  • Credential stuffing: reusing username/password pairs leaked from other breaches
  • Pass-the-hash and Kerberoasting: abusing Windows/Active Directory authentication material
  • Session token and cookie theft: bypassing login (and MFA) by stealing an active session
  • SIM swapping: taking over a phone number to intercept SMS codes
  • Privilege escalation: turning a low-level account into admin/root
  • Default or hardcoded credentials: factory logins nobody changed
  • Password cracking: recovering passwords from stolen hashes offline

Cloud, supply chain, and wireless

  • Misconfigured cloud storage: public buckets, open databases, overly broad permissions
  • Exposed secrets: API keys and passwords committed to code repositories
  • Supply chain attacks: poisoned updates or dependencies; typosquatted packages
  • Third-party and MSP compromise: breaching a vendor to reach its customers
  • Unpatched vulnerabilities: known flaws that were never fixed
  • Zero-day exploits: attacks on flaws the vendor doesn't know about yet
  • IoT devices: cameras, routers, and smart gadgets with weak or default security
  • Wi-Fi attacks: deauthentication floods, WPA handshake cracking, weak or open networks
  • Bluetooth attacks: pairing abuse and eavesdropping on nearby devices

Insider and human threats (digital)

  • Malicious insiders: employees copying data or sabotaging systems before they leave
  • Negligent insiders: clicking phishing links, misdirected emails, losing devices
  • Excessive permissions: users with more access than their job needs
  • Orphaned accounts: logins of former employees or contractors that were never disabled
  • Shadow IT: unapproved apps and cloud services holding company data
  • Data leaks: sensitive files shared publicly or pasted into outside tools

Typical defenses

  • Patching and updates: close known vulnerabilities fast
  • Strong, unique passwords with a password manager, plus multi-factor authentication (MFA)
  • Least privilege and role-based access control (RBAC)
  • Firewalls, network segmentation, and VPNs
  • Intrusion detection/prevention systems (IDS/IPS)
  • Endpoint protection: antivirus, EDR, application allowlisting
  • Encryption: data at rest (full-disk) and in transit (TLS)
  • Email filtering, link/attachment scanning, and phishing awareness training
  • Secure coding and input validation; web application firewalls (WAF)
  • Logging and monitoring with a SIEM; incident response plan
  • Vulnerability scanning and penetration testing
  • Backups that follow 3-2-1 (3 copies, 2 media types, 1 offsite), tested and offline
  • Zero trust: verify every user and device, never assume the network is safe
  • Secrets management: keep keys out of code and rotate them