First, you'll need to understand a little bit more about what Shield does with plugins and themes:

https://onedollarplugin.com/plugin-theme-guard-scanner/


It does not have a malware scanner. It's not designed to do that.


If you enable the Plugins and Themes guard, and you have malware already present in your theme, this will not be fixed by Shield.  Shield is designed to detect any changes or code injections and alert you to it.


To fix this problem, the only way ever is to completely delete and reinstall the theme from original sources. Then, use Wizard to run the scanner manually to update its records. Ensure also that you're scanning your plugins and themes at the appropriate depth.


Then, if malware ever gets injected into your theme, no matter what it is or looks like, you'll be alerted to it.