Skip to content
Threat Feed
medium advisory

Detection of Destructive NFS File Operations

Detection logic identifies ransomware-like activity on NFS shares by flagging high-frequency bursts of successful WRITE, REMOVE, and RENAME operations from a single client within a one-minute window.

This threat brief describes a detection mechanism for identifying potential ransomware or destructive activity against NFS-mounted storage. Ransomware often attempts to encrypt, rename, or delete large volumes of files; when occurring over NFS, this behavior manifests as a burst of mutating network operations. Because network packet capture tools like Packetbeat do not always expose individual file paths for NFS traffic, this detection aggregates NFS opcode telemetry (specifically WRITE, REMOVE, and RENAME) to identify anomalies. Defenders should look for a burst of 100 or more successful mutating operations, including at least 20 destructive (REMOVE or RENAME) operations, originating from a single client to an export server within a sixty-second window. This telemetry is critical for identifying unauthorized mass modification of data in environments where traditional endpoint file-system monitoring is bypassed or unavailable due to the network-based nature of the attack.

Attack Chain

  1. Attacker gains initial access to a client host with valid mount permissions for a network export.
  2. Attacker mounts a target NFS share using mount.nfs or existing persistent mounts.
  3. Attacker initiates a ransomware or destructive utility on the client host.
  4. The utility traverses the mounted filesystem to locate high-value target files.
  5. The utility performs repeated file read operations followed by write-back of encrypted data.
  6. The utility performs rename or remove operations to overwrite original files or drop ransom notes.
  7. Network traffic is captured at the export server side showing a sustained burst of NFS WRITE, RENAME, and REMOVE requests.
  8. Data on the export share is successfully encrypted, exfiltrated, or deleted.

Impact

Successful exploitation of this behavior indicates potential ransomware deployment, unauthorized mass data destruction, or data exfiltration resulting in service downtime and loss of file integrity. The impact is significant for organizations relying on centralized NFS storage for user profiles, databases, or shared project repositories, as a single compromised client can affect a massive volume of files within seconds.

Recommendation

Prioritize the investigation of this activity by correlating network bursts with endpoint process monitoring.

  • Deploy the provided ES|QL detection logic to the Elastic Stack to identify NFS activity spikes.
  • Validate the source.ip of alerts against known backup servers, storage migration utilities, and administrative hosts to minimize false positives from legitimate bulk operations.
  • Audit /etc/exports configurations for overly permissive access levels that allow unauthorized clients to perform write/delete operations.
  • Isolate suspected clients at the network or host level immediately if the volume of destructive operations confirms malicious intent.
  • Review historical NFS logs for preceding READDIR-heavy activity or unauthorized AUTH_SYS root UID usage from the alerting source IP.

Immediate actions

Review existing NFS export permissions and restrict access to authorized client IPs.

IT Operations 48h

Deploy ES|QL detection for NFS burst behavior.

Detection Engineering 72h