😱 Malware on a Mac?
I have several friends in recent years who also got infections on their Macs... Then I was berated and attacked in my thread for over a week when I posted that AVAST for Mac blocked a threat from downloading onto my Mac (however I determined that one was not likely to be a MacOS related infection). I recommended in my thread that using some type of Mac Security with email and browser protection should be considered to protect common Mac users. My post was for Mac users like you who could be effected by these types of vulnerabilities.
You should read my previous thread named...
Another infection blocked from downloading onto Mac ... that I started for some suggestions on future prevention and possible help using Mac security software to remove the infection your Mac seems to have acquired.
There are many options for Mac security software. Other Mac users might have there own suggestions. Malwarebytes for Mac and AVAST Security for Mac might be able to help detect and block future infections. I also recommend using a third party browser such as Firefox (and under browser privacy settings I would recommend turning off sharing telemetry data).
Hopefully you can install software to detect and remove the infection. If you need to take your Mac in for diagnostics at a professional Mac services center then you might consider doing that as well. That is what one of my friends ended up ultimately doing and they were able to remove the infection. Another friend with a different type of infection ended up wiping his entire drive, low level formatting and then reinstalling everything but hopefully you won't need to go that far.