frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Less is safer: how Obsidian reduces the risk of supply chain attacks

https://obsidian.md/blog/less-is-safer/
59•saeedesmaili•1h ago

Comments

brandonspark•41m ago
missed opportunity for "less is secure"
mpalmer•37m ago
"Secure" is a different, harder promise than safeR.
brandonspark•22m ago
but still along the same lines as "safer". the stresses are different, "safer" has the stress as "SAY-fer" and "secure" has the stress as "sih-KYOOR". the latter sounds more similar (and rhymes better) with "more", the originator of the phrase "less is more"
system7rocks•40m ago
I’ve been using other apps than Obsidian for notes and sharing, so this is nice to read and consider. But isn’t Obsidian an electron app or whatever? Electron has always seemed resource intensive and not native. JavaScript has never struck me as “secure”. Am I just out of touch?
anon7000•34m ago
JavaScript is a very secure language. The browser is a massive success at running secure JavaScript on a global scale. Every website you use is running JavaScript and not able to read other site data. Electron is the same, running v8 to sandbox JavaScript. Assuming you aren't executing user input inside that sandbox (something many programming languages allow, including JS), it's very secure.

The problem with supply chain attacks is specifically related to npm, and not related to JS. npm as an organization needs to be taking more responsibility for the recent attacks and essentially forcing everyone to use more strict security controls when publishing their dependencies.

asgraham•19m ago
Doesn’t this mean browser sandboxing is secure, not JS? Or are you referring to some specific aspect of JS I’m not aware of? (I’m not aware of a lot of JS)

It’s maybe a nit-pick, since most JS is run sandboxed, so it’s sort of equivalent. But it was explicitly what GP asked for. Would it be more accurate to say Electron is secure, not JS?

dghlsakjg•22m ago
Javascript is probably one of the most used, depending on how you measure it, languages on earth.

It runs on a majority of computers and basically all phones. There will be many security issues that get discovered b y virtue of these facts.

What makes you think that "native" apps are any more secure?

CuriouslyC•13m ago
Not a huge electron fan (thank god for tauri), but Obsidian is a fantastic app and you shouldn't let the electron put you off of it. You can even hook a MCP up to it and an agent can use it as a personal knowledge base, it's quite handy.
apitman•31m ago
Love it. Jonathan Blow had a nice thread about dependencies a while back: https://x.com/Jonathan_Blow/status/1924509394416632250
montroser•28m ago
Yes, you are responsible for all the code you ship to your users. Not pinning dependencies is asking for trouble. It is literally, "download random code from the Internet and hope for the best."
lelandfe•16m ago
Pinned dependencies usually have their own dependencies so you are generally always downloading random code and hoping.

I mean, jeeze, how much code comes along for the ride with Electron...

cosmic_cheese•5m ago
The real answer is to minimize dependencies (and subdependencies) to the greatest extent practical. In some cases you can get by with surprisingly few without too much pain (and in the long run, maybe less pain than if you'd pulled in more).
Scramblejams•13m ago
Pinning dependencies also means you're missing any security fixes that came in after your pinned versions. That's asking for trouble too, so you need a protocol by which you become aware of these fixes and either backport them or upgrade to versions containing them.
platers•25m ago
What about the third party extensions?
montroser•19m ago
This is obviously the way to do it, assuming you have the skills and resources to operate in this manner. If you don't, then godspeed, but you have to know going in that you are trading expediency now for risk later. Risk of performance issues, security vulnerabilities, changes in behavior, etc. And when the mess inevitably comes, at whatever inopportune time, you don't really get to blame other people...
doesnt_know•18m ago
Going to preface this post by saying I use and love Obsidian, my entire life is effectively in an Obsidian vault, I pay for sync and as a user I'm extremely happy with it.

But as a developer this post is nonsense and extremely predictable [1]. We can expect countless others like it that explains how their use of these broken tools is different and just don't worry about it!

By their own linked Credits page there are 20 dependencies. Let's take one of those, electron, which itself has 3 dependencies according to npm. Picking one of those electron/get has 7 dependencies. One of those dependencies got, has 11 dependencies, one of those cacheable-request has 7 dependencies etc etc.

Now go back and pick another direct dependency of Obsidian and work your way down the dependency tree again. Does the Obsidian team review all these and who owns them? Do they trust each layer of the chain to pick up issues before it gets to them? Any one of these dependencies can be compromised. This is what it means to be. supply chain attack, you only have to quietly slip something into any one of these dependencies to have access to countless critical user data.

[1] https://drewdevault.com/2025/09/17/2025-09-17-An-impossible-...

dsissitka•5m ago
Coincidentally I did that yesterday. Mermaid pulls in 137 dependencies. I love Obsidian and the Obsidian folks seem like good people but I did end up sandboxing it.
gejose•14m ago
This is one way to look at it, but ignores the fact that most users use third party community plugins.

Obsidian has a truly terrible security model for plugins. As I realized while building my own, Obsidian plugins have full, unrestricted access to all files in the vault.

Obsidian could've instead opted to be more 'batteries-included', at the cost of more development effort, but instead leaves this to the community, which in turn increases the attack surface significantly.

0cf8612b2e1e•11m ago
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.
zargon•5m ago
That's ok. I haven't come across an Obsidian plug-in that's worth introducing a dependency for.
schmichael•4m ago
The Simpsons Springfield Nuclear Plant Security scene in real life.

https://www.youtube.com/watch?v=eU2Or5rCN_Y

justsomehnguy•3m ago
> Obsidian plugins have full, unrestricted access to all files in the vault.

And how exactly you can solve that?

I don't want to press 'allow access' on the every file some plugin is accessing.

gjsman-1000•3m ago
That just sounds like Linux packages; also not a system known for security of desktop apps and scripts especially compared to MacOS, shoot me.

The airliner pilot who gets to fly World War Two's biggest bomber

https://www.bbc.com/future/article/20250918-the-airliner-pilot-who-gets-to-fly-world-war-twos-big...
1•Geekette•4m ago•0 comments

Meta Ray Ban Demo Fails in Best Way by Activating Most Attendee's Glasses

https://mashable.com/article/meta-ray-ban-display-glasses
1•kordlessagain•5m ago•0 comments

You don't need quantum hardware for post-quantum security

https://blog.cloudflare.com/you-dont-need-quantum-hardware/
1•commandersaki•5m ago•0 comments

Show HN: Free and Anonymous Age Verification Demo

https://www.youtube.com/watch?v=MmcUJ5u65Q0
1•jwally•5m ago•0 comments

Trump admin imposes $100k fee for H1B Visas

https://www.cnn.com/2025/09/19/politics/trump-h1b-visa-fee
1•roadnottaken•6m ago•1 comments

The U.S. Is Quietly Pausing Some Arms Sales to Europe

https://www.theatlantic.com/national-security/archive/2025/09/arms-sale-europe-trump-colby-ukrain...
1•breve•6m ago•0 comments

Air traffic equipment outage brings travel to near standstill across US

https://endtimeheadlines.org/2025/09/developing-massive-air-traffic-equipment-outage-brings-trave...
1•bookmtn•7m ago•0 comments

The central question to my life

https://theborderofnormal.substack.com/p/the-central-question-to-my-life
2•Netherland4TW•8m ago•0 comments

Genius Act Implementation request for comments

https://www.federalregister.gov/documents/2025/09/19/2025-18226/genius-act-implementation
1•hippich•13m ago•0 comments

New attack on ChatGPT research agent pilfers secrets from Gmail inboxes

https://arstechnica.com/information-technology/2025/09/new-attack-on-chatgpt-research-agent-pilfe...
1•touristtam•14m ago•0 comments

Microplastic exposure linked to Alzheimer's disease in mice with APOE4 gene

https://medicalxpress.com/news/2025-09-microplastic-exposure-linked-alzheimer-disease.html
1•PaulHoule•15m ago•0 comments

Cinnamon for diabetes – Vitamin D for Covid-19 – BAD SCIENCE

https://gidmk.substack.com/p/cinnamon-for-diabetes-and-vitamin
2•hilux•15m ago•0 comments

Sites Using PQC

https://www.netmeister.org/blog/pqc-use-2025-09.html
2•8organicbits•17m ago•0 comments

Forking Styled Components

https://github.com/sanity-io/styled-components-last-resort/blob/main/README.md
1•coloneltcb•21m ago•0 comments

The paths of unmanned bicycles pushed until they fall over (2018)

https://cyclingmagazine.ca/sections/news/paths-unmanned-bicycles-pushed-fall/
1•thunderbong•24m ago•0 comments

To stop Arctic ice from disappearing, one company tries making it thicker

https://theworld.org/stories/2025/09/18/to-stop-arctic-ice-from-disappearing-one-company-tries-ma...
2•indigodaddy•27m ago•0 comments

Researchers discover new methods for making smaller microchips

https://hub.jhu.edu/2025/09/12/new-materials-for-smaller-microchips/
1•hhs•31m ago•0 comments

From $0 to $40M ARR: Inside the tech that powers Bolt.new

https://newsletter.posthog.com/p/from-0-to-40m-arr-inside-the-tech
1•brazukadev•31m ago•0 comments

Show HN: I replaced 47 GCs, 12 spreadsheets, and 5 apps with 1 tool

https://planaway.xyz/
1•mehrajhasan•36m ago•1 comments

The New York Times ports its newspaper delivery system from COBOL to Java (2018)

https://arxiv.org/abs/1808.03724
1•gaws•37m ago•0 comments

H1B holder outside the US? Return within the next 24 hours

https://bsky.app/profile/reichlinmelnick.bsky.social/post/3lz7ybcsn522n
3•afavour•39m ago•1 comments

Restriction on Entry of Certain Nonimmigrant Workers

https://www.whitehouse.gov/presidential-actions/2025/09/restriction-on-entry-of-certain-nonimmigr...
16•quantumwannabe•41m ago•7 comments

Taking the right kind of vibe-coding risk

https://nadeeshacabral.com/posts/vibe-coding-risk/
1•lunarcave•44m ago•0 comments

The First Ultrasonic Chef's Knife for Home Cooks

https://www.youtube.com/watch?v=cXjbSVt9XNM
1•kevinak•46m ago•0 comments

SandDance: Visually explore, understand, and present your data

https://microsoft.github.io/SandDance/
1•gdevillers•48m ago•0 comments

What's the Weirdest Way to Say "River" in China?

https://www.feelingthestones.com/p/whats-the-weirdest-way-to-say-river
1•Thevet•53m ago•0 comments

You Like Too Many Things. Now What?: Leaning into my scattered thinking style

https://chillphysicsenjoyer.substack.com/p/you-like-too-many-things-now-what
1•crescit_eundo•54m ago•0 comments

Raising the fee that companies pay to sponsor H1B applicants to $100k

https://bsky.app/profile/atrupar.com/post/3lz7tewnfrr23
1•vinnyglennon•56m ago•1 comments

Fifty Years of Open Source Software Supply-Chain Security

https://cacm.acm.org/practice/fifty-years-of-open-source-software-supply-chain-security/
1•sohkamyung•57m ago•0 comments

Update for NGI Zero Entrust: GNS to DNS Migration

https://www.gnunet.org/en/news/2025-08-NGI-Entrust-GNS-TLDs-Update.html
1•btdmaster•59m ago•0 comments