LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

debug executables flagged as malware?

@holly7787: I used an older version of Acrobat Reader to create one.

Unfortunately the new version doesn't seem to include it.

0 Kudos
Message 11 of 15
(846 Views)

Maybe this will be useful, i've followed this guide from stackoverflow:

 

Microsoft recommends using the PowerShell Cmdlet New-SelfSignedCertificate.

 

  1. Generate the key:
    New-SelfSignedCertificate -DnsName email@yourdomain.com -Type CodeSigning -CertStoreLocation cert:\CurrentUser\My​
  2. Export the certificate without the private key:
    Export-Certificate -Cert (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert)[0] -FilePath code_signing.crt​

    The [0] will make this work for cases when you have more than one certificate... Obviously make the index match the certificate you want to use... or use a way to filtrate (by thumprint or issuer).
  3. Import it as Trusted Publisher
    Import-Certificate -FilePath .\code_signing.crt -Cert Cert:\CurrentUser\TrustedPublisher​
  4. Import it as a Root certificate authority.
    Import-Certificate -FilePath .\code_signing.crt -Cert Cert:\CurrentUser\Root​
  5. Sign the script (assuming here it's named script.ps1, fix the path accordingly).
    Set-AuthenticodeSignature .\script.ps1 -Certificate (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert)​


    Obviously once you have setup the key, you can simply sign any other scripts with it.

in CVI i open "Build" -> "Target Settings..." -> "Signing Info..." and selected the new certificate

Davide Vittorio G. - TLGB S.R.L.
Italian SW Developer
0 Kudos
Message 12 of 15
(840 Views)

Many of those virus scanners are similar to a virus too. And often a real resource hog too. Real viruses usually try to be mean and lean as it reduces the risk of detection but that’s about all the difference there is. 😀

Rolf Kalbermatter
My Blog
0 Kudos
Message 13 of 15
(818 Views)

Several anti virus program work also on the reputation of the executables, and since our programs are normally working only in one or a few instances they are flagged as "possibly malicious" due to the reduce number of installations.

This is particularly annoying when developing an application, since the debug executable the IDE creates when executing the program is different  every time and every time I have my antivirus complaining about it! 🙄



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 14 of 15
(774 Views)

Signing your executable definitely should increase its reputation score significantly and hopefully high enough that those virus scare programs don't complain anymore.

Rolf Kalbermatter
My Blog
0 Kudos
Message 15 of 15
(738 Views)