Book Image

Learning iOS Penetration Testing

By : Swaroop Yermalkar
Book Image

Learning iOS Penetration Testing

By: Swaroop Yermalkar

Overview of this book

iOS has become one of the most popular mobile operating systems with more than 1.4 million apps available in the iOS App Store. Some security weaknesses in any of these applications or on the system could mean that an attacker can get access to the device and retrieve sensitive information. This book will show you how to conduct a wide range of penetration tests on iOS devices to uncover vulnerabilities and strengthen the system from attacks. Learning iOS Penetration Testing discusses the common vulnerabilities and security-related shortcomings in an iOS application and operating system, and will teach you to conduct static and dynamic analysis of iOS applications. This practical guide will help you uncover vulnerabilities in iOS phones and applications. We begin with basics of iOS security and dig deep to learn about traffic analysis, code analysis, and various other techniques. Later, we discuss the various utilities, and the process of reversing and auditing.
Table of Contents (17 chapters)
Learning iOS Penetration Testing
Credits
Foreword – Why Mobile Security Matters
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 4. Traffic Analysis for iOS Application

 

"If you know the enemy and know yourself, you need not fear the result of a hundred battles. If you know yourself but not the enemy, for every victory gained you will also suffer a defeat. If you know neither the enemy nor yourself, you will succumb in every battle."

 
 --Sun Tzu, The Art of War

In the previous chapter, you studied about finding vulnerabilities in local storage, such as the plist files, SQLite database, and other formats. One of the important aspects in mobile application level security is analyzing an application's network traffic. To find out the issues related to backend APIs, we need to monitor the traffic between an application on iDevice and backend APIs.

In this chapter, we will look at the following topics:

  • Intercepting traffic over HTTP

  • Intercepting traffic over HTTPS

  • Intercepting traffic of iOS Simulator

  • Web API attack demo

  • Bypassing SSL pinning