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
46 replies

Mar 27, 2020 2:39 PM in response to admiral u

Hi guys, I had this issue too for some days. Today I updated to Catalina 10.15.4 and the problem didn't disappear. So I've started to sort things out by rebooting and then closing applications and services like bluetooth and Wifi. After stopp duet background application the cpu usage went down and security agent isn't coming up anymore.


So for me it looks like the security agent itself has no problem or bug, but some application is trying to interact / use the security agent for kind of authorization / check.

Apr 17, 2020 4:27 PM in response to admiral u

I had this problem as well due to the fact that the current WFH requirements meant that I needed to get ScreenTime properly configured to keep my teenagers focussed on things that matter.


While screen time (a very useful tool BTW), was having the desired effect, I noticed that on my iMac, the Agent was consuming most of a core for hours. Clearly a bug of some sort.


For me, the solution was easy. Quit System Prefs (which was live, but not on the ScreenTime panel), and the problem went away - COU use back to normal instantly.

Feb 1, 2020 1:37 PM in response to Stickman32

Same problem here with a Macbook pro 16 inch i9 after update to catalina 10.15.3.

SecurityAgent process all night at 100%, for more than 8 hours so it never settle. After reboot the high CPU load is gone.


Created a sample of the process (I could not send it in the Feedback to apple because the field isn't big enough.



Looks like something to do with display (got an external monitor connected)

Sort by top of stack, same collapsed (when >= 5):
        __ulock_wait  (in libsystem_kernel.dylib)        2836
        mach_msg_trap  (in libsystem_kernel.dylib)        2836
        CoreDisplay::XXH64(unsigned char const*, unsigned long long)  (in CoreDisplay)        1322
        syscall_thread_switch  (in libsystem_kernel.dylib)        1251
        _platform_memmove$VARIANT$Haswell  (in libsystem_platform.dylib)        218
        GetRealtimeDisplayInfo(unsigned int)  (in CoreDisplay)        39

May 17, 2020 9:02 PM in response to admiral u

Same problem on a new 2019 MacBook 16" i9.


Noticed the machine was constantly warm, even after a reboot - before opening applications. As others have already noted, my systempolicyd is the culprit, causing high CPU usage about 15-20 seconds after a restart:



I also noticed that it seems to be causing a lot of disk I/O for some reason:



I dug a little deeper, and it seems that the thread is getting "stuck", using the "top" command in a terminal. It rapidly cycles between stuck and running state, every refresh it displays an alternate status (once per second):



Uugh, this is annoying. I think I'm going to try backup to timemachine and perform a reinstall to see if I can't fix whatever random thing is broken.


BTW I also checked to see if my kext store was corrupted (following the advice on this thread), but it's fine:


sudo sqlite3 /var/db/SystemPolicyConfiguration/KextPolicy .dump



Jan 7, 2020 2:50 AM in response to yx66

i see this issue occurring for me as well as for others when twp or more users are logged in (you can check with tick marks on the lock screen if it is 1 or 2 or more depending on number of users one has created on the mac).


it just keeps these fans ON most of the time as this process uses 100% CPU.. 8 core i9 or 32GB RAM is of no use or help :-)

Jun 30, 2020 9:26 AM in response to admiral u

I had the same issue. Laptop was getting very warm and fans started to run full speed. I wasn’t running anything that should have made it work very hard. Checked activity monitor and noticed security agent was utilizing 98.8% of one of my cpu’s. Restarted laptop and it went back to normal temp. I did have 2 logins active. I closed the one prior to restart. Seems to be a problem with Catalina.

Nov 19, 2019 7:57 PM in response to admiral u

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.


Feb 1, 2020 10:03 AM in response to admiral u

I have (had) the same issue with a new 16" MacBook Pro (spec, activity monitor & Intel Powergadget monitoring attached)


"SecurityAgent" pushes the CPU up to about 4.3Ghz then sits back watching the temperature rise and the battery drain... for no apparent reason. I left it for about 30 mins to see where it would go. It gets the CPU up to about 80C then leaves it simmering, until you decide to re-boot the computer.


I've also had issues with it forgetting an external monitor is attached via CalDigit TS3+ when it sleeps, which requires a re-boot.... and of course with a monitor attached the extra strain on the GPU stresses the cooling so the CPU is often sitting at 100C which I can't imagine is good for it long term.


I intimated past tense in my first paragraph with the word "had"... because I returned the machine to Apple this afternoon for a refund. I was hoping it would be a worthy replacement for my 8 year old Mac Pro.... but alas, I think they are still trying to squeeze too much grunt into too small a space.


Form above function... no, not when I rely on this for my living.


SM




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...

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.