Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 5y ago · link · parent

It's not about eliminating state it's about hiding it. OOP hides state, which means mutability is often shared and hidden.

comment 5y ago · link · parent

> Executable space protection requires special hardware (the NX bit) or expensive software emulation.

"Special hardware" is literally everywhere. It's more accurate to call it "special" if it doesn't support NX.

> Somebody must have thought so, because it is so prevalent now.

FWIW, those people (pippac iirc/ paxteam?) were well aware of ROP when they created it. It's sad how hard it is to find the original sources these days, the docs are all so old - someone can maybe find security.txt?

comment 5y ago · link · parent

> It's worrying how they are improving the case for "70%" scenarios, while crippling it for the other 30%, without recourse. It's not even funny any more.

70% of the scenarios impact 99.99% of users as well as the project's intended scenario.

> being limited to the same host.

Yes, that's the point, of course.

comment 5y ago · link · parent

Yeah, I mean, you look it up? lol someone even linked it elsewhere.

And the article is about recommending against its use.

comment 5y ago · link · parent

It's interesting that you're both literally incorrect from the perspective of the English language, but also incorrect with regards to the goal of the announcement. Kudos!

comment 5y ago · link · parent

> perfectly secure.

I think you're trying to use 'perfectly secure' here the way one might say 'perfectly fine', which changes the reading a lot from a first pass.

That said, I agree, there is a subset of TLS 1.2 that is suitable.

comment 5y ago · link · parent

> I don't understand the practical consequence

Well I did link to a blog post that explains this, so I feel like it's sort of on you at this point. But I guess the short answer is that in Rust you know exactly what 'unwrap' will do on a None, and in C/C++ you can't.

> can you imagine your long running application (e.g a server) stopping in production..

Yes. It happens all the time, and in fact it is inevitable. Far better than the program misbehaving, which is what undefined behavior leads to. In fact if you're building a serious, production service, you might want to skip panicking altogether and just kill the process.

comment 5y ago · link · parent

They're definitely not the same at all. Dereferencing a null pointer in C and C++ is undefined behavior. You can read more about it here: https://rootkits.xyz/blog/2018/01/kernel-null-pointer-derefe...

In rust an unwrap of a None is defined and memory safe.

comment 5y ago · link · parent

I'm not sure what you mean. I don't know all sorts of things. I watch a conference talk or I read a paper, and I start looking things up.

If it's a paper reference I search for the paper's ID/ title - Google won't do any better than DDG, this is a pinpoint search. If it's a term, like recently I was looking into Entity Resolution, I wikipedia it. I run into things I don't know constantly and my search engine has virtually nothing to do with how I discover new information.

comment 5y ago · link · parent

As a sort of related question, what do people use search engines for? I find that 99% of my searches fall under the "I know exactly what site I want to search" ie: docs websites, github, wikipedia, etc, which I can search trivially in my browser's url bar.

For the last 1%, I use duckduckgo, which almost always ends up just proxying me to one of those other sites.

Search feels very "solved" to me, I don't see the point in using Google.

comment 5y ago · link · parent

Yeah, sadly I couldn't find a way to read the paper beyond the abstract for free, but the doses I've seen for CBD are like ~10 to 100x what you'd generally get from smoking weed I think. Not to mention that it's usually taken orally, not smoked, but again I can't read the paper so for all I know they were massaging it into their scalps.

comment 5y ago · link · parent

Honestly it was really obvious from context that you were referring to consumer empathy and not that you were implying that they were a psychopath.

comment 5y ago · link · parent

Is this intended to be ironic? You're doing the exact same thing.

comment 5y ago · link · parent

I find your statements so strange. I honestly don't care about noalias, and very few people really should. Same with 'async drop'. Same with io-uring, which seems to be totally fine in Rust so far.

Despite your repeated statements that async has harmed Rust, I don't have any problem whatsoever day to day writing 10s of thousands of lines of async code with regards to what you've brought up.

comment 5y ago · link · parent

Torvalds solved low hanging fruit problems (reimplementing a version control system with a permissive license, implementing a toy OS with a permissive license) when computer science and programming were niche skills, and for that he's become a highly paid celebrity with a cult following that forgives him for anything. It's so embarrassing to see people celebrate abuse years after the fact, I honestly cringe at these threads. I pity people who relish the idea of being attacked by someone they respect and I wish we could all just move past this dumb hero worship culture.

P.S. please add a (2012) to the topic, this is NINE years old who cares.

comment 5y ago · link · parent

I actually wasn't sure how to flag a post, or if I actually could, which is why I asked. I see now that if you click on the post you can do so.

Yes, I think your comment was not worthwhile and ultimately just took up space on the page, so I would have flagged it, but it's deleted. I would be very happy to have seen a post about things like at-most-once guarantees and the actor model.

comment 5y ago · link · parent

> (and full disclosure, I've only read the title)

Is there a way to just get posts like this deleted?

comment 5y ago · link · parent

> It’s almost getting to the point that I’m rooting for rust to fail and for C++ to just continue to get better, just so that these people who claim to take memory safety so seriously might shut the fuck up about it.

lol idk kiiiinda sounds like you might be the one taking things too seriously?

comment 5y ago · link · parent

Cloudflare's blogs seem far less markety and far more about sharing interesting technical wins.

comment 5y ago · link · parent

> The basic principle of real security models is once an attacker has full access all data on the system is potentially tampered with.

That's not true at all. Like, not at all.

comment 5y ago · link · parent

YEah I stalk a TON of people so it's fine, it's just aggregate stalking.

comment 5y ago · link · parent

I don't understand the point you're trying to make. That because one exploit exists, and using that exploit is cheap, the entire class of attacks is cheap?

Sorry, but this entire thread is nonsense, and it's just a clear demonstration of a lack of threat modeling and frankly a lack of understanding of what attacker capabilities are.

comment 5y ago · link · parent

I honestly think that the term "tracking" is too benign. If I followed someone around, taking notes on them as I went, so that I could try to sell them something, I would be called a stalker.

But do it online and it's just "tracking".

comment 5y ago · link · parent

> Trying to prevent a determined privileged attacker from doing something is an exercise in futility,

That's not really true at all.

> since it's impossible in every sense of the word

Ok? Lots of things are impossible, and lots of those things are also still very very hard and costly. Hash collisions aren't impossible, and yet here we are, with a world hinging on them being very hard.

> , they can do whatever they want

Not really.

> Most post-exploitation frameworks (prominent example: DanderSpritz) have modules to remove stuff from the windows event logs without leaving traces.

You realize that:

a) DanderSpritz's logic to bypass the event log was a huge deal

b) It's literally an NSA leaked exploit????? Like are you kidding me using an NSA developed exploit as "pretty basic stuff" lol

Sorry but I think I'm gonna stop responding here.

comment 5y ago · link · parent

File monitoring is particularly slow, though not for any fundamental reason. But you can still monitor lots of files efficiently by just limiting which files you look for, which lots of companies do.

comment 5y ago · link · parent

> ssh-keygen -b 4096 isn't a hassle...

I was referring to password rotation specifically with those points, not SSH key rotation, because the quote in my post was also in the context of password rotation.

comment 5y ago · link · parent

Ah nice. Yeah, SSM is awesome, we use it as well.

comment 5y ago · link · parent

You can assume a lot of logs are not compromised. For example, logs from your network infrastructure. In this case you could trust sshd logs (so long as you ship them off quickly) and network logs.

As for endpoint logs, yes, a privileged attacker could disrupt them. But honestly, even with regards to your endpoint, attackers often don't disable logging - though I do see it, for sure. For "blessed" logging like Windows Event Log you'll have an even harder time - they do take measures to protect the files on disk, even against privileged attackers, and supported methods of deleting the event log actually themselves generate a "Someone deleted the event log" event, which I would highly recommend you watch out for :)

The simplest advice for dealing with this is to ship logs off of the device ASAP and to make sure that disrupting the service requires privileges.

1
103104105
164