Better HN
topnewbestaskshowjobs
Log inSign up

3eb7988a1663

3,526 karma · joined Sep 5, 2024 (2y ago) · 1,155 submissions

Submissions

comment 1y ago · link · parent

Physical infrastructure has expected lifetimes measured in years/decades. The half-life for a line of code could be as little as a year. I think being conservative in adopting new technology for something concrete is a sensible choice.

comment 1y ago · link · parent

For me, the niceties are in the built in functions[0]. Commands to manipulate paths(!!), get cpu counts, mess with environment variables, string processing, hashing, etc. All the gyrations a more sophisticated script is going to eventually require. Instead of having to hack on it in shell, you get cross-platform utilities which are not going to blow up because of something as wild as a space or quote mark.

[0] https://just.systems/man/en/functions.html

comment 1y ago · link · parent

The shell can be configured per OS. So, Windows can be set to use PowerShell and Linuxy systems will use sh.

From the docs

  set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]

  hello:
    Write-Host "Hello, world!"
Few things work seamlessly across platforms, and that does not seem like a huge burden.

comment 1y ago · link · parent

OneDrive breaks that convention. Last two companies I was at, the corporate location was something like "$HOME/OneDrive - $COMPANY". That the two companies had the same format tells me it is a default and/or suggested practice for some reason.

comment 1y ago · link · parent

I wish I had something to offer, but I think there is little available but grit. The solvers are magical in what they can do, but structuring a problem into the DSL is an exercise in pain. Seemingly few available public examples of patterns you can crib.

comment 2y ago · link · parent

If you only read the headline, GOG is still selling both games until December 13th.

Now, I have to weigh the calculus: do I buy the games just because, knowing there is basically zero chance I boot them up? What if that was Blizzard's end game -to drive scarcity?

comment 2y ago · link · parent

*Nix was designed to be multi-user. It's probably the only security boundary that was present from nearly the start. I think there are some rough edges on the user-per-application model, but it should all be scriptable so that the machinations are mostly hidden.

comment 2y ago · link · parent

Now this looks promising for mere mortals. I found jart's Linux port of pledge[0] which makes it seem possible to simply wrap utilities through a preceding script. If I couple this with distrobox/podman (which should work fine?) I might be able to pretty seamlessly lock down utilities by default with minimal shenanigans.

Assuming it does what it says on the tin, and it can work with GUI apps, this would get me almost all the way.

[0] https://justine.lol/pledge/

comment 2y ago · link · parent

The nspawn does look interesting, and potentially exactly what I want. Although, this wiki page is dense enough that I am concerned I am going to somehow misconfigure it and be less secure than I would be without using it.

I Flatpak wherever I can, but several of my required applications are not first-party packaged, which makes me extra squeamish about installing them.

comment 2y ago · link · parent

Those solutions seem more aimed at keeping the system clean vs isolating what resources a program can access.

Flatpak does indeed get me part of the way there with better isolation, but available apps seem so scatter shot that I need a fallback mechanism for when there is not an official Flatpak artifact. Distrobox makes a point of indicating they are not a security boundary.

comment 2y ago · link · parent

Actually, I have been wondering if using a Linux system as multi-user could be a boon in security.

As single user, each and every process has full and complete control of $HOME. Instead, I would prefer all applications were sandboxed to their own little respective areas with minimal access to data unless explicitly authorized. Without going full QubeOS, get some amount of application separation so my photo utility does not have permissions to read ~.ssh.

Create a user account for each application (Firefox, Email, PDFReader, etc). Run each of those applications as the foreign user account. Each application now has its own $HOME with minimal user data. Barring a root-escalation or user-separation bug, the data in your true HOME should be isolated. Even process/environment variable space should be segregated.

This also has a win in that it becomes possible to better segregate the threat model of less trusted applications. Doing granular network permissions per application is a bit hairy in Linux, but it is trivial to fully deny network access to a specific user account.

Not true isolation, but for the semi-trusted development environment, gets you a little something.

comment 2y ago · link · parent

Was hoping you had more insight than "maxi sounds good" which is the also the best I have.

comment 2y ago · link · parent

You can do all the testing in the world, but clicking deploy on that update must have been nerve wracking.

comment 2y ago · link · parent

What if it has microphones which are not so obviously obscured? I do not see why it should depend upon my technical acumen to non-destructively disable a surveillance device within my private space.

comment 2y ago · link · parent

I do not see any way in which this property could still be considered the previous owners. Let's say the camera was in the bathroom pointed directly at the shower. You just have to suck it up forever, knowing that someone could be watching? In fact, I could imagine it being a criminal charge for trying to capture people in the nude. What if someone has a child who bathes there? Now they were trying to create CP.

comment 2y ago · link · parent

Which Wikipedia snapshot do you grab? I keep meaning to do this, but whenever I skim the Wikipedia downloads pages, they offer hundreds of different flavors without any immediate documentation as to what differentiates the products.

comment 2y ago · link · parent

Maybe I need my understanding corrected. I thought the point of at-will was that you very much could fire someone for nearly reason (you support the Cubs, pack up your desk!). You cannot fire someone for protected classes (gender, race, etc), but basically everything else is fair game.

comment 2y ago · link · parent

Can modern material science model this computationally, or does everything have to be observed experimentally? This kind of insane just-so recipe - are researchers just iterating on hundreds of thousands of different alloy compositions and production techniques or are there strong theoretical principles on which some of this can be derived?

comment 2y ago · link · parent

For something as compressible as voice, I do not know how you would feel confident that data was not slipping through. Edge transcription models (eg Whisper) are continuing to get better, so it would be possible for malware to send a single bit if a user says a trigger word.

comment 2y ago · link · parent

I believe it is possible to turn a speaker into a microphone. Found a paper which claims to do just that[0]. So, there is no safety anywhere?

  SPEAKE(a)R: Turn Speakers to Microphones for Fun and Profit
  It is possible to manipulate the headphones (or earphones) connected to a computer, silently turning them into a pair of eavesdropping microphones - with software alone. The same is also true for some types of loudspeakers. This paper focuses on this threat in a cyber-security context. We present SPEAKE(a)R, a software that can covertly turn the headphones connected to a PC into a microphone. We present technical background and explain why most of PCs and laptops are susceptible to this type of attack. We examine an attack scenario in which malware can use a computer as an eavesdropping device, even when a microphone is not present, muted, taped, or turned off. We measure the signal quality and the effective distance, and survey the defensive countermeasures. 
[0] https://arxiv.org/abs/1611.07350

comment 2y ago · link · parent

I was expecting a picture to be of an Ikea showroom or similar. Got a real chuckle when I saw it was a Ready Room.

comment 2y ago · link · parent

AND?! What was his response once you had to come clean?

Edit: I loved this (minus the missing ending). Really sucked me in with the level of detail.

comment 2y ago · link · parent

I realize something as complex as a browser can never be done, but would it be so bad if new feature development slowed to a crawl? I suppose I only want a faster horse, but few of the cutting edge developments of Chrome seem like they have much to offer me.

comment 2y ago · link · parent

Estate taxes do not kick in until $13 million in assets.

comment 2y ago · link · parent

Can a company prevent the government from using its technology? I thought the government could already seize/utilize/reverse engineer anything they so deemed fit.

comment 2y ago · link · parent

Has kiwix gotten any better? I tried to use it years ago, but it crashed more than once and had all sorts of blocking UI interactions.

comment 2y ago · link · parent

I inherited a pipeline like this. It is as if everything is a global variable. You cannot "just fix" one thing in isolation, because some spooky action at a distance of which you were unaware relies upon this insane behavior. Each and every hack is the expected input somewhere else in the chain. You have to carefully inspect everything downstream of any kind of minor adjustment because your cleanup is quite likely to break something else.

Immensely frustrating and draining where you can have accomplished ~nothing in a full day of work to fix what should have been a five minute change.

comment 2y ago · link · parent

I naively assumed most OS + routers cache DNS queries so that your typical sites will not even require a lookup. Or is that a bad assumption?

comment 2y ago · link · parent

Surely there is going to be an enormous list of exemptions submitted and approved immediately.

My quick skim did not make this clear: is this for software only or would hardware appliances also count? Routers, modems, PLCs used in gas centrifuges, etc. are just as attractive for exploitation.

comment 2y ago · link · parent

That feels somewhat implausible. I assume a Microsoft sized data center starts at over $100 million. Moving the footprint X miles away might be cheaper, but is probably a drop in the bucket given everything else required for a build out. I would further assume that they were already some distance away from the top tier expensive real estate to accommodate the size of the facility.
1
3536373839