java - Detecting Jar file Tampering -


our scenario is, have exe in bundling jars , supplying client. signing exe along jars , meta-inf dir holds checksum values entries present inside jar.

now issue, when jar file tampered like, adding or modifying class or changing content, goes undetected , still application launches. when alongside corresponding entries ar modified manually in meta-inf/manifest.mf, verify signature gets failed , certificate exception getting thrown. there way, when entries in jar files modified (by unzip jar manually), corresponding entry in manifest file altered automatically.

you changes on jar file undetected. in fact root of problem. don't know how signed jar, java should deny loading jar if signature got appended jarsigner doesn't match contents.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -