13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 5y ago · link · parent
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
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
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
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
> 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
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'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
> 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
> 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.
comment 5y ago · link · parent
Especially when you take into account that your risk of developing myocarditis is higher if you get Covid.
comment 5y ago · link · parent
> 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.
comment 5y ago · link · parent
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
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
comment 5y ago · link · parent