You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Bob <ci...@earthlink.net> on 2005/05/10 03:59:28 UTC
Re: State of the World (it's security)
>> Maybe it seems like a grim environment for starting a new project.
>> Well, considered on technical grounds alone, it is. One needs a
>> pretty compelling technical story to do better than already existing
>> projects.
As I mentioned in my last post, proper implementation (and
verification) of the Java Security Model is a strongly compelling
technical story. And it is still WIDE OPEN. If you wish to develop a
protocol in which (potentially malicious) code can be WRITTEN on
computer A, then SENT to computer B and run in a sandbox in a secure
and flexible manner as determined by the administrator of System B ----
then there is NO open source project that will support that
functionality, nor is there currently any open source project that
intends to build that functionality. Not GCJ. Not Kaffee. Not .GNU.
Not Mono (although Mono seems to be the closest, maybe).
The Palladium proposal, to the extent it is still alive, should give
extra impetus for this project. Microsoft has argued that Palladium
will make your computer "more secure" against viruses. This is FUD
designed to scare people into "trusted computing". Well, so will Java
and Java-like systems, and they'll do it without wresting control of
the computer from the end user. Of course, only commercial Java
systems do it today. But imagine the potential a secure Java or
Java-like system could have, if it were easily integratable into a wide
range of OS and desktop applications.
-- Bob
Re: State of the World (it's security)
Posted by Anthony Green <gr...@redhat.com>.
On Mon, 2005-05-09 at 21:59 -0400, Bob wrote:
> If you wish to develop a
> protocol in which (potentially malicious) code can be WRITTEN on
> computer A, then SENT to computer B and run in a sandbox in a secure
> and flexible manner as determined by the administrator of System B
> ----
> then there is NO open source project that will support that
> functionality, nor is there currently any open source project that
> intends to build that functionality. Not GCJ. Not Kaffee.
We intend to have this functionality in GCJ, and much has already been
done this past year to get us closer to this goal (specifically, the
ability to run gcjwebplugin safely
( http://www.nongnu.org/gcjwebplugin/ )).
AG
Re: State of the World (it's security)
Posted by Anthony Green <gr...@redhat.com>.
On Tue, 2005-05-10 at 21:43 -0400, Bob wrote:
> If Harmony security works only for applets, then it will not be useful
> for my needs.
GNU Classpath implements java.lang.SecurityManager and related code
which may be used in any application. I think we're just left with
simple bugs to fix as opposed to big wide gaping holes with no plans to
fill them.
> Moreover, it needs to be able to securely run Java code
> that wasn't specifically made for Harmony (i.e. the Java spec needs to
> be followed).
That's what's been done.
AG
Re: State of the World (it's security)
Posted by Mark Wielaard <ma...@klomp.org>.
Hi,
On Tue, 2005-05-10 at 21:43 -0400, Bob wrote:
> > You might be able to expand this idea to arbitrary programs run
> within the
> > runtime. I haven't investigated yet.
>
> If Harmony security works only for applets, then it will not be useful
> for my needs. Moreover, it needs to be able to securely run Java code
> that wasn't specifically made for Harmony (i.e. the Java spec needs to
> be followed).
This would obviously be in addition to the normal permission model used.
Which as Anthony explained is already in place in GNU Classpath. It is
just a suggestion for a fun project (imho).
Cheers,
Mark
Re: State of the World (it's security)
Posted by Bob <ci...@earthlink.net>.
> You might be able to expand this idea to arbitrary programs run
within the
> runtime. I haven't investigated yet.
If Harmony security works only for applets, then it will not be useful
for my needs. Moreover, it needs to be able to securely run Java code
that wasn't specifically made for Harmony (i.e. the Java spec needs to
be followed).
Re: State of the World (it's security)
Posted by Mark Wielaard <ma...@klomp.org>.
Hi,
On Tue, 2005-05-10 at 08:47 -0400, Bob wrote:
> > Other interesting approaches are [..] Integrate
> > gcjwebplugin
> > out of process with SELinux mandatory access controls when run from
> > mozilla.
>
> I'm somewhat confused here. Will this security implementation only
> work for applets being run from within Mozilla, or are the more general
> Java 2 Security Model ideas being implemented, available to all Java
> programs?
This was just a suggestion to look into if you want an interesting
challenge. I believe really sandboxing the gcjwebplugin runtime spawned
for mozilla with SELinux access controls will provide an extra layer of
security that is even harder to escape from by malicious code. You might
be able to expand this idea to arbitrary programs run within the
runtime. I haven't investigated yet.
Cheers,
Mark
Re: State of the World (it's security)
Posted by Bob <ci...@earthlink.net>.
> Please do some research before posting...
I'm glad to learn about all the progress that's being made. My
comments are based on correspondence I had last summer with the FSF.
At that time, there were no compunctions against criticizing me for
"falling into the Java trap", and yet no expressed interest in building
a free implementation of the security model either. The attitude was
"if your program can't run on GCJ, it's not worth writing." As of last
summer, Java was the ONLY system that could do what I needed on Linux.
Also, as you point out, the security implementations you describe have
made encouraging progress, but have not reached a trustworthy state.
> Classpath and report (and fix!) any issues found. Integrate
> gcjwebplugin
> out of process with SELinux mandatory access controls when run from
> mozilla.
I'm somewhat confused here. Will this security implementation only
work for applets being run from within Mozilla, or are the more general
Java 2 Security Model ideas being implemented, available to all Java
programs?
== Bob
Re: State of the World (it's security)
Posted by Mark Wielaard <ma...@klomp.org>.
Hi,
On Mon, 2005-05-09 at 21:59 -0400, Bob wrote:
> >> Maybe it seems like a grim environment for starting a new project.
> As I mentioned in my last post, proper implementation (and
> verification) of the Java Security Model is a strongly compelling
> technical story. And it is still WIDE OPEN. If you wish to develop a
> protocol in which (potentially malicious) code can be WRITTEN on
> computer A, then SENT to computer B and run in a sandbox in a secure
> and flexible manner as determined by the administrator of System B ----
> then there is NO open source project that will support that
> functionality, nor is there currently any open source project that
> intends to build that functionality. Not GCJ. Not Kaffee. Not .GNU.
Please do some research before posting. GNU Classpath provides all the
packages, classes and code needed by the core libraries to support this.
The various runtimes (ikvm, gcj and kaffe) all come with a byte code
verifier. There is also a Mauve verify module containing verifier tests.
What is missing is a jarsigner utility (but jar verification works,
including assigning ProtectionDomains) and there certainly some bugs
(see gcc bugzilla to find some) since it hasn't been stress tested. This
is the reason gcjwebplugin is currently blocked from entering Debian and
Fedora, they (rightly!) think it is currently to high a security risk.
What needs to be done to complete all this is write more testcases for
the Mauve verifier component. Audit all code. And actually fix any
issues found. Probably the best way to do this is by getting a copy of
Inside Java 2 Architecture, API Design and Implementation from Li Gong
(get the second edition!) and go through it and the GNU Classpath
library code to make sure all permission checks are done at the right
places.
Other interesting approaches are using valgrind to find low level bugs.
Or run tools like FindBugs, CheckStyle, JLint, PMD, etc over GNU
Classpath and report (and fix!) any issues found. Integrate gcjwebplugin
out of process with SELinux mandatory access controls when run from
mozilla.
Cheers,
Mark