Could you please refer this, hope this will give you some idea -
https://adapt.to/content/dam/adaptto/production/presentations/2020/adaptTo2020-AEM-Virus-Scan-Roland-Gruber.pdf/_jcr_content/renditions/original.media_file.download_attachment.file/adaptTo2020-AEM-Virus-Scan-Roland-Gruber.pdf