Port 21/tcp: FTP (File Transfer Protocol): Control
Category: File Sharing & Remote Access. Range: well-known. Status: iana registered.
What runs here
The command channel of an FTP session: the client authenticates with USER/PASS and issues directory-listing and transfer commands, which the server acknowledges with numeric status replies, per RFC 959. This channel also negotiates the companion data channel (port 20 in active mode, or a server-announced high port in passive mode) that carries the actual file bytes.
Why it matters
FTP predates any notion of transport encryption, so a plaintext USER/PASS handshake on this port is a straightforward credential-theft opportunity for anyone who can observe the traffic, and an analyst reviewing a capture can read every command an operator or attacker typed. Internet-facing FTP servers (especially ones permitting anonymous login or writable directories) remain a long-running, low-effort target for credential stuffing and for use as a malware/tooling dead-drop.
Where you see it
Legitimately: a user or automated job authenticating and transferring files. Anomalously/maliciously: brute-force or credential-stuffing attempts against an internet-facing FTP server, anonymous-login reconnaissance, or an attacker uploading tooling or exfiltrated data to a writable, internet-exposed FTP directory used as a dead-drop.
What to look for
| Signal | What it means |
|---|---|
| Anonymous / plaintext auth | A USER anonymous login or a plaintext, non-FTPS PASS command in a capture is itself worth flagging: credential material that, on a compromised host, is often reused elsewhere. |
Related ports
- 20/tcp: FTP (File Transfer Protocol): Data
ATT&CK techniques
- T1071.002: T1071.002