-2

Recently I devised a way to avoid obfuscation of a jar file, here is how it works:

  1. Renamed the abc.jar file to xyz.so
  2. Placed it in system folder something like /lib/bdevid/ where other .so files were also present
  3. Modified the Operations And Management script (which used to restart the jar in case of any crash, both manually and automatically) to copy it from /lib/bdevid/xyz.so and place it where it was supposed to be, restart it and then delete the jar file, after a delay of 1 to 2 seconds.

The operations and management script is on a remote machine so access to this script is restricted, only web access is permitted.

What are possible loopholes in this process?

Please note that this process is currently running successfully, I just want to know how secure is this.

  • 7
    This is security through obscurity. Like hiding your spare house key under your backdoor mat instead of the front. – Alexander O'Mara May 20 '16 at 5:33
  • 3
    it is as secure as how secret you can keep your scheme – schroeder May 20 '16 at 5:36
  • Your scheme isn't secure. Any attacker easily running say file (which looks at file headers) on xyz.so would quickly see it is a jar file and not a shared library (.so); e.g., file xyz.so would give xyz.so: Java Jar file data (zip). – dr jimbob May 20 '16 at 6:09
  • Secure against what? – user253751 May 20 '16 at 8:47
  • "I just want to know how secure is this.".... go take a pen and the biggest piece of paper you can find, and write the following line, repeating until you run out of space on the paper ... "SECURITY BY OBSCURITY IS NOT SECURITY". – Little Code May 20 '16 at 17:14
3

This is not secure at all, against any Form of possible attack. Regardless of what you are trying to achieve, this will not solve your problem. As the commenters already proposed, this is not only "security by obscurity" this might already be "obscurity" only.

  • my question was to let me know the loopholes, like one of it is that parsing the headers will breach this security. What else? The script that does all this is already on a remote secured machine, there is no access to it. – shabby May 23 '16 at 5:10
  • 2
    shabby - there are so many problems with the scheme it's pointless to go through, find and fix all the loopholes - you need to start from scratch with an architecture that can be secured. – Rory Alsop May 23 '16 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.