How to speed up a Mac?

How can you detect spyware on your device?