Bypassing Little Snitch Firewall with Empty TCP Packets
Little Snitch does not alert on TCP connections that are opened and closed without sending application data, so an attacker with code execution can exfiltrate data by encoding bits in destination port numbers. The vendor states this cannot be fixed without breaking useful behaviour.
rhinosecuritylabs.com
Published on rhinosecuritylabs.com
Little Snitch is a popular host-based firewall for macOS, used for monitoring and restricting egress network traffic.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Little Snitch only inspects connections once application data is sent, so connections that are opened and closed without data are not subject to rules or alerts.
Impact
An attacker with code execution on a Mac can communicate with an external server and exfiltrate data even when Little Snitch has an explicit deny rule, though throughput is very low (about 16 bit/s upload and 8 bit/s download in the unoptimised proof of concept).
What the attacker needed
Code execution on the victim's Mac; Little Snitch installed; server with a publicly routable IP
The fix
The vendor states there is no fix planned because the behaviour cannot be changed without breaking other useful features; the report suggests using macOS's built-in PF firewall alongside Little Snitch for blocking.
How it was found
- Start the little-stitch server on a publicly reachable host.
- Run the little-stitch client on the Mac with Little Snitch.
- The client opens TCP connections to ports that represent set bits of each byte.
- A ninth port signals that the byte is complete, and the server prints it.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Little Snitch is a firewall for Macs that warns you when a program tries to connect to the internet. The report shows that if a program opens a connection but sends no data, the firewall stays silent, so a malicious program can still talk to its server by using different port numbers to carry information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.