News for hackers. Stuff that matters.
Re:The FIPS 140-3 Go Cryptographic Module by dlock17 on Tuesday July 15, 2025 @08:07PM (#44577291)
I may be thinking more about FedRAMP in general rather than just FIPS140-3, but mandating things like keeping user passwords out of logs is a security improvement.

And the average company needs to be dragged kicking and screaming to care about security at all.

Re:The FIPS 140-3 Go Cryptographic Module by tptacek on Tuesday July 15, 2025 @08:13PM (#44577325)
This is about exclusively using "validated" implementations of specific cryptographic constructions. You can avoid it simply by not encrypting stuff at all, which is an indication of how little it has to do with security.
Re:The FIPS 140-3 Go Cryptographic Module by hamandcheese on Tuesday July 15, 2025 @09:45PM (#44577886)
> You can avoid it simply by not encrypting stuff at all, which is an indication of how little it has to do with security.

The consequences of encrypting wrongly quite possibly are worse than if you never encrypted at all.

Re:The FIPS 140-3 Go Cryptographic Module by Spooky23 on Tuesday July 15, 2025 @11:09PM (#44578309)
Remember when HN was losing its collective mind over Dual_EC_DRBG? That was delivered to customers with a FIPS validated software stack.
Re:The FIPS 140-3 Go Cryptographic Module by hamandcheese on Wednesday July 16, 2025 @02:50AM (#44579431)
Both of these things can be true at the same time:

- "Don't use unproven cryptography" is a reasonable policy.

- Policymaking can be subverted by bad actors.

Re:The FIPS 140-3 Go Cryptographic Module by Spooky23 on Wednesday July 16, 2025 @08:36AM (#44581590)
Yes, but neither of those things have anything to do with FIPS 140-3.

FIPS validation address the compliance problem of needing validation. Beyond that, the benefits are ambiguous at best.

Re:The FIPS 140-3 Go Cryptographic Module by tptacek on Tuesday July 15, 2025 @09:49PM (#44577914)
Good thing FIPS 140 does virtually nothing to prevent cryptographic vulnerabilities, then.
Re:The FIPS 140-3 Go Cryptographic Module by tguvot on Tuesday July 15, 2025 @11:39PM (#44578464)
fedramp requires to encrypt a bunch of stuff
Re:The FIPS 140-3 Go Cryptographic Module by Spooky23 on Tuesday July 15, 2025 @11:05PM (#44578292)
FedRAMP is more a cheatsheet for compliance people. Someone in a federal agency had an auditor validate that the required NIST controls were done.

The most useful thing about FIPS 140 is that it’s a great way of quickly identifying clueless security people.

Re:The FIPS 140-3 Go Cryptographic Module by thayne on Tuesday July 15, 2025 @11:49PM (#44578507)
> but mandating things like keeping user passwords out of logs is a security improvement.

That has nothing to do with FIPS 140.

FIPS 140 is just requirements for "cryptographic modules".

It specifies which algorithms are allowed and requires that you use modules that have been "validated" by going through an expensive and slow auditing process.

While I don't think it is completely useless to have those requirements, it has some problems, such as:

- it takes a very long time for anything to get validated. For example, Ubuntu 22.04 only recently got its crypto packages validated after being "in process" for years.

- bug fixes have to go through the validation process too, so if a vulnerability is found, you can be left vulnerable for a while

- For many languages and runtimes, using FIPS certified modules is a royal pain. For example, for several versions of node, there was no good way to run it in a FIPS compatible way, because it required a newer version of openssl than the latest FIPS certified version. AWS lambdas, even in GovCloud don't include FIPS certified crypto, so you have to bundle it in your package and make sure to use your local library instead of the system library, which can be quite difficult depending on the language. Prior to this change in go, using FIPS in go required using cgo to link to a FIPS certified c library, and make sure you either did some fancy link magic to get any libraries you used to also use that, or don't use any libraries that use the standard crypto library.

- It doesn't include many algorithms that are widely used and generally considered secure including Ed25519, chacha20-poly1305, argon (along scrypt, bcrypt, etc.), etc. This can cause problems with compatibility with other systems.

Re:The FIPS 140-3 Go Cryptographic Module by __bjoernd on Wednesday July 16, 2025 @01:10AM (#44578883)
Luckily, FedRAMP have updated their FIPS guidance just this year to allow using crypto modules that have been validated and then received security patches. They realized that security patching is important and you don't need to recertify every patch before using it anymore.

https://www.fedramp.gov/rev5/fips/

Re:The FIPS 140-3 Go Cryptographic Module by dchest on Wednesday July 16, 2025 @03:37AM (#44579678)
FYI, Ed25519 is now included.
Re:The FIPS 140-3 Go Cryptographic Module by jandrewrogers on Wednesday July 16, 2025 @02:45AM (#44579400)
This has relatively little to do with actual security. It is compliance and certification theater for the most part. In many cases you can avoid it entirely by outsourcing caring about it to the customer. This isn’t always a bad thing; sometimes they understand and can deliver on their requirements much better than you can.