Join our Newsletter — 33% off our NHI Course
Home› FAQ› Foundations & NHI Taxonomy› How does SFTP work?
Foundations & NHI Taxonomy

How does SFTP work?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Foundations & NHI Taxonomy

SFTP transfers files over an encrypted SSH session and supports authentication, directory listing and file operations within that secure channel. It protects data in transit better than plain FTP, but access control still matters. Defenders should restrict accounts, use key-based authentication where possible, log transfers, and monitor for unusual file movement or bulk downloads.

What SFTP actually does during a file transfer

SFTP is a file transfer protocol that runs inside an SSH session, so the encryption, server authentication, and session integrity come from SSH rather than from a separate file-transfer channel. After the session is established, the client can ask the server to list directories, read or write files, rename items, and manage paths through that same protected channel.

That design matters because SFTP is not just "FTP with a secure port." It is a different protocol family with different trust assumptions, and it is commonly used for administrative transfers, batch jobs, application integrations, and partner exchanges where confidentiality and server authentication are required.

How authentication and access control shape SFTP

SFTP can authenticate with passwords, SSH keys, certificates, or other SSH-supported methods, but the important security decision is who is allowed to open the session and what that account may do once connected. A valid login only proves the remote party can start an SSH session, not that it should have broad file-system access.

Practical deployments usually combine SFTP with account scoping, chroot or directory restrictions, per-user keys, and limited shell access so the account can transfer files without becoming a general-purpose login. Network Ports and Protocols Security Guide is useful here because it places SFTP in the wider context of protocol exposure and secure replacements for legacy transfer methods.

Key-based authentication is often preferred because it is easier to automate, less exposed to password reuse, and better suited to service and integration accounts. The control question is not whether SFTP is encrypted, but whether the account behind it is tightly bounded, uniquely owned, and easy to revoke.

Why SFTP is safer than plain FTP, and what it does not solve

SFTP protects file content and commands in transit, which closes off common FTP weaknesses such as cleartext credentials and readable payloads on the network. That said, SFTP does not inherently solve poor entitlement design, weak credential hygiene, or excessive access to sensitive directories.

If an account can reach more paths than it should, an attacker who obtains that account can still copy, overwrite, or stage data at scale. The channel is encrypted, but the business risk remains if the identity behind the session has too much privilege or if transfer volumes are not monitored for abnormal behaviour.

Monitoring is therefore part of the SFTP story. Transfer logs, authentication logs, and file-operation logs help distinguish routine partner exchange from unusual bulk downloads, unexpected uploads, or access from unfamiliar sources or at odd times.

Risk and Threat Considerations

SFTP reduces network eavesdropping risk, but it can still become a high-value exfiltration path if a transfer account is overprivileged, shared, or poorly monitored. The main exposure is not protocol weakness so much as trusted access being used to move data quietly and at scale.

Failure mechanism: A valid SSH credential, SSH key, or service account is used to open an encrypted session, then the attached file permissions allow reading, staging, or replacing more data than intended.

Impact: Sensitive files can be copied or altered without triggering obvious network-level alarms, and bulk movement can blend into legitimate transfer traffic if logging and review are weak.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-5 — Account ManagementSFTP depends on tight account scoping and revocation.
Recommendation — Restrict and review SFTP accounts, then remove unused access paths promptly.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementSSH keys and passwords are the authenticators that govern SFTP access.
AU-2 — Audit EventsTransfer logging is essential for spotting unusual file movement.
AC-6 — Least PrivilegeSFTP sessions should only reach the files and directories they need.
Recommendation — Manage SSH credentials with rotation, protection, and revocation discipline. Log SFTP authentication and file-transfer events for review and alerting. Constrain SFTP permissions to the minimum paths and actions required.
NIST Zero Trust (SP 800-207)Zero Trust ArchitectureSFTP fits the verify-first model for bounded, explicitly authorized access.
Recommendation — Treat each SFTP session as explicitly authorized access, not trusted network placement.

Practitioner Guidance

What to verify: Confirm which accounts can initiate SFTP, which directories they can reach, and whether those accounts are dedicated to a single partner, application, or job. If a transfer account can also log in interactively or reach broad shared storage, treat that as a design flaw rather than an operational convenience.

Decision rule: If the session carries production data or cross-tenant files, prefer key-based authentication, least-privilege directory scoping, and transfer logging before you worry about convenience features. If you cannot bound the account, assume the blast radius is larger than the protocol suggests.

Common mistake: Treating SFTP as a complete security control. Encryption in transit is only one layer, and it does not compensate for weak ownership, shared credentials, or unrestricted file paths.

Practitioner takeaway: The security value of SFTP comes from combining encrypted transport with narrow account scope and strong monitoring, because the transfer channel is only as safe as the identity and permissions behind it.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org