13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 4y ago · link · parent
They almost certainly will be, but the key will be if they aren't.
> I don't know how you read a password from "webpages".
Like a billion ways. Inject JS, log keys, install malicious extension, blah blah blah
> Session tokens do not exist for websites you are not currently accessing.
I'm just enumerating the billion ways that encryption is made pointless.
> he password file will contain all the saved passwords, whether you are logged in or not.
And the attacker can just access it lol
Maybe in a world where full disk encryption wasn't ubiquitous you could talk about an offline attack, and you could tell me you share your computer with someone who's not tech savvy but is an asshole. But it's all gonna be pretty niche.
comment 4y ago · link · parent
This is the only sane definition.
But otherwise I don't totally get the point of this post. "We're private for reasons XYZ, please don't share it" followed by "reach out if you want to work on it". And all we know about the language is that the goal is "simplicity".
So, ok.
comment 4y ago · link · parent
a) Already ready your passwords from memory/ webpages/ any other of the million ways
b) Access your cookies and session tokens
If the attacker is in a position to read the plaintext file off of the disk it really won't matter if it's encrypted. You're welcome to do so, I'm sure there are extremely niche scenarios where it may help, but it's not really worth mentioning imo.
comment 4y ago · link · parent
https://keepass.info/help/base/security.html#secdictprotect
The documentation here is pretty unclear. I'm not a keypass user and I don't see what the default settings are. The recommendation though is "1 second" with Argon2 though, which seems like a good default.
I did a quick search, https://research.redhat.com/blog/article/how-expensive-is-it...
> cracking an eight-character passphrase [..] encrypted with Argon2 created on a modern laptop would require up to 75,121 powerful machines running for ten years and cost over 4 billion dollars.
So 8 characters with settings leading to ~2 seconds on a laptop (twice the recommendation from keepass) will cost 4 billion. So we can say 2 billion for 1 second (obviously we're hand waving a lot).
And that would still take 10 years.
So basically, if you have a government adversary who really fucking hates you and has a lot of time and money to kill just bruteforcing your volume, go ahead and add a few more characters and consider bumping up the setting to 5 seconds instead of 1. I think every character you add should (hand waving, data dependent) increase the search space by 10x.
comment 4y ago · link · parent
The only difference is going to be if the remote vault requires a separate auth factor. And that's a legitimate thing to consider. But I think (but I haven't thought much about it tbh) if you have a secure master password then the situations where this matters are limited.
comment 4y ago · link · parent
I can't speak to this specific implementation, but the reality is that if your master password is leaked you have to rotate every credential no matter what.
comment 4y ago · link · parent
Yes, well, I'm managing to scrape by somehow despite that.
> Of course you are obviously right its good to work together on problems, but what does that have to do with exams?
Yes, that's... the point. Exams are idiotic.
comment 4y ago · link · parent
I don't think that cheating is bad.
> recognize that it happens frequently,
Naturally. If you give people stupid chores they will almost universally try to find a way to avoid them.
> don't think that cheaters should be punished.
Even if I bought into everything else ie: that testing is good and cheating is bad, I would still not punish cheaters. As I said, I cheated that one time because I had other issues that made school difficult. Punishing would have done nothing except add additional stress, making me retreat further from my education. But of course, as I just said, I don't buy into all of that other stuff, so it's not only an ineffective and cruel way to approach education, but it serves no purpose.
> It's not clear to me what your point is regarding cheating.
My point is that most tests are stupid, and a lot of what "cheating" is is just making them less stupid. For example, I remember students would hide their notes during a test so that they could reference them. That's just good sense - in what real world situation do you need to have instant recall for arbitrary information? It teaches kids to memorize shit, which is damaging.
Two students checking each others answers? Sounds a lot like any normal adult problem solving.
So you can try to "tweak" the system until cheating is impossible or so scary that people will rarely try, or you can "give up" and let people cheat... or you can take a step back and realize that you've made up a problem with no solution.
As I said, school should focus on the three things I mentioned. Nonsensical testing strategies and finding ways to trick kids for doing what is, frankly, the sane thing to do, is purely damaging.
comment 4y ago · link · parent
That works for multiple choice. Given the ".5" I'm assuming partial credit is discretionary. So you can just discretionarily choose to give +.5.
> For example, suppose that the class you took was graded on a curve.
It wasn't. Also I'm pretty sure I still failed the test because cheating is hard, I couldn't really read much of what the person in front of me wrote.
> You'd be surprised.
I would be, yeah. My school took that very seriously.
> t's sadly rather easy to get away with cheating at university, even if you do get caught.
Yeah, my CS degree had a hilarious amount of cheating going on.
My point isn't "cheating good".
comment 4y ago · link · parent
Why would word get out if you just grade that way? No one would know you were rounding up...
> As the article explains, cheating has negative effects on everyone else. Of course cheating can be good from the cheater's point of view – that's why people cheat!
I think you've completely missed my point. Cheating had no negative impact - on anyone, at all. Getting caught cheating would have huge negative impact.
comment 4y ago · link · parent
OK? So your students tried to do something and failed creatively. Sounds good. Reward them for their efforts, ask them to try again if you feel that they still need to get something out of the assignment.
> But some don’t, and they keep complaining and asking for regrades, and if those aren’t accepted they (or their parents) contact the principal/chair/dean/ombudsperson, who are required to have an investigation.
OK.
> hat gets misinterpreted too, so more details are added, and by the time the teacher retires you have a monstrosity that’s universally despised but almost impossible to complain about.
So your bad solution is good because it started off bad and ended worse. OK.
> Well, enjoy re-grading every single assignment from every student near a boundary,
Round up by default? If someone has an 89, just give them the 90. Honestly, who cares if a few students come up to you and want regrades, I imagine it takes all of 30 seconds to cross out the old grade and add the new one. How onerous...
> As far as I can tell, most follow the incentives and make little effort to stop cheating.
Cool. Most of the time cheating entails something like access to notes on a test that is artificially made more difficult by requiring memorization. That's why open note tests are far better.
> But some teachers are principled
Bummer. They don't sound principled so much as they sound unimaginative.
> Say you suspect students are copying from each other on an exam. You can silently prepare multiple versions of the exam with “micro differences” in questions.
Sounds dumb, I don't like the idea of trying to "trap" kids. I cheated exactly once on a test and got away with it - why? Because I was unhappy in school and I went home and spent my time distracting myself rather than preparing for it. Me cheating one time had literally no negative impact on my life, you trapping me and once again teaching me that education goes hand in hand with punishment would have done years of damage.
> They realized that they could skip learning the material, and instead complete the project by running an evolutionary algorithm with my father’s grading as a reward function.
Creative. Without knowing more about the assignment it's hard to judge, but I'm wary of any assignment that you can just brute force like that.
> your students will be lazy and fallible.
I had to undo years of being told I was "smart but lazy". Teachers need to erase that word from their vocabulary.
> So they won’t learn anything. That's OK, most people don't learn much from school.
> And then they will blame you for not forcing them to do the homework.
a) OK
b) I mean, maybe the parents would? I frankly don't believe that any student will blame a teacher for not forcing them to do homework.
> Surely what matters is if a student understands things, not if they ask questions in class?
Good question. What exactly is the point? To me, education serves a few functions.
1. Babysitting kids so that parents can work
2. Providing young people with a safe place for them to explore their emerging identities, interests, and view of the world
3. Stoking an interest in learning and providing the tools and resources to build a baseline knowledge for future education
So, is understanding really the goal? I don't see understanding as being particularly critical to the education system.
> Participation credit helps to internalize positive externalities.
100% agreed.
My transcript is an odd mix of grades - even within a single class, within a single semester I could go from an A or B to a D or F, or coast by on a C. What I value most is that during that time I dated, made lifelong friends, read books on physics and philosophy, discovered New York City while I skipped classes, played video games, learned to bike, etc. All of the stuff you're talking about, it's the stuff that got in the way of everything that has produced value in my life.
Anyway, those are my thoughts. I think school is pretty stupid, as is, but I find that I pretty much exclusively disagree with teachers about why. I sometimes read /r/teachers and the self indulgent pity party, and the "I wanted to be good but I just hate kids now!" theme, is sickening.
I also find it sad that so many people become what they hate. I think people seem to have an incredibly hard time empathizing with their former selves, which I find so weird. But I've had adults trivialize teenagers' problems, as if just because now they have "adult problems" that somehow means that when they were a kid they were just dramatic.
Maybe try to regain some insight into why your younger self would be disappointed, and what they might suggest.
comment 4y ago · link · parent
comment 4y ago · link · parent
Whenever we are interested in adopting new technologies we do a security review, so this naturally came out of that. We'll be posting more posts on other areas of interest for us.
comment 4y ago · link · parent
Second, "social outrage machine" is a pretty ridiculous characterization. You're painting this as if it's some Twitter mob upset about a minor grievance as opposed to the reality that a hostile country is committing war crimes.
comment 4y ago · link · parent
If you've been using a package for some time and suddenly the key changes, that's auditable. It won't impact anyone whose first use is after that point, and it's unlikely that end users will care, but for an organization, sure, that's meaningful. I'd go open an issue and ask why that happened, and pay attention to that commit.
> What you’re not doing, and what there is no method of doing to my knowledge, is gaining any assurance that the person whose identity you’ve verified has any right to sign the package you’re verifying.
Presumably we can just do what the web does with certificates tied to domains.
> Another suggestion I’ve seen is adopting a model similar to that of SSH, that is the first time you install a package you’re prompted to accept the key and from then on out it will remember that and use that as the trusted key.
Ah nice, this addresses my first point.
> Packages on PyPI change hands, get deleted, or even have multiple authorized releasers.
This is a feature :P
I definitely want to know if a package changes hands!
As for having multiple keys valid for a single package, I feel like that isn't much of an issue? I think we can look at certificates again for how this would work.
> If they go to PyPI to find out then we are back again at trusting the repository implicitly. If they don’t go to PyPI they are most likely to just hit whatever lets them install, training them to just do what it takes to install and ignore the warnings and prompts
For users, yes. For organizations, no. I'll absolutely investigate why a key changed. And when I see that it's malicious I'll let users know, just cause I'm so nice.
> Even if we wave our hands and give ourselves the perfect way to transmit trust, as long as PyPI is the authority over who owns a particular name then we must implicitly trust PyPI to tell us who is allowed to release which packages.
I'm confused by this part. Why is that the case? If I sign on my machine before I push to PyPI, how would PyPI be the authority? Unless this is referring to "PyPI can change the public key", which is true, but as I mentioned that's auditable and will raise lots of flags.
> It’s important to remember that the only thing any of these systems are able to verify is that the package you’ve fetched is the package you wanted, nothing more.
For sure.
> This isn’t an already solved problem nor is it an easy to solve one.
Yeah, unfortunately the tooling just isn't really there, so the UX is weak, so no one does it... and it's hard to go back and retroactively do so. In an ideal world this would all sort of Just Work, and it would be universal, so you could cryptographically verify your packages, your commits, your builds, your binaries, your containers, etc.
I wouldn't blame anyone for not doing these things today. There's no support for it. But if we got support, it would be a win.
comment 4y ago · link · parent
Hmmm, I'm not sure if anything like that exists, certainly nothing from a standards body. The closest might be recommendations to not rely on things like Linux containers, or to be wary of kernel vulnerabilities. But usually official bodies don't make comments like "this software is bad".
> I haven't heard anything that suggests security researchers as a collective have taken it personally
I assure you that they do, I know many people who have been active in Linux kernel security for decades.
> It seems pretty meaningless and unhelpful to categorize all C software as "garbage".
Oh yeah, what I meant is that all of these things are factors. I'm sort of hand-wavingly justifying the "garbage" description. There's a lot of problems that are all interwoven. C is one of those problems.
> To deserve the "garbage" designation, I would expect some supporting evidence that the Linux kernel development process lacks rigor.
That's fair. I would probably point to the lack of testing/ coverage, the lack of code review, the huge LOC:maintainer ratio.
> Moreover, "secure" is relative, so if you're going to call the Linux kernel "garbage" then it seems like you should have some kernel which is not "garbage"
I'd have to disagree here. I don't believe I need to have an example of something better in order to point out that there's something bad.
comment 4y ago · link · parent
> My point was that if security patches are flagged as such from the start, it saves attackers lot of time (and money), as they will no longer have to go through (almost) every patch and evaluate whether it could be fixing a security problem.
Not really.
1. They can just check to see who made the commit - if it's a security researcher, it's obviously a vuln patch
2. The commits are obfuscated in hilariously obvious ways if you know what to look for
3. It's not that hard to look at a commit, it's kinda what they're paid for
> while the defenders won't gain much from that,
When the vuln is found a race begins between attacker and defender. The difference is that attackers know they're in a race and defenders find out two weeks later.