Better HN
topnewbestaskshowjobs
Log inSign up

insanitybit

4,766 karma · joined Sep 16, 2022 (4y ago) · 1,995 submissions

Mastodon: https://infosec.exchange/@insanitybit Github: https://github.com/insanitybit

Rapid7 -> Dropbox -> Grapl -> Datadog

Submissions

comment 4d ago · link · parent

This just feels like seeing a complex empirical result and then having to define your view that confirms it. Except in this case the empirical result is a passing proof.

comment 4d ago · link · parent

It makes a huge difference. JIT has major implications for security. It requires its own distinct mitigation techniques because it necessitates runtime code generation and execution. It's extremely complex.

comment 4d ago · link · parent

> It really does, though. Perhaps you're unfamiliar?

You won't be specific so now you're putting me in a position to have to build your argument for you. It's frustrating because the conversation is already stupid. Java is a language so calling it compiled or interpreted or AOT or JIT is already a mistake, those are implementation properties of how it is deployed.

The massively most popular implementations rely massively on JIT, even if they have varying levels of AOT support.

This is so obviously different from actual AOT languages. Hence having to call it AOT when it's Java.

> My statement was that unsafe is much more prevalent in Rust than in Java, and that is true.

That's an empirical claim. You can go ahead and support it.

> Much less than in Rust.

Riiiight. No one uses Netty, right????? They had such an easy job ditching Unsafe, right??????

> You don't sound like either a runtime or compiler engineer at all, or you wouldn't have found any of this ridiculous in the least (or news). In that case, I hope that telling you that what I wrote was true might enrage you enough to learn more about these subjects, and perhaps our community will have grown by another member.

And I recognize your name well enough that you don't know much of anything.

comment 5d ago · link · parent

This is nonsense. Java doesn't "compile like C or C++ or Rust or Zig" any more than Python does. "Python compiles to bytecode! you can use mypyc!" who cares? That's obviously not the point.

Unsafe is still plenty prevalent in Java, nor is the use of C++ libraries.

> sometimes with more aggressive optimisations and sometimes with less aggressive ones.

Yes, well, that's some handwaving.

> Unsafe mostly used to be used for certain memory operations before VarHandles and FFM.

Yes. It is still very prevelant.

> No, that's also inaccurate. The "massive runtime" is largely a compiler (and it doesn't matter what language that's in), and memory management, where the Rust runtime is also about as massive and written in C (the various malloc/free implementations).

Ridiculous. "largely a compiler" - it contains a JIT compiler, as in it's a runtime compiler that allocates executable code at runtime and then runs it. (a) Of course it matters what language it's in (b) JITs are an incredible source of security issues and have their own set of mitigations that have to be applied.

> where the Rust runtime is also about as massive and written in C (the various malloc/free implementations).

A ridiculous comparison.

comment 5d ago · link · parent

> Because safe Rust is so constrained, Rust relies on unsafe much more than Java, and their need for intrinsics is about the same (although Java lets you turn off individual intrinsics at runtime).

This is silly. Rust also has tooling for dealing with unsafe - tools for proving unsafe code, tools for verifying unsafe code, tools for fuzzing it, etc.

Java, and other languages like it, often drop into unsafe code where it's far weirder and less supported because they have to because the languages are too slow to do the work they want to do.

And obviously you have all of the complexity of a massive, JIT'd runtime written in C++.

comment 5d ago · link · parent

Yes, that is bad. No one is saying that all bugs require memory unsafety.

comment 6d ago · link · parent

Right, but a human wrote the vulnerable code.

comment 6d ago · link · parent

Did AI write this vuln?

comment 6d ago · link · parent

In Rust's case it just matters a lot less since bounds checks are still present. But I do think int under/overflows are probably one of the scarier issues in the language.

comment 1w ago · link · parent

I've had people tell me that they trust postres RLS as their security boundary and that it's fine to expose.

comment 1w ago · link · parent

ctrl + f "zizmor" 8 found

I endose this article.

comment 3w ago · link · parent

I'm a bit confused about what about this feels emergent or unanticipated.

comment 3w ago · link · parent

> No human can go edit a brain to become better at math. This is just very, very surprising to me and extremely interesting. I would guess this upsets quite a number of interp theories and philosophical takes on what's going on with these networks.

Why would this have implications for theories or philosophical takes? I'm a bit surprised that you're surprised by this.

comment 3w ago · link · parent

Well I'm not a random HNer lol I work in security.

Are you suggesting that they've come up with a novel technique that doesn't involve sharing a CPU core? I'm open to that.

From what I can tell, this is not the case, but I haven't read a detailed report (I don't know of one, would be cool if it's out there though).

comment 3w ago · link · parent

> something that our systems are meant to prevent

What prevention method did they take? Like, did they run with hyperthreading enabled or something by accident?

Did they discover a new cache timing technique or is this just the standard stuff?

If they just had hyperthreading on maybe they need to hire someone who knows more about this stuff.

Two VMs should never be sharing a physical core. If they don't know this, yikes.

comment 1mo ago · link · parent

uv defaults to its own trust store afaik lol

comment 1mo ago · link · parent

The vast majority of web services are not written in memory unsafe languages so this is not surprising.

One of the exceptions (with regards to web facing attack surface in a memory unsafe language) is that people still use OpenSSL, which has a terrible history of memory unsafety, including the cited heartbleed.

comment 1mo ago · link · parent

It was.

comment 1mo ago · link · parent

I don't care, nor should anyone else

comment 1mo ago · link · parent

Sure, I think it was still under the same unsound tag regardless.

comment 1mo ago · link · parent

I don't think the definition of "memory safe" has ever required full end to end stack conformance with a proof. Very few languages have achieved that, though some have. Most people call Java memory safe, C#, Python, Typescript, etc - all of those fall short of a formally verified, sound type system with a verified toolchain.

comment 1mo ago · link · parent

lol I was writing `l` because I thought it was `labeled-unsound` for like a fucking decade

comment 1mo ago · link · parent

For a long time `loop {}` was undefined behavior. Lots of l-unsounds are really nuts but a few are not.

The reality is that if this were actually code that people wrote, well, it wouldn't have sat around for a decade.

comment 1mo ago · link · parent

lol do you think that cve-rs was required? there is literally an l-unsound tag on rustc's github, this isn't some embarrassing or secret thing.

Safe rust is safe, granting `unsafe` and compiler errors. This isn't a secret.

comment 1mo ago · link · parent

This doesn't work when every candidate holds the same position.

comment 1mo ago · link · parent

I mostly use Haiku for really, really basic stuff, never for actual engaging work. I've used it for first-pass analysis to triage bugs, for example - all it does is related N bugs together to see if any potentially relate. Then I have Sonnet investigate further.

comment 1mo ago · link · parent

No. It's because Greg doesn't like the CVE system and MITRE, the stupidest decision ever, made Greg a CNA, and this is his tantrum that he's been waiting 40 years to throw.

comment 1mo ago · link · parent

I think the current state of bug bounties demonstrates that it's about the eyes, not the number.

comment 1mo ago · link · parent

> 'with enough eyes all bugs are shallow'

This was always nonsense. It assumes that the eyes know what they're looking at. Most people don't know how to look at code and see attack paths.

comment 1mo ago · link · parent

I think the wording in this title is too strong. MicroVMs like Firecracker have stood up to agents, as noted.
12345
67