NFS
— Network File SystemNFS exposes a remote server filesystem to clients through Remote Procedure Calls, so applications read and write files as if they were local. Version 4 moved to a single TCP port, added strong security, and introduced COMPOUND procedures that batch operations into one round trip.
Interactive Session: How NFS Works
Step through the packet exchange sequence between nodes.
Interactive Execution Sandbox
Interact with a live or clearly-labelled simulated instance of NFS.
Threat Model & Attack Simulation
How this protocol is attacked in practice, what defenders can see, and which control stops it.
Threat model & attack simulation
SimulatedDefensive education. Every step runs in this page; no traffic is generated or sent.
AUTH_SYS identity spoofing
InterceptionNFS with AUTH_SYS trusts the client to state its UID and GID, so a modified client can claim another identity.
Find an exported share
The attacker enumerates exports and mount permissions.
Mount attempts from unapproved hosts.
Data disclosure or tampering on the share.
Defences that matter
- Kerberos with sec=krb5p
- Root squash and export restrictions
- Network ACLs on NFS ports
This is a conceptual model for defenders, not an exploit toolkit. It contains no payloads, tooling or instructions for attacking systems you do not own.
Protocol Specification & Architecture
Key characteristics, real-world deployment patterns, and trade-offs.
Core Technical Features
- Remote procedure call model over ONC RPC, with NFSv4 using TCP port 2049
- NFSv4 COMPOUND batches several operations in a single request
- NFSv4.1 sessions provide exactly-once semantics and backchannel callbacks
- Kerberos-based security via RPCSEC_GSS in NFSv4
Real-World Use Cases
- Shared home directories across a Linux compute cluster
- Central document storage mounted by virtual machines
- Kubernetes persistent volumes backed by an NFS server
Advantages & Strengths
- Transparent access with normal file permissions and POSIX semantics
- Mature and highly optimised for Unix and Linux environments
Limitations & Vulnerabilities
- Sensitive to network latency and packet loss without tuning
- Classic versions relied on auxiliary rpcbind and mountd ports