Join our Newsletter — 33% off our NHI Course
Home› Guides› SMB for Beginners: How Windows Shares Files and…
Guide Data Security

SMB for Beginners: How Windows Shares Files and Why It Is a Target

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 3 December 2026 11 min read
On this page

SMB is the set of rules Windows computers use to share files and printers over a network.

This guide is for anyone who uses a shared drive at work, or looks after a small office network, and wants to know why SMB keeps coming up in security advice. You do not need to be an IT expert: if your office has a "shared drive" or a mapped "S: drive", it almost certainly uses SMB.

In short

  • SMB lets one computer read and change files on another computer across a network.
  • Attackers like it because one infected computer can use it to reach shared files and other machines.
  • The oldest version, SMBv1, has known security problems and is no longer installed by default on current Windows.
  • Keep SMB off the internet, turn off SMBv1, require signing and give each shared folder only the access people need.

What you will learn

  • Explain what SMB does in one plain sentence.
  • Spot why shared drives matter when ransomware strikes.
  • Check the four basic SMB protections for a small office.
  • Ask your IT supplier the right questions about file sharing.
Shared folder (file share)
a folder on one computer or server that other computers on the network can open.
Set of rules for talking (protocol)
an agreed way for two computers to send each other messages.
Network door number (port)
a numbered entry point on a computer that a particular kind of network traffic uses.

What is SMB?

Picture a serving hatch between a kitchen and a dining room. Staff on one side pass dishes through, and people on the other side take them. SMB is a hatch like that between computers, but for files.

SMB stands for Server Message Block. Microsoft describes it as a network file sharing protocol. It lets an app or a person read, create and update files on a remote server [1]. When you open a document from a shared drive, SMB carries it to your computer and carries your changes back.

There have been several versions. The first, SMBv1, was replaced by newer versions starting in 2007 [2]. When two computers connect, they agree to use the newest version both support [1].

Where the comparison stops working: a serving hatch only reaches one room. An SMB connection can reach any computer on the network that accepts it, which is why it needs careful limits.

Why does it matter?

Shared drives often hold a firm's most important files. If an attacker gets onto one computer, SMB can give them a path to those files and to other machines.

If you run a small office

What could happen: ransomware on one laptop locks the files on the shared drive that everyone uses.

Check this: ask your IT supplier who can change files on each shared folder, and whether backups are kept separately.

Next: Ransomware for Beginners

If you are new to IT work

What could happen: an old printer or storage box still needs SMBv1, so it was switched back on for the whole network.

Check this: find any device that needs SMBv1 and plan to replace or isolate it.

Next: WannaCry and EternalBlue for Beginners

If you look after servers or scripts

What could happen: a backup job or app connects to shares using its own account, a non-human identity, with far more access than it needs.

Check this: give each program account access only to the shares it uses.

Next: Non-Human Identities for Beginners

What does it look like?

Here is a made-up summary card of a small office's file sharing settings. It shows the things worth checking.

Example only. All values are made up.

File sharing check: EXAMPLE-OFFICE
Shared folder:  \\FILESERVER-EXAMPLE\Accounts      (1)
Who can change: Everyone                           (2)
SMBv1:          turned on (for old scanner)        (3)
Signing:        not required                       (4)
Port 445 from internet: open                       (5)
Backup copy:    same server, same share            (6)
  1. The address of a shared folder. In a real file, this line would contain the server and folder name.
  2. "Everyone" can change files, so one infected computer can change them too.
  3. The oldest SMB version, kept on for one old device.
  4. Without required signing, messages could be changed or passed on by someone in the middle.
  5. SMB reachable from the internet. Security advice is to block this at the edge of the network [4][5].
  6. A backup on the same share can be locked by the same ransomware.

Why this is risky: each line makes it easier for an attack on one computer to spread to shared files.

The safer way: named groups only, SMBv1 off, signing required, port 445 blocked from the internet and backups kept apart.

How does it work?

Here is what happens when you open a file on a shared drive.

  1. Your computer asks to connect. It contacts the file server, usually on network door number 445.
  2. They agree on a version. Both sides pick the newest SMB version they share [1].
  3. You prove who you are. Your computer signs in to the server with your account, often without you noticing.
  4. The server checks permissions. It looks at what your account may read or change in that folder.
  5. Files move back and forth. When signing is used, each message carries a check so tampering can be spotted [3].
Diagram titled One shared drive, set up two ways. Left red panel, Risky: an infected PC with one bad attachment has red arrows to the shared drive, where all folders are at risk, to other PCs, which are reached, and to a backup on the share. Its list reads: Everyone can change every folder; SMBv1 left on for an old device; signing not required; port 445 open to the internet; every PC accepts incoming SMB. Right green panel, Safer: the infected PC has only a dashed arrow to the shared drive, where only its own folder is at risk; a green X shows the backup kept apart and other PCs refusing the connection. Its list reads: named groups per folder; SMBv1 off and old device replaced; signing required on the server; port 445 blocked at the internet edge; PCs that share nothing block incoming SMB.
Figure 1. The same shared drive, set up two ways. Basic limits make it much harder for an attack to spread.

Attackers use the same steps. If they control one computer and its account, SMB lets them open whatever that account can reach. Broad permissions and old versions make that reach bigger.

Microsoft says SMBv1 has known security issues involving ransomware and other malware. Windows 11 and Windows Server 2019 to 2025 do not install it by default [2].

SMB signing adds a check to each message, made with a secret shared by both sides. If a message is changed on the way, the check no longer matches [3]. Signing does not hide what is in the files. Hiding the contents is the job of SMB encryption.

Microsoft advises that firewalls at the edge of a network block SMB traffic to and from the internet. Computers that do not share files can also block incoming SMB, which makes it harder for an attack to hop between machines [4].

A worked example

This story is made up to show the idea.

Fatima Begum is the practice manager at Copperfield Dental. The practice has eight computers, one file server and an old scanner in the back office.

After reading about ransomware, Fatima asks their IT supplier a few questions. Who can change files on the shared drive? Is SMB reachable from the internet? Which SMB versions are turned on?

The answers worry her. "Everyone" can change every folder, including patient letters and accounts. SMBv1 was turned on years ago so the old scanner could save files. The backups sit on the same server.

The supplier agrees a plan. Each folder gets a named group, so reception staff can change appointment files but only the accounts team can change accounts files. The old scanner is replaced, and SMBv1 is turned off.

The firewall is checked, and SMB from the internet is confirmed blocked. Signing is set to required on the server. Backups move to a separate system that the everyday staff accounts cannot change.

A month later, a receptionist opens a bad attachment. The security tool on her computer flags it and the supplier cleans the machine. Because her account could only change appointment files, the patient and accounts folders were not within its reach.

Fatima learned that SMB itself was not the problem. Broad access, old versions and shared backups were what made it risky.

Myths and mistakes

What people thinkWhat is true
SMB is unsafe and should be turned off.Most offices need it. The aim is to limit it, not remove it.
Signing encrypts my files.Signing shows if a message was changed. Encryption is what hides the contents.
Turning SMBv1 back on for one old device is harmless.It can weaken the whole network. Replace or isolate that device instead.
Our firewall blocks the internet, so SMB is safe inside.Many attacks start inside, from one infected computer. Inside limits matter too.
A backup on the shared drive is a backup.Ransomware that reaches the share may also reach that copy. Keep backups apart.

What can I do this week?

  • Ask your IT supplier to confirm that SMB is blocked from the internet.
  • Ask whether SMBv1 is turned on anywhere, and why.
  • Review who can change files in your three most important shared folders.
  • Check that at least one backup is kept where everyday accounts cannot change it.
  • List any program accounts that connect to shared folders, and what each can reach.

Checklist

  • SMB is blocked from the internet at the network edge.
  • SMBv1 is turned off, or isolated on one device with a replacement date.
  • Signing is required on file servers.
  • Each shared folder uses named groups, not "Everyone".
  • Computers that do not share files block incoming SMB.
  • Program accounts can reach only the shares they need.
  • Backups are kept apart from the shares they protect.
  • Windows updates are applied to file servers promptly.

Common questions

Should we turn SMB off completely?

Usually not. The US cyber agency notes that blocking SMB can stop people reaching shared files and devices. It says to weigh the benefit against the disruption [5]. Most offices limit SMB instead of removing it.

What is port 445?

Port 445 is the network door number that SMB normally uses. Microsoft advises blocking it, and some related ports, at the edge firewall so SMB cannot reach or be reached from the internet [4]. Inside the network, it stays open where file sharing is needed.

How do I know if SMBv1 is on?

Ask your IT supplier to check each computer, server and storage device. On current Windows it is not installed by default after a clean install [2]. It may still be on older machines, upgraded ones or devices where someone turned it back on.

Why does ransomware spread through shared drives?

Ransomware runs with the rights of the account it infects. If that account can change files on a shared drive, the ransomware can lock those files too. Tight folder permissions and separate backups limit how far that can go.

Is SMB signing the same as encryption?

No. Signing adds a check to each message so changes and relaying can be spotted [3]. It does not hide the file contents. SMB encryption is the separate feature that protects data from being read on the way [1].

Where next?

Ready for the detail? Read the practitioner guide: SMB Signing Guide. It goes further into the signing settings, current Windows defaults, how to roll signing out without outages and how it blocks relay attacks.

Also useful:

Related NHI Mgmt Group resources: EternalBlue (MS17-010), Least Privilege and Least Agency and Non-Human Identities for Beginners.

Key terms

SMB
Server Message Block, a network protocol used to share files, printers and other resources between computers.
SMBv1
The first widely used SMB version, which lacks the protections of newer versions.
SMB signing
A check added to each SMB message so changes or relaying can be spotted.
Network share
A folder on a server that other devices can open over a network, controlled by permissions.
Lateral movement
How an attacker moves from the first computer they reach to other systems.
Ransomware
Malicious software that blocks access to systems or data and demands payment.
Least privilege
Giving each person or program only the access it needs, for only as long as needed.

Sources and further reading

  1. Microsoft Learn, "SMB overview" (Windows Server file server documentation). https://learn.microsoft.com/en-us/windows-server/storage/file-server/file-server-smb-overview (accessed 2 Dec 2026).
  2. Microsoft Learn, "SMBv1 isn't installed by default in Windows". https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/smbv1-not-installed-by-default-in-windows (accessed 2 Dec 2026).
  3. Microsoft Learn, "Overview of Server Message Block signing". https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-signing-overview (accessed 2 Dec 2026).
  4. Microsoft Support, "Preventing SMB traffic from lateral connections and entering or leaving the network". https://support.microsoft.com/en-us/help/3185535 (accessed 2 Dec 2026).
  5. CISA (US-CERT), "SMB Security Best Practices", 16 January 2017 (archived). https://www.cisa.gov/news-events/alerts/2017/01/16/smb-security-best-practices (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

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.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.