Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 4y ago · link · parent

I obviously am very comfortable disagreeing with people who work on the kernel or adjacent software. Working in those areas does not at all make them correct, or even informed, especially with regards to security.

comment 4y ago · link · parent

I'm sure they recognize that weakness but also that it's necessary. Wikipedia can't be "The source" of information, that would change its fundamental premise.

comment 4y ago · link · parent

That's definitely not the reality at all, and it's also not actionable.

comment 4y ago · link · parent

So you update your kernel for every single commit as soon as it's merged in? If not, you already obviously understand how ridiculous your argument is.

I've already explained that most people have some sort of cadence for updating.

Based on your other comments you're just going to ignorantly parrot Greg's talking points. I don't think you have much insight into this.

comment 4y ago · link · parent

Greg would also discourage you from getting a CVE assigned at all, so you might be barking up the wrong tree.

comment 4y ago · link · parent

Me too. We have a multi-tenant system and we did threat modeling, immediately calling out that while we had network restrictions that we should assume those will fail and we'll add mTLS and an out of band token.

That took almost no time or effort to realize.

comment 4y ago · link · parent

This comment is totally baseless. Anyone who does linux kernel exploit development knows how to crawl the commit log or syzkaller.

comment 4y ago · link · parent

SOC2, which is by far the most common compliance certification, checks for:

1. The presence of a formal threat model

2. A process for applying controls against that threat model

3. Evidence that the process is being followed (for a type 2)

This is actually pretty good. It's just also easy to game. It's totally on you to say what your threat model is, to say what controls you've accounted for, what risks you've accepted, etc. An auditor might call you out like "no, encrypting data at rest doesn't address password reuse", but you have a lot of control over how the whole thing plays out.

That means that most companies basically just buy their way out of SOC2 by having a compliance team that retroactively works to map what currently exists to a standard threat model provided by NIST. What happens less often is that people actually do the work the intended way - starting with a model, creating a process, and then creating an audit trail for it.

If they did, honestly, SOC2 would have a lot of value. It is a very sound approach to security. But, as with all cost centers, the goal is to minimize the cost of security, not to do it well.

comment 4y ago · link · parent

Is no one doing security QA there? This seems to me like someone thought "the isolation is going to be enforced by networking" and then no one validated it by just running nmap or something.

Finding this should have been trivial for MS. And further, why would you only have one mechanism for tenancy enforcement? Networking is a fine boundary, but there should have been a token as well.

comment 4y ago · link · parent

My point is that this is basically just how exploits work for Linux, so it's pretty universal unless your main concern is 0days. As for me personally, I run a company that uses Linux in production. We happen to explicitly do research into Linux kernel security (we'll be publishing tomorrow on a 0day we had reported) https://www.graplsecurity.com/blog

comment 4y ago · link · parent

I think some important context here is that the people who want commits obfuscated are never the ones making a decision about the security label. The people writing the commit already know it's a security issue.

comment 4y ago · link · parent

You have it completely backwards.

comment 4y ago · link · parent

I've read the post before, I've seen the talk, and frankly it's been addressed a number of times. It's the same silly nonsense that they've been touting for decades ie: "a bug is a bug".

comment 4y ago · link · parent

That part I'm ok with. Upstream has treated security researchers with contempt for decades.

comment 4y ago · link · parent

I'm aware of the fact that AVs are not just hashing binaries or whatever. I'm well aware of how AV works in general. My points all stand imo. AV is a reactive technology.

comment 4y ago · link · parent

> Is this "Linux is garbage" opinion shared broadly by security researchers?

Everyone I know would agree, yeah. I think the infosec world is probably more or less aligned on this, as much as anything, although that's a low bar and there is no single infosec community.

> what is "alienating"

Decades of Linus and Greg insulting or attacking security researchers in various ways. It's become pretty antagonistic on both sides I think.

> As for "written in C", what production-grade kernels aren't written in C?

None afaik. It just all jumbles together to paint the 'garbage' picture.

comment 4y ago · link · parent

FWIW, if it in any way comes off like I'm blaming Max for this, I'm not. Anyone blaming Max for how vulnerabilities are disclosed is completely ignorant of the kernel reporting process.

comment 4y ago · link · parent

Assume I patch my Linux boxes once a month. I see a commit where an attacker has a trivial privesc. I read the commit, see if it's relevant to me, and potentially decide to do an out of cycle patch. As in, instead of updating next month I'll just update now.

comment 4y ago · link · parent

> What is your threat model / situation that you care about attackers who reverse engineer patches, but are not in the small circle of people who would be informed before hand.

Virtually every single Linux user. I think what you're missing is how commonplace and straightforward it is for attackers to review these commits and how uncommon it is for someone to be on the receiving end of an embargo.

Most exploits are for N days, meaning that they're for vulnerabilities that have a patch out for them. Knowing that there's a patch is universally critical for all defenders.

For context, my company will be posting about a kernel (then) 0day one of our security researchers discovered. You can read other Linux kernel exploitation work we've done here: https://www.graplsecurity.com/blog

comment 4y ago · link · parent

Not just downvoted. Flagged lol

comment 4y ago · link · parent

Oh, you're talking about an attacker who's outside of the container? That's a completely different threat model.

comment 4y ago · link · parent

Attackers have no control over the --privileged flag, so what you're basically asking for is a lint that greps for "--privileged" and fails CI if it finds it.

Some things may make this harder, like Kubernetes presumably, but idk it seems relatively straightforward and also not exactly the fault of containers.

comment 4y ago · link · parent

Written in C, huge codebase, decades of alienating security researchers, etc.

comment 4y ago · link · parent

> What should they do instead?

When someone submits a patch for a vulnerability label the commit with that information.

> You have to rush to patch in any case.

The difference is how much of a head start attackers have. Attackers are incentivized to read commits for obfuscated vulns - asking defenders to do that is just adding one more thing to our plates.

That's a huge difference.

> the logical step is that it doesn't require immediate action when the label is not there.

So I can go about my patch cycle as normal.

> Never mind that the bug might actually be exploitable but undiscovered by white hats.

OK? So? First of all, it's usually really obvious when a bug might be exploitable, or at least it would be if we didn't have commits obfuscating the details. Second, I'm not suggesting that you only apply security labeled patches.

comment 4y ago · link · parent

I don't think you understand how attackers work.

Attackers don't just crawl code at random. Starting with known crashes or obfuscated commits is always faster.

comment 4y ago · link · parent

I'm well aware of your policy. Yes, I disagree. Also, mailing lists suck and I'll continue to comment wherever I please about the matter.

> Just don't try to rehash all the same old arguments again, as that's not going to work at all.

No shit. People have been trying to explain all of this to you for decades lol I'm not stupid enough to think I'll succeed where they've failed.

comment 4y ago · link · parent

Evidence of what, exactly? I can find you lots of evidence for hiding vulns, they don't even hide it - I'm sure Greg will admit to as much.

Evidence of this being helpful to attackers and not defenders? IDK, talk to anyone who does Linux kernel exploit development.

edit: There you go, Greg linked his policy, which explicitly notes this.

comment 4y ago · link · parent

Another example of a vulnerability that is purposefully obfuscated in the commit log. It is an insane practice that needs to die. The Linux kernel maintainers have been doing this for decades and it's now a standard practice for upstream.

This gives attackers an advantage (they are incentivized to read commits and can easily see the vuln) and defenders a huge disadvantage. Now I have to rush to patch whereas attackers have had this entire time to build their POCs and exploit systems.

End this ridiculous practice.

comment 4y ago · link · parent

Or /etc/passwd

comment 4y ago · link · parent

It's the absolute opposite. It's insane that this commit wasn't flagged as a patch for a major vulnerability. Why am I finding out about this now? Why is it now my job to comb through commits looking for hidden patches?

It puts me, as a defender, at an insane disadvantage. Attackers have the time, incentives, and skills to look at commits for vulns. I don't. I don't get paid for every commit I look at, I don't get value out of it.

This backwards process pushed by Greg KH and others upstream needs to die ASAP.

1
565758
164