6,663 karma · joined Feb 25, 2016 (10y ago) · 1,775 submissions
Previously AWS Cryptography (2019 - 2023).
Unless otherwise stated, my opinions are my own and do not reflect my employer.
https://scottarc.blog/about/
comment 7y ago · link · parent
I have faithfully filled out a CVSS calculator form for small bugs that I'd consider sev:med and it happily declared them as sev:crit.
It's stupid. CVSS just muddies the water and creates the illusion of a measuring stick where there is none.
I don't bother with CVSS, and none of my clients even notice.
Just treat severity as an enum and explain your decision:
typedef enum sev { info, low, med, high, crit } sev;
If your justification for severity score can fit in a tweet, and be understood by a layman, mission accomplished.362.
Improving the Cryptography of the JavaScript Ecosystem(paragonie.com ↗)
2 points · by CiPHPerCoder · 7y ago · discuss
363.
Show HN: Sodium-Plus – JavaScript Cryptography for Humans(github.com ↗)
1 points · by CiPHPerCoder · 7y ago · discuss
comment 7y ago · link · parent
Page 15 describes it in detail.
comment 7y ago · link · parent
https://blog.cryptographyengineering.com/2015/04/02/truecryp...
https://opencryptoaudit.org/reports/TrueCrypt_Phase_II_NCC_O...
The keyfiles bug mentioned was previously disclosed against 7.0a: https://cyberside.net.ee/truecrypt/misc/truecrypt_7.0a-analy...
comment 7y ago · link · parent
> If you're on an ancient Linux kernel, you can poll /dev/random until it's available if you're uncertain whether or not /dev/urandom has ever been seeded. Once /dev/random is available, don't use /dev/random, use /dev/urandom. This side-steps the "/dev/urandom never blocks" concern that people love to cite in their fearmongering. This is essentially what getrandom(2) does.
This is outlined here as well: https://paragonie.com/blog/2016/05/how-generate-secure-rando...
This is what randombytes_buf() does in libsodium on older Linux kernels.
This is actually the best of both worlds: Although /dev/urandom on Linux will happily give you predictable values if you try to read from it before the RNG has been seeded on first boot, once /dev/random is "ready" to be read from once, you know that the entropy pool powering /dev/urandom has been seeded. And then you can guarantee that /dev/urandom is secure and nonblocking henceforth.
If you can't just use getrandom(2), do the "poll /dev/random, then read /dev/urandom" dance and even the fearmonger's favorite issue to cite becomes a non-issue.
comment 7y ago · link · parent
Entropy running low is not an actual problem. AES-CTR doesn't "run out of key".
If your OS's "entropy estimator" is producing small numbers and your userspace applications are using /dev/random, yes, that will degrade your performance. That's the actual problem.
The solution is for the developers of your software to stop using /dev/random, wholesale.
Saying that the actual problem is "entropy running low" is like saying "water is flammable". That might be true in extreme cases, but isn't in the general case.
comment 7y ago · link · parent
> Using the Jitter RNG core, the rngd provides an entropy source that feeds into the Linux /dev/random device if its entropy runs low. It updates the /dev/random entropy estimator such that the newly provided entropy unblocks /dev/random.
This is a red flag. Entropy doesn't run low. https://www.2uo.de/myths-about-urandom
I'm calling it now: Don't use VeraCrypt.
They made a very questionable decision based on the sort of ignorance that leads people to use /dev/random and haveged rather than RtlGenRandom (Windows), getrandom(2) (new Linux), or /dev/urandom (old Linux).
Cryptography engineering requires care and this sort of ignorance tends to undermine secure implementations.
comment 7y ago · link · parent
What does Gutmann say in 2019 about /dev/urandom vs /dev/random?
Which of the two do JP Aumasson (author of Serious Cryptography and inventor of several cryptography algorithms used today, including BLAKE2 and SipHash), Dan Bernstein (Salsa20, ChaCha20, Poly1305, Curve25519, Ed25519, etc.), Matthew Green (professor associated with the TrueCrypt audit), et al. prefer in their own designs?
I can promise you the answer is /dev/urandom. Why do they prefer /dev/urandom? Because of the reasons outlined in the article I linked (which, unlike the mailing list post you linked, is occasionally updated with corrections).
It's not really that complicated: Use /dev/urandom.
If you're on an ancient Linux kernel, you can poll /dev/random until it's available if you're uncertain whether or not /dev/urandom has ever been seeded. Once /dev/random is available, don't use /dev/random, use /dev/urandom. This side-steps the "/dev/urandom never blocks" concern that people love to cite in their fearmongering. This is essentially what getrandom(2) does.
If you're on a recent Linux kernel, you can say "just use getrandom(2)" instead of "just use /dev/urandom", but the premise of the discussion is whether to use /dev/random or /dev/urandom not which of all possible options should be used.
See also: https://paragonie.com/blog/2016/05/how-generate-secure-rando...
The belief that /dev/random must somehow be better than /dev/urandom is, frankly, security theater.
comment 7y ago · link · parent
/dev/random doesn't provide "true randomness".
/dev/random and /dev/urandom provide the same kind of randomness. The difference is that, for 99.999% of developers, /dev/random blocks for no good reason.
All haveged does is pollute the kernel entropy pool to make /dev/random less unstable in production.
comment 7y ago · link · parent
https://www.wired.com/story/mastermind-excerpt/
https://magazine.atavist.com/the-mastermind
It's pretty likely that Paul Le Roux was behind TrueCrypt.
comment 7y ago · link · parent
I have never heard of Jitterentropy but it sounds vaguely like previous attempts at RNGs.
/r/crypto had a good discussion about this topic a while ago: https://www.reddit.com/r/crypto/comments/9dln0v/whats_the_pr...
My intuition is that this is dangerous and will likely result in security bugs in the future.
377.
Show HN: Sodium-Plus – Usable Cryptography for JavaScript Developers(github.com ↗)
3 points · by CiPHPerCoder · 7y ago · discuss
378.
Show HN: Na+ – A Positive Cryptography Experience for JavaScript Developers(dev.to ↗)
1 points · by CiPHPerCoder · 7y ago · discuss
comment 7y ago · link · parent
A couple years ago I started developing an open source PHP library called Certainty. You can read about it here: https://paragonie.com/blog/2017/10/certainty-automated-cacer...
Essentially, I wanted to ensure that server-to-server HTTP requests use TLS securely in open source projects, but unfortunately a lot of code disabled TLS verification in PHP software.
Including eCommerce plugins.
Including eCommerce plugins that connect to Authorize.net payment gateways.
grimace
However, no equivalent JavaScript solution exists for solving this problem.
I was concerned that a lot of the developers who used to write vulnerable PHP code might also be working in the Electron/Cordova/etc. ecosystem today, and if they retained any of their bad habits from their PHP + ext/curl days, their products would be at risk.
So I decided to port this library to Node.js. Let me know what you think.
380.
Show HN: Certainty-JS: Automated CACert.pem Management for Node.js Software(github.com ↗)
1 points · by CiPHPerCoder · 7y ago · 1 comment
comment 7y ago · link · parent
A couple years ago I started developing an open source PHP library called Certainty. You can read about it here: https://paragonie.com/blog/2017/10/certainty-automated-cacer...
Essentially, I wanted to ensure that server-to-server HTTP requests use TLS securely in open source projects, but unfortunately a lot of code disabled TLS verification in PHP software.
Including eCommerce plugins.
Including eCommerce plugins that connect to Authorize.net payment gateways.
grimace
However, no equivalent JavaScript solution exists for solving this problem.
I was concerned that a lot of the developers who used to write vulnerable PHP code might also be working in the Electron/Cordova/etc. ecosystem today, and if they retained any of their bad habits from their PHP + ext/curl days, their products would be at risk.
So I decided to port this library to Node.js. Let me know what you think.
382.
Show HN: Certainty-JS: Automated CACert.pem Management for Node.js Software(github.com ↗)
3 points · by CiPHPerCoder · 7y ago · 1 comment
comment 7y ago · link · parent
https://mega.nz perhaps?
comment 7y ago · link · parent
PGP is not. https://latacora.singles/2019/07/16/the-pgp-problem.html
comment 7y ago · link · parent
> It's worth noting the client is Cloudhopper: that has been compromised before.
> https://twitter.com/gruber/status/859857475146854402
Looking up the hashtag the attackers used, I came across this blog post alleging the problem being AT&T's: https://www.treyexgaming.com/index.php/2019/08/26/how-the-sa...
Food for thought.
Regardless of whether the alleged source of insecurity is what happened here, SMS-based authentication was a mistake.
comment 7y ago · link · parent
It's very difficult to read past this statement.
However, the follow-up almost redeems it:
> That said, the criteria put forward by the follow up tweets are almost entirely garbage.
The tweet he's responding to is hot garbage and it's good that any sane person rejects it.
Let's be clear though: There are no 10x engineers (as the industry understands the term, which is about individual excellence over one's peers).
There are are engineers who reduce the effectiveness of their peers, so they can claim to be 10x as effective as them.
There are 0.1x engineers, whom the average engineer can compare themselves to and decide they're a 10x engineer. I've worked with several over the years! (One in particular was more keenly interested in trying to convert his coworkers to his religion than actual work.)
The reason there aren't 10x engineers is, most engineering of sufficient scale or significance is done as a team, not as an individual.
My comment isn't sour grapes either. I rewrote a cryptography library in pure PHP, almost entirely on my own. I have an open source library for most security problems that the PHP ecosystem has managed to cook up, and I'm the sole contributor to most of them. People have called me a "10x engineer" before.
I reject the title, and you should too.
We can all accomplish more by working together than we can silo'd.
Build bridges, not walls. Gatekeeping and arrogance are both stupid.