Results 1 to 9 of 9

Thread: security about .class information

  1. #1
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Exclamation security about .class information

    Hello guys

    i have a huge doubt, maybe some friendly member can help

    my friend gave its .war application with all necessary files (.css,.jsp,.class,etc)
    to its company work, a contract

    the company had a situation in which some bad user stole the .war undeployed (the folder application of course) and he was caught, now i think he is in jail

    the company are afarid about the security,
    in the sentide of the source code, the application of course no has the .java files, but yes the .class

    there are rumors about some programas that from the .class can generate the .java ,something like that

    the question is ,
    is there some tool that can avoid this
    in the sentide
    since when i create my .class other person cant generate the .java form them???

    thanks for advanced
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    there are rumors about some programas that from the .class can generate the .java ,something like that
    That isn't a rumor those tools are widely available, the most well known one is jad.

    is there some tool that can avoid this
    No. There are tools which can make it difficult by obfuscating your code (i.e. renaming your classes and metods) but thats it.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    hi marten

    thanks for the reply

    the most well known one is jad.
    ok

    There are tools which can make it difficult by obfuscating your code (i.e. renaming your classes and metods) but thats it.
    some suggestion about your experience with some tool of this?

    regards
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Quote Originally Posted by dr_pompeii
    some suggestion about your experience with some tool of this?
    Haven't worked with those tools. However google should be helpful. Use java, obfuscation/obfuscating as keywords and you should get some hits.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    thanks Marten

    tell me, how do you protect your code?

    regards

    funny
    http://forum.java.sun.com/thread.jsp...712642&start=0
    Last edited by dr_pompeii; Oct 26th, 2007 at 03:56 PM.
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  6. #6
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    We currently use yGuard. You can still JAD the files though. If you are working with XML configuration you are also going to have to preserve class and method names.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  7. #7
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    Hi Karl

    If you are working with XML configuration you are also going to have to preserve class and method names.
    yes, thats the weak part, to avoid a pain with spring and log part report

    i need your help
    java -jar yguard.jar
    Usage java -jar yguard.jar logfile.xml[.gz] [-pipe] [name]
    karl, pls, can you share your xml configuration?

    i see in the page documentation a lot of options and is confuse

    thanks in advanced
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  8. #8
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    We do something like this.
    Code:
    	<!-- yQuard obfuscation task definition -->
    	<taskdef name="obfuscate" classname="com.yworks.yguard.ObfuscatorTask" classpath="${yguard.home}/lib/yguard.jar"/>
    
    		<echo>Obfuscating the code</echo>
    		<obfuscate logfile="${build.dir}/obfuscation-log.xml" conservemanifest="true" replaceclassnamestrings="true">
    			<property name="language-conformity" value="compatible"/>
    			<expose>
    				<class classes="protected" methods="protected" fields="protected"/>
    			</expose>
    			<inoutpair in="${build.dist}/${ant.project.name}.jar" out="${build.extension}/private/${ant.project.name}.jar"/>
    			<externalclasses refid="build.classpath"/>
    		</obfuscate>
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  9. #9
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Basically you are doing to have to preserve public class names and also method names, otherwise you'll have problems.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •