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

It's explicitly allowed. Ask dang.

1742.

Ask HN: Where else do junior developers congregate?

3 points · by CiPHPerCoder · 10y ago · 3 comments

comment 10y ago · link · parent

> In the case where the attacked has direct control over the website then you're right, it doesn't help at all.

I was pretty sure that's the threat model we were discussing: Software authenticity.

The only way to automatically know if a piece of software is legitimate is to have a trusted public key that can verify a signature.

Also, HTTPS is implied these days. If you're not using HTTPS, you are either malicious, negligent, incompetent, or working for someone who is some or all of the above.

comment 10y ago · link · parent

I suspect not.

comment 10y ago · link · parent

This doesn't solve the problem. At all.

A checksum is NOT a substitute for a digital signature.

https://paragonie.com/blog/2015/08/you-wouldnt-base64-a-pass...

1746.

Client Authenticity Is Not the Server's Problem(paragonie.com ↗)

2 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

I have a stock Cyanogenmod phone with Orbot and Signal. I don't otherwise install apps (less attack surface), so I hit "No" to most of everything on the list.

comment 10y ago · link · parent

> EdDSA is not fundamentally more sidechannel resistant; sidechannel resistance is a function of the implementation. > ... > It would be more accurate to say that so far EdDSA has had a more conscientious implementation culture around it.

Your assessment is correct. EdDSA is deterministic which eliminates the nonce-reuse concerns, but deterministic EdDSA/ECDSA requires side-channel resistance. I erred in my previous comment.

comment 10y ago · link · parent

Approximately once or twice per hour.

comment 10y ago · link · parent

That's not decryption.

comment 10y ago · link · parent

Oh if only there were a elliptic curve digital signature algorithm that was side-channel resistant and well studied by cryptography experts.

https://en.wikipedia.org/wiki/EdDSA

(Fortunately, we should see its adoption when TLS 1.3 is standardized.)

comment 10y ago · link · parent

This is cool.

TIL paragonie/awesome-appsec is in the top 10,000, but other projects like paragonie/random_compat aren't :(

comment 10y ago · link · parent

"Let's throw encryption at the problem" isn't always wise.

For example: https://paragonie.com/blog/2015/09/comprehensive-guide-url-p...

What do you need to do before you can sniff a loopback interface?

comment 10y ago · link · parent

In that case, active attacks against Weierstrass field arithmetic isn't part of your threat model and ECDSA/ECDH over the NIST curves is fine.

comment 10y ago · link · parent

In my experience, this is how developers see crypto:

    RSA: "I learned that as an undergrad. It's just multiplication, I'll use GMP!"
    ECC: "Whoa what the hell is this? I better use a library."
These are the same developers who ask on StackOverflow how to decrypt MD5, of course.

comment 10y ago · link · parent

I would recommend against using them if your adversary is the NSA and your threat model comes wrapped in tin foil (and if I didn't, I'd get ignored anyway).

If so, use NaCl/libsodium at the application layer and don't rely on ECDSA alone.

If your threat model is "criminals", ECDSA is less insane than RSA (provided, once again, you're not implementing it yourself, you're relying on developed by a team of cryptographers and security engineers).

comment 10y ago · link · parent

You have two choices then:

    - Use RSA until 25519/448 land in TLS
    - Switch to ECDSA in the interim
Personally, I would switch even though ECDSA isn't great.

The concerns over P-256 and P-384 are more academic than anything: They're hard to implement safely and without side-channels. Read: hard, not impossible.

You shouldn't be writing your own ECDSA implementation, however. That'd be foolhardy.

EDIT: I use secp384r1 for signing random_compat, so if anyone gets bit by this recommendation, I will too: https://github.com/paragonie/random_compat/blob/master/dist/...

comment 10y ago · link · parent

As JP Aumasson said https://twitter.com/veorq/status/683360050199552001

    1998: Bleichenbacher's padding oracle attack on RSA
    2016: still vulnerable systems
    http://framework.zend.com/security/advisory/ZF2015-10
I second "stop using RSA".

comment 10y ago · link · parent

Let's look at it from a different angle: What if you were a GNU/Linux distro maintainer and nine defendants had used your OS instead of Windows? Could you be forced to help the FBI?

comment 10y ago · link · parent

The conclusion is pretty clear.

    Ultimately, the question to be answered in this matter,
    and in others like it across the country, is not whether
    the government should be able to force Apple to help it
    unlock a specific device; it is instead whether the All
    Writs Act resolves that issue and many others like it yet
    to come. For the reasons set forth above, I conclude that
    it does not. The government's motion is denied.
It doesn't answer the question that was on my mind ("Can the FBI force Apple to write and cryptographically sign a less-secure version of their operating system?"), but it's nice to know that the AWA doesn't grant them that capability.

comment 10y ago · link · parent

This is a good post, but first a word of caution.

Many people, when faced with "unwanted information disclosure" via ID enumeration, will look to encryption to solve this problem. Please don't; it's the wrong tool for the job.

https://paragonie.com/blog/2015/09/comprehensive-guide-url-p...

Use a random lookup instead of encryption. (You'll notice that https://paragonie.com/b/oMFJhGJ0aSgCaZq0 takes you to the same URL.)

Use application logic (and access controls) instead of random lookups, where it makes sense to do so.

If you absolutely must use encryption (i.e. you don't have a place to store state), make sure you use an AEAD mode.

https://gist.github.com/tqbf/be58d2d39690c3b366ad

comment 10y ago · link · parent

Maybe I'm reading your comment wrong (if so, sorry!), but that sounds like a race condition to me.

comment 10y ago · link · parent

On Twitter? Yes, my DMs are open. Feel free to email me too:

    security@ my company's domain name
I'm pretty sure HN doesn't have PMs.

comment 10y ago · link · parent

One of the projects I'm working on aims to make it easier to integrate CSP headers into web applicatons.

https://github.com/paragonie/csp-builder

I'm working this week to integrate it into another project we're developing. (It's MIT licensed, so have fun with it.)

comment 10y ago · link · parent

On that note, definitely check out boringcc: https://groups.google.com/forum/#!topic/boring-crypto/48qa1k...

comment 10y ago · link · parent

I've heard of Cyph, in passing, before. I haven't had a chance to look at the code yet. I presume https://github.com/cyph/cyph is the repo for the actual app?

comment 10y ago · link · parent

Something like MicroCorruption of CryptoPals, then?

(I haven't tried Star Fighter yet, but I imagine it's similar too.)

comment 10y ago · link · parent

From the HN title: "secure"

I have a question: Secure against what thread model?

The FAQ has an entry for "How do I know you're not sending all my data to the NSA?" but that's the wrong question to ask (i.e. Even if you're not behaving maliciously, that doesn't mean our data is safe against highly sophisticated threats).

It would really be great if you could demonstrate what makes this more secure than alternative solutions.

That said, this is kind of neat.

1769.

Triangle of Secure Code Delivery (2014)(defuse.ca ↗)

35 points · by CiPHPerCoder · 10y ago · 6 comments

comment 10y ago · link · parent

> But, at some point there must be trust.

Do you trust the developers? Okay.

Do you trust the developers, their infrastructure, AND the supply chain? Maybe a bitter pill to swallow.

Recommended reading: https://defuse.ca/triangle-of-secure-code-delivery.htm

1
5657585960