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

I'm assuming that's a typo (s/PGP/PHP/).

There isn't such an analysis yet, but I intend to do one in the near future. We have a similar analysis for out-of-box security features of popular open source CMS: https://paragonie.com/blog/2016/08/on-insecurity-popular-ope...

Our security page has some of the audits we've done (at least, the ones we were permitted to publish) as well as our security advisories. https://paragonie.com/security

I'm pretty active in the PHP community and get looped into a lot of pull request discussions (e.g. https://github.com/facebook/php-graph-sdk/pull/552#issuecomm... for Facebook's SDK), but it's possible I've missed a few.

comment 9y ago · link · parent

They might be alluding to some of the specific examples in our blog post. Like, mbstring.func_overload, or chr() being a great way to leak crypto keys via cache-timing.

These sort of things aren't obvious and can very easily (and justifiably) be blamed on the language itself.

A lot of PHP crypto libraries are very cavalier about using functions without understanding their implementation details.

https://github.com/devi/Salt/blob/fde775cf52402013efce812759...

https://github.com/phpseclib/phpseclib/blob/ab1da5ac1f2fa60b...

https://github.com/zendframework/zend-crypt/blob/9b7da4a6d4d...

Fortunately, most cryptography libraries these days just wrap OpenSSL and rarely implement their own ciphers or hash functions.

1113.

Cryptographically Secure PHP Development(paragonie.com ↗)

114 points · by CiPHPerCoder · 9y ago · 30 comments

comment 9y ago · link · parent

I said almost double, not exactly double. It comes up to about $1200 - $1600 depending on the property here.

I live in Florida, to boot. Real estate isn't exactly cheap here.

comment 9y ago · link · parent

> We live in a 680 sq ft one-bedroom apartment in an older development ($2200/mo).

Whoa, that's almost double the estimated mortgage for the 5 bedroom houses with an acre of land my family has been looking at purchasing.

I'll never move to the SF Bay Area. I encourage others not to, either. Get the companies there to open up to remote employees instead.

1116.

Cryptographically Secure PHP Development(paragonie.com ↗)

2 points · by CiPHPerCoder · 9y ago · discuss

1117.

Cryptographically Secure PHP Development(paragonie.com ↗)

1 points · by CiPHPerCoder · 9y ago · discuss

1118.

Is Digital Privacy a Privilege of the Wealthy?(tisiphone.net ↗)

2 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

Generally if a whale ends up dead on a beach lots of parasites feast upon its bloated corpse.

But that's not to say we need more beached whales.

comment 9y ago · link · parent

> A more likely scenario is, if Sandstorm shows strong growth as an open source project to the point of being fundable again, then the original team (with maybe some added biz dev expertise) can restart the company in the future.

I sincerely wish you the best of luck. I think it's a valuable-to-society idea, even if it was hard to market.

comment 9y ago · link · parent

> This is something that I would love to see happen with open source projects:

That won't happen. But not for lack of trying!

My consulting company, Paragon Initiative Enterprises, has produced over a dozen high quality open source projects that make it easier to write secure PHP software.

For starters, we wrote an entire CMS that has secure automatic updates baked into its core as a first-class feature (including for extension developers): https://paragonie.com/project/airship

Worried about SQL injection? EasyDB makes it easy and intuitive to use prepared statements. https://github.com/paragonie/easydb

Need Content-Security-Policy headers quickly and easily? You want CSP-Builder: https://paragonie.com/project/csp-builder

Want all the security of libsodium with an even simpler interface and a separate class for dealing with the filesystem? Check out Halite: https://paragonie.com/project/halite

Want to stop CSRF (including replay attacks)? https://github.com/paragonie/anti-csrf

Want to quickly examine the differences between two PHP Archives (e.g. for reproducible builds)? https://github.com/paragonie/pharaoh

We even wrote the community's accepted interface for generating cryptographically secure random numbers in PHP 5 projects: https://github.com/paragonie/random_compat

And coming soon (pending an audit), a pure-PHP implementation of libsodium that will likely be adopted by WordPress so its automatic updates are Ed25519 secured: https://github.com/paragonie/sodium_compat

And even more: https://paragonie.com/projects

Guess how many clients we've gotten from all this open source software we wrote over the past two years that demonstrably improves the security posture of software written in PHP?

Zero.

My solution: Our next project isn't going to be OSS, and it's unlikely that any of our future ones will be unless it's intended to be a giveaway.

The open source + consulting business model may sound good in theory, but it simply doesn't work. (Though, I will grant that it's possible that the "consulting about someone else's open source project" is more sustainable, due to near-zero investment in said project itself.)

comment 9y ago · link · parent

What makes you think the government couldn't demand the maker of the neural connectors exfiltrate the neural password?

comment 9y ago · link · parent

SEEKING WORK | REMOTE | Orlando, FL

Need to shore up the security of your web-based software? Need someone who can work within real-world security requirements?

PHP powers over 82% of websites on the Internet today, though it's often shunned by other information security professionals. For most companies, rewriting everything from scratch in a different language is not a viable strategy for minimizing the risk to themselves or their customers.

Is it possible for software written in PHP to be secure (in spite of what other security experts say)? Yes. If you still have doubts, get in touch.

My research and professional background mostly consists of software development, web application security, applied cryptography, code auditing, and penetration testing.

You may find much of my recent open source security research here: https://paragonie.com/security/advisories

A sample of PHP projects I've developed or contributed to significantly:

- random_compat - PHP 5 polyfill for the CSPRNG functions introduced in PHP 7; this security library has over 19 million installs according to Packagist - https://github.com/paragonie/random_compat

- sodium_compat - A pure-PHP implementation of much of modern elliptic curve cryptography and (AEAD) symmetric encryption - https://github.com/paragonie/sodium_compat

- CMS Airship - A secure-by-default content management system - https://paragonie.com/project/airship

- CSP-Builder - A developer utility to promote the adoption of Content-Security-Policy headers - https://github.com/paragonie/csp-builder

I can be reached via https://paragonie.com/contact or email: security@paragonie.com

comment 9y ago · link · parent

If anyone wants a free idea for a "deal with fake news" startup: https://docs.google.com/document/d/13TK_uYpXRc3cODePnfV16Kzl...

I literally do not have the time to build this, as I'm busy trying to make PHP secure.

I just spitballed an idea and passed it along hackers who gave me feedback.

I don't want to be contractually tied to VCs either.

Just, if you like the idea, take it. Run with it. Make it successful. Use modern crypto. It's yours.

Maybe see if the folks that run Snopes are interested?

comment 9y ago · link · parent

> While I 100% agree, it should be noted that this particular RFC predates the Ed25519 RFC by some years.

Sure, I'm not saying this RFC is misguided, just outdated and people should use Curve25519 or Curve448 for their ECDH/EdDSA needs (and stop using foot-bullety ECDSA).

comment 9y ago · link · parent

Yes, but this RFC does not.

comment 9y ago · link · parent

This is all NIST Curve ECC (P-256, P-384, etc.) and should be discouraged in favor of the curves in RFC 7748.

comment 9y ago · link · parent

Which copyleft licenses would these corporations be okay with?

comment 9y ago · link · parent

Disclaimer: I shouldn't be regarded as any sort of authority on the English language.

I sort of decide what words mean to me, publish them, and then stick to those definitions (while pointing anyone confused towards the published definitions).

There's probably a better way to classify these ideas without tripping over other peoples' lexicographic pedantry, but this is the Internet and you're always going to find a contrary opinion no matter what you do. The winning move is to not play.

Thus:

  talent: natural affinity
  skill:  aptitude gained through effort
  gifted: a person who is both talented and skilled in an area

comment 9y ago · link · parent

Talent is innate.

Skill is practiced.

If you're passionate enough about something that you happen to have a natural affinity for in order to hone your skills, I call that a gift.

comment 9y ago · link · parent

> I would argue that there are no "masters" - or rather, that there are very few of them, and those that I might consider such are "just people" too.

Mastery does not obviate humanity.

The most gifted (which I define as the cross-section between talented and practiced) people I know tend to care more about the content of your character than your technical prowess.

comment 9y ago · link · parent

Also: If you don't find your name on this thread, that doesn't mean that you're a nobody and that your work is unappreciated. It only means that the sort of folks who'd respond to a thread like this in earnest haven't noticed you, which probably isn't a reflection on your value to the {community, industry, world} (select appropriate).

comment 9y ago · link · parent

> Thus not keeping a journal because its contents might be used in a court of law is just a sad state of affairs.

https://www.youtube.com/watch?v=d-7o9xYp7eE

If you record in your journal anything that can be perceived to place you near a crime, whether or not you're guilty or the association is a stretch of the imagination, then your words can be used against you without your right to invoke the 5th amendment. If the journal was seized in the execution of a search warrant, you lose the 4th amendment protections too.

The winning move is to not play.

comment 9y ago · link · parent

Why would I go through the trouble of writing something down in the first place if I had to use an airgapped laptop?

I'd either just remember it or decide it's not worth remembering.

comment 9y ago · link · parent

No, because it would be used against me in a court of law.

comment 9y ago · link · parent

> Also, remember that every other gay guy is a potential rival as well as a potential match.

Also, not all gay people are monogamous! That makes things complicated if you are. Your dating pool dwindles smaller and smaller.

> Every day I think about how lucky I am to have met the guy I am with, now 15 years ago.

Good on ya. :)

comment 9y ago · link · parent

This reminds me of another puzzle which requires being able to afford to travel to specific geographical locations (Cicada 3301). I really hope this isn't how Google intends to find new employees.

1138.

WordPress to get digitally signed updates (Ed25519)(ma.ttias.be ↗)

3 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

> The "CB's" he's describing are so incredibly transparent, they might as well be strawmen.

Strawmen or not, I've worked for two. Those aren't fond memories.

comment 9y ago · link · parent

Why is this flagged?
1
373839
60