Skip to content
Lesson 5 of 14 · CompTIA Security+ (SY0-801)

Malware, network and application attacks

Match symptoms, logs and indicators to malware families and to common network, credential and application attacks.

17 min

Exam questions give you indicators and ask what attack it is. Learn what each looks like.

Malware

  • Virus: attaches to a file, needs a user to run it. Worm: spreads on its own across a network. Trojan: pretends to be useful. RAT: remote access Trojan.
  • Ransomware: encrypts data and demands payment. Spyware and keylogger: steal information. Rootkit: hides deep in the OS. Logic bomb: triggers on a condition or date. Fileless malware: runs in memory using built-in tools. Botnet: many infected devices controlled together.
  • Indicators: sudden file extension changes, ransom notes, unexplained outbound traffic, disabled antivirus, new accounts.

Network attacks

  • DDoS: overwhelm a service with traffic from many sources. On-path (man-in-the-middle): attacker sits between two parties. DNS poisoning: false DNS answers. ARP poisoning: false MAC to IP mapping on a local network. Replay: resend captured valid messages. Rogue access point and evil twin: a fake Wi-Fi network.

Credential attacks

  • Brute force: try every combination. Dictionary: try common words. Password spraying: one or two common passwords against many accounts (stays under lockout). Credential stuffing: reuse of leaked username and password pairs on other sites. Pass-the-hash: reuse a stolen hash without cracking it.

Application attacks

  • SQL injection: attacker input changes a database query. Defense: parameterized queries and input validation. Cross-site scripting (XSS): script injected into a page viewed by others. Cross-site request forgery (CSRF): tricks a logged-in user's browser into an unwanted request. Buffer overflow, directory traversal (../../), race condition, privilege escalation.
Reference

Indicator to attack

Thousands of failed logins, each from the same account

Likely attack
Brute force

One failed login each against 5,000 different accounts

Likely attack
Password spraying

Successful logins using valid pairs leaked from another site's breach

Likely attack
Credential stuffing

' OR 1=1 -- in a login field

Likely attack
SQL injection

<script> in a comment field that runs for other users

Likely attack
Stored cross-site scripting

Users reach a fake bank page though they typed the right URL

Likely attack
DNS poisoning (or pharming)

Two devices see the wrong MAC for the gateway

Likely attack
ARP poisoning

Many unrelated servers flood a site

Likely attack
DDoS

Virus, worm, Trojan: easy to mix up.

Virus

Spreads by itself?
No
Needs a host or user action?
Yes, runs when the infected file is opened
Disguised as something else?
Usually no

Worm

Spreads by itself?
Yes, across networks
Needs a host or user action?
No
Disguised as something else?
Usually no

Trojan

Spreads by itself?
No
Needs a host or user action?
Yes, the user installs it
Disguised as something else?
Yes
Decide

Triage a case.

Overnight, files on a shared drive were renamed with a strange extension, and a text file on each folder asks for cryptocurrency. What is this?

Common misconception

“Antivirus alone stops all malware.”

Antivirus is the best-known defense.

What is actually true

Signature-based tools miss new and fileless threats. Layer endpoint detection and response (EDR), patching, least privilege, backups and user training.

  • Worms spread by themselves. Viruses need a host. Trojans pretend to be useful.
  • Spraying is one password across many accounts. Brute force is many passwords against one account. Stuffing reuses leaked pairs.
  • Parameterized queries defend against SQL injection. Output encoding and input validation help against XSS.
  • In a malware incident, contain first.
Check yourself

Name the attack.

1Multiple choice

An attacker tries the password 'Winter2026!' against every account in the company. Which attack is this?

  • ABrute force
  • BPass-the-hash
  • CPassword spraying
  • DCredential stuffing
2Multiple choice

Which defense is MOST effective against SQL injection?

  • ADisabling ICMP
  • BParameterized queries
  • CPort knocking
  • DLonger passwords
3Multiple choice

Malware that runs only in memory and uses built-in system tools is called what?

  • AFileless malware
  • BA boot sector virus
  • CA worm
  • DSpyware only
4Multiple choice

An attacker intercepts and relays traffic between a user and a website without either knowing. What is this?

  • AOn-path attack
  • BTyposquatting
  • CSYN flood
  • DReplay attack
5Select all that apply

Which TWO are symptoms of a likely botnet infection?

  • AUnexplained outbound traffic to unknown hosts
  • BA system update completing
  • CA new monitor on the desk
  • DA user forgetting their password
  • ESlow system with unfamiliar processes

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of CompTIA Security+ (SY0-801) is planned around your week. Free.