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 8y ago · link · parent

I did, but as far as I can tell there was no humor in the comment I was responding to?

comment 8y ago · link · parent

> "Power tends to corrupt and absolute power corrupts absolutely."

There's a corollary here.

I think a probably-more-precise description is that corruption isn't just caused by the presence of power, it's the result of the disparity between power and wisdom.

If you increase power without increasing wisdom, you'll see more corruption. If you have absolute power, you probably don't also have absolute wisdom (if such a thing is even conceptually possible).

There's a second corollary here: Power doesn't only corrupt the one that wields it. Its mere presence can sour others. (Envy, greed, etc.)

In a similar vein, people also love to say that knowledge is power, but I think "information asymmetry" fits better.

(Also, power is inherently temporary.)

comment 8y ago · link · parent

> I wasn't attacking the author, just adding some rare facts to the conversation for people that could be unaware of it and wonder wth the author was meaning.

I wasn't responding to your original comment, which I thought added value.

I was responding to "It doesn't matter."

You're dismissing someone else's perception of the context in which the statement was made.

Sure, humor might not matter to you.

To some HN users, it might even matter less than factual correctness to a granular level. But to say it doesn't matter, full stop? That's just rude.

> Now your comment, what exactly does it add to the conversation?

It circles back from your dickish dismissal with an excerpt from the webpage for the sake of humor.

Try lightening up. Or, at the very least, maybe try to not be a dismissive jerk to other people. It costs very little to be kind.

EDIT: If you want to respond, click the "x minutes ago" to access a comment directly and you'll get the reply box. i.e. https://news.ycombinator.com/edit?id=16107228

comment 8y ago · link · parent

HN: Whereby, when presented with a Maciej slide deck, pedantry takes precedence over humor.

Oh well, at least he can take solace in

> that no matter how bad my talk, it won't be remembered.

comment 8y ago · link · parent

I wonder if they're also self-professed pyromaniacs? :^)

Kidding aside, I'd never heard about "nominative determinism" before. That's rather neat.

comment 8y ago · link · parent

> In your opinion, are those also the reasons why you wouldn't use PAST for stateless sessions?

Yep

comment 8y ago · link · parent

This is somewhat orthogonal to the security goals I'm trying to tackle, but still very relevant to the ecosystem that currently uses JWT.

So I've opened an issue to address it before v1.0.0 is tagged: https://github.com/paragonie/past/issues/14

comment 8y ago · link · parent

On that note: https://github.com/paragonie/past/issues/13

I might be dropping "seal" entirely, as its utility isn't really a good fit for security tokens. (Sealing APIs can be very useful in other contexts, though.)

comment 8y ago · link · parent

I've written about this at length here: https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-ba...

(It's also the first link in the README for the project this Show HN is linking to, FWIW)

comment 8y ago · link · parent

There's nothing I can do at this layer that will stop people from using JWT/PAST/etc. as an attempt to build stateless session management systems for some ill-conceived "horizontal scalability" requirements, except maybe continue to tell people this is a bad idea and don't do that.

The rest of the points (i.e. the problems with the JOSE standards) are what PAST seeks to solve. The "do not misuse" problem is more complicated, and if I were to add e.g. "do not use this for stateless sessions" at the top in big red letters, that will only tell developers "this is unsafe, keep using JWT instead".

comment 8y ago · link · parent

I spent two weeks (my Christmas vacation) working on rough drafts for several problems I wanted to solve in 2018. PAST was one of items I listed.

(The list is here: https://github.com/paragonie-scott/public-projects/issues/6)

99.9% of that time was spent trying to come up with a better name/acronym, without success. I decided to just give it a plain/obvious name until a better one surfaced.

comment 8y ago · link · parent

This might also be of interest: https://github.com/paragonie/past/tree/master/docs/02-PHP-Li...

comment 8y ago · link · parent

> My only nit --- apart from the "auth enc seal sign" names, which aren't coherent --- is why do public key at all?

> Why not punt "seal" and "sign" into a "v3", when/if it's needed?

Would you be happier seeing something like this?

  - v1: HMAC-SHA2, AES-CTR+HMAC-SHA2
  - v2: RSA and all its sins
  - v3: Libsodium crypto_aead_*
  - v4: Libsodium crypto_{box,sign}_*
> What's the use case for it? Who's asking for it? Specifically who?

The only use-case I'm aware of as of this morning is OAuth2 users who currently use JWT for access tokens. https://bshaffer.github.io/oauth2-server-php-docs/overview/j...

824.

Show HN: PAST, a secure alternative to JWT(github.com ↗)

362 points · by CiPHPerCoder · 8y ago · 138 comments

comment 8y ago · link · parent

> Intel is committed to the industry best practice of responsible disclosure of potential security issues

No, the industry best practice is coordinated disclosure. The term "responsible disclosure" is a misnomer that we'd be far better off if we, as a society, stopped using it.

https://adamcaudill.com/2015/11/19/responsible-disclosure-is...

comment 8y ago · link · parent

[delete]

comment 8y ago · link · parent

There isn't a lot of meat to this article (at least, based on the Google cache version that passenger provided).

If mate selection is affected by technology, how does technology affect non-heterosexual relationships? What about non-monogamous relationships?

828.

The 2018 Guide to Building Secure PHP Software(paragonie.com ↗)

3 points · by CiPHPerCoder · 8y ago · discuss

comment 8y ago · link · parent

People often tell me, "Yeah the Bay Area is expensive but the tech salaries make up for it."

By being able to get a Bay Area salary (e.g. $150k/year) while working from anywhere in the world (e.g. any city where $40k/year is considered comfortable living and $80k/year is considered "well off"), the incentive to continue saturating the area with local talent decreases.

Same salary, lower cost of living, AND the ability to be a homeowner in the foreseeable future? That's a hard deal to beat.

comment 8y ago · link · parent

Yes, look up Shor's Algorithm and Grover's Algorithm.

comment 8y ago · link · parent

AES's security reduction in the quantum scenario comes from a sqrt(n) reduction in search time. It's an optimized brute force against the key.

ECC gets broken because there is a quantum algorithm that solves the Elliptic Curve Discrete Logarithm Problem much faster than sqrt(n).

comment 8y ago · link · parent

> Passwords are PSKs and are the overwhelming default authentication mechanism for Internet scale systems.

Not for HTTPS, which is what we're talking about.

For WPA2-PSK, okay, you have a small n, it might work.

For user authentication against a local database, you're not encrypting, you're using validating against a password hash and then elevating the user's privilege for the duration of their session. That's far removed from what we mean when we say PSK (pre-shared keys), where encryption is implied.

comment 8y ago · link · parent

https://www.fredericjacobs.com/blog/2016/04/07/qc-axolotl/ might be a good place to start answering this question.

If you can break the ECDH, you can figure out the key that was calculated. However, if other unknown data (e.g. past ECDH outputs) is hashed together to generate the key (like Signal does, as a very rough description), it's only post-quantum secure if the adversary ever misses a single message.

Other than weird saved-by-the-bell corner cases, the answer is "No".

comment 8y ago · link · parent

PSK isn't really a good solution, mostly because of scaling problems.

Today, all you need is a 32-byte ECDH private key, and a corresponding 32-byte public key. To talk to any of the billions of devices on the Internet securely, all you need is their 32-byte public key, and some means to verify that it is authentic (i.e. certificate authorities + certificate transparency). With this information, you can calculate a shared secret (or use a sealing API given only their public key, if you really want).

Total local storage: PKI overhead plus your own keys, under a few megabytes.

Doing PSK at scale means storing billions of 32-byte binary strings. One for each participant you intend to communicate with. They must also do this for every possible device they wish to communicate with, otherwise others can just eavesdrop on their conversations if keys are reused.

You've turned an O(n) space problem into an O(n^2) space problem.

If your n is small, you might still be tempted to make the move, but it will quickly become unmanageable as n grows.

Furthermore, if a devices loses their key, you must:

1. Generate/share a new keypair with n devices (which at Internet scale is billions), and

2. Do so in a way that doesn't open the door for backdoors, which probably requires digital signatures and therefore you're not actually getting rid of public-key cryptography

I think at Internet scale, we're still years away from having reliable post-quantum cryptography to even recommend let alone adopt, but that's going to be the way to go. Something something baby and bathwater.

comment 8y ago · link · parent

Ruby's SecureRandom is finally sane to use? It's like Christmas or something!

https://bugs.ruby-lang.org/issues/9569

Now to update the "how to generate secure random numbers in various programmming languages" documentation.

comment 8y ago · link · parent

http://cryptoisnotcryptocurrency.com/

837.

The 2018 Guide to Building Secure PHP Software(paragonie.com ↗)

2 points · by CiPHPerCoder · 8y ago · discuss

comment 8y ago · link · parent

> Take a crypto vulnerability everyone assumes has been eradicated for years

I wish!

https://twitter.com/veorq/status/683360050199552001

839.

The 2018 Guide to Building Secure PHP Software(paragonie.com ↗)

3 points · by CiPHPerCoder · 8y ago · discuss

1
272829
60