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

> Lots of companies were founded prior to the popularisation of 2FA.

Like I said, what's hard is undoing bad security. Still, I know companies that are nearly a century old that have rolled out strong 2FA policies across 10's of thousands of workers across the globe. They do it because they value security.

It's much harder to fix a bad network, but it's still just a matter of effort. It's not like we don't know how to do it, it's a matter of effort.

comment 5y ago · link · parent

Not really true. There are a number of problems with Windows and, more generally, the Microsoft ecosystem.

One clear area is that Windows has very weak separation of admin from user. There are tons of great mechanisms like integrity levels, but for a user's laptop Microsoft does not consider UAC to be a boundary between user and Admin and so escalations are ubiquitous.

This is certainly not the case with OSX and Linux.

Windows also has a litany of persistence mechanisms, far more than I'm aware of with OSX and Linux. The Windows registry is this incredible hive of ways to execute code.

There's all sorts of debt involved that really puts Windows at a disadvantage, despite their significant investments that we should all celebrate.

Once you add things like Word, Active Directory, etc, it gets really bad. If you're building a traditional "microsoft" network you're setting yourself up for ransomware.

comment 5y ago · link · parent

We model human attackers all the time, it's probably one of the core components of the role.

comment 5y ago · link · parent

> It is expensive and difficult to protect against security breaches,

No it isn't, it's super cheap and dead simple. What's expensive and difficult is fixing security problems super late in the game. Undoing bad security is hard. Doing it right is really simple.

For example, we have 2FA everywhere at my company. It's 10 people, so that's easy, and it always will be. If we were 2,000 people I'd have to go through hoops and it'd be a whole mess to roll out 2FA everywhere. By using U2F 2FA from day one we've more or less eliminated credential theft as a threat. By disabling app execution we've eliminated malware as a threat.

Right off the bat the vast majority of attacks just don't work, and those were trivial to implement. We do way more than that, and it was all dead simple.

> One small fuckup is sufficient to have the whole thing compromised

It definitely shouldn't be.

Companies flat out do not care, in part because there aren't consequences for not caring. Otherwise they'd do something about it. Even if you're on an older network where you've got AD and garbage like that you can do a lot to improve things.

comment 5y ago · link · parent

Great work. Session hijacking is a huge problem for SSH, I hope this will bring more attention to it.

comment 5y ago · link · parent

A combination of things, I think.

1. Running those builds in VMs is a good idea.

2. Monitoring for weird behavior.

3. Restricting build scripts from touching anything outside of the build directory.

4. Pressuring organizations like npm to step up their security game.

It would be really nice if package repositories:

1. Produced a signed audit log

2. Supported signing keys for said audit log

3. Supported strong 2FA methods

4. Created tooling that didn't run build scripts with full system access

etc etc etc

I started working on a crates.io mirror and a `cargo sandbox [build|check|etc]` command that would allow crates to specify a permissions manifest for their build scripts, store the policy in a lockfile, and then warn you if a locked policy increased in scope. I'm too busy to finish it but it isn't very hard to do.

comment 5y ago · link · parent

I assume they're suggesting some sort of peer to peer system.

comment 5y ago · link · parent

Where are you reading this quote? I'm seeing essentially the opposite in the linked post.

> ECC cannot provide complete protection against Rowhammer but makes exploitation harder.

edit: I looked at some linked papers and I see similar quotes, though not that one.

edit2:

https://arstechnica.com/gadgets/2021/11/ddr4-memory-is-even-...

> “DDR4 systems with ECC will likely be more exploitable, after reverse-engineering the ECC functions,” researchers Razavi and Jattke said.

OK, so not more exploitable relative to not-ecc RAM, just relative to ecc ram pre-RE.

comment 5y ago · link · parent

If your app is particularly paranoid you could just double your memory usage, and verify errors against the clone.

comment 5y ago · link · parent

Obvious that Moderna side effects would be more common given the larger dose. It's... obvious.

comment 5y ago · link · parent

Yes it takes one extra step to answer that question. We have numbers comparing infected to uninfected, and numbers comparing vaccinated to unvaccinated (and presumably uninfected).

comment 5y ago · link · parent

There are way more downsides than that.

1. No recursive types, so you can't express a lot of basic things like a "Json" type. This ends up coming up a lot more than you might imagine.

2. Not great support for every pep ie: Protocol

3. Generics are extremely confusing in mypy. Generic classes suffer from the lack of recursive types I'd mentioned as well.

4. Implicit 'Any' everywhere unless you use the strictest settings, which I don't believe anyone does on real code because of the above issues. I've never once managed to get a real codebase to typecheck with mypy.

Honestly mypy works as a somewhat fancy linter, not as a type checker.

comment 5y ago · link · parent

I certainly look forward to seeing real problems solved with these algorithms, but right now that work seems to be lost in the noise of crypto.

I'd be curious to hear more about decentralized rate limiting. That sounds like a reasonable problem to solve with PoW. Although it also sounds like a problem I can solve pretty easily today without PoW so idk.

comment 5y ago · link · parent

Yes, I thought that was clear. That is what I was trying to find.

comment 5y ago · link · parent

It's more than 'not really a surprise', it is obvious and I'm pretty sure this had already been widely discussed months ago.

comment 5y ago · link · parent

There are tons of flagged and deleted posts on every HN thread because there are tons of really bad posters on HN. Honestly I think some of the absolute dumbest things I've ever read on the internet were on this site. Thank god we can flag the really low signal garbage.

> is there anything like Snoo for reddit that keeps track of deleted and flagged posts on HN?

Not for deleted but you can "show dead" in your HN settings.

comment 5y ago · link · parent

Covid increases your chances of myocarditis by an order of magnitude, so it seems obvious that the vaccine that prevents covid is the way to go.

comment 5y ago · link · parent

It's hard to Google for sources on this since you just get people talking about the vaccine. Here's something I found:

> Across all ages, the risk of myocarditis was almost 16 times higher for people with COVID-19 compared to those who aren’t infected. The myocarditis risk is 37 times higher for infected children under 16 years and seven times higher for infected people ages 16-39 compared to their uninfected peers.

https://publications.aap.org/aapnews/news/16388

comment 5y ago · link · parent

I wouldn't draw that conclusion. That's a 50% increase in break through cases with Pfizer, which seems like a far greater threat than even a 5x increase of myocarditis.

Especially when you take into account that your risk of developing myocarditis is higher if you get Covid.

comment 5y ago · link · parent

You're grey'd out, but based on some quick research this appears correct.

> PostgreSQL is implemented using a simple "process per user" client/server model. In this model there is one client process connected to exactly one server process. As we do not know ahead of time how many connections will be made, we have to use a master process that spawns a new server process every time a connection is requested. This master process is called postgres and listens at a specified TCP/IP port for incoming connections. Whenever a request for a connection is detected the postgres process spawns a new server process. The server tasks communicate with each other using semaphores and shared memory to ensure data integrity throughout concurrent data access.

https://www.postgresql.org/docs/8.2/connect-estab.html

comment 5y ago · link · parent

Unless you're a cloud provider/ a SaaS that provides remote code execution, that's likely true.

comment 5y ago · link · parent

Yes, like the SharedArrayBuffer that browsers disabled. There are probably roughly infinite ways to construct clocks. Closing the obvious leaks has been a stop gap while other mitigation techniques are rolling out, like site isolation.

comment 5y ago · link · parent

Browser vendors have been pretty quick to add mitigations, disable attack surface, etc. Someone comes up with a new way to attack systems via JS, but vendors are all headed in a safer direction.

comment 5y ago · link · parent

> BTW I am deeply surprised that there has never been a cloud hypervisor doomsday vulnerability that has brought down AWS or some other huge provider.

There have been multiple cases of significant vulnerabilities where cloud providers had to perform patching and restart their services. No one, to my knowledge, has exploited those maliciously, but the vulns have had impact.

comment 5y ago · link · parent

They solve different problems, some of which may overlap I suppose.

For one thing you get clear ownership of deployed code. There isn't one monolithic service that everyone is responsible for babying, every team can baby their own, even if they all share libraries and whatnot.

You also get things like fault isolation and fine grained scaling too.

comment 5y ago · link · parent

You still have to think about compatibility across versions - that does not go away in a monorepo, and you should use protocols that enforce compatible changes. The monorepo just tells you that all tests pass across your entire codebase given a change you made to some other part.

comment 5y ago · link · parent

The parent poster is literally saying that OSX is all of those things relative to their Linux system, so I'm asking why they even have the OSX system.

comment 5y ago · link · parent

So why use OSX? I've been running Linux for over a decade full time. I remember using osx at work and feeling like it was just clunkier, slower, and buggier.

What's the appeal?

comment 5y ago · link · parent

That sounds different. Embrace and extend means implementing a protocol and then adding specific non-spec features. For example, postgres 'embraces' SQL and 'extends' it with specific features - in the future postgres could 'extinguish' SQL by breaking from the spec, forcing an ecosystem split.

comment 5y ago · link · parent

OP made accusations, response was leveled and asked for positivity.
1
757677
164