SonarCloudAnalyze Azure DevOps Task jar download marked as virus

Hello,

We use the SonarCloudAnalyze@V3 task in Azure DevOps pipelines to analyze our code during CI/CD. The Agent is on-prem and as of yesterday, one of the pieces it appears to try to download or use is being reported by our company’s antivirus as a virus. It appears to be blocking this jar file: https://scanner.sonarcloud.io/plugins/iac/versions/be400c17dadedacf2c7b5ea8f960683f.jar

Here are some logs showing the failed request and some basic information from security:

Starting: SonarCloudAnalyze
==============================================================================
Task         : Run Code Analysis
Description  : Run scanner and upload the results to SonarQube Cloud.
Version      : 3.4.3
Author       : sonarsource
Help         : This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
==============================================================================[command]"agents\_work\_tool\SonarScanner .NET\10.1.2\x64\SonarScanner.MSBuild.exe" end
SonarScanner for MSBuild 10.1.2
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
Calling the TFS Processor executable...
Fetching code coverage report information from TFS...
Attempting to locate a test results (.trx) file...
Looking for TRX files in: <path>
No test results files found
Did not find any binary coverage files in the expected location.
Falling back on locating coverage files in the agent temp directory.
Searching for coverage files in <path>
All matching files: count=12
Unique coverage files: count=6
Coverage report conversion completed successfully.
The TFS Processor has finished
Calling the SonarScanner CLI...
INFO: Scanner configuration file: <path>
INFO: Project root configuration file: <path>
INFO: SonarScanner 5.0.1.3006
INFO: Java 21.0.9 Eclipse Adoptium (64-bit)
INFO: Windows Server 2022 10.0 amd64
INFO: SONAR_SCANNER_OPTS=<sensitive data removed>
INFO: User cache: <path>
INFO: Analyzing on SonarCloud
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=526ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: Loading required plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=178ms
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=1169ms
INFO: ------------------------------------------------------------------------INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------INFO: Total time: 4.986s
INFO: Final Memory: 10M/34M
INFO: ------------------------------------------------------------------------##[error]ERROR: Error during SonarScanner execution
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@61862a7f-org.sonar.scanner.bootstrap.ScannerPluginRepository': Fail to request https://scanner.sonarcloud.io/plugins/iac/versions/be400c17dadedacf2c7b5ea8f960683f.jar
ERROR: Error during SonarScanner execution

Thank you for any assistance.

Hi @beckerdk ,

Thanks for the report!

I’m a bit surprised to see this pop up, there’s nothing in the new update of the iac analyzer to warrant this finding.

One explanation is, that it’s caused by some hash collision in your antivirus software.

Can you give us more details of the finding, specifically why the jar was marked as a virus?
It would help us resolve the issue faster.

In the meantime we’ll investigate this issue a bit more in depth as well.

Best

Here is all the information they have given me:

Looking at the report, it seems that your tool is not raising on any specific finding.

We just released a new version of sonar-iac, which is now available on SonarQube Cloud.

It would be good to know if the new jar is still raising in your security software.
If yes we need to take additional steps, most probably file a false-positive report with the vendor of your security software.

Best

Now I seem to get something else. Not sure if this is before or after the iac one that was getting blocked before:

INFO: Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'.
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 5:41.031s
INFO: Final Memory: 11M/44M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]java.lang.IllegalStateException: Fail to request https://scanner.sonarcloud.io/plugins/jasmin/versions/2422f1c3351e50d86498cc4e94b19cee.jar
INFO: Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'.
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 6:42.662s
INFO: Final Memory: 12M/40M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]java.lang.IllegalStateException: Fail to request https://scanner.sonarcloud.io/plugins/architecturecsharpfrontend/versions/a3259fbfcd2bbb9a5961db76788f9580.jar

INFO: Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'.
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 5:20.246s
INFO: Final Memory: 11M/44M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
##[debug]Processed: ##vso[task.logissue type=error;]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]java.lang.IllegalStateException: Fail to request https://scanner.sonarcloud.io/plugins/securitycsharpfrontend/versions/c8fb9f27479443e1b6d6cdca7e6a7acd.jar

I can get to and download these files on the server, so these ones do not appear to be getting blocked.

Hi,

This sounds like a problem with something “helpful” on your network. Can you talk to your network folks?

 
Ann