Skip to contentSkip to conversation

New EV-signed tap-windows6 driver ready for testing

Openvpn-devel Selva Nair 3 participants 8 messages Apr 17, 2016 – Apr 21, 2016 2 messages not in the archive

lore
Share & tools
lore

Selva Nair

author
#1 lore raw
In reply to a message not in the archive

Hi,

Quoted 5 lines · Samuli Seppänen

After a longish struggle I managed to produce a tap-windows6 driver that has SHA2 EV signature, and which installs correctly on one particular instance of Windows 7. An earlier driver signed with the same EV certificate loaded correctly on Windows 10.

Quoted 9 lines

Now we'd need to verify that this particular driver installs and works correctly on other Windows versions, such as

- Windows 10 (untested)
- Windows 8.1 (untested)
- Windows 7 (more testing is always good)
- Windows Server 2012r2 (untested)
- Windows Vista (untested, _might_ fail)

- Windows 10 (64 bit): success

Installs without error and works fine.

- Windows 7 (64 bit): success, but see below

Installs without error and works fine.
However, the driver details says that its _not_ digitally signed, but the driver properties window shows "Digitally signed by OpenVPN Technologies Inc."
Installing KB3123479 (update to support SHA2 signatures) makes no difference.

- Windows server 2008r2 (64bit) : installs ok, but adapter fails

Installs without error, driver properties and driver details display same as Windows 7 (i.e one says signed, other says not signed). Cannot enable the tap adapter -- fails with the following error

"The TAP-Windows Adapter V9 service failed to start due to the following error:
Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source."

On installing KB3123479, the error changes to
"The driver \Driver\tap0901 failed to load for the device ROOT\NET\0004." and TAP adapters do no show up in the list of network adapters

- Windows vista (32 bit): installs after ignoring security warning, works fine

Installation: Pops up a warning that says no valid signature, publisher not verified etc. On choosing to install anyway, completes without error. Tap adapter works fine

I thought driver signature is not enforced on 32 bit vista, but this is the only platform (among those I tried) that complained loudly at installation time.

Note: none of the above systems are up-to-date with windows updates.

Selva

#2 lore raw

Hi Selva,

Quoted 18 lines · Selva Nair

- Windows 7 (64 bit): success, but see below

Installs without error and works fine.
However, the driver details says that its _not_ digitally signed, but the driver properties window shows "Digitally signed by OpenVPN Technologies Inc."
Installing KB3123479 (update to support SHA2 signatures) makes no difference.

[...]

- Windows vista (32 bit): installs after ignoring security warning, works fine

Installation: Pops up a warning that says no valid signature, publisher not verified etc. On choosing to install anyway, completes without error. Tap adapter works fine

Quoted 5 lines

I thought driver signature is not enforced on 32 bit vista, but this is the only platform (among those I tried) that complained loudly at installation time.

Note: none of the above systems are up-to-date with windows updates.

Windows 7 only received support for kernel driver signatures with SHA256 digests about a year ago (the first attempt by MS, a year before that, failed and MS had to revoke their patch). Userland support for SHA256 digests has been available for much longer. I guess that the situation for Vista is about the same. So the fact that the system are not fully patched could explain the failures.

-Steffan

#3 lore raw
In reply to Selva Nair

Hi,

Quoted 3 lines

- Windows 10 (64 bit): success

Installs without error and works fine.

Excellent!

Quoted 8 lines

- Windows 7 (64 bit): success, but see below

Installs without error and works fine.
However, the driver details says that its _not_ digitally signed, but the driver properties window shows "Digitally signed by OpenVPN Technologies Inc."
Installing KB3123479 (update to support SHA2 signatures) makes no difference.

Yeah, I noticed the same. This may just be a glitch in the GUI. Also, I think the same issue was/is present when using the old tap-windows6 driver that has a SHA1 signature.

Interestingly Powershell seems to show all signatures I've created as valid, not matter what:

Quoted 1 line

Get-AuthenticodeSignature .\tap0901.cat

It could be that the Get-Authenticode only does basic validation and does not lookup the entire certification path, like installing the driver or loading it to the kernel would. That said, the CmdLet occasionally hangs for long periods of time, so it could be doing something (e.g. downloading missing certificates) behind the scenes.

Quoted 6 lines

- Windows server 2008r2 (64bit) : installs ok, but adapter fails

Installs without error, driver properties and driver details display same as Windows 7 (i.e one says signed, other says not signed). Cannot enable the tap adapter -- fails with the following error

Quoted 6 lines

"The TAP-Windows Adapter V9 service failed to start due to the following error:
Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source."

I suspect most of the signature issues are because of an incomplete certification path. I believe the path is viewable from the file properties dialog.

Quoted 8 lines

On installing KB3123479, the error changes to
"The driver \Driver\tap0901 failed to load for the device ROOT\NET\0004." and TAP adapters do no show up in the list of network adapters

- Windows vista (32 bit): installs after ignoring security warning, works fine

Quoted 7 lines

Installation: Pops up a warning that says no valid signature, publisher not verified etc. On choosing to install anyway, completes without error. Tap adapter works fine

I thought driver signature is not enforced on 32 bit vista, but this is the only platform (among those I tried) that complained loudly at installation time.

From what I read, Windows Vista does not correctly support SHA2 signatures (in kernel drivers?). So it seems that 32-bit Vista works fine, but just complains a bit. It would be good to test on Windows Vista 64-bit and see if it outright rejects the driver. If that happens, we need to discuss what to do with Vista 64-bit; its Extended support EOL is due on April 11, 2017 [1].

Quoted 1 line

Note: none of the above systems are up-to-date with windows updates.

This could cause part of the failures at least. Fully updating the system and retesting would be a good exercise (if possible).

I tested the driver on Windows Server 2012r2:
- installed just fine
- worked just fine

So so far only Windows Server 2008 is giving us headaches. I did receive one private report about Windows 7 64-bit not working, but I'll have to verify all the facts first.

In the worst case I can use dual signatures in the driver files. The main signature would be a non-EV SHA-1 signature, and the SHA-2 EV signature would be a secondary signature. Or the other way around. Some projects such as WinSCP advertise dual signatures on their executables and/or installers, so I guess that's a reasonable way forward. This would of course require a second round of testing.

Signature · 7 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

[1] <http://windows.microsoft.com/en-us/windows/lifecycle>
#5 lore raw
In reply to a message not in the archive

Hi,

I just received a report from a colleague that the tap6-ev-signed driver failed on one particular instance of Windows 10. I will query for more details. In any case, there seems to be little coherence in Windows' behavior with the signatures.

Another colleague of mine had noticed strange behavior on Windows 10: when Windows updates are being downloaded/installed, tapinstall.exe just hangs, and the driver is in a non-functional state, and tap-windows6 installation times out in 5 minutes or so. When the Windows updates are finished, tap-windows6 installation completes automatically. However, if the update are not stopped, then the tap-windows6 driver will remain in non-functional state indefinitely, unless Windows update is disabled completely. I assume that Windows update can be re-enabled after tap-windows6 installation completes.

Anyways, I created a Wiki page with current test results and more thorough instructions:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

Hopefully we can figure out a way to make all Windows versions accept a single driver package. If that fails, the least bad approach is probably to have three drivers embedded into one installer:

- tap-windows (NDIS5), non-EV SHA1 for Windows XP
- tap-windows6 (NDIS6), non-EV SHA1 for Windows Vista - 8.1
- tap-windows6 (NDIS6), EV SHA2 for Windows 10

Hopefully we can avoid that mess...

Quoted 2 lines

Only the old 32-bit vista machine is badly out-of-date and bringing it up-to-date is a major pain. Will try.

Ok, great! Based on my experiences with updating badly out-of-date Windows 7 installations we'll be hearing more about this in 2 weeks or so :).

Quoted 2 lines

Dual signatures sounds like a good plan provided all these older windows versions are capable of reading dual signatures. We should test this.

Definitely. I will produce two different driver packages today:

1) tap6-dual-sha2ev-sha1

Primary signature is EV SHA2, secondary non-ev SHA1.

2) tap6-dual-sha1-sha2ev

Same as above, but the other way around. I suspect this will be more likely to succeed.

---

That said, I can see several ways how even the dual signature strategy could fail. For example:

- Cross-certificates cannot be added to the secondary certificate, possibly resulting in incomplete certification path.

- When adding a secondary certificate Signtool.exe does not allow timestamping, which may or may not be an issue.

- Older / unupdated Windows versions might get confused about the primary/secondary certificates and/or unsupported hashes. This is just a hunch.

I'll report back when the drivers are ready.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#6 lore raw

Hi,

I produced a new set of drivers with dual signatures. See "tap6-dual-sha1-sha2ev" download links and test results here:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

The driver passed basic testing on my Windows 7 test laptop.

Samuli

Quoted 70 lines

Hi,

I just received a report from a colleague that the tap6-ev-signed driver failed on one particular instance of Windows 10. I will query for more details. In any case, there seems to be little coherence in Windows' behavior with the signatures.

Another colleague of mine had noticed strange behavior on Windows 10:
when Windows updates are being downloaded/installed, tapinstall.exe just hangs, and the driver is in a non-functional state, and tap-windows6 installation times out in 5 minutes or so. When the Windows updates are finished, tap-windows6 installation completes automatically. However, if the update are not stopped, then the tap-windows6 driver will remain in non-functional state indefinitely, unless Windows update is disabled completely. I assume that Windows update can be re-enabled after tap-windows6 installation completes.

Anyways, I created a Wiki page with current test results and more thorough instructions:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

Hopefully we can figure out a way to make all Windows versions accept a single driver package. If that fails, the least bad approach is probably to have three drivers embedded into one installer:

- tap-windows (NDIS5), non-EV SHA1 for Windows XP
- tap-windows6 (NDIS6), non-EV SHA1 for Windows Vista - 8.1
- tap-windows6 (NDIS6), EV SHA2 for Windows 10

Hopefully we can avoid that mess...

Quoted 2 lines

Only the old 32-bit vista machine is badly out-of-date and bringing it up-to-date is a major pain. Will try.

Ok, great! Based on my experiences with updating badly out-of-date Windows 7 installations we'll be hearing more about this in 2 weeks or so :).

Quoted 2 lines

Dual signatures sounds like a good plan provided all these older windows versions are capable of reading dual signatures. We should test this.

Definitely. I will produce two different driver packages today:

1) tap6-dual-sha2ev-sha1

Primary signature is EV SHA2, secondary non-ev SHA1.

2) tap6-dual-sha1-sha2ev

Same as above, but the other way around. I suspect this will be more likely to succeed.

---

That said, I can see several ways how even the dual signature strategy could fail. For example:

- Cross-certificates cannot be added to the secondary certificate, possibly resulting in incomplete certification path.

- When adding a secondary certificate Signtool.exe does not allow timestamping, which may or may not be an issue.

- Older / unupdated Windows versions might get confused about the primary/secondary certificates and/or unsupported hashes. This is just a hunch.

I'll report back when the drivers are ready.

#7 lore raw

Hi,

So far the new driver (tap6-dual-sha1-sha2ev) looks promising: it works on 64-bit Vista, 7 and 10:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

Selva: can you try this new driver on your Vista 32-bit and Windows Server 2008? If you still have not updated them then please don't: it's probably best to test again systems which are more likely to cause issues.

I'll test the driver on Windows Server 2012 and append the results to the Wiki page.

Samuli

Quoted 94 lines

Hi,

I produced a new set of drivers with dual signatures. See "tap6-dual-sha1-sha2ev" download links and test results here:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

The driver passed basic testing on my Windows 7 test laptop.

Samuli

Quoted 61 lines

Hi,

I just received a report from a colleague that the tap6-ev-signed driver failed on one particular instance of Windows 10. I will query for more details. In any case, there seems to be little coherence in Windows' behavior with the signatures.

Another colleague of mine had noticed strange behavior on Windows 10:
when Windows updates are being downloaded/installed, tapinstall.exe just hangs, and the driver is in a non-functional state, and tap-windows6 installation times out in 5 minutes or so. When the Windows updates are finished, tap-windows6 installation completes automatically. However, if the update are not stopped, then the tap-windows6 driver will remain in non-functional state indefinitely, unless Windows update is disabled completely. I assume that Windows update can be re-enabled after tap-windows6 installation completes.

Anyways, I created a Wiki page with current test results and more thorough instructions:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

Hopefully we can figure out a way to make all Windows versions accept a single driver package. If that fails, the least bad approach is probably to have three drivers embedded into one installer:

- tap-windows (NDIS5), non-EV SHA1 for Windows XP
- tap-windows6 (NDIS6), non-EV SHA1 for Windows Vista - 8.1
- tap-windows6 (NDIS6), EV SHA2 for Windows 10

Hopefully we can avoid that mess...

Quoted 2 lines

Only the old 32-bit vista machine is badly out-of-date and bringing it up-to-date is a major pain. Will try.

Ok, great! Based on my experiences with updating badly out-of-date Windows 7 installations we'll be hearing more about this in 2 weeks or so :).

Quoted 2 lines

Dual signatures sounds like a good plan provided all these older windows versions are capable of reading dual signatures. We should test this.

Definitely. I will produce two different driver packages today:

1) tap6-dual-sha2ev-sha1

Primary signature is EV SHA2, secondary non-ev SHA1.

2) tap6-dual-sha1-sha2ev

Same as above, but the other way around. I suspect this will be more likely to succeed.

---

That said, I can see several ways how even the dual signature strategy could fail. For example:

- Cross-certificates cannot be added to the secondary certificate, possibly resulting in incomplete certification path.

Quoted 9 lines

- When adding a secondary certificate Signtool.exe does not allow timestamping, which may or may not be an issue.

- Older / unupdated Windows versions might get confused about the primary/secondary certificates and/or unsupported hashes. This is just a hunch.

I'll report back when the drivers are ready.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

author
#8 lore raw

Hi,

Quoted 11 lines · Samuli Seppänen

Hi,

So far the new driver (tap6-dual-sha1-sha2ev) looks promising: it works on 64-bit Vista, 7 and 10:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

Selva: can you try this new driver on your Vista 32-bit and Windows Server 2008? If you still have not updated them then please don't: it's probably best to test again systems which are more likely to cause issues.

To add to what's already confirmed, the new driver works for me too on Windows 10 and window 7 (both 64bit) -- no problems with installation or use; same as the earlier sha2-only version.

The behaviour on vista 32 (still not updated) is somewhat strange -- both the -sha2 and -sha1-sha2 now installs without any warning after the first forced installation --- i.e., install ignoring a stern warning, remove, and then install again and the second time onwards there are no warnings. I did not select the "trust this publisher" button or anything, but it behaves as if. Anyway, dual signatures appear to be fine even with this out-of-date vista machine though it may be seeing only the first signature:
file properties shows only one digest -- sha2 on the first version and sha1 on the second one.

Updating the vista machine is probably not going to happen -- too many failures trying to do so and considering this was booted into vista first time in 2 years, it looks like a lost battle.

Selva

#9 lore raw

Hi Selva,

Thanks for doing the tests!

Quoted 18 lines

Hi,

On Wed, Apr 20, 2016 at 2:51 AM, Samuli Seppänen <[email protected]... <mailto:[email protected]...>> wrote:

Hi,

So far the new driver (tap6-dual-sha1-sha2ev) looks promising: it works on 64-bit Vista, 7 and 10:

<https://community.openvpn.net/openvpn/wiki/TapWindows6CodesignTests>

Selva: can you try this new driver on your Vista 32-bit and Windows Server 2008? If you still have not updated them then please don't:
it's probably best to test again systems which are more likely to cause issues.

Quoted 3 lines

To add to what's already confirmed, the new driver works for me too on Windows 10 and window 7 (both 64bit) -- no problems with installation or use; same as the earlier sha2-only version.

Great! I added all of your results to the Wiki page.

Quoted 9 lines

The behaviour on vista 32 (still not updated) is somewhat strange -- both the -sha2 and -sha1-sha2 now installs without any warning after the first forced installation --- i.e., install ignoring a stern warning, remove, and then install again and the second time onwards there are no warnings. I did not select the "trust this publisher" button or anything, but it behaves as if. Anyway, dual signatures appear to be fine even with this out-of-date vista machine though it may be seeing only the first signature: file properties shows only one digest -- sha2 on the first version and sha1 on the second one.

Ok, if Vista can only see one signature then making SHA1 the primary one made perfect sense. Interestingly the capability to add multiple signatures/timestamps to a file has appeared relatively recently: signtool.exe bundled with WinDDK 7600.* does not support it.. Windows Kit 10 (successor to WinDDK I presume) does have multiple signature support.

Quoted 3 lines

Updating the vista machine is probably not going to happen -- too many failures trying to do so and considering this was booted into vista first time in 2 years, it looks like a lost battle.

Yeah, don't worry about it. I think the driver has proven itself to the degree it can without actually being tested in the wild.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock