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

> so this doesn't really say much about the WebAssembly spec from a host security perspective

To be clear, it does. WebAssembly does attempt to ensure that it compiles and executes programs in such a way that they are resistant to memory unsafety.

From webassembly.org, section "Memory Safety":

https://webassembly.org/docs/security/

Webassembly advertises itself as more or less solving the "insecure C is still insecure" problem. In reality it's missing a lot of memory safety mitigations you'd find in a C program compiled with a modern compiler.

comment 5y ago · link · parent

> I look at this bug and what it shows about the assumptions baked into eBPF verification and conclude that it is not safe for unprivileged programs to use.

This is actually something we took away from this (I work at Grapl) as well.

We consider the Linux kernel to be unsuitable for isolation in some of our services, and it at least requires hardening (such as limiting unprivileged ebpf) in others.

comment 5y ago · link · parent

> For members of a relatively well-paid profession earning good wages from creating software, I wonder if the reluctance to support others earning money for quality work isn’t some form of cognitive dissonance.

Yep! People see open source as a goal, rather than a sustainable product being a goal.

comment 5y ago · link · parent

I like Glenfiddich (15)... but apparently others disagree. I like Laphroig a lot as well, though they're totally different.

comment 5y ago · link · parent

Very first sentence is me saying legalization is great and overdue. Feels like it shouldn't be a huge ask that people read the first sentence.

comment 5y ago · link · parent

Weed being legal is cool (and a huge deal and way overdue) but, until I moved to SF, I still bought from a dealer. It was cheaper and I got really high quality stuff, got to give feedback to the guy on the strains, chocolates, etc. Plus my guy would smoke me up for free a good amount of the time and we'd just chill and chat for a bit.

Legal weed is wayyyy more expensive in my experience and I dislike the experience. I went to an SF dispensary and it was so odd - had to give them an ID, sit there and fiddle with some ipad, etc. Presumably there's a lot of overhead with taxes, employees, property, etc.

And apparently artificially keeping prices high...

Also a somewhat damning case of "we have no idea how to value this"

I don't really smoke anymore, no time, but it was enough of a difference that the novelty of cutesy edibles wore off fairly quickly.

comment 5y ago · link · parent

v4 doesn't use a MAC address, you're thinking of V1 and V2.

comment 5y ago · link · parent

> UUIDv4 (or even worse, the other versions) are regularly used for "security", as you said, when they shouldn't. That won't change with these proposed versions.

UUIDv4 can be entirely suitable for security purposes, so long as the implementation is defined to use a secure RNG, which most sane implementations would be (since that's the dead simplest way to ensure the guarantees of UUIDv4).

Most people use them for security purposes because libraries for UUID tend to make it easy - you get 122bits of randomness (more than enough for many use cases), a nice way to convert to strings in multiple formats, parsers, etc.

comment 5y ago · link · parent

I mean, they said "might be", and they're entirely correct about SSN.

> Emailed them. No problem, apologies for the defect, your warranty registration for a lamp with no serial number will be fine.

Seems fine?

comment 5y ago · link · parent

I've lived in numerous parts of the US, hiked and camped, and traveled across Europe. I don't think insects have ever come up as a conversation of topic.

I'm not really offended at all because, again, I don't find this whole type of argument to be compelling or valid. You're also entirely off base in your implication that I don't go outside (this last year is obviously exceptional).

It's interesting that this seems to come up for you quite a lot, but I don't find it compelling in terms of evidence, which is what I stated earlier. Again, I'm entirely willing to believe (and would even naively assume) that pesticides and human behavior have negatively impacted insect populations, even greatly so. But "open your eyes" and "do you go outside?" are not helping anyone.

comment 5y ago · link · parent

Nope, v4 are just random with a version tag.

comment 5y ago · link · parent

I feel like understanding the guarantees is really simple. A value can be unique while still being guessable, and that's the idea with this latest revision. If you want something to be unique and unguessable, that's another uuid (or just use random bits, there's no benefit to a uuid here, generally).

comment 5y ago · link · parent

I think it's OK to say "hey we need to really think about our usage of pesticides" and less ok to say "anyone with eyeballs can tell".

I don't recall there being more/ less insects at any given point in my life, I haven't noticed anything at all in that regard. I'm completely willing to believe that insecticide use is bad and that there are less insects, fwiw.

comment 5y ago · link · parent

I think a lot of the details will come down to who you're talking to. I wouldn't talk to a sensible but naive person the same way I would talk to a conspiracy theorist. My goal wasn't to be prescriptive, just to give an example of a simple explanation.

comment 5y ago · link · parent

I don't know that they're much safer because I think the risks are just really low in general and likely the same - the "major" risk being an autoimmune response, which isn't really specific to vaccines.

My understanding was that the main benefit was that it's easier to produce in large amounts (and faster to go from sequence -> vaccine?), and the main downside is that it's harder to store (since it breaks down so easily).

But I'm not a doctor, and I generally try to not tell people what they should do, shouldn't do, or what the risks are - just give them the info and help them understand what's going on. Most people are just afraid of the unknown, and if no one's giving them an explanation they can understand they'll go with the simplistic, albeit incorrect ones that they can ("microchips are a thing I know about - they put those in animals to track them, maybe they're putting it in the vaccine").

comment 5y ago · link · parent

Just explain how the vaccine works. I think a lot of people seem to not really understand it, which makes it this mystery fluid being injected into them. You don't need to get too detailed.

The vaccine contains mRNA, which is basically like DNA (in layman terms). The mRNA is from covid and it's what gives it its 'spiky' structure. When the mRNA is injected your body uses it to generate those spikes - that's just a normal function of your body. Your immune system learns how to attack those spikes, and so it'll recognize covid in general. mRNA is very short-lived so it breaks down, the end result being that your body gets some covid proteins for a little while and your immune system cleans them up.

I think a really simplistic breakdown like this goes a long way to helping people feel comfortable. They're no longer wondering "what's in this thing? how does it work?" and instead it's like "oh ok yeah, I have at least an extremely basic understanding of DNA, and this is just a tiny little piece of DNA stuff that breaks down super fast".

comment 5y ago · link · parent

> It's too black and white though.

Yeah, agreed, but I think in 2005 this was just sort of the common way to write about security. It was a lot more hostile, a lot more brazen.

I think it's because the industry was even worse back then than it is now, with even weaker goal posts. We're in a better position now to discuss nuance today.

comment 5y ago · link · parent

It's explicitly cross-origin.

comment 5y ago · link · parent

Most of it seems fine and pretty trivial (to the point of not really seeming worth writing). Like yeah, default deny is going to be safer than default permit, generally. Enumerating badness is kind of dumb, though it's worth noting that AV "works" for at on of people.

"Penetrate and Patch" starts to get a little less straightforward. It's a naive view of pentesting, but given that view it's fine to say it's dumb, and lots of people do naive pentests.

Hacking is Cool is obviously the stupidest section. I really skimmed it and missed what he was saying because, tbh, the first half was sort of just trite. It's pretty garbage.

IDK, to me this is just sort of what security blog posts were like 15 years ago. Kinda just dumb rants that didn't say much. I certainly wrote plenty myself. This one seems to be just a particularly naive version of that.

comment 5y ago · link · parent

Oh, I kinda skimmed the "Hacking is not cool" bit. I sorta read the first bit of it as avoiding idolizing offensive research but they're actually saying that... you shouldn't learn to hack... at all.

Dumb.

comment 5y ago · link · parent

Seems to have generally aged well, though I don't think much said here will be controversial.

comment 5y ago · link · parent

You wouldn't hit a TPM every time you wanted a random number. Your OS would just use it when it wanted to seed its entropy pool.

This is particularly useful at boot when entropy is very low.

comment 5y ago · link · parent

It's in quotes, which I think is appropriate as Malboge is designed to be extremely cumbersome if not impossible to build practical programs in.

comment 5y ago · link · parent

I'm on Debian Buster.

comment 5y ago · link · parent

I started building this at one point. Basically there's an accompanying manifest.toml that specifies permissions for the packages with their checksums, and then it can traverse the dependency graph finding each manifest.toml.

It also generated a manifest.lock so if manifests changed you would know about it.

Then once it built up the sandbox it would execute the build. If no dependencies require networking, for example, it gets no networking, etc.

I stopped working on it because I didn't have time, and it obviously relied on everyone doing the work of writing a manifest.toml and using my tool, plus it only supported rust and crates.io

TBH it seems really easy to solve this problem, it's very well worn territory - Browser extensions have been doing the same thing for decades. Similarly, why can I upload a package with a near-0 string distance to another package? That'd help a massive amount against typosquatting.

No one wants to implement it who also implements package managers I guess.

comment 5y ago · link · parent

> What does "modest scale" mean? Some people have to have all dependency updates reviewed and have some level of independent security team monitoring dependency changes.

Who? Seems totally intractable to me.

comment 5y ago · link · parent

> A typical announcement says WHO does WHAT and HOW, maybe even WHY in succinct, clear language.

I think that's really fair feedback FWIW.

> would've been to write an RFC to some mailing list

I don't think this is a thing in Rust, but there is a user forum/ subreddit.

> I'm sure they'll learn as they go along, and I probably am being way to harsh on people who actually are trying to do something good for the community.

Yeah I think that's all I'm saying. Maybe this is the wrong venue, but I don't think your criticism was necessary or constructive in totality - some of it is, some of it isn't. I'm sure that much of this feedback will be incorporated, based on what I'm seeing from the author.

comment 5y ago · link · parent

I don't understand, this seems fairly straightforward. It's an announcement for a group that is forming and why that group is forming.

It's even mentioned that the launch is largely symbolic, as the work is already open source, but that this is a sort of "call to arms".

Seems pretty easy to understand.

comment 5y ago · link · parent

> The advantage of rootless though, over user namespaces with a rootful Docker daemon is that in rootless all the components run as standard user, so a compromise of the Docker daemon should just allow for escape to a standard user.

Yep. I just was answering the question, which is what the tradeoff is.

> Not sure about most distros gating that sysctl. Ubuntu works fine with rootless Docker with no changes and looking at their install instructions, there's only mention of setting that sysctl on debian and arch.

Interesting. I haven't checked in a while. I'm also not on the latest debian though.

1
818283
164