Squeak viruses (was Re: [VIRUS WARNING] Re: Check this)
Andreas.Raab at disney.com
Thu Mar 2 19:34:48 UTC 2000
> There is another approach, which allows running inside a single
> full-featured VM. Use object references as capabilities, and only
> provide *safe* object handles to the code that is being
> loaded. Notice that for Squeak code to do something bad, it must
> first get an object and send a message to it.
> For example, it's impossible to delete a file if you can't get
> an instance of FileDirectory.
This is not true with the current system. You can trivially write a method
And invoking this with
myObject := MyObject new.
myObject iWillShowYouWhatICanDo: 'C:\autoexec.bat'.
would be fatal. A fully fledged capabilities approach has to extend to the
image level as well to work the way you'd expect it to (e.g., preventing
these primitives in any unsecure code). The I/O approach is a lot simpler in
More information about the Squeak-dev