Hi Tom,
Thank you for sharing your findings.
Could you please share a backup of the affected website with us? We would like to restore it in our local testing environment and perform a thorough investigation to identify the source of the infection and verify exactly what happened.
This will help us determine whether the issue is related to the template itself or whether malicious code was injected into the site after it was compromised.
Since the backup may be large, you can upload it to https://files.fm/ and share the download link with us. Once we receive the backup, we'll analyze it locally and get back to you with our findings.
We look forward to your response.