News for hackers. Stuff that matters.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by 0cf8612b2e1e on Friday September 19, 2025 @07:45PM (#45308149)
Don’t most plugin models work this way? Does VSCode, Vim, Emacs, and friends do anything to segregate content? Gaming is the only area where I expect plugins have limited permissions.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by jabbany on Friday September 19, 2025 @07:55PM (#45308244)
Browser extensions also have a relatively robust permissions-based system.

If they wanted to, one would guess that browser-ish local apps based on stuff like Electron/node-webkit could probably figure out some way to limit extension permissions more granularly.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by 0cf8612b2e1e on Friday September 19, 2025 @08:02PM (#45308286)
I would have thought, but it has been how many years, and as far as I know, there is still no segregation for VSCode extensions. Microsoft has all the money and if they cannot be bothered, not encouraged that smaller applications will be able to iron out the details.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by jabbany on Friday September 19, 2025 @08:07PM (#45308319)
I think it's just because supply-chain attacks are not common enough / their attack surfaces not large enough to be worth the dev time... yet...

Sneak in a malicious browser extension that breaks the permissions sandbox, and you have hundreds of thousands to millions of users as an attack surface.

Make a malicious VSCode/IDE extension and maybe you hit some hundreds or thousands of devs, a couple of smaller companies, and probably can get on some infosec blogs...

Re:Less is safer: how Obsidian reduces the risk of supply ch... by connicpu on Friday September 19, 2025 @09:49PM (#45309290)
The solution at my job is you can only install extensions vetted by IT and updates are significantly delayed. Works well enough but sucks if you want one that isn't available inside the firewall.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by anon7000 on Saturday September 20, 2025 @03:54AM (#45311372)
The time has come. The nx supply chain attack a couple weeks ago literally exfiltrated admin tokens from your local dev machine because the VS code extension for nx always downloaded the latest version of nx from npm. And since nx is a monoreop tool, it’s more applicable to larger projects with more valuable tokens to steal.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by fauigerzigerk on Saturday September 20, 2025 @05:27AM (#45311771)
>Make a malicious VSCode/IDE extension and maybe you hit some hundreds or thousands of devs, a couple of smaller companies, and probably can get on some infosec blogs..

Attackers just have to hit one dev with commit rights to an app or library that gets distributed to millions of users. Devs are multipliers.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by sunaookami on Saturday September 20, 2025 @07:05AM (#45312257)
>Browser extensions also have a relatively robust permissions-based system.

Yeah and they suck now. We need a better security model where it's still possible to do powerful stuff on the whole machine (it's MY computer after all) without compromises.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by Barrin92 on Saturday September 20, 2025 @12:01PM (#45314470)
>We need a better security model where it's still possible to do powerful stuff on the whole machine

That's not possible. If you can do powerful stuff on the whole machine by definition you have no security. Security is always a question of where you create a perimeter. You can hand someone a well defined box in which they can do what they want, you can give someone broader access with fewer permissions, but whether vertically or horizontally to have security is to exercise control and limit an attack surface.

That's even implicit in the statement that it's YOUR computer. The justification being that there's a dividing line between your computer and other computers. If you'd be part of of a network, that logic ceases to hold. Same when it comes to components on your machine.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by erik on Friday September 19, 2025 @08:13PM (#45308373)
> Gaming is the only area where I expect plugins have limited permissions.

Do you mean mods on Steam? If you do, then that's down to the individual game. Sandboxing mods isn't universal.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by 0cf8612b2e1e on Friday September 19, 2025 @08:39PM (#45308573)
I was thinking more Lua/Luaua which make it trivial to restrict permissions. In general, the gaming client has access to a lot more information than it shares, so to prevent cheats from plugins, the developers have to be explicit about security boundaries.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by schmichael on Friday September 19, 2025 @08:06PM (#45308310)
vim and emacs are over 30 years old and therefore living with an architecture created when most code was trusted. Encrypting network protocols was extremely rare, much less disks or secrets. I don't think anything about the security posture of vim and emacs should be emulated by modern software.

I would say VSCode has no excuse. It's based on a browser which does have capabilities to limit extensions. Huge miss on their part, and one that I wish drew more ire.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by tlavoie on Saturday September 20, 2025 @03:16AM (#45311209)
I'd love to see software adopt strong capabilities-based models that enforce boundaries even within parts of a program. That is, with the principle of least authority (POLA), code that you call is passed only the capabilities you wish (e.g. opening a file, or a network socket), and not everything that the current process has access to. Thomas Leonard's post (https://roscidus.com/blog/blog/2023/04/26/lambda-capabilitie...) covers this in great detail, and OCaml's newer Eio effect system will has aspects of this too.

The Emily language (locked-down subset of OCaml) was also interesting for actively removing parts of the standard library to get rid of the escape hatches that would enable bypassing the controls.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by debugnik on Saturday September 20, 2025 @07:15AM (#45312303)
> OCaml's newer Eio effect system

Eio is an IO library out of many competing ones, not OCaml's effect system. The capabilities are an Eio thing, not an effects thing.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by tlavoie on Saturday September 20, 2025 @12:41PM (#45314907)
Gotcha, thanks!
Re:Less is safer: how Obsidian reduces the risk of supply ch... by schmichael on Sunday September 21, 2025 @07:18PM (#45327542)
Sadly capabilities are older than emacs. I’d welcome advancements here but their practical utility is clearly not a foregone conclusion.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by tlavoie on Sunday September 21, 2025 @10:14PM (#45328488)
It seems to me that it's not their utility, but lack of support in general for the sorts of changes that enable its wider use. E.g., looks like it's getting practical use in FreeBSD: https://www.cl.cam.ac.uk/research/security/capsicum/freebsd....

Linux has seccomp, but I think that was changing the access for an entire process. The language-focused aspect seems useful to me, from that application aspect where maybe I want access to something, but I don't want to pass that access on to all the code that I might call from a library.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by formerly_proven on Saturday September 20, 2025 @06:39AM (#45312130)
iirc vscode has RCE by design when you use the remote editing feature (i.e. editing files on a server, which is obviously a bad idea anyway, but still a feature) and nobody gives a fuck.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by skydhash on Saturday September 20, 2025 @07:28AM (#45312368)
You have to get out the beaten path to get plugins into Vim/Emacs. It's not difficult, but you don't have access to a marketplace open to the world from the get go. I think Emacs have ELPA, but I would put that at the level of OS repos like Debian/Alpine.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by gejose on Friday September 19, 2025 @08:35PM (#45308539)
Perhaps, but I think what you might put onto Obsidian (personal thoughts, journal entries etc) can be more sensitive than code.
Re:Less is safer: how Obsidian reduces the risk of supply ch... by raincole on Saturday September 20, 2025 @01:49AM (#45310771)
> Gaming is the only area where I expect plugins have limited permissions.

It's pretty much the opposite. A lot of modding communities' security model is literally just to "trust the community."

Example: https://skylines.paradoxwikis.com/Modding_API

> The code in Mods for Cities: Skylines is not executed in a sandbox.

> While we trust the gaming community to know how to behave and not upload malicious mods that will intentionally cause damage to users, what is uploaded on the Workshop cannot be controlled.

> Like with any files acquired from the internet, caution is recommended when something looks very suspicious.

Re:Less is safer: how Obsidian reduces the risk of supply ch... by debugnik on Saturday September 20, 2025 @07:25AM (#45312353)
I think they meant games that specifically come with a sandboxed scripting layer. Otherwise, I agree that most mods are indeed just untrusted patches for a native executable or .NET assembly.

I guess the intent behind Cities Skylines's support for mods is just removing the need for a mod manager and enabling Steam Workshop support.