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

> This is just FUD.

No, it's an engineering argument that makes several testable claims about JWTs, sane session protocols, and how the two are mutually exclusive.

> JWTs are a standardized way to securely encode data into a self-contained token. Cookies are special headers added to HTTP requests to store state.

The difference is this:

  - Sane sessions
    - Random unique identifiers stored in a cookie
    - Upon receiving the cookie, the web app looks in the
      filesystem/database/etc. for the data associated with
      that session
    - Can be invalidated by deleting the server-side storage
  - JWT-based sessions without server-side persistence
    - All session state is encoded into the cookie
    - All the trust is outsourced to the client to invalidate
      sessions.
The other arguments follow from this difference.

A strongly worded argument against a bad engineering argument is not FUD.

comment 8y ago · link · parent

> OWASP is nowhere to be found.

Is this satire?

573.

Many CMS plugins are disabling TLS certificate validation and that's very bad(zdnet.com ↗)

2 points · by CiPHPerCoder · 8y ago · discuss

574.

Many CMS plugins are disabling TLS certificate validation(zdnet.com ↗)

1 points · by CiPHPerCoder · 8y ago · discuss

comment 8y ago · link · parent

I've yet to discover a 2FA implementation where the TOTP secret was human-sourced.

A language without a secure RNG (e.g. PHP before 7.0, unless you have the right extensions enabled) might be a source of concern, but that's relatively rare.

comment 8y ago · link · parent

To be honest, the only application for quantum entanglement I'm excited about is quantum teleportation.

comment 8y ago · link · parent

This might answer your question: https://csrc.nist.gov/projects/post-quantum-cryptography/rou...

I would argue that nothing in this sector is "production-ready".

For key exchange, SIKE looks promising (especially with the prospect of a non-interactive version).

For signatures, the SPHINCS variants are also promising. Gravity-SPHINCS is more intriguing to me than SPINCS+, but, they're both good forks of an already good design.

comment 8y ago · link · parent

> The first—which they say is a sort of stage 0 because it does not describe a true quantum internet—is a network that enables users to establish a common encryption key, so that they can share their (classical) data securely. The quantum physics occurs only behind the scenes: the service provider uses it to create the key. But the provider also knows the key, which means that users have to trust it.

I don't like where this is going.

> In stage 1, users will start getting into the quantum game, in which a sender creates quantum states, typically for photons.

Okay, it's going exactly where I thought I was going!

----

At the risk of falling victim to the Gell-Mann effect, I'm going to call bullshit on this article.

It's overwhelmingly likely that quantum cryptography will not be the next iteration of network security technology in the real world. Rather, the focus is on what's called post-quantum cryptography. Despite what you might think, these are not two points on a timeline.

Post-quantum cryptography refers to asymmetric cryptography features that are secure even in the presence of practical quantum computers. It's not a stage that exists after quantum cryptography. There's no "intermediate" stage in which we use quantum physics itself for encryption.

There will likely be a transition, wherein today's elliptic curve cryptosystems are used in addition to a post-quantum cryptosystem (e.g. ECDH + RLWE), until industry-wide confidence is gained in the security of the latter. I expect a lot of interesting attacks to be found in PQ algorithms during that time, and eventually we'll settle on constructions that are secure without pre-quantum cryptography.

Note: Symmetric cryptography is largely unaffected by quantum computers. You essentially halve the security levels (nitpick: which is an exponent, so you'll effectively be taking the square root of the possible values rather than just "halving it", which would just shave off one bit).

Quantum key distribution and other entangled photon madness? I doubt we'll see widespread deployment of this.

EDIT: I see this article isn't the author's first inaccurate foray into this topic. They might want to consult a cryptographer before publishing bunk science. https://www.scientificamerican.com/article/the-quantum-inter...

comment 8y ago · link · parent

Whether or not that's true will vary wildly depending on where the institutions are located and who their clients are.

comment 8y ago · link · parent

Is decentralization necessarily a desirable trait of such a system?

When you throw that in the mix, you sacrifice either security or efficiency.

I'd rather have a centralized system (single writer) with decentralized mirrors (notaries) that exploit the fact that cryptoraphic ledgers are append-only and totally transparent to solve a lot of engineering problems than a slow, energy-sucking blockchain.

comment 8y ago · link · parent

> Doesn't the bitcoin blockchain provide the same service roughtime does, and without the centralized authority (cloudflare in this case) problem?

Oh god, I can only imagine the horror of trying to use Bitcoin as a public notary service.

The whole point of an append-only data structure is that you can replicate it and if someone's node is being dishonest, they cannot do so silently.

You'd be better off with something like Trillian (and/or Certificate Transparency; see https://wiki.mozilla.org/Security/Binary_Transparency for more).

I wrote something in this vein called Chronicle: https://github.com/paragonie/chronicle

Main selling point? It's not a blockchain, but it solves a lot of the problems that cause people to point to blockchain solutions.

My goal with Chronicle is to ween the industry off of poorly thought-out blockchain projects by demonstrating that they don't need a blockchain after all.

comment 8y ago · link · parent

Moral values versus economic values.

I'm not sure what words the author could have used instead.

Personal values are things like integrity, charitability, etc.

comment 8y ago · link · parent

> Also, this is a fallacy.

What is a fallacy? I asked a question.

Non-technical users will never modify their software. The act of doing so would recategorize them as "technical". I don't see any fallacy here?

The most likely interpretation of your comment is, you're assuming an argument that I am not making.

> Just because "typical user" won't care or won't be able to do something doesn't mean we shouldn't strive to build and popularize platforms that do right things.

That's a disagreement with an argument I did not make.

> Of course it also has to be good at what users actually do care for to have any chance of taking off, but that's not the point.

What is the point, even?

I just asked how something being "open source" (to borrow the scare quotes) is more desirable to users who do not read/write software code? What is their incentive supposed to be to prioritize open source over proprietary software?

That's not an argument. It's certainly not a fallacious one.

> Even though I'm not a "non-technical" user, I don't review crypto of my XMPP client.

Little bit of background: I'm the sort of person who would review the crypto of an XMPP client.

> And that's fine, I know a few people that did and I trust them enough. This way I don't have to trust an entity that may benefit from being able to access my messages.

Cool, let's ask an trustworthy expert then. I can think of no finer expert to chime in on this discussion than JP Aumasson, one of the co-authors of SipHash and BLAKE2, who wrote the book Serious Cryptography and conducted many cryptography audits in his career.

https://research.kudelskisecurity.com/2018/10/02/open-source...

Oh.

comment 8y ago · link · parent

> it's still desirable for such critical security components to be free, or at least "open source".

Why the scare quotes?

What about software's source code being available makes it more desirable for your non-technical users who will never modify their software?

comment 8y ago · link · parent

> Is your DNS request encrypted? Only if your OS and your DNS server support DNSSEC or DoH.

DNSSEC doesn't encrypt, it only signs.

comment 8y ago · link · parent

> Signal --- Introduced: 2017

What https://signal.org/blog/the-new-textsecure/

comment 8y ago · link · parent

Some of these are vulnerabilities, some of these are techniques, some of these are general security topics.

The list doesn't really match up with the title.

The content, however, is worth sharing.

comment 8y ago · link · parent

> Nobody lives downtown because there are no supporting services downtown like grocery stores or anything like that. You 110% need a car to live there.

Is this by design? Or is there an opportunity for grocery stores, etc. to address a city planning deficit?

comment 8y ago · link · parent

There was a talk at 34C3 which covered these attacks pretty well (although those breaks were not the primary aim of the talk):

https://www.youtube.com/watch?v=QCsvBFFLsqE

https://latticehacks.cr.yp.to/

comment 8y ago · link · parent

> The solution, which will be available next month, is actually the product of a partnership between BlackBerry and Isara Corporation, a company whose mission is to build quantum-safe security solutions. BlackBerry is using Isara’s cryptographic libraries to help sign and protect code as security evolves.

That is extremely unhelpful, Tech Crunch.

Let's take a look at what Isara is researching.

https://www.isara.com/research-publications/

https://www.isara.com/qtesla/

https://www.isara.com/qc-mdpc-kem/

Okay, so the article is specifically talking about digital signatures, so they're almost certainly implementing qTESLA (or a Blackberry-specific variant thereof), which is a lattice-based signature algorithm.

https://qtesla.org/wp-content/uploads/2018/08/qTESLA_v2.2_08...

https://github.com/qtesla/qTesla

If this does turn out that they're implementing qTESLA (which is committed to the public domain), the headline "races ahead of security surve" will prove to be needlessly sensationalist.

591.

Widely-advertised VPN provider, NordVPN, deploys dubious cryptography(twitter.com ↗)

3 points · by CiPHPerCoder · 8y ago · 1 comment

comment 8y ago · link · parent

There is one tangible benefit to open source: reproducible builds. Everything else comes down to personnel, budget, and scheduling.

I'm not an Apple consumer, I don't know anything about iOS in particular.

comment 8y ago · link · parent

I'd want it, sure.

But I could also just dex2jar + JD-GUI the Android app and study the decompiled Java code to see what they're doing.

Edited to add: https://twitter.com/CiPHPerCoder/status/1042870740880637952

comment 8y ago · link · parent

Sure, that can be a problem. However, it's completely irrelevant to the problem of server-side storage, as the comment I replied to was citing.

(Server-side storage is a non-issue, due to the encryption protocols in use. It doesn't matter if you distrust Facebook, they aren't going to be able to read your messages. End of.)

comment 8y ago · link · parent

You can reverse engineer any Android app in very little time. Professionals use frameworks like Lobotomy, but you can get by with dex2jar and JD-GUI for most of it.

It not being open source is a political argument, not a technical one.

EDIT: I ended up doing just that. It took roughly 5 minutes (most of that was making sure I had my PATH for Java set up correctly on this machine) to get decompiled Java code ready to inspect.

https://pbs.twimg.com/media/DnkFaKxU8AE4mFn.jpg

comment 8y ago · link · parent

> This may have been true pre-fb acquisition but there has been changes to how WhatsApp behaves, especially server side storage.

WhatsApp messages are encrypted end-to-end between each person using it. The whole point of end-to-end encryption is not having to trust the server-side storage.

Furthermore, WhatsApp uses the Signal Protocol-- the state-of-the-art for secure messaging protocols.

The worst that WhatsApp can see is "who's talking to who?"

Finally, the adoption of the Signal Protocol in WhatsApp came long after the Facebook acquisition.

So, no. It wasn't better off pre-fb.

comment 8y ago · link · parent

"Sure, you might be able to hit your girlfriend with the hammer, but the relationship would probably improve more if you talked about the problem."

Or, rather, if the relationship ceased before violence entered the equation.

(In case anyone complains about pessimism, a friend of mine says often: "Relationships can only end in one of two ways: death or breakup." I'd rather think of it as a stoic position.)

comment 8y ago · link · parent

As someone who mentors a little over a half dozen adults who are transitioning into technology careers (mostly programming, but not exclusively), I disagree on several points:

1. A lack of programming experience does not necessarily imply a life of struggle. Anecdote: Several of my friends work blue collar jobs (AC install/repair, but also an electrician), and avoid many of life's vices (alcohol, drugs, bad relationships with people with different personal values because they're easy to get into bed with, gambling, extreme religious devotion, the vindication of social media mob participation, etc.). I would call them successful despite not knowing the difference between a function and a method. (Successful enough, at least, to be homeowners in their young 20's despite growing up in poor families.)

2. Programming skill does not necessarily a life free of struggle. I know several homeless people with programming skills. Mental health (which is something our industry severely neglects!) brings its own struggles to the table.

3. Adults who take an interest in programming can gain sufficient aptitude to be valuable to organizations in a short time.

Forcing programming down a child's throat does them no favors.

comment 8y ago · link · parent

Would you think lesser of people who don't have a software engineering background and chose, instead, to pursue other ambitions in their careers?

comment 8y ago · link · parent

https://archive.fo/Sr59B
1
192021
60