What is socketfilterfw on Mac?
By Junaid, maker of Taskglass · Last reviewed
The built-in macOS firewall, controlling which apps may accept incoming connections.
socketfilterfw is part of macOS's Application Firewall. It's started on demand when the firewall is turned on, and it decides whether apps may accept incoming network connections. You control it in System Settings > Network > Firewall.
- Category
- Security
- Made by
- Apple
- Safe to quit:
- With care
Shown in Activity Monitor as socketfilterfw
Why is socketfilterfw using so much CPU or memory?
- Many incoming connection attempts on a busy network
- Apps that open network services, such as developer servers or file sharing
What to do
- 1Check firewall options in System Settings > Network > Firewall
- 2Quit apps that run local servers if you don't need them
- 3Restart your Mac
Safe to quit? With care.
macOS relaunches it when needed; keep the firewall on for protection.
Typical CPU and memory use
Measured on an Apple M4 Mac running macOS 27.0.1 on November 17, 2026, during normal use:
socketfilterfw: 2 MB of memory, running as root (the system)
Resident memory from ps at one moment. It changes with what you're doing.
Is it genuine? How to check
Malware sometimes borrows the name of a real process. The real one runs from a fixed place and carries its maker's code signature, so check both.
socketfilterfw
- Location
- /usr/libexec/ApplicationFirewall/socketfilterfw
- Signed by
- Apple (part of macOS)
- Started by
- launchd job
com.apple.alf(system daemon, kept running)
Check the signature in Terminal:
codesign -dv --verbose=2 "/usr/libexec/ApplicationFirewall/socketfilterfw"
The genuine file prints these lines:
Identifier=com.apple.ALF.ApplicationFirewall Authority=macOS Software Signing TeamIdentifier=not set
To see where the running copy lives, run this in Terminal and compare the path:
ps -axo pid,user,comm | grep -F socketfilterfw
In Activity Monitor: select the process, click the Info button (ⓘ), then Open Files and Ports. The first line is the program's path.
Paths and signatures checked on macOS 27.0.1 (26A434), Apple M4, November 17, 2026. Other macOS versions can differ.
How to restart socketfilterfw
Quit it in Activity Monitor, or run sudo killall socketfilterfw in Terminal. Launchd starts it again within seconds: it is the launchd job com.apple.alf (a system daemon), defined in /System/Library/LaunchDaemons/com.apple.alf.agent.plist.
Related processes
- nehelperManages settings for VPNs, content filters and other Network Extension apps.
- Little SnitchA firewall app that shows and controls which apps connect to the internet.
- syspolicydGatekeeper's engine: checks new apps and software before macOS lets them run.
- taskgatedDecides whether one program may inspect or control another, such as a debugger attaching to an app.
- tccdEnforces privacy permissions: camera, microphone, screen recording, files, contacts and more.
- trustdChecks that security certificates are valid, for websites, apps and secure connections.
Part of the Taskglass Process Library · More Security processes