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

Not always.

https://meta.stackoverflow.com/questions/293930/problematic-...

comment 10y ago · link · parent

One thing I love about Stack Exchange is the ability to add "This advice is INSECURE! See Beth's answer below for a better way to solve this problem." to accepted answers with really bad suggestions.

comment 10y ago · link · parent

Define "criminals" in the context of a panopticon.

comment 10y ago · link · parent

"How more work can there be?"

Missing a word.

comment 10y ago · link · parent

I think that would make for a very fun research project, especially if a memory-safe language like Rust were used.

In addition to your examples of Quercus and HHVM, someone is currently working on compiling PHP to .NET: http://www.peachpie.io

I'm not aware of any security audits on any of these efforts.

comment 10y ago · link · parent

Yep, that's about it in a nutshell.

comment 10y ago · link · parent

In fact, I do. It's still beta software (and the design used in the screenshot is out-of-date already).

https://paragonie.com/project/airship

Working on the PKI and plugin distribution system right now, so people can make/share themes and whatnot.

comment 10y ago · link · parent

I'm building a CMS in the same vein as the others (WordPress, etc.) and made static page caching a first-class feature that bypasses the autoloader completely.

https://github.com/paragonie/airship/blob/e24ea5a4605336b171...

This is something that really ought to be baked-in in 2016.

comment 10y ago · link · parent

I've had a blog post sit at the #1 spot on HN for nearly 24 hours and my server never even sweated.

I have a cheap VPS and didn't do anything fancy with caching. I just don't code like a n00b.

Also, either use SuperCache or ditch WordPress entirely.

comment 10y ago · link · parent

TLS is Transport Layer Security.

When we're talking about End-to-End Encryption, we usually mean:

    * Application Layer Security (between users)
    * Transport Layer Security (between each user and the server)
And here, Security should mean public key authenticated encryption (e.g. crypto_box() from NaCl)

comment 10y ago · link · parent

https://tonyarcieri.com/all-the-crypto-code-youve-ever-writt...

The word "broken" means susceptible to practical attack, and attacks aren't always of the "cryptanalyze the ciphertext and read the plaintext because you're a clever mathematician" variety.

For example: Padding Oracle Attacks. This is the most accessible explanation on-hand: https://twitter.com/SoatokDhole/status/720435675401744385

A padding oracle attack lets you decrypt a message by studying how the cryptosystem responds to garbage input. Without recovering the key.

iMessage had a compression oracle attack recently: http://blog.cryptographyengineering.com/2016/03/attack-of-we...

They didn't merely "read the plain text of the traffic [they] capture[d]". But these systems were still, quite badly, broken.

So what's my point? Telegram's protocol is susceptible to the same class of active attack. Thus, it is broken.

comment 10y ago · link · parent

Here's your proof: http://cs.au.dk/~jakjak/master-thesis.pdf

See also:

http://www.cryptofails.com/post/70546720222/telegrams-crypta...

https://moxie.org/blog/telegram-crypto-challenge/

comment 10y ago · link · parent

> I don't think I get your complaint

> Without open-sourcing the crypto, they could be just doing rot16($message) for all we know.

There are two things you can do:

1. Watch the outbound traffic and attempt known-plaintext attacks

2. Reverse engineer the app

Neither is particularly difficult. Most Android apps are trivial to break apart using Lobotomy. A large swath of software security folks specialize in binary auditing.

comment 10y ago · link · parent

> No attacker is going to start out by trying to break the crypto, unless it's obviously broken.

Emphasis mine. I agree with ryanlol here. Why bother with active attacks when you can just steal their private key from a code execution?

Similar to this, but with the priority flipped:

https://www.bishopfox.com/blog/2016/04/if-you-cant-break-cry...

comment 10y ago · link · parent

http://www.cryptofails.com/post/70546720222/telegrams-crypta...

Because their contest is a dumb gimmick that doesn't encompass chosen-ciphertext attacks.

comment 10y ago · link · parent

If they have $1M to invest, why don't they focus on securing their protocol (i.e. switching to authenticated encryption) and turning encryption on by default?

See http://cs.au.dk/~jakjak/master-thesis.pdf for more on why Telegram isn't secure and you shouldn't trust it (as it is today) for anything requiring privacy.

comment 10y ago · link · parent

The argument sounds like it's based on a geometric expansion of 80% failure rate for each year.

    (1.0 - 0.8)^5 = (0.2)^5 = 0.00032
That would mean that in 5 years, 99.968% of business would fail.

Clearly that's a fallacy; an 80% failure rate in the first year does not imply an 80% failure rate in subsequent years.

1638.

Securely Implementing (De)Serialization in PHP(paragonie.com ↗)

1 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

I've seen this accusation thrown around for years now (often privately) and I just don't see it. Maybe I'm blind.

Even if he's shilling for the government (stupid claim but whatever), what do they gain by him encouraging people to adopt better crypto habits?

This seemingly-baseless personal attack doesn't even pass the laugh test for me. I'd like to see some hard evidence.

What do government shills sound like? What are they trying to accomplish? How does Thomas line up with their modus operandi and/or endgame?

As someone who works heavily with appsec/crypto and has no business relationship with tptacek, it's obvious to me that his warnings are exclusively of the "don't do unnecessary things that often result in security foot-bullets" category.

What OpenSSH does right: public key pinning instead of a CA infrastructure. But then, you don't necessarily need the CA infrastructure for TLS.

Do all security researchers sound like government shills now?

comment 10y ago · link · parent

This is a blog post from 2011. The current HN submission title does not indicate this article's age.

comment 10y ago · link · parent

For our blog posts: We don't have an official rubric, but we try to emphasize topics that are immediately useful and provide simple steps towards better long-term security for anyone who reads it.

For example, developers know not to roll their own cryptography, but how can someone who has never rolled their own crypto evaluate existing libraries? There are a lot of bad ones out there, and "I didn't roll my own crypto" doesn't equate to "I used a well-studied library thought to be secure by industry experts".

Consequently, we delved into specific recommendations and explained why we include them in our list.

https://paragonie.com/blog/2015/11/choosing-right-cryptograp...

(Historical context, this was published after I discovered CVE-2015-7503 in Zend Framework 2. A lot of my peers said it was good, but I don't recommend code until I've audited it. Lo and behold, I found a problem with their RSA implementation.)

For our reading list: We focus on application security, not physical security (e.g. data center security, full disk encryption), social engineering (e.g. phishing, scamming), or system security (e.g. malware and OS-level exploit mitigation).

Application security can encompass cryptography, information theory, etc. but the target audience is programmers.

Material for any programming language will be considered for inclusion, but some absurd ones (e.g. Brainfuck) will probably be declined.

comment 10y ago · link · parent

Yikes. Sorry about that, something went wrong with my init scripts and our server rebooted earlier. It's up again and I'm looking into the problem.

Our blog posts in particular:

https://paragonie.com/blog/category/security-engineering

A reading list we maintain for application security (and some crypto stuff):

https://github.com/paragonie/awesome-appsec

comment 10y ago · link · parent

I've been working on teaching developers to not just use encryption, but to use it properly, for the past year or so. I'd like to think it's making a difference, but only time will tell.

comment 10y ago · link · parent

Excellent point. I didn't check the date on that, and wasn't familiar with the background.

comment 10y ago · link · parent

I fully agree here. I'm just wondering, if Apple hadn't done that, where would we be today?

Edward Snowden says, "Courage is contagious." I'm just wondering if this is an example of that, or if they would have done this regardless.

comment 10y ago · link · parent

On one hand, I commend Microsoft for doing this.

On the other, I wonder if they would if Apple hadn't already stood up to the government?

comment 10y ago · link · parent

If you ever want a crushing sense of "this project is totally mismanaged", just read its issue tracker.

comment 10y ago · link · parent

This is unsurprising. From what I gathered from @da_667 (former NSA TAO), the pay was terrible. Why work for the government when you can get a job making 2-3 times as much with the same responsibilities?

comment 10y ago · link · parent

As much as I'm inclined to agree with this line of argument in this particular case, I do take issue with the term "responsible disclosure" for many of the reasons outlined here: https://adamcaudill.com/2015/11/19/responsible-disclosure-is...
1
545556
60