ProtoStackv0.1

Interactive Protocol Visualizer

Back to all protocols
FTPIMAP
Application LayerProfessional trackIntermediateOSI: Application LayerDefault Port: 22Standard: SSH-2 File Transfer Protocol (IETF SECSH draft)

SFTP

— SSH File Transfer Protocol

Unlike legacy FTP or FTPS, SFTP is an extension of SSH (Secure Shell) that multiplexes commands, data, and authentication through a single encrypted TCP port 22 tunnel, making it exceptionally firewall-friendly.

Read first: SSHContent reviewed 2026-11-18

Interactive Session: How SFTP Works

Step through the packet exchange sequence between nodes.

Interactive Execution Sandbox

Interact with a live or clearly-labelled simulated instance of SFTP.

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

SFTP path traversal and weak credentials

Injection

A misconfigured SFTP server or stolen credentials allow access outside the intended directory.

Attackersimulated
SFTPtarget
Attack step 1 of 3
Authenticate

The attacker logs in with reused credentials or a stolen key.

What a defender can see

SFTP logins from new locations.

Impact if unmitigated

Data exposure and malware staging on the server.

Defences that matter
  • Chroot every SFTP account
  • Keys plus MFA, no password reuse
  • Audit file access and transfers

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

  • Encrypted by SSH v2 (AES-GCM, ChaCha20-Poly1305)
  • Single-port architecture (TCP 22) - firewall and NAT friendly
  • Full filesystem operations (chmod, chown, directory listing, file locking, resume)
  • Public key and password authentication

Real-World Use Cases

  • Secure deployment pipelines (CI/CD artifact upload)
  • Automated banking/payroll batch processing
  • Enterprise secure backup uploads

Advantages & Strengths

  • Completely encrypted in transit
  • Single port eliminates complex NAT/firewall pinholing

Limitations & Vulnerabilities

  • Slightly lower throughput than raw FTP due to crypto overhead on high-bandwidth links