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

https://gossamer.tools :)

comment 4y ago · link · parent

I took things a different direction:

https://paragonie.com/blog/2017/07/chronicle-will-make-you-q...

comment 4y ago · link · parent

I wish Spotify would let us hide his podcast from the front page of their app, at least. I have no interest in his podcast. Let me remove it.

comment 4y ago · link · parent

Academic conferences are usually "comfortable" environments with plenty of air conditioning. It might undermine the prestige a bit if we did that.

Or maybe it'd have a different charm than the norm.

comment 4y ago · link · parent

It's not about "valid" or "no more valid". It's about context.

If you want to distrust a security vendor for greenlighting something that was found to be vulnerable the following week, you'd probably be in the clear.

If it was 6 years ago? Maybe don't count that against them; especially if it's a novel vulnerability that was discovered.

But also, if you're running 6 year old software, maybe update to a newer version of it.

comment 4y ago · link · parent

I like your style. We should start StateFairCon someday

comment 4y ago · link · parent

It's like ransomware for research

comment 4y ago · link · parent

Whenever I speak at a tech event, my attendance cost is free. (I'm still on the hook for flight and hotel, usually.)

comment 4y ago · link · parent

Incidentally, https://sso.tax

comment 4y ago · link · parent

> So you're imagining that a bunch of people trying to break into security work will do work for free in hopes of gaining potential employers'/clients' trust?

We're talking about open source software. People are already doing this sort of free work. You run into them when you start a bug bounty program, or once you've created at least one open source package with a nontrivial userbase.

The way you're wording this sounds precariously like I'm creating some barrier to entry to extract free labor out of people. Quite the opposite: I'm suggesting a mechanism for taking the free work people are already doing in the open source security space, and using it to build rapport with the market a security researcher is trying to break into.

If you're wondering how I would know about the motivations about someone trying to build a customer base out of free labor performed for open source software, take a look at... virtually everything publicly shared on paragonie.com. I'm speaking from experience. ;)

> And you're imagining that this ecosystem of attestations will be seeded by a bunch of people looking to gain the community's trust?

Not just people. Companies too! (I think most of us view them as separate things still?)

> So who audits the auditors?

The same people who make these kinds of decisions today, albeit far less formally than what I'm envisioning.

For the PHP ecosystem, you have the big players (WordPress, Drupal, Joomla, Magento) and frameworks (CodeIgniter, Symfony, Laravel, etc.) with dedicated security teams that field vulnerability reports from the larger community.

Beyond them, you have this large, distributed, ad hoc emergent network of security experts that have a loose consensus on whether or not a self-proclaimed security expert is credible. It's messy and uncoordinated and decentralized, and very imperfect.

> And how long do you expect it to take to get a critical mass of people reviewing code who have gained the community's trust to be reviewing enough packages to solve open source supply chain security?

I don't have a time estimate on hand, due to how this will need to unfold. I don't expect to have "[solved] open source supply chain security" in any immediate sense. Going from "improved state of affairs" to "solved problem" is a long tail.

Marginally, improving the security of the open source supply chain is trivial: Any effort expended is more than is currently being done today. That's the dx part of the equation.

What I predict is as follows:

1. Highly impactful codebases (i.e. a dependency of lots of projects), which are in the hot path for many dependency graphs, will end up being covered by third-party reviewers.

2. A lot of niche codebases will be covered because of community interest or due to extant social relationships.

3. A large swath of what remains will remain uncovered by third-party review despite being open source.

Today, the software in category 3 is an unknown unknown. With Gossamer, it will become a known unknown. This is a meaningful step towards "solved problem", even if it doesn't prima facie solve it immediately.

comment 4y ago · link · parent

Yes, it's called a timestamp.

Revocation of trust here isn't automated. "I just greenlit ransomware" is a very different category than "Attacks got better, as they do".

comment 4y ago · link · parent

I think I understand why it makes you uncomfortable.

I do think they're two separate problems, and must be solved independently. Left unsolved, what you're experiencing is mostly bad optics rather than a dependent nastiness. It's a bad look, and it leaves a bad taste in one's mouth.

That being said, we both agree it's worth solving. However, I'm not an economist, by any measure, so I don't have any insight into what a solution looks like.

comment 4y ago · link · parent

This is about PHP code (i.e. written in the scripting language, PHP), not the PHP interpreter.

Since it's a scripting language, your build artifacts will be one of:

- .diff / .patch

- .zip / .tar / .tar.gz

- .phar (rarely)

Of these, only the last (PHP Archives) is mildly persnickety for build reproducibility. But it's easily fixed: https://github.com/paragonie/sodium_compat/blob/08ab867bbb6a...

comment 4y ago · link · parent

https://defuse.ca/triangle-of-secure-code-delivery.htm was published in July 2014, which included Userbase Consistency Verification as a requirement... so I think that's when the use of transparency logs in solving this problem was earliest recorded.

But I'm no internet historian, so I may have missed something.

comment 4y ago · link · parent

Rust is delightfully forward-thinking. Thanks for sharing.

comment 4y ago · link · parent

These are two separate things, and it's perilous to conflate them.

The OSS developer is providing software that anyone can use under whatever license terms for free. How they monetize this is entirely their responsibility. Choosing a permissive license makes them generally indistinguishable from the developers who don't want to monetize their work at all. Solving the "how do we ensure they get paid?" problem is nontrivial, but certainly out of scope for this discussion.

The verification service is provided by a company to protect their customers from malicious changes to said OSS software. (Yes, even if they were deliberate changes by the original developer!)

In some sense, you could try to frame the verification services as somehow predatory, but that's like saying that safety inspectors are predatory to independent carpenters.

(I'm not happy with that last analogy, but it's the best I could come up with on the spot. Real-world analogies to software problems are always messy, so feel free to suggest a better one if you think of any.)

comment 4y ago · link · parent

>I also think the true meaning of attestations is a bit murky. The `spot-check` and `code-review` attestations are about source code, `reproduced` is about the build artifact, and `sec-audit` is somewhere in the middle (ideally both). But it seems like these attestations are always attached to artifacts, not source code? So spot-check and code-review are really only relevant if the build is reproducible (and has been attested as such), right? Since that's rarely-if-ever going to be the case in the real world, it seems like another reason the attestation system will likely be misused in practice.

This probably should be made clearer, but: Reproducible builds are necessary for the security of any such system. It's outlined in earlier blog posts.

Consequently, the inclusion of reproducible build verification is taken as a premise.

> The authors seem to envision a world where there is an ecosystem of independent security vendors out there doing reviews and publishing attestations, but don't really provide any compelling reason why that world will spring into existence.

That's true, and should probably be tackled in a future blog post.

comment 4y ago · link · parent

> I don't get it, who is going to pay for the time and energy required to audit everything?

Not everything has to be audited. That's why there's different levels of attestations.

In terms of economic incentives: If you're a company bit by one of the recent supply chain issues (colors.js, etc.), you might be able to justify hiring a security vendor to audit the code that your company depends on. This would provide a net-positive benefit to the entire ecosystem, even if it's only a small set of audited code.

Maybe one day, we can even make this an expectation of large players. But that's a discussion for down the road.

On the opposite end of things, you have independent security consultants that want to establish their reputation so they can get paid engagements with software companies.

One avenue available to everyone is review open source software, report vulnerabilities to their maintainers. This can be thankless or even traumatic; i.e. https://github.com/opencart/opencart/pull/1594

Gossamer would open an alternative approach: Hang your shingle out by publishing negative (vote-against) attestations of vulnerable versions of open source software and positive attestations (e.g. code-review) of the versions that mitigated the issues they disclosed. Anti-malware vendors (e.g. WordFence) could even issue weaker positive assertions (spot-check) for WordPress plugin/theme updates after vetting the known-good releases. Security companies depend heavily on their ability to earn trust to thrive, and that's a hard market to break into; this offers another way in.

In short, the economic challenges you're imagining aren't the ones that this project will face. (Although, there will assuredly be challenges.)

Companies acting in their own self-interest can be leveraged to cover the hot paths of the universal dependency graph, and security up-starts can be leveraged to cover their blind spots. Given enough time, the ecosystem will eventually reach some sort of equilibrium, and many new opportunities will be made in the process.

> I presume the big package maintainers already have eyes on their stuff - symfony etc.

Read the discussion on the Symfony Encryption component: https://github.com/symfony/symfony/pull/39344

Just because they have eyes on their stuff doesn't mean that those eyes have the necessary domain-specific expertise to identify problems. If it weren't for Paragon (paragonie-security on Github) and their associates in the security industry, the issues identified in the earlier versions of the module would likely have persisted and been shipped.

109.

Solving Open Source Supply Chain Security for the PHP Ecosystem(paragonie.com ↗)

80 points · by CiPHPerCoder · 4y ago · 28 comments

comment 4y ago · link · parent

> Then Google should just hire 100,000 devs this year, why not?

Hold up that's actually a good idea. It would help a lot of entry level devs bulk up their resume and learn hands on skills. This would lead to an influx of sorely needed new talent to the entire tech industry and enable a lot more innovation than was possible before, if only due to HR red tape.

comment 4y ago · link · parent

I am stoked for updating all my systems to use Linux 5.17 now.

comment 4y ago · link · parent

Well, I'm not so sure that insincere has negative connotations in English anymore, given how ubiquitous this behavior is. But point taken.

comment 4y ago · link · parent

> I am sorry, I don't know how to phrase it in English without ruining the nuance. It's a mix of calculating, cunning, and a bit flirtatious?

The closest word I can think for what you describe is insincere. See also: almost every influencer on TikTok.

comment 4y ago · link · parent

Their MVP is a slide deck, or a sales website.

comment 4y ago · link · parent

Enjoy your vulnerabilities

comment 4y ago · link · parent

This is a good thing. Separate tool for separate use cases.

Bug jedisct1 if you want YubiKey support for minisign.

comment 4y ago · link · parent

What is your bar for "audited"?

I've reviewed both the design and implementation for age in the past and only found nitpicky things to improve (mostly related to HKDF).

I can take a fresh look and make a pretty PDF on paragonie.com if you care so much.

comment 4y ago · link · parent

> So, it's brand new. Got it.

No. Brand new means completely new. Something that's going on 3 years old isn't brand new anymore.

A more appropriately term is relatively new. Civilization is relatively new compared to the age of the universe. Age is relatively new compared to modern computers.

But neither civilization nor age are brand new.

comment 4y ago · link · parent

No, Thomas was talking about rage. https://github.com/str4d/rage

comment 4y ago · link · parent

Confusing the two is perilous.

https://blog.cryptographyengineering.com/2016/03/21/attack-o...

12345
60