MacOS completely changed how you should think about malware. The System Files are on a separate locked volume, not writeable. if something, somehow, manages to modify anything on that locked Volume, it is detected quickly. Applications are all sand-boxed with a list of the resources they require, and they cannot ask for anything outside their sandbox without crashing.
So you could store just about every malware known to mankind on your Mac, and your Mac would not get infected spontaneously. Scanning for virus-like patterns might make you feel a little better now, but it is outdated nonsense.
Nothing can become Executable Unless/Until you supply your Admin password to "make it so".
At that moment, the candidate to become executable WILL be scanned for virus patterns Apple keeps frequently updated, provided you allow:
[√] install system data files and security updates
Effective defenses against malware and ot… - Apple Community