Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. My program is a false positive
Forum Updated to NodeBB v4.3 + New Features

My program is a false positive

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 5 Posters 940 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    U7Development
    wrote on last edited by
    #1

    Hello!..
    after compiled my program and uploaded to my website, browser says this is dangeous and will cause problems on my computer which obviously is false.... is there a way to solve this?.. maybe some sort of certificate to buy?

    Thanks.

    JonBJ 1 Reply Last reply
    0
    • U U7Development

      Hello!..
      after compiled my program and uploaded to my website, browser says this is dangeous and will cause problems on my computer which obviously is false.... is there a way to solve this?.. maybe some sort of certificate to buy?

      Thanks.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @U7Development
      Depends what you do with it on your website/how you try to access it from your browser. Which you say nothing about.

      1 Reply Last reply
      2
      • U Offline
        U Offline
        U7Development
        wrote on last edited by
        #3

        i have my file in a my webhosting.. via https:://mydomain.com/myfile.exe

        i want to be downloable by my clients.

        JonBJ 1 Reply Last reply
        0
        • U U7Development

          i have my file in a my webhosting.. via https:://mydomain.com/myfile.exe

          i want to be downloable by my clients.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @U7Development
          You want them to be to download it, not execute it (direct from there from the browser), right?

          You might be able to buy a certificate to sign it, or your web site, which might or might not help. But --- and I'm not an expert --- it would not surprise me if a browser still did not like downloading a .exe file off the web.....

          Suggestion: test with a .zip file instead? Then try putting your .exe in the .zip. Downloading a naked .exe off the web sounds hokey to me :)

          U 1 Reply Last reply
          3
          • JonBJ JonB

            @U7Development
            You want them to be to download it, not execute it (direct from there from the browser), right?

            You might be able to buy a certificate to sign it, or your web site, which might or might not help. But --- and I'm not an expert --- it would not surprise me if a browser still did not like downloading a .exe file off the web.....

            Suggestion: test with a .zip file instead? Then try putting your .exe in the .zip. Downloading a naked .exe off the web sounds hokey to me :)

            U Offline
            U Offline
            U7Development
            wrote on last edited by
            #5

            @JonB right, i dont plan to execute any program via web browser, just download an offline client, just the same way you download the Qt installer (for example).

            Thanks.. i will give a try using zip format... sounds goods.

            1 Reply Last reply
            0
            • U Offline
              U Offline
              U7Development
              wrote on last edited by U7Development
              #6

              i found a solution maybe this works (at least for Windows)

              https://docs.microsoft.com/es-es/windows/win32/seccrypto/signtool?redirectedfrom=MSDN

              command:

              signtool sign /a /fd SHA256 MyFile.exe
              
              jsulmJ JonBJ 2 Replies Last reply
              0
              • U U7Development

                i found a solution maybe this works (at least for Windows)

                https://docs.microsoft.com/es-es/windows/win32/seccrypto/signtool?redirectedfrom=MSDN

                command:

                signtool sign /a /fd SHA256 MyFile.exe
                
                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @U7Development You should really compress your app anyway (as zip)...

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • U U7Development

                  i found a solution maybe this works (at least for Windows)

                  https://docs.microsoft.com/es-es/windows/win32/seccrypto/signtool?redirectedfrom=MSDN

                  command:

                  signtool sign /a /fd SHA256 MyFile.exe
                  
                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @U7Development
                  signtool: Yes, that's what I meant when I said "You might be able to buy a certificate to sign it,". But don't you have to buy a certificate for this? We use this and buy a new certificate every couple of years.

                  1 Reply Last reply
                  0
                  • gde23G Offline
                    gde23G Offline
                    gde23
                    wrote on last edited by
                    #9

                    There are several things that can cause problems here.

                    First as already mentioned the code signing. If you buy a certificate and sing your application, this will remove the red warning that pops up when you exec the program under windows.
                    However if you don't have a (more expensive) EV-certificate there still might be a warning. Its jut not red/orange any more but blue/grayish so it looks less dangerous.

                    Then the next thing is what your browser does when you download the exe.
                    This really depends on the browser. There are many "security features" in browsers that pop up a warning message eg. "This application seems to only be downloaded very few times and is not well known, and therefor might be dangerous" or something like that.
                    As far as I know in this case there is nothing you can do about it. They don't even offer to remove the warning for your application when you pay them or anything.

                    JKSHJ 1 Reply Last reply
                    0
                    • gde23G gde23

                      There are several things that can cause problems here.

                      First as already mentioned the code signing. If you buy a certificate and sing your application, this will remove the red warning that pops up when you exec the program under windows.
                      However if you don't have a (more expensive) EV-certificate there still might be a warning. Its jut not red/orange any more but blue/grayish so it looks less dangerous.

                      Then the next thing is what your browser does when you download the exe.
                      This really depends on the browser. There are many "security features" in browsers that pop up a warning message eg. "This application seems to only be downloaded very few times and is not well known, and therefor might be dangerous" or something like that.
                      As far as I know in this case there is nothing you can do about it. They don't even offer to remove the warning for your application when you pay them or anything.

                      JKSHJ Online
                      JKSHJ Online
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      @gde23 said in My program is a false positive:

                      They don't even offer to remove the warning for your application when you pay them or anything.

                      I'm glad that browser vendors don't accept bribes ;)

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      gde23G 1 Reply Last reply
                      1
                      • JKSHJ JKSH

                        @gde23 said in My program is a false positive:

                        They don't even offer to remove the warning for your application when you pay them or anything.

                        I'm glad that browser vendors don't accept bribes ;)

                        gde23G Offline
                        gde23G Offline
                        gde23
                        wrote on last edited by
                        #11

                        @JKSH Sure, that would be even worse, when you had to pay a bribe to get your files flagged as to be safe (as it is kind of with the code signing).
                        However I think it is also problematic when they flag arbitrary links as dangerous and irritate the user with some warning, when the assumption is only based on some unknown statistical voodoo.

                        JKSHJ 1 Reply Last reply
                        0
                        • gde23G gde23

                          @JKSH Sure, that would be even worse, when you had to pay a bribe to get your files flagged as to be safe (as it is kind of with the code signing).
                          However I think it is also problematic when they flag arbitrary links as dangerous and irritate the user with some warning, when the assumption is only based on some unknown statistical voodoo.

                          JKSHJ Online
                          JKSHJ Online
                          JKSH
                          Moderators
                          wrote on last edited by
                          #12

                          @gde23 said in My program is a false positive:

                          However I think it is also problematic when they flag arbitrary links as dangerous and irritate the user with some warning, when the assumption is only based on some unknown statistical voodoo.

                          Yes, that is indeed frustrating.

                          The big app stores (Google Play, Apple App Store) are in a better position to handle this, since the mobile OS'es support granular permissions management and the stores can scan all submitted apps before they are released to the public. But even then, plenty of malware still sneaks through: https://www.androidguys.com/promoted-news/google-play-store-the-main-source-of-malware/

                          Web browsers and their vendors can't scan all links unfortunately, so certificates and statistical methods are the best tools we currently have to limit anarchy on the web (unless we somehow manage to educate all users and make them "street-smart"). If someone comes up with a better method, they would easily become rich and/or famous.

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          1 Reply Last reply
                          4

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved