Hi,
Ready to Run is a feature in .NET Core 3.0 and later where assemblies are precompiled for faster loading (see ReadyToRun deployment overview - .NET | Microsoft Learn). However, when we compile with Ready to Run with the .NET 6 SDK, the resulting file gets detected as malware by multiple anti-virus providers.
The anti-malware providers we have had issues with so far is:
- Bitdefender endpoint security tools
- Cyberreason
This only happens with Aspose.PDF, the rest of the Aspose libraries we use (Words, Cells, Slides) seems to be OK. We use Aspose.PDF 22.6. The issue has been there in earlier versions as well.
The malware it detects it as is IL:Trojan.MSILZilla.10889
We compile our application using the following arguments:
dotnet publish --configuration Release --framework net6.0 --output “C:\whatever” -r:win-x64 -p:PublishReadyToRun=true -p:PublishReadyToRunShowWarnings=true --no-self-contained whatever.csproj
Ready to Run docs:
Is this a known issue? Is there any workarounds?