Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,595 karma · joined Dec 4, 2013 (12y ago) · 4,861 submissions

email: I'll add a suitable email one of these days
Submissions

comment 6mo ago · link · parent

> Sudo is security theater.

Yes indeed.

> Malware can make a fake unprivileged sudo that sniffs your password.

Not on my Linux workstation though. No sudo command installed. Not a single setuid binary. Not even su. So basically only root can use su and nobody else.

Only way to log in at root is either by going to tty2 (but then the root password is 30 characters long, on purpose, to be sure I don't ever enter it, so login from tty2 ain't really an option) or by login in from another computer, using a Yubikey (no password login allowed). That other computer is on a dedicated LAN (a physical LAN, not a VLAN) that exists only for the purpose of allowing root to ssh in (yes, I do allow root to SSH in: but only with using U2F/Yubikey... I have to as it's the only real way to log in as root).

It is what it is and this being HN people are going to bitch that it's bad, insecure, inconvenient (people typically love convenience at the expense of security), etc. but I've been using basically that setup since years. When I need to really be root (which is really not often), I use a tiny laptop on my desk that serves as a poor admin's console (but over SSH and only with a Yubikey, so it'd be quite a feat to attack that).

Funnily enough last time I logged in as root (from the laptop) was to implement the workaround to blacklist all the modules for copy.fail/dirtyfrag.

That laptop doesn't even have any Wifi driver installed. No graphical interface. It's minimal. It's got a SSH client, a firewall (and so does the workstation) and that's basically it. As it's on a separate physical LAN, no other machine can see it on the network.

I did set that up just because I could. Turns out it's fully usable so I kept using it.

Now of course I've got servers, VMs, containers, etc. at home too (and on dedicated servers): that's another topic. But on my main workstation a sudo replacement function won't trick me.

comment 6mo ago · link · parent

> It's relaxing and has a skill curve such that there's a trick to it but with a bit of practice, you can be someone who is really good at soldering, too.

I don't know. I've got my station, not a bad one: bought it with the help of a buddy who's very good at soldering. He tried to show me. I've got no choice: I own an old vintage arcade cab from the mid 80s and it's located in the middle of nowhere, in a rural area. So I have to fix it myself.

And oh boy do I suck at it. I watched vids, countless Youtube vids. It's been 10 years and everytime I need to solder something, I still suck at it.

I've come to terms with the fact that there are some things I'm good at and that soldering is never ever going to be one of these. And it's okay.

And I'm amazed by people who can solder properly.

comment 6mo ago · link · parent

> My mind still cannot understand the quality and refinement that's gone into cURL. It really is the perfect example of something done so right, that people barely think twice about.

And all that to then end with people doing: "curl ... | bash" and not seeing anything wrong about it. Then they'll deflect about "threat models" and other non-sense.

I leave you your curl-bash, I keep my cryptographically signed packages installer.

comment 6mo ago · link · parent

> It takes 5 minutes in their Discord channel to see the founders are D&D nerds, not competent engineers.

I know absolutely nothing about Obsidian but I'd expect quite a few competent engineers to also be D&D nerds no!?

Are you saying the two are mutually exclusive?

comment 6mo ago · link · parent

> inject a temporary SSH host (private) key via cloud-init...

Reading the comments here I'm tempted to believe that if cloud-init is available and if we consider Heztner (and OVH etc.) provides a secure access to cloud-init (i.e. the box running cloud-init is really the box you think it is), then there are many different ways to solve this problem.

comment 6mo ago · link · parent

What people really don't understand about reproducible builds is that they're not a guarantee that there's no backdoor.

They're a guarantee that if there's a backdoor, it's reproducible 100% of the time.

This is a godsend for white hats fighting the good fight.

And, as a side note, it's strongarming vs the bad guys: "Would be too bad if we could reproduce your shiny exploit 100% of the time wouldn't it!?".

Note that we should go further (but it's a bit orthogonal to reproducible builds): builds of the final binary/package should happen by first entirely discarding all files not necessary for the final build (like all test cases and all test assets). The build should literally happen in an environment that gets rid of those (after, of course, having test in another environment that all tests cases succeed): if I'm not mistaken get rid of test assets would have stopped Jia Tan's XZ backdoor attempt dead in its track (for example). Because IIRC there were binary data part of the backdoor hidden in some asset only used by test cases.

P.S: as a bonus they also allow to detect bit-flips (I'm not saying there aren't other ways to detect bit-flips: what I'm saying is that if you have deterministic builds anyway and something doesn't reproduce correctly due to a flipped-bit, it's going to be noticed).

comment 6mo ago · link · parent

Not that it's a bad TFA but in addition to what you said, many/most of the edge cases mentioned in TFA are just as problematic whether idempotency is desired or not.

I mean:

> Maybe the first request created a local payment but crashed before publishing an event ...

I mean, yeah, sure. That's a problem. I can come up with another one:

"Maybe the ZFS disk array for the DB caught fire and died a horrible death and you now need to restore from backups".

But that's going to be a problem anyway.

comment 6mo ago · link · parent

We're geeks so we call the electric town by its proper shortened name in Tokyo-slang: "Akiba". It's just Akiba. But I fear Akiba ain't what it used to be.

comment 6mo ago · link · parent

And what do you have to say to teenage girls or even little kid girls getting raped?

Being laxist towards criminals is not just being cruel to the victims to me: to me it is downright complicity with the criminals.

BTW: Japan happens to be one of the safest country on earth. A friend who's a pilot told me: "Tokyo is the only city in the world where I've women from my team (mostly air hostesses but also female pilot or co-pilot) go for a run at 3am". Now he didn't fly to every city in the world but I can name a great many cities where a fit woman won't go joking in yoga pants at 3am. And so can he.

comment 6mo ago · link · parent

> And if EU still think that's not enough, maybe they should just cut the cable, like what North Korea did.

I'll make a similar comment I made on another thread: we saw a thread with many upvotes hating on the cyber-libertarians... We all know the EU institutions are ran by cyber-libertarians and that it's cyber-libertarians making such research and decisions right?

Pick your fight brothers. I don't think spending your time hating on the three John Galts of this world is a worthy fight. You may even turn out to be more morally aligned with the John Galt of this world than with the people running the EU institutions (and North Korea).

comment 6mo ago · link · parent

To make the link with another very successful article on HN today: who is Franced rule by yet? By cyber-libertarians right?

comment 6mo ago · link · parent

These "golf balls" are amazing: I found a NIB set (New In Box) of a few of them on a garage sale a few years ago. Bought it immediately: it's one of the geekiest thing I own. I sadly (or thankfully, wife-acceptance-factor would be low) don't have the typewriter to go with it.

I've got fond memories, as a child, of my father at home typing on an IBM Selectric typewriter while smoking cigarette after cigarette. Good memories.

comment 6mo ago · link · parent

> there’s a move now towards 24/7 trading.

Isn't the plan more like 23/5 like is already the case for several markets?

I can't see the standard sessions moving more 9:30am/4pm weekdays to 24/7. I take it they'd still let, at least, one hour off for technical reasons.

If I'm not mistaken it's the reason several markets are 23/5 and not 24/5: that one hour of downtime is basically for servers/maintenance right? (maybe someone can chime in)

P.S: I take it technically there's 24/7 trading already seen that cryptocurrencies exchanges are opened 24/7 (I'm not sure: but I think that's the case) but I don't think those do anywhere near the volume of, say, options trading on equities during standard sessions (40 Gbit/s with peak over 70 Gbit/s for the full options feed).

comment 6mo ago · link · parent

Hasn't the Git team been hard at work to optionally offer other hashes, like SHA256, in addition to SHA-1?

comment 6mo ago · link · parent

> Applying violence to kids is not the way to make them stop applying violence to others.

When I was young me and two of my brothers were one-day really misbehaving. My grand-father, who had been capture on the first day of WWII (well on the first day Germany invaded Belgium) and spent 5 years in a PoW prisoner camp in Germany, wasn't a little wuss.

He spanked our three arses so bad I remember it to this day.

It was an amazing lesson.

Something has to be said about peaceful time that create weak men who then find all the excuses towards abusers. The issue with the "well-thinking" mindset is that when pushed to its logical end, rapists are walking totally free after having been caught (UK) and people can break a female police officer' nose at the London Heathrow airport and walk totally free too. With weak judges from a weak society ruling that: "In their culture/countries men don't know that you're not supposed to rape women".

We then end up with people, in the west, who genitally mutilate women and non-sense like that.

When, on the contrary, you decide to take the psychopaths who ruin society for everyone by the scruff of the neck and put them in chain, you get the homicide rate slashed, in ten years by 100.

That's not being decimated: that's being decimated and then being decimated, again.

1/100th.

> So what is the possible solution then? Protect those who are vulnerable

That's typical victimization, which create more weak men. Weak men who then, for example, become politicians who vote ultra-lax laws and weak judges who then let rapists walk free, making the streets unsafe.

If bullies getting spanked by an authority figure don't get the lesson, it's their problem. Not society's problem. Society, as a whole, is supposed to have the monopoly of violence. Instead of that in many countries (like France and the UK), the government gives up and gives the monopoly of violence to drug dealers and rapists. Drug dealers and rapists who learned, since a young age, that were exactly zero repercussion when being a bully.

You've got your opinion, I got mine: putting gang members in chains in El Salvador slashed the homicide rate by 100x. Ponder that.

comment 6mo ago · link · parent

> fun fact: clojurescript had support for asynchronous paradigm through core.async library (CSP style) long before async/await landed in javascript itself.

Definitely. I was heavily using it and it worked: a few quirks but we did have async/await since more than a decade. I think I discovered it after watching a talk by David Nolen.

Since then I moved to minimal JavaScript on the front-end: SSE is one-way and that is beautiful. I'm glad to see many devs, from a great many different languages, now getting interested in SSE.

Here's a great, recent, talk by David Nolen called "A ClojureScript Survival Kit":

https://youtu.be/BeE00vGC36E

I cannot thanks David "Swannodette" Nolen enough for all the work he did on ClojureScript (and core.async) since its inception. And what's amazing in this talk is that he's actually excited at the idea that we may do away with ClojureScript and use pure Clojure (on the server-side) and server-side events, with just a tiny of JavaScript.

The real demo starts around 26:30. He shows a Webapp running on the client and how much resources it's using, then he shows the exact same Webapp running on the server and pushed one-way to the client using SSE. It is wild: resources usage drops to near zero.

YMMV but I find it easier to reason about my webapps and manage state now that I'm using a minimal DOM morphing lib: I used to have two REPLs (one for Clojure, one for ClojureScript) and lots of back-and-forth traffic and hard-to-track / reproduce state. Now everything is definitely snappier and way easier to reproduce.

I'm not saying SSE is going to work in every case though: YMMV. But in any case the video or at the very least the demo starting @ 26:30 is very much worth watching.

comment 6mo ago · link · parent

> this, this is something I don't understand there are a billion ways to gain root once you control the user that regulary uses sudo.

I won't enter into all the details but... It's totally possible to not have the sudo command (or similar) on a system at all and to have su with the setuid bit off.

On my main desktop there's no sudo command there are zero binaries with the setuid bit set.

The only way to get root involves an "out-of-band" access, from another computer, that is not on the regular network [1].

This setup as worked for me since years. And years. And I very rarely need to be root on my desktop. When I do, I just use my out-of-band connection (from a tiny laptop whose only purpose is to perform root operations on my desktop).

For example today: I logged in as root blocked the three modules with the "dirty page" mitigation suggested by the person who reported the exploit.

You're not faking sudo with a mocking-bird on my machine. You're not using "su" from a regular user account. No userns either (no "insmod", no nothing).

Note that it's still possible to have several non-root users logged in as once: but from one user account, you cannot log in as another. You can however switch to TTY2, TTY3, etc. and log in as another user. And the whole XKCD about "get local account, get everything of importance", ain't valid either in my case.

I'm not saying it's perfect but it's not as simple as "get a local shell, wait until user enters 'sudo', get root". No sudo, no su.

It's brutally simple.

And, the best of all, it's a fully usable desktop: I'm using such a setup since years (I've also got servers, including at home, with Proxmox and VMs etc., but that's another topic).

comment 6mo ago · link · parent

There are hardware reasons too, related to polling frequencies etc.

Great article for those interested in the matter:

https://danluu.com/input-lag/

comment 6mo ago · link · parent

Sure, but distros not using systemd were not affected.

comment 6mo ago · link · parent

> ... but is enabled by default?... why?

We could also wonder why XZ was linked to SSH... But only on systemd-enabled distros (which is a lot of them).

Just... Why?

And then make sure to call to incompetence, instead of malice and say non-sense like "Sure, it only factually affects systemd distros, but this is totally not related to systemd". All I saw though was a systemd backdoor (sorry, exploit).

Now regarding copy.fail that just happened: not all maintainers are irresponsible. And some have, rightfully, bragged that the security measures they preemptively took in their distros made them non vulnerable.

But yup I agree it's madness. Just why. And Ubuntu is a really bad offender: it's as if they did a "yes | .." pipe to configure every single modules as an include directly in the kernel.

"We take security seriously, look we've got the IPsec backdoor (sorry, exploit) modules directly in the kernel". "There's 'sec' in 'IPsec', so we're backdoored (sorry, secure)".

comment 6mo ago · link · parent

From TFA:

> Dirty Frag belongs to the same class as Dirty Pipe and Copy Fail. However, while Dirty Pipe overwrites struct pipe_buffer, Dirty Frag overwrites the frag of struct sk_buff

So yup, Dirty Pipe is specifically mentioned.

comment 6mo ago · link · parent

> Online communities are definitely dying. I guess I hope that maybe IRL communities have a resurgence in this wake.

You can have both IRL and online-free-of-bots. I already wrote about it but one of the very best forum I'm a member of, where real people are posting, requires to be vetted in, web-of-trust (but IRL) style. It's a forum about cars from one fancy brand and you can only ever join the forum by having a member (I think it may be two, don't remember) who's already in confirm that he saw you driving a car of that brand. It's not 100% foolproof (someone could be renting the car for two hours and show up at a cars&coffee or take a friend's car etc.) but this place really feels like a forum of yore.

And people do eventually travel, so it's bound to happen that an owner shall go to another country, meet someone there, vet him in etc.

Now, sure, it may not be the "1 million users acquired in three days thanks to my vibe-coded app" scenario but that is the point.

You can imagine other domains where IRL communities have local groups, but where forums regroup different IRL communities all interested by the same hobby/topic/domain. And when people travel and meet, the vetted members do grow and connect.

Oh and on the forums a lot of the posts are pictures, where "Julian xxx" met "Black yyy Cyril" and you see both cars (and from more than two people): suddenly it becomes much harder to fake a persona... You now need to fake both Julian xxx and Black yyy Cyril and fake the pics. And explain why your car has never been posted by any carspotter on autogespot etc.

You can imagine the same for, say, model trains: "Met Jean at the zzz meetup, where he brought his wonderful 4-8-8-4 'big boy' locomotive, I confirm he's into the hobby, vet him in".

Naysayers and depressive people are going say it cannot work but I'm literally on one such forum and it just works.

P.S: if I'm not mistaken in the past in some nobility circles you had to be vetted by up to sixteen (!) other people from the nobility that'd confirm they knew you, your parents, etc. before you'd even meet the king/emperor/monarch to make sure that someone from far away couldn't come to, say, Versailles or Schonnbrun pretending to be a baroness or count or whatever. Quite the extensive check if you ask me.

comment 6mo ago · link · parent

> For example, it might get combined with another exploit that can achieve unprivileged access ...

Yeah. TFA mentions datacenters in 330 cities. That's a lot of Linux boxen. And many of those have, by definition, ports opened to the big bad Internet. These Linux servers are running services. They answer to ping, for a start. I even heard some are running DNS servers. Remote local exploits are a thing.

What does CloudFlare prefer: that when the next remote local exploit surface all their fleet is one copy.fail away from privilege escalation to root or that they get the time (seen that they obviously have quite advanced detection measures in place) to detect the intruder before it gains root everywhere?

It's Linux. It's datacenters in 330 cities. Linux powers the world and that's how things works.

I, for one, I'm glad to own CloudFlare stocks since right after the 2022 crash and, for two, I'm happy they don't let their huge fleet of Linux servers with a non-patched exploit.

comment 6mo ago · link · parent

> ... or they are pushed towards server grade components. I already have home sever rack, and would recommend it for other people.

An actual rack with noisy 1U or 2U servers may be a bit overkill but on the plus side there's a guaranteed endless supply of such used servers.

Now there's a happy middle ground: used workstations with ECC memory, that you then use as servers.

People would be really wise to not underestimate what a 12 years old dual-Xeon, 14 cores each, 56 threads in total can do, for example. And such a complete workstation can basically be found for less than what it takes to fill my car's gas tank (granted it's got a big tank and it's fancy car whose manufacturer recommends to only use 98+ octane).

A single Xeon workstation with shitload of memory in a tower form factor is basically silent. Mine is. Dead quiet, next to the vaccuum cleaner and the cat's foot in a tiny room. I use it as a headless server.

And that's with the default PSU and fans. There are, of course, people modding these with adapters for regular consumer PSUs and then putting ultra-quiet PSUs in those. Same with Noctua fans etc.

And as for the usual complain: "but a server that is on 24/7 consumes too much electricity"... I only turn on my servers at home when I begin to work: I don't need these to be on 24/7.

So yeah: "Server CPU + ECC" doesn't imply noise. And "Server CPU + ECC" doesn't imply it has to be on 24/7 neither.

comment 6mo ago · link · parent

The USB stick hints at a big problem in our trade though: how do you "reboot" your IT infrastructure if it literally burns to the ground? I'm not talking about Google-scale systems (which still couldn't restart from scratch IIUC but they're actually working on it?) but only about SMEs.

How does a medium-sized SME were all the payrolls depends on Sara and her USB stick do if, literally, their servers do catch fire.

You've got backups, then what? How automated is the reinstallation of your typical SME's infra?

The closest I saw to that scenario was some documentary where some little trading firm had just time to fetch the backup hard drives before leaving the building on fire after a plane crashed into it on 9/11. The CEO (I think it was the CEO) was explaining that had he not grabbed a HDD with the backups, the company was done (not that I advice onsite/offline backups on HDDs that you must not forget to grab when the shit hits the fan as a solution btw).

I understand the "just drink the cloud kool-aid" angle: but are SMEs typically doing that?

How many SMEs out there are depending on Sara's knowledge of the USB memory stick and how to use it?

I've definitely seen similar things. And I'm sure many of you did too.

Many houses of cards?

comment 6mo ago · link · parent

> In Europe governments make up such a big part of GDP now in some cases nearly half of it ...

Oh more than half. In France it's 59% officially. And then there are the fake "private" companies that are actually owned by french-state apparatchiks and operating like the various state monopolies (like utility companies): so the real number is higher than 59%. France has probably more than 2/3rd of its GDP that is public spending. It's basically a planned economy.

A planned economy with the only expected result of a planned economy: the public debt of France is 115% of the GDP growing. Inflation is through the roof (you think gas prices are high in the US?). And they have zero clue as to how they're going to pay their empty promises of pensions to the aging population.

But what's really amazing in a country like France where 2/3rd of the GDP is public spending is this: publications constantly hammer the exact same message as in TFA: "We should tax the rich!". The french Piketty (who's btw never worked for a second in the private sector in his life: a pure product from the socialist french education system who's exceptionally good at creating state-lovers ever begging for more taxes) is mentioned in TFA.

2/3rd of the GDP being public spendings but instead of trying to get out of that planned economy the message hammered by all the media (who are either owned by the media of by the french-state apparatchiks) is: "Tax the rich".

The delicious irony of the 3 first of the only 5 companies France has in the Top 100 by market cap (and none in the Top 50) being three companies selling luxury goods and bringing money into France by selling luxury products outside of France is of course not lost on people.

There's LVMH, L'Oreal and Hermes exporting like mad luxury products and bringing in money from overseas into France and, instead of giving the people owning these companies medals, France explains that you should "tax the rich".

Yeah. But no. I just don't buy it.

I'd rather be poor in a capitalistic society than live as a slave in a planned communist economy.

"Better dead than red" FWIW too.

comment 6mo ago · link · parent

I'm flagging because HN guidelines asks to keep political content to a minimum. This one of those classic "evil rich" / "gentle poor with holes in his sofa" communo-marxist rant.

Out of HN.

I'm here for tech news. Not for pro-libertarian posts. Not for pro-right posts. Not for pro-left posts.

I flag any political content (no matter the aisle) and you should too.

comment 6mo ago · link · parent

> Yeah it's only the third largest economy in the world

You can both be the 3rd biggest economy in the world and still only be 1/10th of US+China GDPs combined.

And only three companies in the Top 100 for Germany:

https://companiesmarketcap.com/

Germany is the kingdom of the "mittelstand": many, many, many SMEs.

Both GP and you are right: it's the 3rd largest economy in the world and yet it's simply not that big.

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

In other words: I expect this German DNS SNAFU to have 0.000000001% impact on the world's GDP this year.

1
293031
163