Community
    • Login

    Notepad++ v8.8.7 Release Candidate

    Scheduled Pinned Locked Moved Announcements
    21 Posts 6 Posters 973 Views
    Loading More Posts
    • 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.
    • donhoD
      donho @donho
      last edited by donho

      Just brought the local built installer to another laptop via a USB, and launch it - no SmartScreen.
      The SmartScreen issue doesn’t come from the binaries, but from the download action or/and location.
      Obviously it’s about ADS (alternate data streams). Any confirmation?

      EkopalypseE donhoD 2 Replies Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @donho
        last edited by

        @donho

        Yes, if I don’t unblock it, I see the same behavior.

        e64df211-0eab-4aeb-8d8b-d5c2fcfc0169-grafik.png

        Once that’s done, everything looks good.

        1 Reply Last reply Reply Quote 2
        • S
          sevem47
          last edited by

          If observed a different behaviour. Already trying to download the file I receive the following message:
          020757ab-cde8-4d1d-ae3a-7e044b08a14f-image.png
          (Translation:
          npp.8.8.7.Installer.x64.exe
          https://download.notepad-plus-plus.org
          This file is not downloaded frequently. Make sure you trust this file before opening it.

          Keep / Delete)

          When I select ‘Keep’ the following message appears:
          7c2c1768-f560-4faf-8aaa-8b57c5f00987-image.png
          (Translation:
          Make sure you trust npp.8.8.7.Installer.x64.exe before opening it.
          Microsoft Defender SmartScreen could not verify if this file is safe because it is not frequently downloaded. Make sure you trust the file you are downloading or the source it came from.)

          Here again I select ‘Keep the file’.

          Starting the downloaded installer, the regular UAC-dialog appears as shown by @donho

          And yes, I think as well it is related to ADS (Mark of the Web). On the following page I found a short description of the mechanism: Mark of the Web

          1 Reply Last reply Reply Quote 2
          • donhoD
            donho @donho
            last edited by

            Thank you guys’ confirmation. It’s indeed due to the ADS.
            Doing the following powershell command removes the smartscreen:
            Remove-Item -Path "npp.8.8.7.Installer.x64.exe" -Stream Zone.Identifier

            PeterJonesP xomxX 2 Replies Last reply Reply Quote 0
            • PeterJonesP
              PeterJones @donho
              last edited by

              @donho said in Notepad++ v8.8.7 Release Candidate:

              Thank you guys’ confirmation. It’s indeed due to the ADS.
              Doing the following powershell command removes the smartscreen:
              Remove-Item -Path "npp.8.8.7.Installer.x64.exe" -Stream Zone.Identifier

              Or right-click, properties, unblock

              donhoD 1 Reply Last reply Reply Quote 2
              • donhoD
                donho @PeterJones
                last edited by

                @PeterJones
                I don’t remember that I’ve got this issue before.
                Is https://download.notepad-plus-plus.org/ considered no more a safe URL by SmartScreen since when Notepad++ being signed by “non-legit” certificate?

                1 Reply Last reply Reply Quote 0
                • xomxX
                  xomx @donho
                  last edited by

                  @donho

                  Yes, it’s the Zone.Identifier ADS. One can always tell if look carefully at the UAC File Origin: field:

                  npp-v887-UAC-ADS.png

                  But I’m concerned here about something else. I wonder if/why we couldn’t overcome this “not-enough-reputation-for-the-SmartScreen” by the help of that new GlobalSign OV-cert. When I clicked on the UAC “Show information about the publisher’s certificate”, the only cert I see there is the N++ own self-signed cert - could you confirm? Maybe that’s the problem. The v8.8.7rc installer has both the N++ and GlobalSign one (I checked) but maybe for the UAC/SmartScreen is somehow relevant only one of them?

                  npp-v887-UAC-cert.png

                  So how about another RC2 test with only the GlobalSign cert?
                  Or try to switch the order of your current signing (1st GlobalSign, 2nd N++ or vice versa).
                  Maybe then it wouldn’t trigger the SmartScreen (even with the Zone.Identifier ADS)…

                  donhoD 1 Reply Last reply Reply Quote 3
                  • donhoD
                    donho @xomx
                    last edited by donho

                    @xomx said in Notepad++ v8.8.7 Release Candidate:

                    So how about another RC2 test with only the GlobalSign cert?

                    Here you go:

                    With GlobalSign 1st, Notepad++ Root 2nd:
                    https://download.notepad-plus-plus.org/repository/8.x/8.8.7.RC2/

                    Only with GlobalSign:
                    https://download.notepad-plus-plus.org/repository/8.x/8.8.7.RC3/

                    For my tests, both don’t make any difference.

                    donhoD 1 Reply Last reply Reply Quote 1
                    • donhoD
                      donho @donho
                      last edited by

                      https://download.notepad-plus-plus.org/repository/8.x/TEST4/

                      On my tests of 3 files downloaded from the above directory:

                      • npp.8.8.1.Installer.x64.exe - Signed with digcert
                      • vlc-3.0.21-win64.exe - Signed, downloade from the official website
                      • npp.8.8.5.Installer.x64.exe - Signed with NppRoot

                      After downloading them from https://download.notepad-plus-plus.org/,

                      • npp.8.8.1.Installer.x64.exe & vlc-3.0.21-win64.exe have no ADS, npp.8.8.5.Installer.x64.exe has Zon.Identifier ADS
                      • 3 of them are lauched without SmartScreen.

                      So I would say the release 8.8.7 just need the time to gain the trust.

                      xomxX 1 Reply Last reply Reply Quote 1
                      • xomxX
                        xomx @donho
                        last edited by

                        @donho

                        I’ve got the same SmartScreen(SS)-triggering results with all the RC 1, 2 ,3 (in my testing VM, w/o internet access):

                        npp-SmartScreen-v887rc123.png

                        That’s unfortunate. Every info source about the SS I checked state that there is only one 100% way how to not trigger it in this situation - the EV-cert. For the new OV-cert there is a period in which it has to gain the reputation. I found an interesting real data about - if they can be trusted, installers with the new N++ OV-cert will need ~18 days and about ~430 app installations (the more installations, the fewer days and vice versa) before this annoying SS dlg disappears.

                        So to prevent another “is-it-really-safe?!” shitstorm from the users we can:

                        • sacrifice ourselves and manually install and click on all our comps with active SS and internet connection (and ask also the Community users to do the same), before triggering the v8.8.7 for autoupdate
                        • or you can try the 2nd advice for the app-owners in the MS FAQ: “Apply for a Windows Logo (To learn more visit the Windows Logo Program page on MSDN)”. But IDK what that would entail and if it would be 100% reliable against the SS.
                        • or be proactive and submit new N++ installers to MS for analysis, try to use the 3rd “Software Developer - SW providers wanting to validate detection of their product” link from: https://www.microsoft.com/en-us/wdsi/filesubmission
                        donhoD 1 Reply Last reply Reply Quote 1
                        • donhoD
                          donho @xomx
                          last edited by donho

                          @xomx
                          “sacrifice ourselves” is a big word :)
                          We enjoy coding, making the application work, editing the documents, building the community & helping users - so we are here to have fun, not to sacrifice ourselves. At least, that’s how I see it.

                          It’s really not a big deal to have SmartScreen temporally, knowing it will disappear soon.
                          So I’d rather keep doing what I enjoy in this project, let the time resolve the issue, and avoid dealing with Microsoft’s annoying administrative task.

                          1 Reply Last reply Reply Quote 2
                          • PeterJonesP
                            PeterJones
                            last edited by

                            @donho ,

                            Additional datapoint: I had left my installed copy with having run either RC2 or RC3 yesterday, and when I ran today, I noticed that Plugins Admin wasn’t showing up. I double-checked, and none of the exe or dll had the MotW Zone.Identifier, but it wasn’t showing up. I reran the RC1 installer, and Plugins Admin showed up again.

                            I tried RC2 installer, and Plugins Admin disappeared, and RC1 fixed it.
                            I tried RC3 installer, and Plugins Admin disappeared, and RC1 fixed it.

                            I think there’s a mismatch in your safety check for Plugins Admin if someone uses RC2 or RC3 (or, at least, that’s my experience). So if you still release on Monday, please make sure you release from RC1 (or create an RC4 that is internally consistent again).

                            donhoD 1 Reply Last reply Reply Quote 2
                            • donhoD
                              donho @PeterJones
                              last edited by donho

                              @PeterJones
                              The binaries of below link was modified, now it should be OK.
                              https://download.notepad-plus-plus.org/repository/8.x/8.8.7.RC/

                              In short, the signing order of the first binary set in the above link is nppRoot then globalSign. The 2nd binaries set with signing order globalSign then nppRoot replaced the 1st binaries set. Then I realized the same issue you have discovered. So I ajusted the script to generate the 3rd binaries set (nppRoot then globalSign), and replace the 2nd binaries set with the 3rd one.

                              Why does signing order matter:
                              The Notepad++ internal component SecurityGuard checks only the first certificates it found in WinGUp & nppPluginList to compare the subject name, certificate number, etc… It should be enhanced, and I will work on it in the future.

                              The binaries in 8.8.7.RC directory should be good now.
                              Sorry for the inconvenience.

                              Snabel42S xomxX 2 Replies Last reply Reply Quote 1
                              • Snabel42S
                                Snabel42 @donho
                                last edited by

                                @donho can confirm that for me with this RC there is no download warning or SmartScreen triggered

                                1 Reply Last reply Reply Quote 1
                                • xomxX
                                  xomx @donho
                                  last edited by

                                  @donho said in Notepad++ v8.8.7 Release Candidate:

                                  The binaries of below link was modified, now it should be OK.
                                  https://download.notepad-plus-plus.org/repository/8.x/8.8.7.RC/

                                  Today used installer from the above link and I’ve got:

                                  npp-certs-duplication.png

                                  donhoD 1 Reply Last reply Reply Quote 1
                                  • donhoD
                                    donho @xomx
                                    last edited by donho

                                    @xomx
                                    Well spotted!

                                    With the signtool, I passed the argument /as to signed with both the first certif and the 2nd one - that makes the duplication signature on binaries when the script runs morn than 1 time.

                                    I just fixed the script to pass /a to sign with the first certif and /as with the 2nd one.

                                    More info:

                                    /a          Select the best signing cert automatically. SignTool will find all
                                                valid certs that satisfy all specified conditions and select the
                                                one that is valid for the longest. If this option is not present,
                                                SignTool will expect to find only one valid signing cert.
                                    
                                    
                                    /as         Append this signature. If no primary signature is present, this
                                                signature will be made the primary signature instead.
                                    

                                    The explanation is not explicite for /a. In my experience, usage of this parameter removes all the signatures before signing with the certificate.

                                    The problem of signature duplication is fixed in RC2:
                                    https://download.notepad-plus-plus.org/repository/8.x/8.8.7.RC2/

                                    edit: with some tests, it turns out that the argument /a does nothing for the first signing - without /a it still removes all signatures before signing.

                                    1 Reply Last reply Reply Quote 3
                                    • First post
                                      Last post
                                    The Community of users of the Notepad++ text editor.
                                    Powered by NodeBB | Contributors