• 0 Posts
  • 108 Comments
Joined 3 years ago
cake
Cake day: June 11th, 2023

help-circle
  • Do they require disclosure of what font the developer used for coding the patch? No one thinks it matters, but no reason not the be transparent, right?

    The reason not to require disclosure is because in their opinion it doesn’t matter any more than the font matters. If the person reviewing the code can’t tell it’s AI, and the code stands on its own, then it stands on its own. If they can tell then it doesn’t meet code standards anyway.
    A perspective that I don’t disagree with is that “disclosure” can be a shield for the developer to hide behind. “Anything weird wasn’t me being dumb, just the AI being wonky”, and that’s writing an excuse for subpar code. You submitted it, it’s your code, and if you can’t justify some dumb bit in it then you deserve the shame without the help of a face saving “it was the AI”.


  • Also: people trying to make a point out of whatever motivation.
    Need a POC for a research paper? Do it in Linux.
    Need an implementation to get investor funding? Do it in Linux.
    Need to pressure a large commercial operating system to implement a security model as a state security agency? Do it in Linux! It’ll only take a decade for them to start to trust it, but the company will be pressured by a free alternative have an implicitly endorsed security system!




  • Typically you want to do the lockout for a location, not the user, or you step up the auth level. 3 bad logins -> please mfa before trying again.

    But yeah, letting an attacker do that at will is bad. I’m a fan of token bucket rate limiting with exponential back off. You get 10 attempts. A new attempt is added every second. An attempt while the bucket is empty makes that become two, then four and so on.

    Most people never notice because a buffer of ten and a new attempt every second just never runs out. If you accidentally hold down enter you’re only blocked for a few moments. A dumb attacker quickly locks themselves out forever.


  • Very old operating systems used to have a method for password hashing built in that could only handle 8 characters max. The need for compatibility with it, or things that were too zealous in being compatible lingered for a very long time.

    It’s not good, but some services end up behind firewalls that reject inputs that look like SQL injection. Sometimes they decide it’s better to prevent sql-ish passwords than risk some weird fluke.
    Sometimes they just say |, I, and l all look too similar and our users are idiots. Which is awful practice.

    My personal feeling is that password length should be capped with the length of input the system can handle. Plaintext copy of Alice in wonderland from project guttenberg? Go for it.



  • Also interesting is that it’s one of the small number of unquestionably public domain pieces of software. Not open source, but public domain. It’s not entirely clear if you can technically put your own work in the public domain, or if you’re just freely licensing it to anyone.

    Sqlite was initially developed for the US military though, which explicitly makes it public domain.

    It doesn’t matter, but it’s interesting.



  • Yeah, and if you’re being robbed they’ll probably fuck you up pretty badly if you don’t. While not mind readers, they don’t have to be.

    In most cases anyone who wants to beat your pin will just watch you unlock your phone. They don’t need to see the exact numbers: you can pick most of it up just based on relative finger motion. Looking at screen smudges gives another set of hints that are pretty trivial to extract.

    If your goal is to keep it from the police, your best bet is to use an entirely different system than rely on your phones lock screen.

    I can’t think of a scenario where I’m thinking both “biometrics are insufficient to safeguard this data” and “it’s appropriate to keep this data on my telephone”.


  • Sure, all that’s true. But which of those criticisms doesn’t also apply to a password or preshared key? Other than size of key-material, but it’s a fast enough communication medium that any key less than a megabyte is effectively zero.

    I probably don’t need to point out how basically every communication on the Internet is based on public key crypto that we don’t even think about, but I want to ask how you get your shared key to websites when you visit?
    Do you use any tools like signal, telegram and so on?

    My point isn’t that public key systems are perfect, far from it. It’s that it’s wrong to say security and usability are contrary to one another.
    People who think the public key solution is cumbersome are often comparing “no security” to “ideal security”.

    For public key to be secure from man in the middle you need a trusted out of band channel or attestation scheme.
    For a symmetrical key system you need the same channel.
    Without that channel public key has a message interaction where an attacker can swap in their key but is otherwise secure. The symmetric key system is entirely broken.

    “Easy case” public key systems are usually a fair bit more secure than a similar level of effort in other schemes, and likewise a given level of security confidence is easier to get to with public key than a password.

    Finally, and most importantly: your phone quite likely supports multiple levels of authentication.
    You can get into my phone if you have my fingers. This let’s you see my calendar, emails and (many) other things. It doesn’t let you into all of my files, financial apps, or even device settings.






  • Have you ever had your phone searched by the police or at the border? I haven’t, but I have had someone try to unlock my phone before.

    I’d contend most people have a threat model that puts opportunistic access by household members or someone watching them enter their passcode and then snatching the phone and running above border patrol search.

    While you can’t change your biometrics, walk me through why that matters. I’m not sharing my biometrics outside of the device, and you can’t submit them remotely, so if you lift a print off of something it doesn’t really get you much without also taking the phone. Once you’re there, you’re a bit beyond the typical phone thief in terms of threat.

    The most common vulnerability is having an absurdly weak password, pin or unlock pattern. For those people biometrics is a vast improvement specifically because it’s both secure against likely threats, and it’s just as easy as hitting 5 four times in a row.

    Every method has trade offs, and there’s nothing to gain by pretending otherwise. Likewise, I don’t think I would ever say “never use something”, except for some contrived examples.





  • I’m not even sure that’s close to true anymore. Like, the biggest companies in the world, when they need to use a relational database, typically go for something “not oracle”.

    Wikipedia gets more traffic than most enterprises and they use mariadb. They don’t even really do it in the weird ways that AWS does, where they use it as a bizarre caching layer.

    It’s kinda like how for the longest time “mainframes” were the go-to computer for enterprise applications with extreme IO needs. You probably wouldn’t recommend someone go talk to IBM if they need to process a lot of records in this day and age unless they were already neck deep in cobol, the go-to language for enterprise applications.