What is taskgated on my Mac, and why is it running?
Last reviewed: 19 November 2026. Path, account, launchd job and man page checked on macOS 26.3.1.
taskgated is the macOS daemon that decides whether a program may get the task port of another process, the access debuggers and performance tools need to inspect or control it. It runs when such tools are used, for example lldb, Xcode or Instruments. It is part of macOS and is normally idle.
taskgated at a glance
| taskgated | |
|---|---|
| Made by | Apple (part of macOS) |
| Type | System daemon |
| Location | /usr/libexec/taskgated |
| Runs as | root |
| Started by | launchd job com.apple.taskgated |
| Can you quit it? | Not usefully. launchd starts it when the kernel needs a decision. |
What is taskgated?
The man page explains that "when the kernel is asked for the task port of a process, and preliminary access control checks pass, it invokes this daemon (via launchd) to make the decision." A task port gives full control over a process: reading its memory, stopping it and changing its state. That is what a debugger needs, and also what malware would want, so macOS checks each request.
Its decisions use authorization rights listed in the man page, such as system.privilege.taskport, which applies to programs signed with the com.apple.security.cs.debugger entitlement. It runs as root from the com.apple.taskgated launchd job.
Is taskgated safe?
Yes. It is part of macOS in /usr/libexec on the read-only system volume, and it exists to stop programs from taking control of other processes without permission.
Why does taskgated use so much CPU?
- Debuggers and profilers attaching. Starting a debug session in Xcode, running lldb, or profiling with Instruments triggers task port requests.
- Tools that inspect other processes. Command-line tools that inspect running processes may need the same access when they look at another app.
- First use in a login session. The DevToolsSecurity man page says that on normal systems the first use of Apple-signed debugger or performance tools in a login session asks for an administrator password. That request is checked through the same authorization rights.
How much CPU is normal for taskgated?
Idle almost all the time. Short activity while developer tools attach to processes is expected; on a Mac where no one debugs or profiles, it rarely does anything.
How do you stop taskgated from using so much CPU?
- Check whether developer tools are attaching. If taskgated is busy, look for Xcode, lldb, Instruments or a third-party profiler in Activity Monitor.
- Stop the debug session. Ending the debugging or profiling session stops the requests.
- Check the developer tools setting. Developers can run
DevToolsSecurity -statusin Terminal to see whether developer mode for these tools is enabled. Enabling it withsudo DevToolsSecurity -enableavoids repeated password prompts on a development Mac.
When should you worry about taskgated?
If you are not a developer and see unexpected prompts asking for an administrator password so that a tool can control or debug another process, cancel them and find out which app asked.
Continuous CPU from taskgated with no developer tools running is unusual.
How do you check taskgated in Activity Monitor and Terminal?
Open Activity Monitor (Applications > Utilities), choose View > All Processes, and type taskgated in the search field. The CPU tab shows its % CPU. Double-click the row for its parent process, memory details and open files.
In Terminal, the first command lists every taskgated process with its PID, user, CPU and memory (RSS is resident memory in kilobytes).
ps -axo pid,user,%cpu,%mem,rss,command | grep -F 'taskgated' | grep -v grep
How can Thrum help with taskgated?
Thrum keeps a live CPU graph in the menu bar. One click shows the eight processes using the most CPU, so you can see when taskgated is among them and how much it takes. An optional alert tells you when a process stays above a CPU level you choose (50 to 200% of one core) for 1 to 10 minutes. macOS does not let apps quit processes owned by root or other users, so Thrum shows them for information and leaves stopping them to the steps above.
Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.
Questions about taskgated
What is a task port?
A kernel handle that gives a program control of another process, including reading and writing its memory. Debuggers need it, so macOS restricts who can get one.
Why did my Mac ask for a password to debug?
The DevToolsSecurity man page explains that the first time Apple-signed debugger or performance tools examine one of your processes in a login session, macOS asks for an administrator password.
Sources
- taskgated(8) man page: run man taskgated in Terminal
- DevToolsSecurity(8) man page: run man DevToolsSecurity in Terminal