9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions
comment 12mo ago · link · parent
comment 12mo ago · link · parent
159 000 base pairs is ~320 Kbit, or 40 KBytes. I wonder, if that is the minimum size of a cell firmware. Also, if the cell is that simple, can we study it exhaustively and completely? Like, decipher every base pair in DNA, and determine what it is responsible for. And make an interactive website for that.
comment 12mo ago · link · parent
This have been a thing on Japanese TV since long ago, doubling down on the punchlines with subtitles or adding a comment or comeback (conveniently, Japanese text takes less space that Western text, so the characters can be relatively large). So I think they just copied it.
comment 12mo ago · link · parent
match = True
for a, b in pad(entered_pass, real_pass):
match = match and a == b
return match
Then it will be faster as well. I was surprised to find this.comment 12mo ago · link · parent
Isn't it weird? There should be approximately equal number of not married men and women, so there should be some reason why there are less women on dating platforms. Is it because women work more and have less free time? Or because men are so bad? Or because they have an AI boyfriend? Or married men using dating apps shift the ratio?
comment 12mo ago · link · parent
I do not pass through /proc, as it contains not only information about processes (which is not a concern), but a lot of identifying information about a machine. However, lot of modern software due to poor coding and not following standards crashes or exhibits various bugs without /proc, so I wrote a minimal Python /proc emulator using FUSE: https://pastebin.com/s49V5nVL . /proc doesn't allow bind mounting its subdirectories somewhere else, so the only option was FUSE (or writing a kernel module). As you see, with Linux you learn something new every day, like it or not. The emulator is not perfect - it doesn't expose thread information, and, for example, Grand Central Dispatch library [1] terminates the application because of this. Telegram is using the library and crashes randomly because of this. I expected better quality from Apple and Swift.
Most importantly, I run the app as a different user (Android-style), because historically Linux was built around idea of protecting users from each other, and I don't trust namespaces as much. I clear the environment variables as well. Ideally, I should also be closing file descriptors to prevent leaks (for example, you can easily leak a file descriptor to your Wayland server, Dbus or something else).
To use Xorg, I grant access to the app's user. X server has no issues with sharing access to it. I am not sure if one can use Wayland with different users (is uses unix sockets). Pipewire doesn't allow its use by different users, so I have to add a pipewire-pulse plugin listening on localhost, and configure ALSA inside sandbox to connect to that pulseaudio server. Obviously, the app in sandbox has no direct access to audio devices in /dev.
Dbus is also necessary to display tray icons, but you should never grant direct access to it because it is almost like giving the root password. I use xdg-dbus-proxy [2] which I had to patch because originally it only supported running the sandboxed app under the same user. You can still find my patch in open pull requests.
I also did some experimentation with passing through a camera through a fake video4linux device, so that the app cannot know the real camera model, but it is not working great, for example, Gnome Cheese app cannot see it, because it needs not only a kernel device, but something more to detect cameras.
The sandbox cannot use hardware acceleration. It would be not easy to add because every GPU vendor uses its own directories and device files, /sys entries to interact with the hardware and I think you can get the full list only by reverse engineering. Furthermore, I am not sure if it is safe.
This setup is not perfect, and looks like a bunch of random utilities glued with shell scripts (which is not uncommon in Linux world). If I had more time, I would write something better, that can dynamically add and revoke privileges, can provide fake serial numbers and even emulate a working network which sadly loses 100% of sent packets.
I looked into using Flatpak, but they seem to grant full access to /sys, /proc and generally I don't feel that they care much about protection from malware and fingerprinting by legitimate software. Also, as I understand, they run the app as the same user which is not secure. Probably their primary goal is making installation easier but not making the use of software safer. I am not going to use Docker because it officially says that it is not a security tool.
comment 1y ago · link · parent
Also, detecting obfuscated code sounds like an interesting and challenging task.
comment 1y ago · link · parent
And if it's a "professional" setting, the company could hire a part-time developer for writing the sandbox.
comment 1y ago · link · parent
For comparison, in Windows you can use Ctrl+Shift or Alt+Shift to switch layouts and use shortcuts (like Ctrl+Shift+A) with these modifiers. In X, you cannot.
comment 1y ago · link · parent
Also, when using VPN, Google typically uses a language based on IP address, not my language header. I assume the header is only useful for fingerprinting today.
comment 1y ago · link · parent