Malware Behaviors and Indicators

Key Takeaways

  • SY0-701 tests malware by behavior, impact, and indicators of compromise, then asks for the best containment or mitigation step.
  • Ransomware encrypts or exfiltrates data for extortion; worms self-propagate; Trojans hide malicious functions inside apparently useful software.
  • Fileless malware abuses trusted tools such as PowerShell and Windows Management Instrumentation, executing in memory to minimize disk artifacts.
  • Rootkits and bootkits prioritize stealth and persistence, while spyware and keyloggers prioritize collection of data and keystrokes.
  • Strong indicators include anomalous process trees, fixed-interval network beacons, persistence registry changes, mass file writes, and impossible-travel logins.
Last updated: June 2026

How the Exam Frames Malware

Malware (malicious software) is tested on SY0-701 by behavior far more than by vocabulary. The 90-question exam (90 minutes, passing score 750 on a 100-900 scale) rarely asks "define a worm." It describes what code does - encrypts files, steals credentials, hides itself, spreads without help, opens remote control, or abuses a trusted process - and asks you to name it or pick the best response. Read the scenario for behavior first, then map it to a type.

Malware typePrimary behaviorCommon indicatorsFirst mitigation focus
VirusAttaches to files and needs executionModified files, unexpected hash changesRemove infected files, restore clean copies
WormSelf-propagates across systems with no user actionRapid port scanning, repeated SMB (port 445) connectionsSegment network, block the propagation path, patch the flaw
TrojanPretends to be legitimate softwareUnknown app, unexpected outbound sessionsRemove the app, reimage if trust is lost
RansomwareEncrypts and often exfiltrates data firstFile renames, ransom note, mass write activityIsolate host, disable compromised account, preserve evidence
SpywareSecretly collects user or system dataBrowser hijack, unusual data uploadsRemove software, review endpoint controls
KeyloggerCaptures keystrokes or form inputCredential theft, suspicious input hooksReset exposed credentials from a clean device
RootkitHides processes, files, or privilegesSecurity-tool blind spots, kernel anomaliesRebuild from trusted media when integrity is uncertain
Backdoor / RATProvides unauthorized remote accessBeaconing, new listener, remote shell activityBlock command-and-control, isolate, rotate credentials
Logic bombTriggers on a date or event conditionTimed or event-based destructive actionCode review, change control, remove the trigger
CryptominerHijacks CPU/GPU for cryptocurrencySustained high CPU/GPU, mining-pool connectionsRemove process, close initial access vector

Behavior Patterns and Fileless Malware

Fileless malware is a high-yield topic: it lives in memory and abuses trusted, signed binaries (a technique called living-off-the-land) so traditional signature antivirus sees little. PowerShell with an encoded -enc command line, wmic, mshta, and rundll32 are classic indicators. The behavior, not the file, is the giveaway.

Observed behaviorWhat it suggests
Mass file encryption with extension renamesRansomware or destructive wiper
Credential access from LSASS memory or browser storesInfostealer or post-exploitation tool
New scheduled task or Run-key registry valuePersistence mechanism
PowerShell downloading and decoding contentFileless / staged payload
DNS queries to a random-looking domain every 60 secondsCommand-and-control beaconing
Lateral movement using admin shares (C$, ADMIN$)Compromised privileged credentials

Worked Scenario

A workstation logs this sequence:

TimeEvidence
09:12User opens invoice_viewer.exe from an email attachment
09:13powershell.exe starts with an encoded command line
09:14Dozens of documents are renamed with a new extension
09:15File-server logs show the same user modifying shared files

The chain points to a Trojan-delivered loader, fileless PowerShell staging, and ransomware impact spreading to a share. The best immediate action is containment: isolate the endpoint from the network, disable or reset the compromised account, and revoke access to affected shares. The incident-response order the exam rewards is preparation, identification, containment, eradication, recovery, lessons learned. Restoring from backup is recovery - it comes only after eradication, because restoring into a network where the root cause is still active simply reinfects the clean data.

Common Traps

DistractorBetter exam reasoning
"Run antivirus only" while malware is actively spreadingContain first when active spread is confirmed; signature AV misses fileless
"Restore backups" before the infection path is closedRecovery can be reinfected if root cause remains
"Delete logs to save disk space"Preserve evidence and the timeline for forensics and legal hold
"A rootkit can be cleaned in place"Rebuild from trusted media if system integrity cannot be trusted

Persistence and Stealth Mechanisms

Beyond the initial infection, exam scenarios test how malware stays. Persistence keeps the malware running across reboots and logoffs, while stealth hides it from defenders. Recognizing these mechanisms in a description lets you classify the threat and choose eradication that actually removes it rather than just killing a single process.

MechanismWhere it livesWhy it matters
Run / RunOnce registry keysWindows registry autostartRe-launches malware at every login
Scheduled task or cron jobOS task schedulerSurvives reboot; can trigger on a timer
Service installationNew Windows service or daemonRuns with high privilege at boot
Bootkit / UEFI implantBoot firmware or MBRLoads before the OS and antivirus
DLL search-order hijackApplication load pathInjects code into a trusted process
Rootkit hookingKernel or user-mode APIsHides files, processes, and connections

A potentially unwanted program (PUP) is a softer category - adware or bundled toolbars that are not overtly malicious but degrade the system and may track users. The exam contrasts PUPs with true malware to test whether you over-escalate a low-severity finding.

Quick Drill

Name the likely behavior for each clue: (1) hundreds of connection attempts to TCP 445 across subnets - worm propagation or lateral movement; (2) credentials used from a new country minutes after a normal session - infostealer or keylogger; (3) small encrypted packets to one external host every 60 seconds - C2 beaconing; (4) a process invisible to security tools but proven active in network logs - rootkit or tampering; (5) a new service that re-spawns the payload after every reboot - persistence via service installation.

Test Your Knowledge

A workstation suddenly renames thousands of files with a new extension and drops a note demanding payment. What malware behavior is most likely?

A
B
C
D
Test Your Knowledge

An analyst confirms a host is actively encrypting shared folders right now. What should be done first?

A
B
C
D
Test Your KnowledgeMulti-Select

Which indicators most strongly suggest command-and-control activity? Select two.

Select all that apply

Periodic fixed-interval outbound connections to an unusual domain
A user opening a local text file
DNS requests with long encoded-looking subdomains
A printer running out of paper