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

We pretty rarely find good ways to ensure good behavior, at best finding makeshift incentive structures to encourage it.

It is very likely that those incentive structures are exactly what led to this decision, and are working more or less as intended.

comment 5y ago · link · parent

> it kinda is AWS' problem

That's obviously not the case. It's very clearly Parler's problem. I don't see why AWS should accommodate a customer just because the customer's problems are "hard".

The rest of your post is basically irrelevant imo, I'm not going to respond to rhetoric about party.

comment 5y ago · link · parent

Lots of things are hard. It's not AWS's problem that your job is hard. If you can't do the hard work to run your business, your business doesn't get to run.

comment 5y ago · link · parent

> This is meaningless without comparing it to how many instances of hate speech or calls for violence exist on competing sites like Twitter.

I think at most this would allow you to accuse AWS of hypocrisy, but the point is moot since Twitter, while an AWS customer, does not host content on AWS as far as I'm aware.

Really though, it has no bearing. You can argue that AWS is inconsistent in its enforcement but it does not change whether they have the right to that enforcement.

comment 5y ago · link · parent

Most probably couldn't. But most will likely never have to think of that. Parler's inherent value proposition increased this risk and they were foolish not to consider and plan for that.

Risk management is part of the job. Businesses that don't do it properly will often fail. Sometimes this is an unfortunate thing, sometimes it's a happy accident.

comment 5y ago · link · parent

> If you agree with tenant eviction protections, then you should probably support similar eviction protections for cloud computing.

Nope.

1. Kicking a company off of a cloud platform is not putting someone on the street without notice. Companies are not people, clouds are not beds.

2. It's the company's responsibility to manage risk, including the risk of getting kicked off of a platform. Most companies manage this risk by minimizing it - it's extremely easy, and well trodden territory. Things most companies will do is moderate content, it's pretty much dead simple. If your company won't do those things you'll have to mitigate risk in some other way.

3. You might argue "well companies aren't people, clouds aren't beds, but workers will lose their jobs". This is true, if the company has been poorly managed. But we already have nets for those situations. There's bankruptcy, unemployment, various tax benefits, notice to apply for a new job, etc.

I actually don't feel particularly compelled at all by your analogy.

comment 5y ago · link · parent

You can enforce password policy client side. A technical user can go way out of their way to bypass it, but honestly, at that point who cares? If you really want to you can send up some metadata or something I guess.

Another option is to send the password at user creation time, but then to rely on a hash at login time. Now there's leak potential, but it's you just have to audit for leaks in one part of the codebase.

There's a lotta stuff you can do to improve upon the very quick version I'd mentioned.

comment 5y ago · link · parent

It's definitely not equivalent. The plaintext isn't (as easily) recoverable, which means that if the user used the same plaintext password for another service it's (somewhat more) protected.

Pass The Hash is also protocol specific - if you try to replay a hash to your average HTTP service it won't go "oh, it's already hashed, thanks" it'll just hash it again and you'll fail to authenticate.

comment 5y ago · link · parent

Yeah, I do hashing client side as well as server side. It's not ideal - what would be ideal is zero knowledge proofs for such a thing. But it's basically:

hash(static-pepper, username, password) * 250k

That + tagging the password with "password++" or something means that you're a lot safer against the major issue of leaking a password before it's stored, for example the mistake that definitely happens everywhere of "let me just add request logging, whoops there's everyone's plaintext passwords". You can always search your logs for the 'password++' tag and alert if you find it, and if that does happen at least you know an attacker isn't going to have an easy time extracting a plaintext password - it buys you time.

And if an attacker gets SQLi or whatever and dumps the passwords they're that much harder to crack - you've added hundreds of thousands of iterations of key stretching, and it's totally distributed to clients so you don't even have to worry about it blowing up your db/ auth service CPU.

And it's trivial to implement, which is the really important part. ZKP is a lot more work, but what I described is like 5 extra minutes and pretty trivial.

comment 5y ago · link · parent

I suppose I should have said it's doubtful that you lived at a time when the argument against singular they was legitimate. I'm sure many teachers are teaching students incorrect things all the time.

But by modern English standards, which I would define through works like Fowlers', the legitimate argument against singular they is long over.

comment 5y ago · link · parent

Mostly they're bad ones, you can read about them in the linked articles, specifically what's noted in Fowler's 1926 is probably the best place to start.

comment 5y ago · link · parent

The main historic arguments against singular they and for neutral he are intertwined.

comment 5y ago · link · parent

Doubtful.

> According to the third edition, The New Fowler's Modern English Usage (edited by Burchfield and published in 1996) singular they has not only been widely used by good writers for centuries, but is now generally accepted, except by some conservative grammarians, including the Fowler of 1926, who, it is argued, ignored the evidence:

https://en.wikipedia.org/wiki/Singular_they

Elsewhere in the article you'll find dates like: 1375, 1382, 1400, 1489, 1759, etc, and references to these by Fowler's

https://en.wikipedia.org/wiki/A_Dictionary_of_Modern_English...

Anyone arguing against singular 'they' may as well be arguing for a gender neutral 'he' - an argument lost over a century ago by virtually any modern English standard.

comment 5y ago · link · parent

Mobile devices tend not to have adblockers, so exposure might be a lot higher.

Also, the only ads I've clicked are mobile ads. I've even installed apps via ad before - I've never once purchased an item from an ad online (but I've also run an adblocker for a decade).

Ads certainly "work" by some metric, and some definition of "work", but I think the metric and definition is unclear.

comment 5y ago · link · parent

I guess when I assume a feature is possible, and I want to use that feature, I try it and see if it works.

I also don't typically learn via books myself, I learned rust pre-book, and basically entirely via IRC. To me, that's the default-path. But I get why it's not ideal - a written record (like the one linked) is definitely important to have, and it is a legitimate weakness that they're so nascent.

comment 5y ago · link · parent

Having documents like this is awesome - thanks for building it.

Is there somewhere I can PR? One example - the `new` constructor takes no arguments, so at minimum there should be a note about the (mentioned-next) Default pattern.

Also, I don't think Default is most useful for abstracting construction (I think closures are better for this), they're really just to make construction easier imo ie:

    Foo {
        prop: override_default,
        ...Default::default(),
    }
edit: It's hosted on github, duh, nvm

comment 5y ago · link · parent

Honestly, who cares about not knowing that something was possible if you never wanted it? `dyn` working on the stack is more consistent than it not working on the stack.

I'd say one way to a language more completely is to:

a) Read its stackoverflow pages (not sure about Rust but this helped a ton with C++)

b) Get code reviews from others. The rust community is fairly active, or at least it was back when there was just an IRC channel, I don't know as much now since I don't get onto whatever the medium is today. Ask people if there's an easier way to do something.

c) Read others code. I, for example, like to review some of my dependencies just so I understand a bit more about how they work, and I've picked up a lot from that. I used to get on IRC in the morning while I was kinda getting into my work-day and see if I couldn't help others out, this really taught me a lot.

comment 5y ago · link · parent

> RPC is always going to be a more reliable approach.

Seems like an odd statement. RPC seems considerably less reliable to me since it ties your business logic services states' together.

> I would much rather an exception be raised immediately and crater the caller

Why? The caller might not care. And what if you have a large graph of callers? You're going to end up with a cascade of failures, when really none of them are going to do anything except retry or drop - something that the failing service is capable of making the call to do in most cases.

> I have worked in environments that used messaging on a massive scale,

Same, and in my experience it was the RPCs that caused the most trouble. I don't think anecdotes are going to be helpful here.

> Perhaps you want to make sure all lots that tripped that warning are handled

If you want to make sure of something, and then you don't make sure of it, I don't see how that's the fault of a queue. Just... check?

comment 5y ago · link · parent

I suspect adding bugdoors to Linux is far easier than it is than for Windows, but there are already so many bugs it's easier and more viable to just look for them than to try to insert them.

comment 5y ago · link · parent

Yeah I get pretty bored constantly reading "You don't need X". Some of us do. You don't have to be Google to deal with a lot of data, and to want that to be fast. Lots of domains deal with high volumes of requests and deal with massive amounts of volume.

comment 5y ago · link · parent

The only instance somewhat like this that I am aware of is that two malware samples sort of 'recombined' accidentally.

One was a worm that packaged itself up and sent itself around, the other did some sort of injection or binary patching and happened to piggyback onto the worm.

comment 5y ago · link · parent

I've worked on security teams or for security teams for my entire career.

Yes, some things are the security team's problem - as in, security teams are responsible for managing risk. My expectation is for them to do so.

Again, you can perform phishing tests, but I think they're mostly a waste of time, a terrible substitute for real mitigations, and should never come at the cost of your employee's sanity - a security team must build trust with other teams first and foremost, not burn it because "real attackers are mean too".

> dismiss standard methods and models

My opinions are hardly controversial.

comment 5y ago · link · parent

Yeah, if you'll read that blog post it'll explain exactly that.

U2F tokens are a second factor for authentication, meaning that to log into your account you need your password and the token.

Further, the token takes the domain into account when it's generating the key. That means that you can't just give me a fake Twitter page and then forward the creds/token, it won't be valid.

U2F mitigates this entire class of phishing attack.

Beyond that, we also only allow logins to sensitive services from employee laptops, validated by a TPM, and multiple other controls, but that's not really the point.

> Or 'I'm on vacation and left my laptop, could you just run this command on the prod cluster for me so we can avoid downtime over the holidays?'

Right, so this would work, but it's a huge gap between "Hey run this command for me" and the attacker being able to run arbitrary commands. It's a reasonable thing for your security team to consider and attempt to mitigate in other ways.

comment 5y ago · link · parent

I would imagine we're disagreeing with the "at what cost"?

As in, is the cost of:

1. Losing the trust of your coworkers 2. Causing public reputation damage 3. Potentially harming coworkers emotionally

worth the gain of having a slightly more effective phishing training? I would argue no.

I would also say that it isn't nearly as important as implementing other measures - U2F being a big one that I'd mentioned, but there are plenty of others. It's certainly not where I'd recommend anyone start.

comment 5y ago · link · parent

The point of U2F is that they can't do that. For example, if I send you a fake Google login page, you can't "trick" me into entering my token - it won't work.

Here's a good blog on the topic: https://dropbox.tech/security/introducing-webauthn-support-f...

comment 5y ago · link · parent

> The term "defense in depth" comes to mind.

Perhaps my least favorite phrase in security, used constantly to justify weak, meaningless, or harmful work as "another layer".

U2F is just one layer. It's a real, meaningful layer - it addresses real threats in a non-phishable way. Gating access by device, acls, etc, or locking down sharing permissions, are other real and meaningful layers.

> some amount of bad stuff will land with the users

That's the security team's problem to solve.

> But you can also imagine someone complying with that but then falling for a well crafted phish (that happened to me, as I mention elsewhere in this thread.)

I can just assume that one person will fail the phishing test already, and work from that angle. Way better than assuming I can teach an entire company to be untrickable.

> Is there no data that humans can leak out by entering it in the wrong place?

Wire transfers were one example - there are others, and we have other ways to mitigate those without assuming users should bear the responsibility.

By 'most types' I mean either phishing for credentials or as a delivery mechanism for malware - these would both be extremely difficult to do, or otherwise mitigated by other policies.

> but you can imagine that in many businesses there is.

That's their security team's problem to solve.

Feel free to train users, I have no problem with it. We do it for compliance purposes, but it's also a fun opportunity to engage with people about security, including meaningful security. And you do want people to be able to spot and report phishing, it's just not something you should ever rely on, or compromise for.

comment 5y ago · link · parent

I have a lot of thoughts on this, having worked on security teams, and now running a company.

1. Employees and customers are who the company should be serving. It isn't "employees at the cost of customers", or vice versa. If your business can't do both it shouldn't exist. In this case the thought was "It's worth making employees upset because this addresses a real customer concern".

2. Phishing tests are silly. You should just assume someone will get phished. If you want to do trainings, do trainings. Or, better yet, make phishing pointless - at my company anything important is gated by a U2F token, among other things. We are simply 'immune' to most types of phishing - the one major source left being wire transfer fraud, which is fairly easy to avoid.

We only do phishing training for compliance purposes.

3. This is the wrong kind of security. It's "blame the user" security. It's a silly, backwards, outdated, ineffective attitude.

If the goal is "Make sure people report phishing", you can do that without trickery. Just send an email and request that users report it to whoever is responsible - you'll soon find who does or does not know how to do so.

4. (Editing in) Security teams should be aware of how what they're going to do is impacting the company. The impact of this phishing test has had public impact on the company - that's a disaster. A security team is about managing risk, and here they've instead subjected the company to concrete, public scrutiny. This was simply the wrong call.

Having trust in your security team is really important. Security teams need to do outreach, they need to be friendly, and be people who everyone feels good about going to with a problem. Building animosity for the sake of phishing protection is far more dangerous.

> If this was a real phish they'd have leaked real data. Perhaps even your data.

That's the security team's problem, not the victims!

comment 5y ago · link · parent

So, I really dislike the word, and I would love it if the industry would ditch it because it sounds so dumb... but also, I 100% support the DevSecOps manifesto[0].

Security being extremely manual, extremely 'tool' driven, being policy based, being dictatorial, is awful and not working. We do need the industry to shift towards leveraging code, APIs, working with other teams, building alongside developers, etc.

And that's all DevSecOps is really saying.

Again, wish we could all just ditch the term, but I honestly think it's here to stay and we need to look past the marketing bullshit to see what's in front of us.

[0] https://www.devsecops.org/

comment 5y ago · link · parent

> If it’s so small as to not be meaningful, why collect it?

Well they aren't collecting it from just one person, so the number's really big on one side (in aggregate) and it's really small on the other side.

1
106107108
164