Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 9mo ago · link · parent

There is a massive difference between saying "I use AI" and what the author of this bot is doing. I personally talk very little about the topic because I have seen some pretty extreme responses.

Some people may want to publicly state "I use AI!" or whatever. It should be unsurprising that some people do not want to be open about it.

comment 9mo ago · link · parent

I'll need you to be much more specific. I'm actually quite familiar with Rust, having worked with it since 2015, speaking at the first rustconf, having written in it professionally, having worked on a team that did vulnerability research with a highly hardened Rust codebase[0] in which `unsafe` usage introduced a vulnerability, etc.

If you'd like me to construct a formal syllogism to communicate my points then I might be able to abide. You first though because I find it utterly ridiculous to complain about "logical errors" in what I've written when your post made numerous unsupported or seemingly irrelevant claims.

[0] https://web.archive.org/web/20221001182026/https://www.grapl...

comment 9mo ago · link · parent

> Chromium is filled with sloppy and old code. Some of the source code (at least if dependencies are included) is more than 20 years old, and a lot of focus has been on performance, not security.

Chromium is also some of the most highly invested in software with regards to security. Literally entire technologies that we now take for granted (seccomp-ebpf comes to mind) exist to make Chrome safe. Sanitizers were a Google project that Chromium was an aggressive adopter and contributor towards. I could go on.

> Using Rust does not necessarily solve this. First, performance-sensitive code can require 'unsafe', and unsafe allows for memory unsafety, thus going back to square one, or further back.

This isn't really true? I have no idea what "further back" means here. The answer seems to just be "no". Unsafe does allow for memory unsafety but it's hilarious to me when people bring this up tbh. You can literally `grep unsafe` and ensure that your code in that area is safe using all sorts of otherwise insanely expensive means. Fuzz that code, ensure coverage of that code, run `miri`, which is like a sanitizer on steroids, or literally formally verify it. It's ridiculous to compare this to C++ where you have no "grep for the place to start" capability. You go from having to think of 10s of millions of lines of code that holds a state space vastly greater than the number of particles of this universe 100000000x over, to a tiny block.

With the level of investment that Google puts into things like fuzzing, Rust would have absolutely made this bug harder to ship.

> And second, memory safety isn't the only source of vulnerabilities.

It's the source of this one and every ITW Chromium exploit that I can recall off of the top of my head.

comment 9mo ago · link · parent

The ITW exploit has some sort of sandbox escape. My money is on a kernel exploit, but there are other options - universal XSS, IPC, etc. Kernel vuln is most likely by far imo.

Chromium uses probably the single most advanced sandbox out there, at least for software that users are likely to run into.

comment 9mo ago · link · parent

I'd bet that the sandbox escape is just in the underlying operating system kernel and therefor isn't a matter for Chromium to issue a CVE.

comment 9mo ago · link · parent

All mainstream package managers are built with zero forethought into security, as far as I can tell. I don't think any of them are any good at it at all, otherwise they wouldn't give arbitrary code execution with literally zero restrictions, ability to audit, etc.

That said, `cargo-vet` is easily the best tool for mitigating this that I am aware of and it exists for Rust and is actively maintained by Google, Mozilla, and many others. I think it's fine to say "Rust encourages using more dependencies" but it has to be acknowledged that Rust also brings with it the best in class tool for supply chain security.

Could it be better? Absolutely. God yes. Why is cargo giving access to `~/.ssh/` for every `build.sh`? Why do package managers not make any effort to sandbox? But that's life today.

comment 9mo ago · link · parent

Nothing eliminates the risk but it is basically a best-in-class solution. If your primary concern is supply chain risk, there you go, best in class defense against it.

If anything, what are you doing about supply chain for the existing code base? How is cargo worse here when cargo-vet exists and is actively maintained by Google, Mozilla, and others?

comment 9mo ago · link · parent

> Don't we have a bunch of tools that should create memory-safish binaries by applying the same validation checks that memory-safe languages get for free purely from their design?

No, we don't. All of the ones we have are heavily leveraged in Chromium or were outright developed at Google for similar projects. 10s of billions are spent to try to get Chromium to not have these vulnerabilities, using those tools. And here we are.

I'll elaborate a bit. Things like sanitizers largely rely on test coverage. Google spends a lot of money on things like fuzzing, but coverage is still a critical requirement. For a massive codebase, gettign proper coverage is obviously really tricky. We'll have to learn more about this vulnerability but you can see how even just that limitation alone is sufficient to explain gaps.

comment 9mo ago · link · parent

Google already uses `cargo-vet` for rust dependencies.

comment 9mo ago · link · parent

I listen to multi-hour unsponsored content on Youtube almost exclusively.

comment 9mo ago · link · parent

Okay, well, they produce outputs that appear to be deceptive upon review. Who cares about the distinction in this context? The point is that your expectations of the model to produce some outputs in some way based on previous experiences with that model during training phases may not align with that model's outputs after training.

comment 9mo ago · link · parent

The "snark" of opening the PR vs the "snark" of people dox'ing the guy who opened it.

comment 9mo ago · link · parent

If something makes you 10x as effective and then you improve that thing by 4%...

comment 9mo ago · link · parent

But that is true of all sample sizes

comment 9mo ago · link · parent

Perhaps too meta or off topic but I thought it was funny that you thought their n was low and then cited a story about one person.

comment 9mo ago · link · parent

I feel like what you're saying is compatible. I'm not suggesting that things aren't top down or that you wouldn't have brand guidelines, that's actually exactly what I'm suggesting. I just mean that there is organizational isolation between creative teams and other teams, just as there is organizational isolation between engineering and other teams.

So it is unsurprising to me that a creative team might have been given brand guidelines and a goal, like "hey we want to sell this, we want people happy with this" (much more concretely, obviously) and that could lead to this sort of ad, and I think that's probably more plausible than the team going "we're going to psyop everyone into surveillance statehood".

comment 9mo ago · link · parent

Marketing teams are constantly out of touch with the message they want to convey vs the message that gets conveyed. The creative team is usually not even talking to the other teams that would drive decisions like this - they almost exclusively are an isolated team (purposefully, like how engineers are often isolated from customers) that talks to a separate marketing team that then manages things like legal/compliance, which then bubbles up to other orgs etc.

The people creating ads are just organizationally isolated in most cases.

comment 9mo ago · link · parent

I just want to clarify how extremely standard and often required it is to download and store your SOC2s and other such documents when going through compliance. You almost never can actually just link to a public pentest report or SOC2 etc, you almost always need to go through an NDA. It's just not really meaningful to say "but the web archive is reliable" when it's virtually never an actual option to begin with.

comment 9mo ago · link · parent

I really couldn't have been clearer. The implication was that Zed made a decision because of pressure from a VC. I said that they were vastly overestimating the pressure a VC can exert on an early stage company.

You've then pointed out that the company is directly tied to the VC, which is true but just as relevant as saying that the company is tied to the founder's parents. You've failed to explain what different there is between the VC and a parent other than that there's a causal link in the existence of the company.

So I suggested that you substantiate that difference if you want to make a point about the VC.

I don't know what is confusing about this.

comment 9mo ago · link · parent

Oh, I sort of wondered if that was the case but I was really unsure based on the wording. Yeah, I have no idea.

comment 9mo ago · link · parent

To be clear, lots of evidence will be screenshots. I sent screenshots to auditors constantly. For example, "I ran this splunk search, here's a screenshot". No biggie.

What I would not do is take a screenshot of a vendor website and say "look, they have a SOC2". At every company, even tiny little startup land, vendors go through a vendor assessment that involves collecting the documents from them. Most vendors don't even publicly share docs like that on a site so there'd be nothing to screenshot / link to.

comment 9mo ago · link · parent

I would never rely on this vs just downloading the SOC2 reports, which almost always aren't public anyways and need to be requested explicitly. I suspect that that compliance page would have just linked to a bunch of PDF downloads or possibly even a "request a zip file from us after you sign an NDA" anyways.

comment 9mo ago · link · parent

The first thing you do when you're getting this information is get PDFs from these vendors like their SOC2 attestation etc. You wouldn't just screenshot the page, that would be nuts.

Any vendor who you work with should make it trivial to access these docs, even little baby startups usually make it quite accessible - although often under NDA or contract, but once that's over with you just download a zip and everything is there.

comment 9mo ago · link · parent

But how is this related to the internet being archivable? This sort of proves the point that URLs were always a terrible idea to reference in your compliance docs, the answer was always to get the actual docs.

comment 9mo ago · link · parent

> although I wouldn’t be surprised if many auditors wouldn’t notice

lol seriously, this is like... at least 50% of the time how it would play out, and I think the other 49% it would be "ah sorry, I'll grab that and email it over" and maybe 1% of the time it's a finding.

It just doesn't match anything. And if it were FEDRAMP, well holy shit, a URL was never acceptable anyways.

comment 9mo ago · link · parent

I don't really see what you're getting at, it seems unrelated to the issue of referencing URLs in compliance documentation.

comment 9mo ago · link · parent

I think it could still be an interesting benchmark. Like, assuming AI companies are genuinely trying to solve this pelican problem, how well do they solve it? That seems valid, and the assumption here is that the approach they take could generalize, which seems plausible.
1
161718
164