Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 6y ago · link · parent

I didn't think it needed to be stated why. It was horrible from a security perspective. The world has completely changed in terms of end user security since Java went from default-run to click-by-default to denied.

"One just needs to fully sandbox the VM" this is easier said than done. I explained in another post why Apparmor/Selinux are not nearly as effective as the Chrome sandbox. As for V8, sure, you could port over many mitigations it has to graalVM and get it running in a similar sandbox. Feel free, I'd certainly support you doing so.

Sure, my brain processes the benefit of other languages just fine. I'm excited to see wasm come to the browser.

comment 6y ago · link · parent

It's not much different in its goals, it's just a strictly worse implementation.

comment 6y ago · link · parent

Java ran in the browser less than 5 years ago and it was a disaster.

comment 6y ago · link · parent

This doesn't make any sense.

A) It's not a good idea. The Chrome sandbox is arguably a lot stronger than Apparmor/ Seccomp. A native program in Apparmor or SELinux can still make virtually arbitrary system calls, whereas an attacker who has compromised a Javascript renderer can not. Further, The attacker would have to own the renderer first, whereas you're talking about just giving native execution rights. Further than that, you can just Apparmor/seccomp chrome? So just go do that? I've done it myself.

B) The attacks described in the post have nothing to do with code execution on your system. They're talking about attacks like XSS, which would exist in any language that provides the ability to manipulate the DOM with strings - so, any of the ones that would be useful.

comment 6y ago · link · parent

Semgrep's pretty slick. I tried out a demo and I was pretty blown away by how I could essentially just guess my way to a signature.

comment 6y ago · link · parent

Whether the browser intends to provide that information or not, ASLR was not designed as a control against an attacker who can run near arbitrary code in the process.

comment 6y ago · link · parent

I set up GraphQL with express-graphql on the backend and then I just use fetch on the frontend. I didn't feel the need to use Apollo. It felt fairly simple.

I just define the schemas in Javascript, which works fine.

But we also use standard HTTP POST + path based routing for some things. Like file uploads.

comment 6y ago · link · parent

My point is that ASLR makes assumptions about the attackers capabilities. All good mitigations do. If the attacker has "I can run nearly arbitrary computations on within the processes memory space", that is outside of the model that ASLR attempts to deal with.

For example, ASLR for a process that executes Javascript is probably not going to be as useful as ASLR for a process that receives network requests.

comment 6y ago · link · parent

It's not totally true that attackers have found ways bypass mitigations. In many cases the attackers require entirely new capabilities, or separate vulnerabilities, to get around a mitigation. And in some cases it makes an attack statistically unlikely, even if it may succeed.

Lots of mitigations do suck, and are a huge waste of time and effort, but quite a few are very significant. It's very rare that a bypass is a surprised except when the mitigation is poorly thought out. Good mitigations start with a threat model.

An example is ASLR. Once in a while ASLR is pronounced 'dead' because an attacker with capabilities that ASLR does not try to defend against can bypass ASLR. For example, the attacker has arbitrary compute on the system with ASLR. No one who built ASLR was surprised by this.

comment 6y ago · link · parent

Oh yeah, I completely glossed over the whole shadow/safestack mitigation. Thanks.

comment 6y ago · link · parent

It's a mitigation for a software exploitation technique called Return Oriented Programming (ROP). The mitigation is referred to as 'Control Flow Integrity' (CFI).

https://software.intel.com/content/www/us/en/develop/article...

Essentially an attacker who has the ability to exploit the first stage of a vulnerability will be able to stitch together "gadgets" from the program to build up a second stage of the exploit.

Control flow integrity, to my understanding, applies a validation or restriction of the program's call graph. This limits the attackers ability to just stitch up their own arbitrary call graph. There are 'forward edge' protections (calling a function) and 'reverse edge' protections (ret). But of course there are more ways to control the flow of a program, as this document discusses - like longjmp.

I won't try to get more detailed as I'm not an expert. Hopefully this will help you find more information.

comment 6y ago · link · parent

My statement is that I do not believe that Google is well run today, or in the recent future, and that OKRs are part of that. I believe that their position is not earned through strong organizational structure in recent years, but that they simply have a strong foothold in an extremely powerful market.

What allowed them to 'win' in that space decades ago? I don't know, nor do I feel the need to know in order to just much more recent history. It could have been organizational structures that either in a different time, or with a different group of people, or at a different scale, or whatever, were the key. Or something else. I have no comment on it.

comment 6y ago · link · parent

I don't think I know of a company that has really nailed being well run at scale, I can maybe think of a few that I don't want to name but they aren't in tech anyway.

But I have a very limited view, having lived in SF for a few years and just having insight into the companies I've seen. I bet there are loads of them that I'm just ignorant to.

comment 6y ago · link · parent

My personal opinion is that Google has some really strong engineers, and some pockets of engineering are truly exceptional. That is it.

The impression is based on lots of anecdotal experience. I know many people at Google, I use many Google products, I talk to other industry leaders about their impressions of Google.

comment 6y ago · link · parent

I don't know. I don't feel that I have to know to make the statement I made.

comment 6y ago · link · parent

I don't know that they're a fantastic engineering company. I don't know what Google is great at - a few things, which feel like they're successful almost because they're treated as separate from the rest of the organization.

OKRs are one of many parts of that, in my opinion.

comment 6y ago · link · parent

Google seems terribly run, frankly. I wouldn't use them as an example of good process, organization, or really anything other than that being early to advertising and being the internet's front page for ~20 years is a great way to make money

comment 6y ago · link · parent

OK, so what is it saying?

comment 6y ago · link · parent

> because it most likely is

Is this not you making a prediction, the very sentence after saying one can not predict the future?

comment 6y ago · link · parent

The power of propaganda is that it's easily digestible. Spending 8 hours reading propaganda requires far less effort than the 1 hour to read something informative or challenging.

comment 6y ago · link · parent

Based on what's on my existing system I think I could benefit from ~1TB of memory. Above that I'd have to probably try. After maybe ~200GB I bet I'd start to see seriously diminishing returns.

My servers could probably benefit from, idk, petabytes? If I could keep the entirety of my server's hard drive in RAM I'd be very happy.

comment 6y ago · link · parent

I imagine that in C if the compiler can prove that two pointers don't alias than it can elide a load?

comment 6y ago · link · parent

And this is why we need bounds checking.

comment 6y ago · link · parent

Audit hooks have a different use case. Here, in this article, we see described a way to package up the interpreter as part of the payload. This is very traditional malware, they 'bring their own binary' so to speak.

A much more modern, and statistically far less common approach (say, top 15% of malware), wants to bring less to the system. Instead, they leverage existing mechanisms for execution - some of this is covered in LOLBAS (Living of the Land Binaries and Scripts).

Interpreters such as Powershell, bash, Python, ruby, even perl, are used by attackers to run their payloads.

There are a number of advantages. For one thing, if you're monitoring the system for new binary executions, it'll appear as just a Python interpreter - often quite normal on a number of systems. You also don't need to set any sort of execution rights, or drop executable files - just a regular, plain old python file.

But the downside is now you're using the system's interpreter, and you have to follow the interpreter's rules. Powershell really kicked this approach off since it was a favorite of malware authors, and Python followed suit with this. As a much newer implementation, with 3.8 being an extremely recent release, it's not so surprising that there are bypasses. Still, you'd be surprised how few attackers will take the time to do so (and how few orgs will monitor their Python interpreters anyways).

comment 6y ago · link · parent

For what it's worth Go is also gaining traction, from what I can tell. Malware authors do not appear to be particularly afraid of trying new languages.

comment 6y ago · link · parent

I think you're talking about something very different, which is attacking Python's supply chain.

This is talking about malware payloads themselves. I don't agree that those capabilities (taking screenshots, especially eval) are trivial in other languages. Eval in particular makes things trivial since you can basically do:

eval(get_payload()), which is awesome from a staging perspective - the trend in malware is to modularize more and more for a number of reasons (less code to scan for sigantures, new monetization strategies, easier to update, etc).

So having the ability to do runtime, reflective module loading to trivially get a capability like screenshotting is pretty huge.

comment 6y ago · link · parent

That does seem abnormal, you should see a doctor.
1
115116117
164