Trojan.MSIL.Basic.8.Gen while generating controller code in Visual Studio 2022

Options

coreclr tried to load a malicious resource detected as Trojan.MSIL.Basic.8.Gen and was blocked. Your device is safe.

Blocked as suspicious activity and no options to add to exceptions.

I've been uninstalling your antivirus (Bitdefender Total Security) to get over with my projects in Visual Studio 2022.

using VS2022: (WebApp MVC) Dependencies

Packages: Microsoft.EntityFrameworkCore(7.0.5) , Microsoft.EntityFrameworkCore.SqlServer(7.0.5) , Microsoft.EntityFrameworkCore.Tools(7.0.5) , and Microsoft.VisualStudio.Web.CodeGeneration.Design(7.0.6)

Frameworks: Microsoft.AspNetCore.App and Microsoft.NETCore.App

Comments

  • Flexx
    Flexx DEFENDER OF THE YEAR 2023 / DEFENDER OF THE MONTH ✭✭✭✭✭ mod
    Options

    Check if below steps help:

    1) Temporarily disable Bitdefender Protection: https://www.bitdefender.com/consumer/support/answer/28557/

    2) Set exclusion in Bitdefender Antivirus: https://www.bitdefender.com/consumer/support/answer/13427/

    3) Set exclusion in Bitdefender Advanced Threat Defense: https://www.bitdefender.com/consumer/support/answer/2393/

    4) Re-enable real time protection in Bitdefender.

    If issue persists, 

    Generate bitdefender BDsysLog: https://www.bitdefender.com/consumer/support/answer/1922/

    Generate bitdefender support tool logs: https://www.bitdefender.com/consumer/support/answer/1733/

    Generate bitdefender connectivity logs: https://www.bitdefender.com/consumer/support/answer/9689/

    Share the logs & your query with bitdefender support team by dropping them an email at bitsy@bitdefender.com

    If the generated logs are larger in size, you can upload the logs to google drive or we.tl (7days link validity for free users) or ask the support team to provide you with the online link & password of bitdefender cloud where you can upload the logs and share the upload link with the support team.

    The support team will reply back to your query within next 24-48 hours excluding weekends.

    Also, can you share the virustotal link of the file here by disabling the real time protection in bitdefender.

    Regards

    Life happens, Coffee helps!

    Show your Attitude, when you reach that Altitude!

    Bitdefender Ultimate Security Plus (user)

  • ryanacer
    edited June 2023
    Options

    Hello Flexx,

    I tried everything you suggests from 1 to 4 and none of them works, I did set a bunch of known process while executing the controller code generation even everything on Bitdefender is disabled. Took me a while and I really need to finish my work without having my computer compromised while its disabled. Then I came across with this switch on the Advanced tab of Antivirus page to enable and disable "Scan Scripts" and that lets the code generations go through in Visual Studio 2022.

    Just a thought it would be great if they have a shortcut in the notification page, that when you select that type of notification, there is a shortcut in the notification itself that can redirect to that settings or like a button there to press to "Temporary Allow Scripts" in a certain period of time that will auto turn back on after, so that less headache from the user is generated. :)

    Getting our projects to work is sometimes a headache already, then this kind of thing will add to the headache when this happened and you know what I mean.

    In summary, the "Scan Scripts" option in the Advanced tab of the Antivirus settings solves my problem even without having to add anything to exclusions of generating the controller code from VS2022

    Thanks

  • Flexx
    Flexx DEFENDER OF THE YEAR 2023 / DEFENDER OF THE MONTH ✭✭✭✭✭ mod
    Options

    Kindly contact the bitdefender support by visiting https://www.bitdefender.com/consumer/support/ and scroll down to the bottom of the webpage where you can get in touch with support representative either by email, chat or over a call.

    Alternatively, you can also share your query with bitdefender support team by dropping them an email at bitsy@bitdefender.com

    The support team will reply back to your query within next 24-48 hours excluding weekends.

    Regards

    Life happens, Coffee helps!

    Show your Attitude, when you reach that Altitude!

    Bitdefender Ultimate Security Plus (user)