Process in /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd taking almost all ressources (Catalina - MacOS 10.15.6)
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.