HNHacker News
TopNewBestAskShowJobs

ivlad

316 karma · joined January 1, 2015

submissionscomments
ivlad··on The return of the frame pointers
While I somewhat support the idea of avoiding debug-mode applications shipped to end customers, it seems in this particular case Brendan argues about the need to debug binaries in runtime on the server side. If there is a binary component running in production, the choice of running it with debug enabled (and/or with an ability to activate debug in runtime) is purely choice of the system owners (who nowadays are both the developers and the operators of components).

“Observability” primarily refers to ability to view system state beyond of what blackbox monitoring does. Again, the term primarily refers to server side operations and not to software shipped to end users.

As much as spying on users is ugly, it’s not related to debugging server side.

ivlad··on Snapdragon X Elite Multi-Core Superiority Claims over Apple's M3 Were Right
Operating systems with lots of background tasks and threads.
ivlad··on Kernel Hardening: Protect Linux user accounts against brute force attacks
If it’s me who disallowed “future me” (or someone pretending to be future me because my account was compromised) loading unsigned modules, I don’t see it as a problem.
ivlad··on Kernel Hardening: Protect Linux user accounts against brute force attacks
Closing all means for root to access kernel memory is part of hardening. Modern mainstream distros don’t expose /dev/kmem and /dev/mem can be limited to less dangerous pages like MMIO, /proc/kcore can be disabled, to, etc. It goes beyond MAC policies, some functionality is just omitted from the kernel via compile-time config.
ivlad··on Keep your phone number private with Signal usernames
In Signal, probably no. Signal has this sealed sender functionality hiding significant amount of metadata from passive observer and active examination post-communication: https://signal.org/blog/sealed-sender/

What Russian police would be able to see, that in a given time period of certificate rotation at most X people communicated to Navalny.

ivlad··on How SSH port became 22 (2017)
I got a port assigned a few years ago.

I needed to write a justification why the organisation I represented needs a port number (a custom binary protocol), a formal confirmation that protocol has versioning built-in (so we will not request for a new port number for the next version of the protocol), a confirmation that we have a running code implementing the protocol (if I recall correctly, link to documentation was sufficient), and the reasons why we cannot use any of the existing protocols.

It’s not impossible and I think it’s totally doable for redis unless the port is already reserved for something else.

ivlad··on Pkl, a Programming Language for Configuration
You are proposing to use general propose language vs domain-specific ones. I think, this discussion has been settled quite some time ago. For example, awk itself is domain-specific, built for processing text (or filed-separated) files. On the other had, m4 is as old as awk. m4 was heavily used even before autoconf (sendmail configuration is probably the best-known and possibly the ugliest application of it), for configuration, so one can argue, the need for macro expansion and rendering of configuration (as well as othe types) files was recognised even back then.

m4 just shows its age, and we’ve learned what is good (being Turing-complete) and what’s less useful (multiple output streams).

m4 could’ve evolved into m5, m6, etc., but nobody did it, instead people developed tools like jinja. One could argue, this is wrong and should’ve been evolutionary, but the point still is, domain-specific language to render configuration existed because there was use for them. Perl indeed could be such, I guess it did not happen for totally unrelated reasons. If Perl worked, Python would not gain popularity.

Pkl is not conceptually a new invention, it’s a new attempt to solve a real problem.

ivlad··on Pkl, a Programming Language for Configuration
> TOML also is a good example of "creating problems instead of solutions": They deliberately (!) broke compatibility to the INI format due to "I can't stand unquoted strings". Yeah, emotional feelings about CONFIG FILE FORMATS.

INI is hard to parse because without quotes the parser would not know whether it’s a “True” as a string or True as Boolean value. Formal parser that can be included into a program as a library and would reliably generate internal config representation (e.g., read config file into an object in application memory that will be used to modify the behaviour) is a good thing and TOML helps with that while INI does not.

ivlad··on Pkl, a Programming Language for Configuration
25 years ago admin would be responsible for one server, that they would setup and then never touch until (and sometimes after) someone hacked it.

Now people are responsible for thousands of containers, and GUI simply does not scale. And the configuration of those containers is domain-specific and/or varies enough so that you cannot write a single config file and copy it over. This is why configuration management systems first came with template engines and now require a separate tool to render the configuration.

Nobody would develop anything like that if it was not needed.

ivlad··on Tell HN: Hacker News now supports IPv6
Facebook tested it and IPv6 resulted lower latencies: https://www.internetsociety.org/blog/2015/04/facebook-news-f...
ivlad··on Tell HN: Hacker News now supports IPv6
You can disable IPv6 privacy extensions. The exact process depends on the operating system you use.
ivlad··on Tell HN: Hacker News now supports IPv6
By that logic, you can disable IPv4 and still access the site via IPv6.

IPv4 is useless.

Also, running dual-stacked servers I can confirm, all scans come via IPv4, so not only it is useless, it’s actually less secure to use it.

ivlad··on Microsoft actions following attack by nation state actor Midnight Blizzard
> Azure was owned pretty hard a while back, very little was ever heard of it again.

From what I recall, it was a Chinese APT (designated as Storm-0558, which I think means they could not reliably attribute it to any group: https://malpedia.caad.fkie.fraunhofer.de/actor/storm-0558), that was sitting on developers’ workstations long enough to get access to master signing key from a memory dump that ended up on one of the workstations. They then used it to access US government officials’ emails (Department of State if I recall correctly), which supposedly gave China a strategic advantage and a better understanding of inner workings of US foreign policy.

You will not see it in news that China got favourable terms in some negotiations with a country in Africa (are of Chinese interests) and US got least favourable terms than they could’ve gotten because the Chinese negotiators knew something.

ivlad··on Microsoft actions following attack by nation state actor Midnight Blizzard
Crowdstrike. FireEye.
ivlad··on Microsoft actions following attack by nation state actor Midnight Blizzard
They probably confuse it with Russians hacking Yahoo and having access to user account admin interface: https://www.csoonline.com/article/560623/inside-the-russian-...
ivlad··on Microsoft actions following attack by nation state actor Midnight Blizzard
Google or self-host.

With self-hosting you get to use thing now considered legacy (e.g., IMAP servers), but I definitely have seen them working for organisations with thousands of employees. You’ll need staff to support it, too, but at some scale it will none be more expensive than cloud services. Yet, you’ll have more control over it.

OTOH, some things will definitely be less feature-rich, for example, on-prem Sharepoint (not that I recommend using it) may not live up to the expectations of users familiar with the online version.

ivlad··on Immanuel Kant – What can we know?
We seem to be special: we are the only (so far) known species having complex speech as well as ability to convey our thoughts to others, capability to build tools, and abstract thinking.
ivlad··on Portugal. The Man – Official Website Is a Google Sheets Document
Surprisingly, I am listening the latest Rolling Stone album right now and I wanted to check if they will tour our town. I went to their web site to check it and to my surprise I was not able to find any tour info there.

Not a counterpoint, just coincide I guess.

ivlad··on Portugal. The Man – Official Website Is a Google Sheets Document
I felt a great disturbance in the Force, as if millions of voices suddenly cried out in terror.
ivlad··on Getting my library cards onto my phone the hard way
Apple/Google know your location anyway. It’s about limiting the number of parties that do.
ivlad··on SEC Charges SolarWinds and CISO with Fraud, Internal Control Failures
Brad Smith (https://news.microsoft.com/exec/brad-smith/) is a PR person at Microsoft. His role is to make loud statements on matters he has no knowledge of or qualifications to talk about.
ivlad··on Getting my library cards onto my phone the hard way
That would require granting Starbucks app access to your location, even when the app is in background. Why would you do that?
ivlad··on Good times create weak men (2019)
Korea and Afghanistan are obvious counter-examples.
ivlad··on Fail2Ban
Yeah, that’s command injection in mailutils I mentioned, not in fail2ban itself. Did you see how it’s supposed to be exploited? Did you see a real-life exploitation?

While it’s a nice trick, it’s simply not relevant. And the vulnerability before that seems to be 10 years old. I’d say it’s a decent track record.

ivlad··on Fail2Ban
I looked at fail2ban exploits and they are either LPE due to file permissions or command injection in other tools like mailutils.

Citation needed for the claim “has been attacked” if you refer to real attacks in the wild.

ivlad··on Fail2Ban
Often, they do, however configuring it for different applications may be a bigger effort than doing so via fail2ban with minimal log parser tweaking.
ivlad··on Fail2Ban
While I agree fail2ban is a wrong tool to prevent password brute force - better authentication mechanisms should be used instead - it has its uses. For example, it can be used to automatically ban (or alert about) dumb http scanners like gobuster. I am not saying, a determined attacker cannot bypass it, but if it saves me some hassle and raises the bar for them, why should not I do it?

More general, some attacker actions, especially during recon, rely on making many attempts to connect, fetch an URL, resolve FQDN, etc., these could be detected and automatically responded to, making attacker’s job harder and providing extra visibility to defenders.

ivlad··on macOS Sonoma is available today
MacPorts over homebrew 100% all the time.

It’s better suited for a multiuser system (and I share my desktop with my wife who has a different login) and is more stable, too.

ivlad··on Running one’s own root Certificate Authority in 2023
Using RSA in 2023 for a CA that is expected to be around for an extended period of time is just silly.

ECDSA 384 or longer depending on the expected CA lifetime and security margins (see https://www.keylength.com/) is a saner choice.

Also, https://blog.trailofbits.com/2019/07/08/fuck-rsa/

ivlad··on Running one’s own root Certificate Authority in 2023
> Knowledge of the CA private key does not allow for this

Of course it does. You just generate certificates for every TLS handshake you see and MitM them.

And yes, it works for PFS too. There is no difference for MitM.

> In the case of PFS cipher suites (eg EDH) an ephemeral key is used for confidentiality and the endpoint keys are just used for integrity and key authentication. Even with the webserver key you aren't decrypting those streams.

You never encrypt data with a key from certificate, even without PFS. That would be too slow. You generate a pre-master key and then use it to generate keys for symmetric algorithms, like AES or Chacha20, that are actually used for data stream encryption. The only difference between PFS and non-PFS is that in the former case pre-master is generated using some form of DH, with promise of keys being destroyed after some time, and in the later case, client just generates a random key, encrypts it with the public key and sends it to the server.

← PreviousPage 3 of 5Next →