Process in /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd taking almost all ressources (Catalina - MacOS 10.15.6) I have Catalina 10.15.6
There is something running in the background at /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd that takes 50-90% of the CPU and 1Gig of memory. I fear that it's a virus. I saw that there is a similar question there, but there was no feedback. I tried to remove it with
I run malwarebyte: it told me that there is no malware on the machine
override rwxr-xr-x  root/wheel restricted,compressed for accountsd? y rm: accountsd: Operation not permitted
I'm affraid of breaking somethin if I go further
I tried to follow the following points of the comments/answers

I deleted all the account in `system preferences &gt; Internet accounts'

I rebooted 2x the machine in safe mode by holding shift


Despite those steps nothing happened: the fan is still full on an almost all ressources of the CPU taken
in &lt;user&gt;/Library/Keychains, there is the following list:
login.keychain
login.keychain-db
login_renamed_1.keychain-db
metadata.keychain
metadata.keychain-db
metadata.keychain-db.C07BBB57-D5A7-435B-9CAD-1AE65E5FBCC5

Which one should I delete?
What finally solved the problem:
So what finally solved the problem was to reset the NVRAM (Non-Volatile Random Access Memory) with the command alt+cmd+p+r upon starting
thanks for hints below
On Catalina, anything in /System is mounted in a read-only, protected volume, and so almost certainly is part of the OS and not malware.
Secondly, ramping up CPU or memory is usually not indicative of malware. Malware generally tries to hide itself, not advertise. It can be poorly written, of course. (As can the OS.)
There are many reports of MacOS processes going a bit wild every now and again: sometimes they may need to do a bit of work and then calm down; other times they may suggest a problem which needs to be fixed.
Why is the accountsd process eating so much CPU?
Accountsd using lots of CPU constantly
Process &quot;accountsd&quot; has over 500% CPU usage
This blog suggests that you may need to delete a local keychain folder inside &lt;user&gt;/Library/Keychains (which may cause some passwords to be forgotten).
https://waal70blog.wordpress.com/2019/12/16/accountsd-and-secd-high-cpu-usage-on-catalina/
An alternative offered is just to reboot to Safe Mode (hold Shift at restart), then restart normally.