Javascript must be enabled to download our products and perform other essential functions on the website.

ionicons-v5-m
ionicons-v5-j
Buy Now Download Free Trial
ionicons-v5-m
ionicons-v5-f

Back to Setup Guide for Ransomware Protection

Use File Read/Write Heuristics to Detect Ransomware

This is PA File Sight's strongest detection method. It requires a feature that is only available in the Ultra edition of the product (the User Activities tab).

To set it up, create a new File Sight monitor, and enter the path to monitor, as shown below:

Monitor D: drive for ransomware

Leave the File Types tab with the default of monitoring all files as shown:

File types to monitor

On the File Activities tab, only watch file Reads and Writes as shown below. Be sure to uncheck the green box – we don't want to fire alerts for all file reads and writes.

Alert on file reads and writes

Uncheck all of the boxes on the Directory Activities tab:

Do not alert on directory activities

Uncheck all of the boxes on the Copy Detection tab:

Do not alert on copy detection

In order to be effective, ransomware has to encrypt files. That means it has to:

  • Read file contents from disk
  • Write encrypted file contents to disk

Some ransomware will write to a different file, and then delete the original file. Some will write into the original file, and possibly rename the file after it has been encrypted. Watching for deletes and renames would help cut down on false positives, but it will also miss any ransomware that doesn't do those final steps.

The User Activities tab is the most important. This is where the heuristic thresholds are defined. You want to set it such that a normal user is not impacted. Read AND writing 20 files in 2 minutes is unlikely for a normal user's workflow, and thus a safe threshold.

ionicons-v5-h

IMPORTANT: These threshold numbers are suggestions. The action is triggered as soon as the thresholds are passed, not at the end of the time period specified. Increasing the time gives more time for activity to accumulate towards the threshold. Therefore, increasing the time will increase the chance of catching a slow ransomware attack. But it also increases the chance of triggering on a normal user's work flow, so the threshold might need to be higher to prevent false positives.

Example read and write thresholds for ransomware detection

You can ignore the Streams and Behaviors and Endpoints tabs.

Ignore Settings

For the Ignore tabs, it's best to ignore anything that might generate 'noise'. For example, a backup application will likely read all the files. There is no reason to record all of that information to the database, so it's best to ignore the backup process. Ignoring the anti-virus application is probably a good idea too. If you don't see those processes listed yet, give it some time and come back to the monitor. PA File Sight will add processes to the list as it sees them.

ionicons-v5-h

IMPORTANT: Do NOT ignore the System or Network process. When a user accesses files from across the network, the 'process' they are using will be reported as "System or Network".

If there are particular files you know are changed constantly (maybe things in a spool folder, a logs folder, etc), you could ignore that folder or those files.

Finally, consider if there are user accounts that should be ignored. Normal users should not normally be ignored, but rather any service accounts that might be used for specific operations. For example, if backups are performed by a specific backup account, that account could be ignored.

This monitor is now ready to start detecting ransomware attacks. After the other detection methods are discussed, we'll come back and look at adding actions to add prevention to the detection.

Next: Detection Methods - Honeypots

We are finished testing [PA Server Monitor] and are very pleased with every aspect of it ... [I like] routines for setup (could not be easier), pricing - compared to other products this is a bargain, interface, stability, reporting, and remote monitoring. The first week of use the program generated around a $1000 extra for us.

Thomas R., SysKon, Norway ionicons-v5-b