HNHacker News
TopNewBestAskShowJobs

mercora

462 karma · joined October 19, 2013

you can contact me via email at news.ycombinator.com@LiLeth.NET
submissionscomments
mercora··on Speeding up Linux disk encryption
i use kexec for reboots and store the keys for disks inside an initramfs which itself is stored on an encrypted boot partition. When i do a cold boot these systems boot into a recovery like OS so i can fix stuff when needed but mainly to do a kexec there (its not perfect but what is). If its possible to avoid this (i.e. i have physical access) i can decrypt the initramfs directly from grub using a passphrase entered locally.

A warm reboot using kexec does not need any intervention from my side and directly boots into the already decrypted initramfs with the key already present and thus able to mount the encrypted volumes including the root volume.

mercora··on Speeding up Linux disk encryption
being able to purge old disks confidently in a secure manner is a upside huge enough to make this statement true in my opinion. There have been numerous incidents even involving companies specializing in securely purging disks. If your data is encrypted there is basically nothing to do you could even outright sell those from your DC or something. Just delete the keys/headers from the disk and you are safe.

Its also not possible to get data injected offline into your filesystem without having the keys. Without encryption you could just get the disk of the targeted server running somewhere and set your implants or what you have. When the server sees the disk back up it looks just like a hiccup or something.

mercora··on Speeding up Linux disk encryption
i remember somewhat recently efforts to parallelize the work of dm-crypt where applicable had been merged. However, i guess having multiple separate encryption parameters and states (read: disks) leaves more opportunity for parallelization of the work especially if disk access patterns are not spread wide enough.
mercora··on How Android developers access installed apps on user’s device [pdf]
you could achieve the same without in-app purchases or this API if you are in control of both apps. You could for example sign the app with the same key and gain privileges by that over your other apps if i recall correctly and if its still true.
mercora··on The case of the missing WAV audio files on the FAT32 SD Card
thanks a lot for dissecting this i was hoping for this ;) If i recall correctly the recording device could read those files without a hitch too. that's probably because it ignored the malformed name too or is it? i am a bit confused on how the device knew where to look at to find those files if not by the name of the parent directory.
mercora··on The case of the missing WAV audio files on the FAT32 SD Card
its a really nice read but i am somewhat sad they neither know what actually happened nor why it happened at all. I hope this gets some attention from someone here that is skilled enough with this kind of things and willing to figure this out as it kinda bugs me now...
mercora··on The PCAP – single file with 50 different protocols
I would probably enjoy your republished site :)
mercora··on He Has 17,700 Bottles of Hand Sanitizer and Nowhere to Sell Them
i honestly don't get what people you are talking about... who did not pay into what system and why does that drive prices for insulin up? I mean i get that 7$ production cost does not translate into a 7$ price tag even without a profit but what is driving the cost of these people that has to be compensated for in insulin pricing?
mercora··on Firecracker: Secure and fast microVMs for serverless computing
i think using an emulated serial connection or similar driver interface could be part of a solution to this.
mercora··on 2020 Leap Day Bugs
huh! i just noticed few hours ago a pi i use has had the wrong date which was set to a day earlier. I quickly determined a faulty ntp server i had hard configured was giving the bogus time. In case it is of interest its address was "144.76.60.190" and was chosen by random chance because i cant resolve names without working time on that machine (don't ask). It appears to be taken offline by now though but i checked its giving the wrong time before changing to another server.

Also, but probably unrelated, my WiFi stopped working exactly 00:00AM CET but that might be unrelated as it does that all the time :)

mercora··on U.S. Signs Peace Deal with Taliban
ACK. i am still curious if this got implemented because of the consent dialog and legal requirements to deliver a service in case consent is declined... maybe it is the first time i see it properly implemented somehow?
mercora··on U.S. Signs Peace Deal with Taliban
whats up with the "text only" version? is it somehow required to deliver any service at all if i decline the consent dialog and this is what they came up with?
mercora··on Cloudflare silently deleted my DNS records
yes that is most likely what happened. A change of the nameservers with authority for your zone for example or updates of DNSEC keys would trigger that too, i think. But most commonly it probably happens when the domain gets a renewed registration period or the contact details for some person changed.

btw here are the dates referred in whois for your domain:

  Updated Date: 2020-02-24T20:32:34Z
  Creation Date: 2015-06-09T15:34:37Z
  Registry Expiry Date: 2021-06-09T15:34:37Z
looks like a change has been done even more recently.
mercora··on Cloudflare silently deleted my DNS records
i think that it would be rather unusual to update timestamps in whois (which i guessed the parent poster was referring to) based on updates to in-zone data. A transfer would be an example of something that would change information in whois and thus update the timestamp noted there for the latest update. it is sometime possible to infer the date of the latest change of in-zone data because the serial of the zone is often constructed by using a date and a counter. But that is actually just convention and not reliable. Its also unlikely the parent poster was referring to this.
mercora··on Cloudflare silently deleted my DNS records
i think the parent poster meant changes done by or for a registrar like shown in whois. Zone changes wont show up there.
mercora··on Why does gigabit internet via coax cable not offer symmetrical speed like fiber?
in Germany Vodafone deployed DOCSIS 3.1 partially and while still not symmetric i get 100Mbit/s down and 50Mbit/s up more or less consistently with DOCSIS 3.0 where i live unless something goes wrong (it does sometimes interfere with LTE here). DOCSIS 3.1 is also available with lots of [0]channels using the newer 1024QAM. they offer up to 1Gbit downstream and 50Mbit upstream for about 70€ a month. i also made a [1]screenshot of the channel usage and stats page of the modems web interface.

[0] https://helpdesk.vodafonekabelforum.de/sendb/belegung-11.htm...

[1] https://gist.github.com/mercora/ef66f5bcd95b060ac25269b17cc6...

mercora··on Procrastination is about managing emotions, not time
i do not favor this example either. to quit smoking is long term commitment to not do something anymore. When i am thinking about procrastination i think about tasks you can be done with. Even if you meant procrastinating before starting to quit i do not think it holds up as a good example because there is no way to be done with it and if i stop i restart at the beginning.
mercora··on Procrastination is about managing emotions, not time
it has written "23rd January 2020" on it when i fetch it and the URL suggests this article has been created (not necessarily written) 21st January 2020 on their CMS.
mercora··on How scientists across three continents produced an Ebola vaccine
if it happens to all or just almost all or even just some of the patients it would still be sharing a somewhat private story from all of them, no? Being accused of sharing this (not so) unique story tells me it was even told to somebody that knew both people. I think you should refrain from that in this profession...
mercora··on Tuv sees black for Tesla: Cybertruck would not get approval in Europe
"inmates" is also likely chosen while sloppily translating from German were "inmate" or "Insasse" can be used for occupant interchangeably in this context.
mercora··on The Nintendo Switch Switch
if you use a cheap router instead of a switch the far end will only see one MAC address which is the one of the router. doing NAT then is as easy as it could be. You could literally use just about any router out of the box without even configuring anything. you can also add an ethernet switch behind this device easily. only limiting a port to a single MAC is therefore somewhat pointless. you would prohibit valid use cases (adding a switch) without hindering any nefarious user (guy with a cheap router). Also, NAT for MAC addresses is a thing although not necessarily the most useful approach in this case...
mercora··on The Nintendo Switch Switch
i am a bit disappointed that what has been done is basically installing linux and setting up a bridge using usb ethernet dongles. not what i was expecting. its still somewhat amusing though.
mercora··on Syntax Highlighting Is Backwards (2018)
I use "widget.content.gtk-theme-override;Adwaita:light" to fix commonly invalid assumptions about default colors and appearances.

It overrides the GTK theme used to render page content and still allows to use a dark theme (or whatever you want) for UI components.

mercora··on The Ripe NCC Has Run Out of IPv4 Addresses
that would be quite uncommon. what happens often though is the reverse. maybe you misread my point?
mercora··on The Ripe NCC Has Run Out of IPv4 Addresses
I don't think that the use of NAT at that level is really feasible to bridge IPv4 networks to IPv6 ones. While you can easily map the entire IPv4 address space into an IPv6 subnet of your choosing this is obviously not possible the other way around. Address mapping would have to be highly dynamic to work at all and there would be no real guarantee addresses stay the same that way. Additionally in order to make this work more or less transparently DNS responses have to be modified breaking in presence of DNSSEC validation (the same as DNS64 in reverse). One could probably avoid this by using something like reverse DS-Lite which is more or less NAT with tunneling combined.

A more common approach to reach IPv6 networks from IPv4 ones is tunneling the traffic on top of your existing IPv4 network. This way you become fully addressable and able to reach both networks almost like you would have been able to with a dual stack setup except that the tunnel reduces your MTU because of the tunneling and that you need an remote endpoint with support for both networks that routes packets to your tunnel accordingly.

Using IPv6 only makes it impossible to reach you from an IPv4 only node while still making it easy to reach other IPv4 host from your side using only NAT techniques. Using IPv4 only its unfeasible to reach arbitrary IPv6 hosts using NAT only and a tunnel setup is more or less required to make it work properly.

mercora··on Bypassing Authentication on SSH Bastion Hosts
additionally you would need to be able to execute code as the targeted user account. I think its acceptable to call this kind of use an attack or backdoor but not the feature itself. I use this feature daily while considering the risks.
mercora··on Bypassing Authentication on SSH Bastion Hosts
dont people authenticate indiviually using their own credentials on a common bastion host? that seems quite odd to me and like the actual issue here. if you got root already on the bastion host there are quite a few ways to obtain credentials i would guess...
mercora··on How Not to Die (2007)
Maybe invest some more time and fix the already present TLS setup by bringing it up to the current state of the art. If you try to connect via HTTPS Firefox stops me from proceeding with a warning about not being able to negotiate a common cipher (SSL_ERROR_NO_CYPHER_OVERLAP).
mercora··on Our Positions
Does that matter? i mean they are running their own CA for use with their offerings on AWS. I am not sure if it is the same CA though.

EDIT: Just checked it and it is the same CA they use for AWS services.

mercora··on Google, Xiaomi, and Huawei affected by zero-day flaw that unlocks root access
If you install an app that has permission to install other apps with arbitrary permission sets... Yes, you must trust them not to do anything stupid or malicious. However this is by choice you don't have to trust them although that means you should not allow them either.

I would agree that conflating external storage options with shared storage was a huge mistake which made developers somewhat unaware that this is something that is actually not sandboxed as anything else would have been. But i think nonetheless it is the responsibility of the developer to not just assume how stuff works and in this case it is quite obvious if you actually happen to ask yourself if something like this would be possible. This is especially true if you require novice users to install your app with delicate permissions as the ability to install other apps.

To be clear on this, they made the choice to use shared storage instead of using storage protected by androids sandboxing and permission systems. They probably made this choice without knowing that they are effectively allowing other apps access to files of their installer because shared storage has been conflated with external storage options but mainly because they did not evaluate the options they had and the implications of those carefully enough.

Apparently Android 10 improved this somehow (probably by making filesystem permissions work as usual).

← PreviousPage 8 of 13Next →