Live data from Hacker News

WolfGuard: WireGuard with FIPS 140-3 cryptography

github.com

31–40 of 65 posts

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#31
post #9

Earlier quoted context omitted.

And they do it fast, thankfully Compliant Static Code Analyser catches issues like https://github.com/wolfSSL/wolfGuard/commit/fa21e06f26de201b...

Holy shit. Those are rookie mistakes[1], that could end up being SEVERE. [1] Not referring to the fixes.

looks like AI to me. It’s always making rookie mistakes that look plausible!

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#32
post #8

I know software developers complain about forced compliance due to the security theatre aspects, but I would like to charitably ask from someone who has technical understanding of FIPS-compliant cryptography. Are there any actual security advantages on technical grounds for making WireGuard FIPS-compliant? Assume the goal is not to appease pencil pushers. I really want to know if this kind of effort has technical gai…

No.

Getting a crypto module validated by FIPS 140-3 simply lets you sell to the US Government (something something FedRAMP). It doesn't give you better assurance in the actual security of your designs or implementations, just verifies that you're using algorithms the US government has blessed for use in validated modules, in a way that an independent lab has said "LGTM".

You generally want to layer your compliance (FIPS, etc.) with actual assurance practices.

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#33
post #29

Earlier quoted context omitted.

It is, we did the same. It is a shame that only Linux supports proper fake TCP though.

Doesn't the Chinese firewall perform sophisticated filtering? Fake TCP should not be difficult to catch. I recall reading how the firewall uses proxies to initiate connections just to see whats up.

You can host a decoy on the server side.

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#34
It's unfortunate that WireGuard doesn't include a switch that if both sides agree the crypto in use would be AES and SHA256. Not due to FIPS compliance but performance and power savings. I never once used WireGuard on hardware that didn't have AES and SHA intrinsics, all that battery wasted.

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#35

Earlier quoted context omitted.

Holy shit. Those are rookie mistakes[1], that could end up being SEVERE. [1] Not referring to the fixes.

looks like AI to me. It’s always making rookie mistakes that look plausible!

No, I mean, for example uninitialized pointers are a huge red flag, so seeing one not set to NULL is honestly shocking, especially in crypto code where a stray pointer can lead to crashes or subtle security issues.

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#36
post #24
post #21

Earlier quoted context omitted.

OpenVPN looks like a regular tls stream - difficult to distinguish between that and a HTTPS connection. WireGuard looks like WireGuard. But you can wrap WireGuard in whatever headers you might want to obfuscate it and the perf will still be better.

It's trivial to make WireGuard look like a regular TLS stream. It's probably not worth a 15 year regression in security characteristics just to get that attribute; just write the proxy for it and be done with it. It was a 1 day project for us (we learned the hard way that a double digit percentage of our users simply couldn't speak UDP and had to fix that).

I don't suppose you'd release it, please?

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#37
post #36
post #24

Earlier quoted context omitted.

It's trivial to make WireGuard look like a regular TLS stream. It's probably not worth a 15 year regression in security characteristics just to get that attribute; just write the proxy for it and be done with it. It was a 1 day project for us (we learned the hard way that a double digit percentage of our users simply couldn't speak UDP and had to fix that).

I don't suppose you'd release it, please?

It's part of `flyctl`, which is open source.

Re: WolfGuard: WireGuard with FIPS 140-3 cryptography

#40
> XChaCha20-Poly1305 replaced with AES-256-GCM

What could possibly go wrong? It's not like every CTF ever designed has a block cipher or counter mode challenge. /s

If the project wasn't done by WolfSSL, I would have assumed it's a trolling attempt to mock FIPS requirements. But it's not, and that's the problem.

Post reply on HN