Skip to content

Lesson 6 of 9 · 23m

Detection Opportunities Before Encryption

Catch credential abuse, mass file changes, shadow-copy deletion, backup tampering, and exfiltration while there is still time to act.

Ransomware detection is not one alert. It is a series of weak signals that become strong when correlated across identity, endpoint, network, backup, and storage telemetry. The defender's advantage is time: the attacker must move through many systems, while you only need one high-confidence break in the chain.

High-value endpoint signals

Some commands and behaviors deserve immediate attention because ordinary users almost never run them at scale:

vssadmin delete shadows /all /quiet
wmic shadowcopy delete
bcdedit /set {default} recoveryenabled no
wevtutil cl security
net stop "VeeamBackupSvc"
sc \fileserver01 create update binpath= "c:\users\public\tool.exe"

Context matters. An administrator running vssadmin once may be maintenance. The same command across forty hosts in ten minutes is a containment event. Build detections that include host count, time window, account type, and source process.

Authentication anomalies are early warning

Watch service accounts behaving like people and privileged accounts appearing in new places. Useful signals include impossible travel, interactive logon by service accounts, sudden additions to privileged groups, new accounts created outside the joiner process, and authentication from server to server over RDP or WinRM.

Alert idea: service-account interactive logon
  when event_id in (4624,4625)
  and logon_type in (2,10)
  and account ends with "svc" or account in service_account_inventory
  severity high

The inventory line is important. A detection written around naming conventions misses the service account named appserver that somebody created in 2017.

File and backup telemetry catch the endgame

Mass file renames, rapid entropy increase, and unusual extension writes are strong endpoint signals, but often arrive late. Earlier signals are better: backup job failures across multiple systems, retention policy edits, object-lock modification attempts, snapshot deletion, and backup-console logons outside approved networks.

Exfiltration is also observable. Large outbound transfers to unfamiliar cloud storage, compressed archive staging in C:\ProgramData, and use of tools like rclone or 7z on servers deserve review. You may not prevent theft at that point, but you can inform legal, communications, and containment decisions before encryption begins.

Field notes

  • Tune alerts around groups of events, not just single commands; scale and sequence turn noise into signal.
  • Centralize logs outside the production blast radius. Local logs are often the first casualty.
  • Test detections with controlled simulations, not just rule syntax. A rule that never fires is not control.
  • Pair every high-confidence detection with a documented response action. Detection without action is surveillance.

Was this lesson helpful?

Sign in to rate