Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maybe using WASM would address the security issues #2

Open
wtholliday opened this issue Aug 31, 2023 · 1 comment
Open

maybe using WASM would address the security issues #2

wtholliday opened this issue Aug 31, 2023 · 1 comment

Comments

@wtholliday
Copy link

Cool project!

I was thinking that perhaps using wasm for the executables would address the security disadvantages. Processes couldn't snoop on whatever memory they wanted.

You could start with a wasm interpreter to get something running quickly, and then use a JIT later. Also an interpreter could stop after executing some number of instructions, so a process can't hang the OS (and a JIT could instrument loops to occasionally check for excessive runtime).

Just some thoughts. I also found this project https://github.com/kwast-os/kwast. Good luck!

@Ruddle
Copy link
Owner

Ruddle commented Aug 31, 2023

Thanks,

Using an interpreter is great solution for security. In fact I started to build a small one in app_console for a proof of concept.
It is kind of an easy way out. But it has its disadvantages:

  • Performance is lower, although I believe it could be the same order of magnitude, and a very small price to pay for security.
  • It is one more level of indirection between the app developer and the hardware. Currently in Fomos there is only 1 indirection, the context. It may or may not be enough.

The Wasm format seems like great choice once you accept to ship an interpreter in an OS.

Let's try both approach !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants