Better HN
topnewbestaskshowjobs
Log inSign up

drvdevd

1,178 karma · joined Oct 17, 2013 (13y ago) · 589 submissions

Submissions

comment 9y ago · link · parent

Great synopsis, thanks! I'm particularly excited by the last point - there's a genius to putting this in kernel space for exactly that reason.

comment 9y ago · link · parent

Also, most OSS licenses protect the developers against this kind of nonsense anyway ('...not guaranteed fit for any purpose...'), for good reason.

comment 9y ago · link · parent

Also, if it's their public API used by their mobile/web apps, it would likely be crashing all the time anyway from normal user interaction (if some OSS were able to crash it via HTTP).

comment 9y ago · link · parent

I use ZFS under everything (including docker) and so I can use scheduled snapshots, backups, etc, to do the real data management, and not worry about losing data.

I can use host mounts too, but I prefer to just back up and manage all of docker, out of band, without thinking too much about it.

EDIT: granted this is for relatively small databases though. I think it could be scaled up however.

comment 9y ago · link · parent

PoC||GTFO is my favorite of late...

comment 9y ago · link · parent

This doesn't really answer your question directly but I find a fun exercise is to take a picture of a face and modify it (clip it, skew, morph, rotate, repeat, etc), and then see at which point Facebook will cease to recognize a face in the image (and then perhaps your face specifically), while you still do.

The real point is that: I believe there are some images in the search space that any recognition algorithm will not see a face in, but which your brain will and vice versa.

247.

TCP-ENO: Encryption Negotiation Option(datatracker.ietf.org ↗)

1 points · by drvdevd · 9y ago · discuss

comment 9y ago · link · parent

Yeah I suppose it's not really tractable to automatically infer the total behavior of a program (halting problem?)... I had some kind of weird strace like mechanism in mind..

Perhaps static analysis to see which library functions are linked in the package (require symbols in all binaries) and then having a set of default policies per-package based on those (including like you said, "this program never calls X, is not in category Y, therefore it doesn't need to be able to write to /path/to/Z" and so on)..

I dunno. Ideas

comment 9y ago · link · parent

Disgusting.

comment 9y ago · link · parent

One could envision a scenario where much of that custom wiring could be auto-generated somehow (e.g.: with some kind of defaults + dynamic analysis).

But the point is really - this is a distro issue and SELinux is a building block. If your distro is using SELinux and it's causing you no end of headaches consider that it may be your distro that's the problem...

comment 9y ago · link · parent

This is a great idea and reminiscent of LLVM to me...

comment 9y ago · link · parent

It's important to understand that SELinux has ceased to be a pure-NSA development for a long time. For that matter, it has spread far beyond RedHat as well.

Anyway, though I get the sentiment, SELinux is a great example of leveraging OSS regardless of whether you agree with the creators or not politically. That's a win for OSS in general because it means we don't have to like (or maybe even trust) each other to benefit mutually across the net.

The best arguments against SELinux are purely technical because there are alternative ideas about how such a system could be implemented (see: App Armor for example).

comment 9y ago · link · parent

Interesting. I'm surprised I haven't read more about the Linux kernel keyring infrastructure. Are you sure that portable openssh ssh-agent doesn't implement access to it?

comment 9y ago · link · parent

This is murky because the most basic UNIX isolation mechanism (UID/GID) is applied across all parts of the system: processes, files, etc. (in a nutshell).

Thus, when you run some program locally, sometimes it runs as your user/group and sometimes a new user/group is created for it.

From this simple abstraction springs the issue that any (potentially misbehaving) application running locally needs to be treated as if it were a user on its own: with all the quirks a random "user" could bring like deleting files, accessing private information, and so on.

Hence the need for these finer grained access control mechanisms. Any program that you download from the Internet (every program most of us run) might as well be a remote user on your system, in a sense.

comment 9y ago · link · parent

I know it's not really what you mean, but isn't the touchbar powered by an ARM chip already and also the secure enclave?

comment 9y ago · link · parent

I think SELinux is convenient or inconvenient depending on context.

For example on Android I find it's mostly convenient because it's been (IMO) well integrated into the system in such a way that I will only have to dig into it if I'm building a custom ROM or debugging an issue with native code.

I find the defaults on Fedora (and I guess CentOS also) to be pretty good as well, lately.

However I have my reservations about trying to implement it on top of any system that wasn't designed with it in mind. And it's important to think of each Linux distro as a unique whole system design in this context.

I have no idea how inconvenient it would be to try and start running SELinux on Ubuntu, for example, though I know there's support for it in the repos.

I've considered it, but it's like taking a vaccine where the side effects might actually outweigh the benefits, on consideration.

comment 9y ago · link · parent

I pay for GitHub and can't deny their positive role in OSS, but I also use GitLab and will happily continue (and love that they have an OSS edition). I don't think it's a binary choice. Personally I will often adopt multiple pieces of software with redundant features because nuance often dictates the right tool for the job, and I enjoy being prepared for that.

comment 9y ago · link · parent

That's the kind of team I want! All hands on deck. No lame responsibility shifters.

comment 9y ago · link · parent

also, maybe some people on here are perfect, but if you've used Unix for more than half your life (as I have) you've 'rm -rf'-ed some stuff.

I think people who've been through disasters have a much better understanding of the importance and methods of not ending up there than those with a perfectly clean record.

IOW, I'd hire the "rm -rf" guy first if he owns it.

comment 9y ago · link · parent

> (under heavy regulation)

... and this is where most Heroin addicts start, actually, through prescription opiate use. Once a physical addiction is formed, heroin can be a cheaper or more accessible alternative to a prescription for say, Oxycontin.

I thought John Oliver had a good segment on it:

https://m.youtube.com/watch?v=5pdPrQFjo2o

comment 9y ago · link · parent

Isn't there something like, just one company in the world that makes 95% of all USB to Serial chips?

comment 9y ago · link · parent

This is an inspiring point of view for those of us who would like to do business internationally as well I think. Personally, I'm stuck on the idea that the Internet is capable of helping citizens transcend national barriers (and timezones) to live more meaningful lives not strictly defined by the pens of politicians.

comment 9y ago · link · parent

So you would still need a trusted cert though right for the TLS MITM? And presumably SSH is not affected any more than on the open internet?

Anyway, while these may be valid attack vectors, since I started getting traffic injected by my ISP a few years ago, and DNS hijacked for advertising, my level of trust has dropped to the same as that of some $VPN, wherever, or $WIFI.

But that's just my opinion.

comment 9y ago · link · parent

The radiation poisoning was certainly strange though. Any idea why this was done?

comment 9y ago · link · parent

I haven't actually looked at the code yet, but to be fair, if your connection through any VPN is completely encrypted (e.g. HTTPS only), then it's not much different to most ISPs...

They can grab metadeta but this is already being done with all the traffic we generate anyway, one should assume.

comment 9y ago · link · parent

But again - the point is not to lie, technically and thus avoid commiting an actual offense. If your data is important enough to you, you probably will want to consult your lawyer before attempting such a scheme :)

comment 9y ago · link · parent

I think this is probably correct. But I would be sure to encrypt my device before mailing it too.

comment 9y ago · link · parent

Yeah perhaps this is not the best hypothetical response...

I still believe there is a way to adjust such an encryption scheme to meet the ideal criteria:

1. you're not lying 2. you can't provide access 3. you're not drawing extra attention to yourself

comment 9y ago · link · parent

And as in the original "scheme" -- this is a question of technicalities and (perhaps only if you're a US citizen, perhaps not), whether or not the authorities in question are willing to take it to trial and prove that you "lied".

If you removed a key header which is crucial to the operation of your device in the airport, then the question is whether you can legally say, "my laptop broke in the airport," even if it was you who deliberately broke it.

This also covers the case of the question, "Does this device contain personal data?" To which you can truthfully answer, "Yes."

The point, in my original scenario also is not to lie, but to simply avoid being able to provide access under duress.

comment 9y ago · link · parent

I agree - basically. The scheme is designed to be a half truth essentially. One that you can mentally convince yourself of in a tight situation, which would relieve you somewhat of the need to be "tough", psychologically speaking. At least for a while, anyway.

wrt giving up the key under extended duress, I was thinking the same thing and aside from simply wiping the disk I can think of another scheme that might serve you well: give the header to a trusted 3rd party who could simply be the one actually controlling access to your data. Your lawyer for example.

1
8910
20