Skip to contentBlack FridayTaskglass is $9 instead of $14Get the deal →

What is socketfilterfw on Mac?

By Junaid, maker of Taskglass · Last reviewed

Summarize this page with

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

  1. 1Check firewall options in System Settings > Network > Firewall
  2. 2Quit apps that run local servers if you don't need them
  3. 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

Part of the Taskglass Process Library · More Security processes

See this process live in Taskglass.

Taskglass shows what socketfilterfw is doing on your Mac right now, groups it under the app that started it, and checks its code signature for you. It explains 224 processes this way.

See how Taskglass works →How it compares with Activity Monitor →