Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » ANNOUNCEMENT - Security "Work Area" in Equinox/Eclipse
ANNOUNCEMENT - Security "Work Area" in Equinox/Eclipse [message #46320] Tue, 18 January 2005 15:49 Go to next message
Jay Rosenthal is currently offline Jay RosenthalFriend
Messages: 23
Registered: July 2009
Junior Member
Please see the update overviews in the Security work area of Equinox. The
goal of the work area is to further discussion and developement of Eclipse
and the Eclipse RCP as a secure application platform.

http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/equi nox-home/security/index.html

--
Jay Rosenthal
IBM Software Group
Workplace, Portal and Collaboration Software
Workplace Client Technologies, Rich Edition - Security
Re: ANNOUNCEMENT - Security "Work Area" in Equinox/Eclipse [message #46351 is a reply to message #46320] Tue, 18 January 2005 22:20 Go to previous messageGo to next message
Ted A. Habeck is currently offline Ted A. HabeckFriend
Messages: 7
Registered: July 2009
Junior Member
Jay Rosenthal wrote:
> Please see the update overviews in the Security work area of Equinox. The
> goal of the work area is to further discussion and developement of Eclipse
> and the Eclipse RCP as a secure application platform.
>
> http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/equi nox-home/security/index.html
>
Starting Eclipse 3.0 with a SecurityManager enabled to run with Java 2
security turned on requires a custom tailored java policy for the
installed codebase. Specifically, it requires granting
java.security.AllPermissions to all the .jar files in the OSGI plug-ins
classpath.

Using an automated static-analysis tool, I've been analyzing the code to
identify Java 2 security permission requirements for the Eclipse 3.0
codestream. I have been modifying the codebase to enable Java 2
security. This has included adding calls to
AccessController.doPrivileged() to prevent plug-ins from requiring
unnecessary permissions. Thus far I've completed updates to 50% of the
org.eclipse.osgi_3.0.0 plugin. Detailed reports on the current analysis
are available at URL:
http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/equi nox-home/security/EJS/ejs.html.


To enable Java 2 security for the RCP, a few more plugins will need to
be modified. This includes SWT and UI, which will be a bit more
challenging!

Additional Java 2 related security background documentation is available
from the sources appended at the bottom of this posting.

I'd like to open up the discussion of this work.

Thanks.
Ted

References:

Books:
“Java 2 Network Security” Second Edition (June 1999). Marco Pistoia,
Duane F. Reller, Deepak Gupta, Milind Nagnur, Ashok K. Ramani.
http://www.redbooks.ibm.com SG24-2109-01.
“Inside Java™ 2 Platform Security”, Second Edition. Li Gong, Gary
Ellison, Mary Dageforde. http://www.javaseries.com Addison-Wesley ISBN
0-201-78791-1.
“Enterprise Java™ Security” Marco Pistoia, Nataraj Nagaratnam, Larry
Koved, Anthony Nadalin. Addison-Wesley ISBN: 0-321-11889-8

Web sites:

http://www.research.ibm.com/javasec
http://java.sun.com/security
Re: ANNOUNCEMENT - Security "Work Area" in Equinox/Eclipse [message #46379 is a reply to message #46320] Thu, 20 January 2005 20:52 Go to previous messageGo to next message
Christophe Elek is currently offline Christophe ElekFriend
Messages: 38
Registered: July 2009
Member
"Jay Rosenthal" <jrosenth@notesdev.ibm.com> wrote in
news:csjbg2$75p$1@www.eclipse.org:

> Please see the update overviews in the Security work area of Equinox.
> The goal of the work area is to further discussion and developement of
> Eclipse and the Eclipse RCP as a secure application platform.
>
> http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/equi nox-home/se
> curity/index.html
>

There are couple thinks we investigated when we first started Update
Manager, I will post them here, who knows :)

1) It seems there is an ANT task to allow signing JAR
http://ant.apache.org/manual/CoreTasks/signjar.html

2) the Update Manager follow java.policy and java.security when searching
for a truststore: see spec

3) There is a way to specify a truststore on an HTTP server (so you can
share it)

4) We could not find a way to prevent execution of loaded plugin because
eclipse is by essence running in a non-secure environment (the machine of
the hacker). Even encrypting bytecode (heavy) could be cracked

5) There was some kind of basic cert management and password management
in WebDav (I used the code in UM but did not persist)

6) Certificate and Identity management is usually not performed by the
user. or some advanced user then. Managing certificate, CRL and other PKI
is not 'very' user friendly

7) controlling what is loaded or not must be done in a central secure
location either at the customer site or centrally in a secure site from
the company (see #4)

8) JAAS was not present :) so we tried to see if we could implement the
notes kind of ACL and authentication, but it linked back to #7, central
secure place.

9) We defined the 'secure site' for Update Manager, delegating (what can
be seen) to teh owner of the site using server side computation. The
Authentication and authorization mechanism works today but is part of the
server (We demoed it with a servlet that dynamically lists the update you
are allowed to see)

9) I still believe certificate management (Authentication), pure user
Authentication and Authorization are different 'beasts' especially is
used in the desktop or embedded environment

10) We should support HTTPS now as I believe all eclipse ref to resources
uses URL and JDK 1.4 supports JSSE no ?

11) We thought about having eclipse or the products based on eclipse,
deliver their own JDK with their own certificate in cacerts. This would
have required eclipse or other product to 'sign' updates with their
certificate which could be cheaper than buying one from Verisign or
thawte. It was complex and we did not have the technology to update the
JDK from update manager

That is all I remember now :)
Cheers, I would be happy to help if I can


--
Christophe Elek
Complex and difficult problem resolution specialist
IBM Software Groupe - Support
Eclipse Project - Update Core
Re: ANNOUNCEMENT - Security "Work Area" in Equinox/Eclipse [message #46408 is a reply to message #46320] Fri, 21 January 2005 16:36 Go to previous messageGo to next message
Joel Kamentz is currently offline Joel KamentzFriend
Messages: 30
Registered: July 2009
Member
It appears that part of this goal is to use codebase -based security
in Eclipse. I certainly think this is a good idea -- some security is
better than none.

However, I wonder.... Is there an inherent conflict between using
codebase -based policy and the OSGi notion of security for bundles?
Does the Eclipse stuff even support the management (and persistence)
of permissions for bundles?

It seems like OSGi (or at least Eclipse on top of OSGi) wants to have
a single ProtectionDomain for _everything_ in a single bundle. If a
bundle contains several jars, some signed differently than others,
then what? It certainly doesn't seem possible to have the Policy
grant permissions based upon signer. (Not without doing a lot of
DomainCombiner hacking along the lines of how JAAS is implemented.)

And what about fragments?

Just curious as to how you think this will all fit together.

Joel Kamentz

On Tue, 18 Jan 2005 10:49:51 -0500, "Jay Rosenthal"
<jrosenth@notesdev.ibm.com> wrote:

>Please see the update overviews in the Security work area of Equinox. The
>goal of the work area is to further discussion and developement of Eclipse
>and the Eclipse RCP as a secure application platform.
>
> http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/equi nox-home/security/index.html
Re: ANNOUNCEMENT - Security "Work Area" in Equinox/Eclipse [message #46437 is a reply to message #46320] Fri, 21 January 2005 17:08 Go to previous messageGo to next message
Michael Olan is currently offline Michael OlanFriend
Messages: 20
Registered: July 2009
Junior Member
I'm not sure if this is within the realm of Equinox, but support for
developing secure software would be a great addition to Eclipse. As
examples, there are a couple of big-expensive commercial platforms for
this, such as Prexis (http://www.ouncelabs.com/) that analyzes source
code for vulnerabilities, and CodeAssure (http://www.securesoftware.com/).

- Michael

Jay Rosenthal wrote:
> Please see the update overviews in the Security work area of Equinox. The
> goal of the work area is to further discussion and developement of Eclipse
> and the Eclipse RCP as a secure application platform.
>
> http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/equi nox-home/security/index.html
>
Re: ANNOUNCEMENT - Security "Work Area" in Equinox/Eclipse [message #46466 is a reply to message #46437] Fri, 21 January 2005 22:36 Go to previous message
Christophe Elek is currently offline Christophe ElekFriend
Messages: 38
Registered: July 2009
Member
Michael Olan <olanm@stockton.edu> wrote in
news:csrcvk$sj9$1@www.eclipse.org:

> I'm not sure if this is within the realm of Equinox, but support for
> developing secure software would be a great addition to Eclipse. As
> examples, there are a couple of big-expensive commercial platforms for
> this, such as Prexis (http://www.ouncelabs.com/) that analyzes source
> code for vulnerabilities, and CodeAssure
> (http://www.securesoftware.com/).
>
> - Michael

I agree this will be great but there are two things I see in 'securing
eclipse'

1) protecting the user from 'faulty' plugins
2) some kind of 'license management'

not really sure how to do #2 in a non-secure/open source environment,
anyone ? :)

--
Christophe Elek
Complex and difficult problem resolution specialist
IBM Software Groupe - Support
Eclipse Project - Update Core
Previous Topic:Info on fragments implementation?
Next Topic:OSGI Services
Goto Forum:
  


Current Time: Thu Dec 26 23:27:38 GMT 2024

Powered by FUDForum. Page generated in 0.03318 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top