News for hackers. Stuff that matters.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by HSO on Saturday September 20, 2025 @01:48AM (#45310762)
What if you run little snitch and block any communications from obsidian to anything?
Re:Less is safer: how Obsidian reduces the risk of supply ch... by elric on Saturday September 20, 2025 @03:08AM (#45311167)
Or firejail. Or QubesOS using a dedicated VM. There are options, but it would still be nice if Obsidian had a more robust security model.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by johnisgood on Saturday September 20, 2025 @03:13AM (#45311195)
I have been using firejail for most of these kind of applications, be it Obsidian, Discord, or the browser I am using. I definitely recommend people start using it.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by dotancohen on Saturday September 20, 2025 @04:01AM (#45311393)
Sell it to us! Why do you use specifically firejail?

There are so many options, from so many different security perspectives, that analysis paralysis is a real issue.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by johnisgood on Saturday September 20, 2025 @06:21AM (#45312026)
I feel like I should keep track of all my comments on HN because I remember writing a lengthy comment on firejail more than once. I cannot keep doing this. :D

For user-space, there is usually bubblewrap vs. firejail. I have not personally used bubblewrap, so I cannot comment on that, but firejail is great at what it does.

The last comment was about restricting clipboard access to either X11 or Wayland which is possible with firejail quite easily, so if you want that, you can have that.

You can do a LOT more with firejail though.

https://wiki.archlinux.org/title/Firejail

https://man.archlinux.org/man/firejail.1

Re:Less is safer: how Obsidian reduces the risk of supply ch... by rufugee on Saturday September 20, 2025 @07:56AM (#45312546)
So do you configure firejail to give each app their own separate, permanent home directories? Like "firejail --private=/home/user/firejails/discord discord", "firejail --private=/home/user/firejails/chromium chromium", and so on?
Re:Less is safer: how Obsidian reduces the risk of supply ch... by johnisgood on Saturday September 20, 2025 @11:03AM (#45313982)
I have my own Discord.profile!

This is my ~/.config/firejail/Discord.profile[1]:

  include disable-common.inc
  include disable-devel.inc
  include disable-interpreters.inc
  include disable-shell.inc

  noblacklist /sys/fs
  noblacklist /sys/module

  keep-config-pulse
  keep-dev-shm

  name discord
  apparmor
  caps.drop all
  caps.keep sys_admin,sys_chroot
  netfilter
  nodvd
  #nogroups
  #noinput
  nonewprivs
  noroot
  notv
  #nou2f
  #novideo
  protocol unix,inet,inet6
  #shell none

  disable-mnt
  private-cache
  #private-tmp

  noexec /tmp

  dbus-user filter
  dbus-user.talk org.freedesktop.Notifications

  private-bin Discord,cut,echo,egrep,electron,electron[0-9],electron[0-9][0-9],grep,head,sed,sh,tr,xdg-mime,xdg-open,zsh,gzip,wget,curl,notify-send
  private-etc alternatives,asound.conf,ca-certificates,crypto-policies,fonts,group,ld.so.cache,ld.so.preload,localtime,login.defs,machine-id,password,pki,pulse,resolv.conf,ssl

  noblacklist /usr/lib/discord/
  whitelist ${HOME}/.config/discord
  read-write ${HOME}/.config/discord
  whitelist ${DOWNLOADS}
  whitelist ${HOME}/.config/pulse/*

  include whitelist-common.inc
  include whitelist-var-common.inc
  include whitelist-run-common.inc
  include whitelist-runuser-common.inc
I have some things commented out but you could probably uncomment most.

Some has this, too:

  disable-mnt
  private-dev
  private-cache

  env http_proxy=socks5://127.0.0.1:9050
  env https_proxy=socks5://127.0.0.1:9050
FWIW, once you start whitelisting, it will only have access to those directories and files only, so Discord has no access to anything other than its own directory and ${DOWNLOADS}, which I should probably change.

You should check out the default profiles for many programs / apps under directory "/etc/firejail".

[1] You run it via "firejail Discord" or "firejail ./Discord" if you name it "Discord.profile".

Re:Less is safer: how Obsidian reduces the risk of supply ch... by rufugee on Saturday September 20, 2025 @11:39AM (#45314279)
This is great. Thanks for the detailed reply!
Re:Less is safer: how Obsidian reduces the risk of supply ch... by johnisgood on Monday September 22, 2025 @12:57PM (#45336229)
It was not THAT detailed and it makes me feel a bit guilty, so if you have any questions let me know.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by wonger_ on Saturday September 20, 2025 @06:31AM (#45312081)
FYI you can search your comment history with hn.algolia.com:

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

Re:Less is safer: how Obsidian reduces the risk of supply ch... by johnisgood on Saturday September 20, 2025 @11:12AM (#45314028)
Thank you, exactly what I have been looking for!
Re:Less is safer: how Obsidian reduces the risk of supply ch... by lioeters on Saturday September 20, 2025 @01:31PM (#45315355)
> bubblewrap vs. firejail

In case anyone else is curious, I found the following comparison in bubblewrap's repo.

- https://github.com/containers/bubblewrap#related-project-com...

I'm gonna try both and see which one I like. Thanks for this info! You're sure living up to your user name there. (:

Re:Less is safer: how Obsidian reduces the risk of supply ch... by johnisgood on Wednesday September 24, 2025 @12:56PM (#45363022)
To comment on the Pulseaudio bit from the link: you will want "keep-config-pulse" and "whitelist ${HOME}/.config/pulse/*".

> You're sure living up to your user name there. (:

You are too kind, thank you!

Re:Less is safer: how Obsidian reduces the risk of supply ch... by formerly_proven on Saturday September 20, 2025 @03:08AM (#45311159)
Little snitch can block open(2)?
Re:Less is safer: how Obsidian reduces the risk of supply ch... by 4ndrewl on Saturday September 20, 2025 @03:34AM (#45311288)
I believe they're saying it can open, it just can't send the data anywhere.

Seems a little excessive, but here we are.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by notpushkin on Saturday September 20, 2025 @05:45AM (#45311853)
It still can encrypt everything and demand you pay some ₿₿₿₿.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by lxgr on Saturday September 20, 2025 @06:37AM (#45312113)
If it can open and write any file on the OS, it's pretty much game over. Too many ways to exfiltrate data even without network/socket access.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by HSO on Saturday September 20, 2025 @08:16AM (#45312679)
Worse, what keeps this from editing the config files for Little Snitch (or similar blockers)?
Re:Less is safer: how Obsidian reduces the risk of supply ch... by TomaszZielinski on Saturday September 20, 2025 @08:38AM (#45312858)
I believe LS has some protections against this. Never tried them, but there are config related security options, incl. protection against synthetic events. So they definitely put some thought into that.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by 4ndrewl on Saturday September 20, 2025 @09:09AM (#45313080)
File system permissions?
Re:Less is safer: how Obsidian reduces the risk of supply ch... by HSO on Saturday September 20, 2025 @05:45AM (#45311855)
Very, very good point

I got lazy

Time to crank the paranoidmeter up again

ty

Re:Less is safer: how Obsidian reduces the risk of supply ch... by TomaszZielinski on Saturday September 20, 2025 @08:35AM (#45312838)
I treat LS as a privacy/anti-telemetry/anti-accident tool, not as anti malware.

Obviously it can detect malware if there’s a connection to some weird site, but it’s more like a bonus than a reliable test.

If you need to block FS access, then per app containers or VMs are the way to go. The container/VM sandboxes your files, and Little Snitch can then manage externa connectivity (you might still want to allow connection to some legit domains—-but maybe not github.com as that can be use to upload your data. I meant something like updates.someapp.com)