인프런 - 강의/루팅탐지, 탐지우회, 방어방법

6 - 프로가드 해독, 덱스가드

개복치 개발자 2019. 12. 5. 02:13

이전 강의에서 프로가드를 적용해서 코드를 난독화해서 읽기 어렵게 만들어봤습니다.

 

그런데 이 프로가드의 경우에는, 너무 쉽게 해독할 수 있습니다. 한번 프로가드 해독을 해보겠습니다.

 

이전의 프로가드 적용했을 때, 아래와 같은 형태로 디컴파일이 되는 것을 보실 수 있습니다.

 

 

약간의 난독화가 적용되어 있는데, 이 난독화를 풀 수 있습니다.

 

아래의 사이트에 들어가서 apk파일을 올려보겠습니다.

 

http://apk-deguard.com/

 

DeGuard: Statistical Deobfuscation for Android

DeGuard reverses the process of obfuscation performed by Android obfuscation tools. This enables numerous security analyses, including code inspection and predicting libraries.

apk-deguard.com

아래와 같이 이미지가 나온 것을 확인할 수 있습니다.

 

 

그래서 proguard의 유료 버전인 dexguard라는 것이 있습니다.

 

proguard와 dexguard가 어떤 차이가 있는지 알아보면

 

 

ProGuard offers basic protection against static analysis.
DexGuard protects applications against static and dynamic analysis.

 

프로가드에 비해 덱스가드가 정적, 동적 분석에 대해 보호를 더 하고 있고

 

ProGuard provides minimal obfuscation. 
DexGuard applies multiple layers of encryption and obfuscation.

 

프로가드는 난독화를 최소화만 하고, 덱스가드는 여러 layer의 암호화 및 난독화를 합니다.

 

ProGuard focuses on the bytecode.
DexGuard processes all the components of an application.

 

프로가드는 바이트 코드에 포커스를 하고, 덱스가드는 모든 컴퍼넌트를 처리합니다.

 

ProGuard is an open source tool.
DexGuard is a commercial, enterprise-grade product.

 

프로가드는 오픈 소스고, 덱스가드는 엔터프라이즈 제품입니다.

 

 

-- 참조

 

https://www.guardsquare.com/en/products/dexguard?utm_campaign=DexGuard_search&utm_medium=ppc&utm_term=dexguard&utm_source=adwords&hsa_net=adwords&hsa_grp=67168128878&hsa_src=g&hsa_ver=3&hsa_kw=dexguard&hsa_mt=b&hsa_acc=2411283683&hsa_ad=329013314370&hsa_tgt=aud-795383394696%3Akwd-494199268200&hsa_cam=773256378&gclid=CjwKCAiA8qLvBRAbEiwAE_ZzPet3gKUKtH3kenh5E_Bkxgx-hHkxDNbgCzVnn57yBg2HKDGlFuFYQhoCLdEQAvD_BwE

 

https://www.guardsquare.com/ko/blog/dexguard-vs-proguard