일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- base64
- logstash
- elasticsearch
- foremost
- NTFS
- Suninatas
- diva
- Openstack
- vulnhub
- MFT
- ESXi
- otter
- Strings
- InsecureBank
- CTF-d
- Docker
- 2018
- kibana
- frida
- 인시큐어뱅크
- igoat
- Reflected XSS
- 안드로이드
- XSS
- SQL Injection
- ctf
- beebox
- 파이썬
- Volatility
- lord of sql injection
- Today
- Total
Information Security
애플리케이션 패칭 본문
정의
- 악성코드들은 정상적으로 서비스되고 있는 앱을 조작하여 사용자들을 유인한다.
발생 위치
- Insecurebankv2\smail\com\andoid\insecurebankv2\PostLogin.smali
영향
- 사용자의 개인정보, 공인 인증서, 휴대폰 번호 탈취될 수 있다.
진단
디컴파일을 하면 Insecurebankv2\smail\com\andoid\insecurebankv2에 smail코드가 생성된다.

PostLogin.smali 파일에서 “Device not Rooted!!”를 다른 문자열로 수정했다.

smail코드를 수정 후 리패키징하는 과정이다.

리패키징이 끝나면 adb 명령어를 이용해 다시 Insecurebankv2.apk를 설치한다.

그림 1-5를 보면 Device not Rooted!!에서 Fighting!!으로 앱이 변조된 것을 확인할 수 있다.

대응방안
- 앱 변조를 방지하기 위해 많은 보안 솔루션을 도입하고 있다.
Gradle Scripts > build.gradle 파일에서 build Types이 존재한다. minifyEnabled는 기본적으로 false로 설정되어 있으며, true로 수정 후 다시 릴리즈 빌드를 한다.

생성된 apk 파일로 다시 디컴파일 과정을 한다. Jar 파일을 JD-GUI로 확인해보면 소스 코드가 a,b와 같은 것으로 변경된 것을 확인 할 수 있다.

프로가드는 오픈소스이기 때문에 상용솔루션에서의 일부 기능에 제한이 있다. 상용 난독화 도구보다는 부족하지만 오픈소스이기 때문에 무료로 사용할 수 있다.

'모바일 > InsecureBank 분석' 카테고리의 다른 글
안전하지 않은 로깅 메커니즘 (0) | 2019.07.14 |
---|---|
메모리 내 민감한 정보 저장 (0) | 2019.07.14 |
안전하지 않은 콘텐츠 프로바이더 접근 (0) | 2019.07.14 |
루팅 탐지 우회 (0) | 2019.07.14 |
액티비티 컴포넌트 취약점 (0) | 2019.07.13 |