ProtoStackv0.1

Interactive Protocol Visualizer

Back to all protocols
SIPSMB
Application LayerProfessional trackIntermediateOSI: Application LayerDefault Port: 2049Standard: RFC 8881

NFS

— Network File System

NFS 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.

Read first: TCPContent reviewed 2026-11-18

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

Simulated

Defensive education. Every step runs in this page; no traffic is generated or sent.

Attack library

AUTH_SYS identity spoofing

Interception

NFS with AUTH_SYS trusts the client to state its UID and GID, so a modified client can claim another identity.

Attackersimulated
NFStarget
Attack step 1 of 3
Find an exported share

The attacker enumerates exports and mount permissions.

What a defender can see

Mount attempts from unapproved hosts.

Impact if unmitigated

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