Repository navigation
Releases
PureFence v0.2.4
PureFence v0.2.4
PureSnitch is now PureFence. "Little Snitch" is a registered trademark of
Objective Development, and they asked for a name without "Snitch" so that nobody
mistakes this project for theirs. The firewall itself is unchanged.
Changed
- The app, the helper executable, the DMG, the GitHub repository, the Homebrew
tap and the cask are now named PureFence /purefence. GitHub redirects the
old repository URLs. - Bundle identifiers, the helper's launchd label, the
pfanchor and the
on-disk state under/Library/Application Support/PureSnitchkeep their
existing names, so rules and settings carry over on upgrade.
Upgrading from PureSnitch
Homebrew users run:
brew update
brew upgrade --cask purefencebrew update moves the installed puresnitch cask to purefence, and the
upgrade replaces PureSnitch.app with PureFence.app. Open PureFence once
afterwards; if macOS asks again, approve the helper under System Settings >
General > Login Items & Extensions > Allow in the Background, then choose Repair
Helper if the app offers it.
DMG users: quit PureSnitch, delete PureSnitch.app, then drag PureFence.app
into /Applications.
Install
brew tap momenbasel/purefence
brew trust --tap momenbasel/purefence
brew install --cask purefenceOr download the signed and notarized DMG below and drag PureFence into
/Applications.
Current limitations
The limitations listed in the
v0.2.2 notes
are unchanged.
v0.2.3
PureSnitch v0.2.3
This is a blocklist fix for the universal macOS 13+ monitor build.
Fixed
- The malware blocklist enabled by default loaded nothing. abuse.ch retired the
keyless URLhaus downloads and the hostfile URL now answers 410. It is replaced
by HaGeZi Threat Intelligence Feeds (mini), served from the same GitLab mirror
as HaGeZi Multi Light and parsed by the existing Adblock reader (about 209,000
hosts). Upgrades keep the on/off choice made for URLhaus, and a URLhaus entry
whose URL was edited by hand is left alone
(#22).
Install
brew tap momenbasel/puresnitch
brew trust --tap momenbasel/puresnitch
brew install --cask puresnitchHomebrew 6 refuses to load casks from an untrusted third-party tap, which is why
the brew trust line is required once. Upgrade later with
brew upgrade --cask puresnitch.
Or download the signed and notarized DMG below and drag PureSnitch into
/Applications.
Current limitations
The limitations listed in the
v0.2.2 notes
are unchanged.
v0.2.2
PureSnitch v0.2.2
This is a performance and uninstall-correctness update for the universal
macOS 13+ monitor build.
Fixed
- The helper and its
nettopchild no longer pin two CPU cores.nettopran
in continuous mode, which busy-polls at well over a core regardless of the
sample interval, and the helper resolved every socket's process path by
spawningpsonce per connection on every two-second poll. Traffic is now
sampled once per second from a one-shotnettopframe and process paths come
fromproc_pidpath; the monitor costs about 0.3% of one core with 160 open
sockets (#19,
#20). - Traffic rates are diffed per process, so a process closing its sockets no
longer re-baselines every other process for that interval
(#10). brew uninstall --cask puresnitchwith Enforcement on no longer strands the
com.apple/puresnitchanchor.PureSnitchHelper --cleanupwaits up to 10 s
for the daemon to exit instead of asserting once, and a helper stopped after
its bundle is gone releases PF instead of holding state no successor can
adopt. Dragging the app to the Trash reaches the same clean state through a
30 s bundle watchdog (#17).- In the network-extension flavour, Remove Helper removes the filter
configuration rather than disabling it, deactivates the system extension only
after that write completes, and a completed deactivation no longer re-enables
the filter (#18). That
flavour still does not ship; see the limitations below.
Install
brew tap momenbasel/puresnitch
brew trust --tap momenbasel/puresnitch
brew install --cask puresnitchHomebrew 6 refuses to load casks from an untrusted third-party tap, which is why
the brew trust line is required once. Upgrade later with
brew upgrade --cask puresnitch.
Or download the signed and notarized DMG below and drag PureSnitch into
/Applications.
After upgrading from v0.1.0 or v0.2.0, open the app once and resolve its legacy
firewall prompt. Decide Later is the default and the only choice that
preserves legacy rules unchanged. When the current store is empty, Keep On
is disabled instead of replacing legacy rules with an empty ruleset. Turn
Off intentionally removes those rules. A previous enabled state never
auto-approves ruleset replacement. With Keep On, non-default, allow,
process-only, domain-only, disabled, expired, or otherwise non-renderable rules
do not survive as host-wide pf rules.
Turning Enforcement Off and choosing Remove Helper before a Homebrew uninstall
is still the cleanest path. Starting with this release the cask's
--cleanup step and the helper's own bundle watchdog cover the case where that
step was skipped.
Current limitations
- The shipping build does not include per-process Network Extension filtering;
that path still requires Apple-issued provisioning profiles. - DNS filtering is an experimental loopback proxy for clients configured
manually. PureSnitch does not change the macOS system resolver. - Alert decisions can pause only DNS requests sent to that proxy. Passively
observed app sockets are not paused without the non-shipping Network Extension. - Only the Default profile is enforced. Other profiles are organizational
labels, and SSID-based switching is not implemented. - Persistent
pfenforcement is IPv4-only and host-wide. IPv6 alert decisions
are one-time; per-process, domain, and allow rules are not emitted topf. - Traffic totals are process aggregates. Per-connection byte accounting and
live IP geolocation are not included in this release. - Homebrew does not snapshot or restore the root-owned rule database. It is
left in place on uninstall precisely so nothing outside the signed app can
rewrite live firewall state. - Releases before v0.2.1 enabled
pfwithout retaining a releasable reference
token. If legacy enforcement remains enabled after upgrading or uninstalling,
one Mac restart clears that unrecoverable legacy reference.
PureSnitch v0.2.1 - Homebrew fixed, safer legacy migration
PureSnitch v0.2.1
This is a safety and release-reliability update for the universal macOS 13+
monitor build.
Fixed
- Added explicit Xcode product and module names for Xcode 27 compatibility
(#11). - Updated the HaGeZi blocklist source, migrated the retired built-in URL without
overwriting custom URLs, rejected invalid responses, and retained
last-known-good blocklists when refreshes fail
(#13). - Restricted the experimental DNS listener to loopback and bounded pending DNS
prompts with independent IDs, timeouts, capacity limits, and shutdown cleanup. - Replaced legacy
/etc/pf.confmutation with an isolated runtime
com.apple/puresnitchanchor, reference-token cleanup, and exact legacy-state
migration. Disable failures remain visible and preserve conservative state. - Validated rule input before writing the root-owned
pfanchor and rejected
invalid IPv4 CIDR prefix lengths. - Synchronized the active helper mode back to the GUI.
- Reused stable IDs for continuously observed sockets and capped retained
connection history at the newest 5,000 rows, preventing the legacy
two-second snapshots from growing the database without bound. - Restricted helper XPC access to the administrator who claimed it from the
active console, re-authorized every request, and protected helper state with
root-only permissions. Helper-owned enforcement state now survives process
restarts. - Gated the legacy
pfhandover behind an explicit in-app decision. When the
helper reports preserved legacy state, the app leaves it untouched until the
user picks Keep On or Turn Off; a previously enabled state is never treated
as approval, and Keep On is refused outright when the current rule store is
empty. - Hardened release checks for version/build metadata, universal architectures,
Developer ID signatures, hardened runtime, notarization, and stapling. - Corrected Homebrew installation and product documentation.
Install
brew tap momenbasel/puresnitch
brew trust --tap momenbasel/puresnitch
brew install --cask puresnitchHomebrew 6 refuses to load casks from an untrusted third-party tap, which is why
the brew trust line is required once. Upgrade later with
brew upgrade --cask puresnitch.
Or download the signed and notarized DMG below and drag PureSnitch into
/Applications.
After upgrading from v0.1.0 or v0.2.0, open the app once and resolve its legacy
firewall prompt. Decide Later is the default and the only choice that
preserves legacy rules unchanged. When the current store is empty, Keep On
is disabled instead of replacing legacy rules with an empty ruleset. Turn
Off intentionally removes those rules. A previous enabled state never
auto-approves ruleset replacement. With Keep On, non-default, allow,
process-only, domain-only, disabled, expired, or otherwise non-renderable rules
do not survive as host-wide pf rules.
Before Homebrew uninstall or zap, turn Enforcement Off and choose Remove Helper
inside the app. Homebrew deliberately does not alter PF state or delete the
root support database.
Current limitations
- The shipping build does not include per-process Network Extension filtering;
that path still requires Apple-issued provisioning profiles. - DNS filtering is an experimental loopback proxy for clients configured
manually. PureSnitch does not change the macOS system resolver. - Alert decisions can pause only DNS requests sent to that proxy. Passively
observed app sockets are not paused without the non-shipping Network Extension. - Only the Default profile is enforced. Other profiles are organizational
labels, and SSID-based switching is not implemented. - Persistent
pfenforcement is IPv4-only and host-wide. IPv6 alert decisions
are one-time; per-process, domain, and allow rules are not emitted topf. - Traffic totals are process aggregates. Per-connection byte accounting and
live IP geolocation are not included in this release. - Homebrew does not snapshot or restore the root-owned rule database. It is
left in place on uninstall precisely so nothing outside the signed app can
rewrite live firewall state. - Releases before v0.2.1 enabled
pfwithout retaining a releasable reference
token. If legacy enforcement remains enabled after upgrading or uninstalling,
one Mac restart clears that unrecoverable legacy reference.
PureSnitch v0.2.0 - the release that actually runs
If you tried v0.1.0 and the app appeared to do nothing — this is the release that fixes it. Everything in #5 is addressed.
Universal binary (Apple Silicon + Intel), macOS 13 Ventura or later. v0.1.0 was arm64-only and would not launch on an Intel Mac at all.
What was broken
- The privileged helper had never worked. In the helper's
main.swift,HelperServicewas created inside ado {}block, so it deallocated at the end of it.NSXPCListenerholds its delegate weakly, so the listener rejected every connection and the app read zero traffic and zero rules even with the daemon approved and running. Fixed and verified over real XPC. - The app never said it was waiting for you. macOS registers the background helper but leaves it disabled until you approve it in Login Items. Until then PureSnitch just showed zeros. There is now a banner in every window that names the actual state and gives you the one button that fixes it, and the app notices your approval within a few seconds instead of needing a relaunch.
- The world map was missing. The Network Monitor window opened at 522×590 instead of 1100×700, so the fixed side panes squeezed the map out of the window entirely.
- No app icon. The v0.1.0 bundle shipped without
Contents/Resources— no compiled asset catalog at all. - Settings did nothing. It went through the SwiftUI
Settingsscene, which does not work for a menu-bar-only app. - The menu bar icon was two colours. It was a hand-drawn bitmap with pink and blue text. It is now a normal monochrome template glyph that follows your menu bar's appearance; the speed readout is an opt-in setting.
- Traffic rates were nonsense.
nettopoutput was parsed per pipe-read rather than per frame, and the first frame was diffed against zero, so the whole cumulative history was reported as one second of traffic — up to gigabytes per second in the menu bar.
Changed on purpose
- This build is monitor-only. The per-process content filter needs restricted entitlements that require Apple-issued provisioning profiles; shipping them unauthorised risks macOS refusing to start the app at all. The firewall flavour now lives behind
project-netext.yml— seedocs/NETWORK-EXTENSION.md. - Enforcement is opt-in. PureSnitch no longer loads a pf anchor or takes port 53 on first launch. Turn it on in Settings if you want it.
- The map only plots real coordinates. It used to scatter invented pins when geolocation was missing.
Install
Download the DMG, drag PureSnitch into Applications, and open it from there — macOS refuses to install background helpers for an app run from the disk image. On first launch approve it in System Settings › General › Login Items & Extensions → Allow in the Background.
Known limitation
Per-connection byte counts and geolocation are not populated yet, so per-process and per-domain totals read 0 B and the map says "No located connections yet". The app says so rather than inventing numbers.
SHA-256 of PureSnitch-0.2.0.dmg: 5cb79a016b9a0477e07caa499b527d495ea50aec0f779983f0c45456729b8cea
PureSnitch v0.1.0
First public release. Free, open-source application firewall for macOS in the style of Little Snitch.
What works
- Menubar status item with live throughput + bar histogram
- Mode picker (Alert / Silent Allow / Silent Deny)
- Network Monitor with world map, process list, summary pane
- Rules Manager with categories, rule groups, blocklists
- Connection Alert popup with remember/scope/duration
- DNS over HTTPS upstream (Cloudflare default, configurable)
- Domain blocking via 1Hosts / OISD / StevenBlack / HaGeZi
- IP / port blocking via pfctl anchor
- Profiles (default / home / public-wifi / lockdown)
- SQLite-backed rule store + connection history
Install
brew tap momenbasel/puresnitch
brew install --cask puresnitchOr download the DMG below.
Requirements
- macOS 14.0 or later
- Apple Silicon (arm64); Intel build via source
Signing
Signed with Apple Developer ID and notarized by the Apple notary service.
SHA-256 of PureSnitch-0.1.0.dmg:
3be501f76646075e71b56958e68df9753bb8907901f6e56e3c6489b952c043ff
Known limitations
True per-process kernel filtering requires Apple's Network Extension entitlement, which is application-gated.
Until that's granted, this release relies on DNS-level and pfctl-level enforcement which catches the vast majority of unwanted traffic in practice. See README for the Network Extension activation path.
License
MIT