Better HN
topnewbestaskshowjobs
Log inSign up

CiPHPerCoder

6,663 karma · joined Feb 25, 2016 (10y ago) · 1,775 submissions

My name is Scott. I do a lot of open source security research, and cryptography.

Previously AWS Cryptography (2019 - 2023).

Unless otherwise stated, my opinions are my own and do not reflect my employer.

https://scottarc.blog/about/

Submissions

comment 9y ago · link · parent

> Scanning a QR code by hand is easy when you don't have the phone handy. (sarcasm)

That's way different from "I don't want to give out my phone number".

comment 9y ago · link · parent

You don't need to do that for HOTP/TOTP though.

1. Scan a QR code.

2. You now have a secret value that can generate a deterministic pseudorandom integer securely indefinitely.

Also, SMS-based MFA should be burned to the ground.

comment 9y ago · link · parent

It isn't necessarily a terrible idea. Where it becomes bad is when unskilled developers implement it.

comment 9y ago · link · parent

Right. I meant one of the published NSLs where "the targeted individuals have been notified", not the unpublished ones.

comment 9y ago · link · parent

Has anyone on HN ever been notified by Google/Yahoo/other that they were the subject of an NSL? I wonder if the people most likely to care about that are unlikely to ever be targeted?

1206.

How to Safely Store Your Users' Passwords in 2016 (with Argon2)(paragonie.com ↗)

1 points · by CiPHPerCoder · 9y ago · discuss

1207.

Everything You Know About Public-Key Encryption in PHP Is Wrong(paragonie.com ↗)

1 points · by CiPHPerCoder · 9y ago · discuss

1208.

Everything You Know About Public-Key Encryption in PHP Is Wrong(paragonie.com ↗)

2 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

That was me, except I did most of the in-class assignments. Homework was actually detrimental to my understanding: I'd lose interest in the subject and forget things.

(I'm glad that, instead of doing homework, I spent my spare time teaching myself more interesting subjects.)

1210.

What Would You Pay to Make 27% of the Web More Secure?(sitepoint.com ↗)

1 points · by CiPHPerCoder · 9y ago · discuss

comment 10y ago · link · parent

It's OK. I just want to be clear that my objection to base-122 is the same as my objection to base-N where N != 2^m for some integer m.

comment 10y ago · link · parent

This doesn't appear to address the problem. At all.

https://paragonie.com/blog/2016/06/constant-time-encoding-bo...

comment 10y ago · link · parent

No, it hasn't. I sent a pull request that attempts to solve this problem for a C# implementation of Base58Check, but there's no way for me to reliably guarantee that data isn't leaking from the divison.

https://github.com/adamcaudill/Base58Check/pull/3

comment 10y ago · link · parent

My problem with base-122 is simply that it's not an even power of 2.

It's very easy to write a cache-timing-safe version of base{16,32,64} encoding for use in encoding/decoding cryptographic keys in configuration files. To wit: https://github.com/paragonie/constant_time_encoding

Base-122? Not sure if it's even possible.

comment 10y ago · link · parent

As one of the resident cryptography nerds: Matrix/Riot seems to be in every way better than Telegram. I still need to review it before I can wholesale recommend it, but it was audited by NCC Group previously.

comment 10y ago · link · parent

Telegram is not a secure messaging app.

If anything, Telegram is a modern replacement for newsgroups.

comment 10y ago · link · parent

This is a good move on their part.

From a quick scan of the PDF, it looks like their higher-level Matrix library mitigates attacks that Olm itself does not.

I'm not sure how I feel about that.

1218.

WordPress (all versions): SPOF, RCE, and Negligence (oss-sec)(openwall.com ↗)

1 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

Excellent! This should go in a top-level comment so folks can review the audit and study its findings.

comment 10y ago · link · parent

I'm working on publishing some research in this specific slice of cryptography in the next couple of weeks, but briefly.

Alice, Bob, and Charlie are chatting securely. Using the notation where lowercase indicates secret key and uppercase indicates public keys:

  s0 = aBC = bAC = cAB
Debora joins the conversation.

  s1 = aBCD = bACD = cABD = dABC
What does Debora see? In naive implementations, the output of the previous handshake (s0) is given to Debora to mix with her secret key. This isn't a good design (and you can't do this with the implementations of X25519 I've reviewed, e.g. libsodium's), but that's not obvious to someone who's never studied these kind of protocols before.

Now they decide to oust Charlie from the group. How do you handle revocation safely and efficiently?

If you combine the two issues above, you create a join-slurp-leave loop that gives you the secret keys of conversations that take place while you are absent. (This is an active attack, of course.)

Let's say Bob's laptop is stolen. Does mpECDH have forward security-baked in? No. (Protocols like Signal's do.)

So you add forward secrecy. Great, now how do you know the server isn't replacing public keys since they're changing frequently?

These are just a sample of the kind of challenges one faces when they venture down this road. If you ask almost any cryptographer, they'll have a somewhat reasonable answer for these challenges. But a non-crypto dev would, with all likelihood, not think to even ask.

comment 10y ago · link · parent

http://matrix.org/docs/guides/e2e_implementation.html

I need to tear into this later, but I really hope they're not implementing multi-party ECDH (which is perilous even if you're using X25519; if anyone thinks about going down this route, please hire a cryptographer).

comment 10y ago · link · parent

Sadly, just because you know what the best practices are doesn't mean your university's IT department will let you implement them.

Same can often be said if you replace "university" with "company".

Internal political problems are beyond NP-hard.

1223.

Show HN: GPG-Mailer – send GPG-encrypted emails from your PHP application(github.com ↗)

6 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

> it looks like it's just using Keccak as a stream cipher of sorts (but seeding it from /dev/urandom). That's pretty ok, and if we don't trust stream ciphers to produce pseudorandom numbers we have much bigger issues.

I very strongly disagree with userspace RNGs being used instead of the kernel's CSPRNG being "pretty ok".

Don't "seed a userspace RNG from urandom". Just use urandom.

comment 10y ago · link · parent

That's a fair point, and I don't really disagree with your priority here now that it's spelled out. I just think that people would be better served with both facts simultaneously rather than demanding one at a time.

comment 10y ago · link · parent

> You're some random on HN.

> I think you need to stop talking and start listening

That's not really an appropriate way to approach a conversation on HN. I'm surprised this comment hasn't been flagged.

Personally, I think you would benefit from incorporating non-violent communication strategies. It's fine that you respect someone's work. It's not okay to open with "You're some random on HN" and then tell them to shut up, just because they were questioning the person you admire. Especially since I wasn't telling them they were wrong, but rather that the disagreement was one of scope and context, not one side being right while the other being wrong.

http://qz.com/838321/nonviolent-communication-the-scientific...

By dismissing people's entire existence and expertise right out of the gate, you destroy any possibility of a constructive conversation that could follow.

If you'll notice: Until now, I mostly asked people questions. Regardless of whatever background I may have with cryptography, my interest in these discussions is to learn. Probably not the ideal target to call a nobody and to shut up if you're interested in the strength of a community.

Just some food for thought.

comment 10y ago · link · parent

I know, but you're both talking about different things.

It may be 20% for the next few years, but it's also 10% overall. You're both right, why even try to nitpick over these details or correct anyone?

comment 10y ago · link · parent

2.1 million total for the Founder's Reward out of 21 million total that will ever be minted = 10%

comment 10y ago · link · parent

> There's too much of it, it's too new, and it's too interesting (e.g. a lot of aspiring undergrads and grads are looking to make their mark on the world, and breaking Zcash would be a great way to do that). I believe that your privacy will be compromised retroactively, and not due to bugs but due to actual cryptographic breaks. And then you're back to the Bitcoin network where everyone can see everything, and you're vulnerable.

Which component do you think is most likely to break?

comment 10y ago · link · parent

I don't have access to the answer to that question. I wasn't involved at all.
1
404142
60