BlogUsing the Safari Web Inspector with Corellium
June 07, 2022
3 min read

Using the Safari Web Inspector with Corellium

How to Get Started Debugging JavaScript on your Corellium Device

The home screen of a white iPhone.

Overview

In this guide, we'll be setting up a Corellium iOS virtual device to perform debugging of web applications using Safari's Web Inspector tool. For web developers, this is useful for testing rapid tweaks to CSS or troubleshooting responsive web design on an iPhone-sized display. For security researchers, the Javascript console can help identify why their fakeobj and addrof primitives aren't working.

Configure the Virtual Device

Enabling Web Inspector

First, Safari on the virtual device must be configured to enable the Web Inspector. From the home screen, select the Settings icon, and then scroll down to Safari. On the next screen, scroll all the way to the bottom and select Advanced.

Enable the Web Inspector and return to the home screen.

Open Safari and browse to any page.

Configure Safari on the Mac

Next, ensure that the Corellium VPN is connected and connect with USBFlux.


If Safari is already running on the Mac, restart it fully by clicking Safari in the menu bar, followed by Quit Safari (or press ⌘Q with Safari selected) and then re-opening the application.

From the Safari menu, select Preferences and then switch to the Advanced tab. At the bottom of the window, ensure that "Show Develop menu in menu bar" is selected. Close the Preferences window.

The advanced tab screen in the Safari preferences menu

The Develop menu will now appear in the menu bar, including a list of devices that have inspectable browsers. In this case, it will include the virtual device (named "iPhone" by default) and the local Mac (named "User's Mac" in the screenshot). When mousing over the iPhone submenu, the available tabs will appear under Safari, and selecting one will open the inspector.

iPhone "Develop" submenu dropdown
web inspector

The inspector has many features that are out of the scope of this guide, see the official documentation for additional details.

Troubleshooting

  • If you are in the cloud, always ensure you are connected to VPN with the correct configuration profile.
  • If a device is not detected properly, try closing and reopening USBFlux and Safari, in that order.


Keep reading

Thoughts, stories and ideas from the Corellium team.

Keep reading

Thoughts, stories and ideas from the Corellium team.

View all posts

Anthony Ricco14 May 2022

Where does Mobile App Security Testing fit into the latest NIST SSDF and CISA Zero Trust publications?

Where does Mobile App Security Testing fit into the latest NIST SSDF and CISA Zero Trust publications?

It’s hard to find useful, well contributed to information on mobile security testing and best practices. Recent cybersecurity publications from U.S. gov agencies often confuse the search. Here’s one interpretation of how they’re interrelated.

Technical Writeups
developer using Corellium platform

Hayden Bleasel17 Dec 2021

$25M to Accelerate Arm Testing, Research, and Development

$25M to Accelerate Arm Testing, Research, and Development

We've raised a Series A round with our friends at Paladin and Cisco Investments.

Media Room
fireworks

Amanda Gorton29 Oct 2021

Announcing the 2021 COSI Award Winner

Announcing the 2021 COSI Award Winner

Today, we're very excited to announce that the winner of the 2021 COSI Award is James Sebree, a Principal Research Engineer at Tenable.

Media Room
Corellium

Amanda Gorton16 Aug 2021

Corellium Open Security Initiative

Corellium Open Security Initiative

In honor of Corellium’s fourth birthday, we’re announcing the Corellium Open Security Initiative to support independent public research into the security and privacy of mobile applications and devices.

Media Room
arm Cortex CPU chipset

Amanda Gorton5 Apr 2021

Armv9 and Corellium: Why we chose Arm vs X86

Armv9 and Corellium: Why we chose Arm vs X86

Exploring the features that have us most excited with the release of the Armv9 Architecture

Technical Writeups

Amanda Gorton17 Mar 2021

Upcoming Training Opportunities with Corellium

Upcoming Training Opportunities with Corellium

We're very excited to share a schedule of upcoming training events where you can not only learn from the best engineers in the security industry, but also get hands on with Corellium's Security Platform.

Workshops
View all posts