Malicious software is referred to as malware. This is a general term for any malware hackers that use harmful software to gain unauthorized access or cause harm to your WordPress website. .
A security plugin can be used to check a WordPress website for viruses.
Wordfence plugin is used for wordpress malicious code scanner. This plugin will automatically check for malware when it is installed. After the scan is finished, WordFence also recommends steps you can take to resolve security issues.