Security Agent causing high cpu

I've noticed in Activity Monitor that the "Security Agent" process is consuming 100% of a CPU core. What's more is that there are 4 "Security Agent" processes running, each at 100%!


I've noticed this problem happens every 7 days or so and I can't figure out why. The only reason I notice is that I come up to my iMac and the fans are running trying to cool the thing as it struggles with the runs away "Security Agent" processes.


Please help!


iMac 27", 10.15

Posted on Nov 19, 2019 6:22 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 19, 2019 7:57 PM

I do not see such a process on my system. I found a reference in one of the Developers manuals:


Security Agent

The Security Agent is a separate process that provides the user interface for the Security Server in macOS (not iOS). Its primary purpose is to request authentication whenever an app requests additional privileges.

When the Security Server requires the user to authenticate, the Security Agent displays a dialog requesting a user name and password. The advantages of performing this action in a separate process are twofold. First, an application can obtain authorization without ever having access to the user’s credentials (username and password, for example). Second, it enables Apple to add new forms of authentication without requiring every application to understand them.

The Security Agent requires that the user be physically present in order to be authenticated. Because the graphical user interface elements can’t be used through a command-line interface such as the Terminal app or a secure shell (ssh) remote session, this restriction makes it much more difficult for a malicious user to breach an app’s security.


Perhaps this may help you track down what is causing the problem. One thing you might try:


About Safe Mode



Boot into safe mode then restart normally. This clears out a number of caches which may stop the process from eating up so much CPU time. Safe mode is much slower than a normal startup, so be patient.


46 replies

Jun 23, 2020 11:35 PM in response to admiral u

I have this issue too, it happens when my 3 year old son is "on" the computer. he sits at the login screen mashing the keyboard and struggling with the mouse until he manages to click the icon with his face on to log on (with no password)


When he leaves and I log him off, and log back onto my account, I can see (and hear via the fans) the rogue processes..


From what i read of other peoples posts, its definitely related to my sons account.


There's clearly a bug in the code somewhere. Needs to be fixed by Apple...

Dec 10, 2019 7:29 PM in response to mshearer6

Some additional Information. I've noticed these messages in the Console, under Log Reports, wifi.log. This repeats over and over again.


Tue Dec 10 11:02:50.848 <airportd[246]> ERROR: SecurityAgent (5615) is not entitled for com.apple.wifi.events.private, will not register for event type 100
Tue Dec 10 11:02:50.848 <airportd[246]> ERROR: SecurityAgent (5615) is not entitled for com.apple.wifi.events.private, will not register for event type 101
Tue Dec 10 11:02:50.848 <airportd[246]> ERROR: SecurityAgent (5615) is not entitled for com.apple.wifi.events, but allowing anyways for event type 7
Tue Dec 10 11:02:50.848 <airportd[246]> ERROR: SecurityAgent (5615) is not entitled for com.apple.wifi.events, but allowing anyways for event type 2
Tue Dec 10 11:02:50.848 <airportd[246]> ERROR: SecurityAgent (5615) is not entitled for com.apple.wifi.events, but allowing anyways for event type 1
Tue Dec 10 11:02:50.848 <airportd[246]> ERROR: SecurityAgent (5615) is not entitled for com.apple.wifi.events, but allowing anyways for event type 5
Tue Dec 10 11:02:50.849 <airportd[246]> ERROR: SecurityAgent (5615) is not entitled for com.apple.wifi.events, but allowing anyways for event type 6

Mar 4, 2020 3:37 AM in response to Stickman32

Ha ! Coincidentally, I wanted to type inn my earlier message "one diagnose". Because there can be multiple causes and situations for such a problem, just like with a headache or nausea...


You need to find a pattern which triggers the problem to occur, or to vanish. That takes time and perseverance. But only with that information, a developer, engineer, or doctor might be able to come up with a thorough solution.

Mar 4, 2020 3:48 AM in response to Petertje

Agreed.


I tried to track it down and solve it for two weeks, then returned the machine as it’s random behaviour didn’t fit well with my work schedule.


The Apple tech agreed there was an issue and refunded despite the model being a made to order configuration.


I will buy another in the future, it would be nice to know that this issue (at least) is identified and addressed in the meantime.


There seems to be many happy users out there, in comparison to the unlucky few in this discussion.


Mar 4, 2020 4:05 AM in response to Stickman32

Oooh, that's too bad !

A really random behaviour is often a dire indicator of something technically malfunctioning or breaking down, in stead of an unexpectedly conflicting factor or an incorrectly programmed routine. So it's like you said: you must have been one of those unlucky users...


Maybe the Touch ID hardware to run the authentication was not thoroughly working and intermittently disturbing the system, causing that SecurityAgent process to slip into an endless cycle ?


I can assure you, I haven't yet run into any other serious problems with the MacBook Pro 16" (also BTO).

Love that machine so far !

Apr 10, 2020 12:49 PM in response to admiral u

I have the same problem on a 2017 MacBook Pro with i5 and other wonderful stuff inside, with 10.15.3 Catalina installed.

The problem appears randomly, I tried to follow Apple's suggestion and I cleaned my cache by booting in safe mode; now obviously the MacBook works fine, but I can't tell if the problem is solved.

Here's my table of process



Did anyone find a fix for this annoying issue?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Security Agent causing high cpu

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.