a2
sergiu
a28e42c232446ddd732239b0b17ca406821b0742d9b25e374d5af8c2d66d1a52

Have you ever wondered why #GrapheneOS has a separate PDF viewer?

Well that answer is pretty obvious, it is more secure to have a separate hardened, sandboxed utility designed for that instead of sharing such a responsibility with a much larger app with greater attack surface like a web browser or office suite. It is trivial for some threat actors to deliver weaponized, malicious PDF files to their targets.

If we know all of this, the next step for some may be to wonder "Why is the GrapheneOS PDF viewer secure?", for you, I will explain some of the most important details:

The GrapheneOS PDF Viewer app requires absolutely no user-facing permissions to run, it doesn't ask for any, nor does it need them. Without permissions the app is completely contained in the Android app sandbox and the security access model is far greater.

How the viewer opens a file is through making a false request to Localhost from the WebView and then intercepting that request with a stream of the PDF data. The benefits to this include:

1. We don't needing files access in the WebView (both setAllowFileAccess and setAllowContentAccess are set to false).

2. Allowing us to intercept headers into the request like CSP, Permissions Policy for hardening the sandboxing done via the WebView With CSP, all dynamic and inline CSS and JS is disabled. The only scripts loaded are those used for the viewer itself.

3. In addition to using WebView for PDF Viewer, Vanadium takes the place for the WebView on GrapheneOS, meaning GrapheneOS users take advantage of the exploit protections used in Vanadium.

Even with all of this, the PDF Viewer still has a fair amount of room for improvement when it comes to quality of life features and usability enhancements.

Would love to see more posts like these.

And sounds like nostr clients need some real time spell checking ;))

Replying to Avatar Max DeMarco

πŸ‡―πŸ‡΅How Japan Became the Poorest Country in The World πŸ‡―πŸ‡΅

In this video, nostr:npub1s5yq6wadwrxde4lhfs56gn64hwzuhnfa6r9mj476r5s4hkunzgzqrs6q7z and James Lavish help me understand why a country's debt burden can have devastating effects on people's lives and how #bitcoin fixes this.

Full Video Here: https://youtu.be/C_-to3VCh9c https://v.nostr.build/OvlY.mp4

Watched it and shared with friends. Nice work. Really good to see genuine people going around thr world reporting on the actual state of affairs.

I've ignored it back in 2014... tried to run mining on a PC but couldn't complete the installation. On the other hand the fiat system lured me. I was too young and too stupid. But luckily, I've found my way back.

Still grateful.

Do the work, understand yourself and become bullish.

Rogue money is the best.

This was really interesting. Thanks for sharing

JS/TS flavour dev. Did a lot of front end, last few years mostly with react.

Also quite familiar with aws: cloudformation, lambda, dynamodb, sqs, sns...

I hate classes and love functions (my favourite is array reduce).