Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How safe is SMB exposed to internet?

This is related to an older thread, How safe is AFP exposed to internet? Well I'm curious what other experts here think about the risks of exposing SMB shares over the internet? Obviously it's not a good idea to expose either afp or smb, but I have customers who have system in place doing just this. I'm trying to assess the risks before rushing in to change things.

Is Apple's implementation of SMB any less secure than AFP? Is it more secure than Microsoft's implementation in Windows? Well, of course it must be. Of course we all know the fact that it's not running on Windows is a good thing but I'm curious as to specific vulnerabilities in SMB.

Thanks all,

--
Pete

MacBook Pro 17", iMac Alum 24", G4 Cube, Mac OS X (10.6.6)

Posted on Apr 9, 2011 12:21 PM

Reply
Question marked as Best reply

Posted on Apr 9, 2011 5:22 PM

At face value, both protocols are equally insecure, however, I suggest that SMB represents a bigger problem. Let me explain.

There are few targeted attacks that focus on Mac OS X systems, compared to thousands (millions?) that target Windows.

By running a public-facing AFP server, an attacker can assume you're running a Mac OS X-based system (not necessarily, but likely), therefore most of his other attacks are going to fail.
By running a public-facing SMB server, an attacker will assume you're running a Windows-based server and will immediately start probing your server with all the other Windows-specific compromises/attacks, etc.

So even if the protocols themselves were identical from a security standpoint you're just waving a bigger 'Kick Me' sign by running SMB.

$0.02
4 replies
Question marked as Best reply

Apr 9, 2011 5:22 PM in response to Pete Corelio

At face value, both protocols are equally insecure, however, I suggest that SMB represents a bigger problem. Let me explain.

There are few targeted attacks that focus on Mac OS X systems, compared to thousands (millions?) that target Windows.

By running a public-facing AFP server, an attacker can assume you're running a Mac OS X-based system (not necessarily, but likely), therefore most of his other attacks are going to fail.
By running a public-facing SMB server, an attacker will assume you're running a Windows-based server and will immediately start probing your server with all the other Windows-specific compromises/attacks, etc.

So even if the protocols themselves were identical from a security standpoint you're just waving a bigger 'Kick Me' sign by running SMB.

$0.02

Apr 9, 2011 6:52 PM in response to Pete Corelio

A common security goal is to reduce the attack surface; the amount of "stuff" that you have to monitor and maintain and track and keep updated. To close all possible ports, and to secure access.

This also isn't only about what might be wrong with AFP or SMB or another protocol (now), it's about what might be found wrong (in the future). And how fast that knowledge might spread; vulnerabilities can be nasty, and botnets are perpetually testing exposed servers, and variously ahead of the patches from the vendors.

As should be clear from the other thread, exposing one of my core file systems to direct attacks is not typically something I typically prefer to implement. VPNs are easy (particularly with an external gateway) and (while very far from a panacea) can help keep more ports plugged.

This port-level discussion is just one part of the whole; of having good and tested backups, of appropriate internal security controls and auditing, of certificates in preference to (or in addition to) user-selected passwords, of access revocations, data encryption, and of finding your core data and protecting that.

Apr 17, 2011 8:42 AM in response to Pete Corelio

I cannot really see any good reason to do this unless you have very very old windows machines which need to be connected. SMB was designed for local area networks and not for the Internet. ( See http://en.wikipedia.org/wiki/Server_Message_Block )


SMB2 is better able to work 'over' the Internet, but the SAMBA in Mac OS X Server 10.6.7 (3.0.28.a-apple) is old and does not appear to be SMB2 compatible. (Believe you need 3.5 or later).


I would be tempted to use something altogether different like dropbox for this kind of sharing, neatly avoiding all the firewalls, port hiding and attack surface management issues.


Angus

How safe is SMB exposed to internet?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.