National Cyber Warfare Foundation (NCWF)login

Inside Charles-Proxy-Mobile-Guide: how it demystifies HTTPS interception on Android and iOS


0 user ratings
2026-10-28 23:28:08
milo
Red Team (CNA)
"Inside

Charles-Proxy-Mobile-Guide is a curated operational reference that walks authorized testers and mobile developers through configuring Charles Proxy to inspect HTTP/HTTPS traffic from Android and iOS devices.








Toolthyrlian/Charles-Proxy-Mobile-Guide — a step-by-step reference for intercepting mobile HTTP/HTTPS traffic with Charles Proxy on Android and iOS
CategoryMobile traffic-analysis field guide / proxy configuration documentation
Primary UseSetting up SSL Proxying on test devices — CA certificate installation, proxy configuration, and network_security_config tweaks — during authorized mobile app assessments and debugging
Safe UseIntended for developers debugging their own apps and authorized penetration testers working on devices and applications they own or have written permission to test
Telemetry NoteCharles generates an explicit allow-dialog on the host machine when a device connects, and devices under interception show a manually configured proxy (8888) plus a user-installed CA certificate — both visible in MDM and device audits

thyrlian/Charles-Proxy-Mobile-Guide is not a piece of software you install; it is a meticulously documented runbook for one of the most repetitive and error-prone rituals in mobile security work: getting Charles Proxy to decrypt HTTPS traffic from a physical Android or iOS device. The repository sits at a modest 156 stars, but its value is in its density. Every major OS-level obstacle to mobile traffic inspection — proxy addressing, CA certificate installation, trust-store policy changes on newer Android and iOS builds — is covered with screenshots and exact menu paths. For an authorized assessor who does this once a quarter and forgets the details in between, it functions as institutional memory.


The guide opens by framing Charles correctly: it is an HTTP proxy, HTTP monitor, and reverse proxy that lets a developer view all traffic between their machine and the Internet, including requests, responses, and the HTTP headers that carry cookies and caching metadata. That framing matters because it positions the tool's primary audience as developers debugging their own applications — which is also the legitimate, authorized context the whole guide assumes. Traffic interception here is a debugging aid first, and a testing aid second.


The macOS-side configuration section is where the interception chain begins. The guide walks through Proxy → SSL Proxying Settings → SSL Proxying, enabling SSL Proxying and adding a wildcard location matcher of Host: * and Port: *. It then covers installing the Charles root certificate via Help → SSL Proxying → Install Charles Root Certificate, which drops the cert into Keychain, followed by the manual Trust → Always Trust toggle. The screenshots of the certificate transitioning from untrusted to trusted are the kind of detail that saves junior testers from silently failing setups.


A small but genuinely useful contribution is the guide's treatment of discovering the host IP that mobile devices must point at. Beyond the built-in Help → Local IP Address menu item, the README provides two ifconfig-parsing one-liners that extract the WLAN or LAN IPv4 address on macOS and copy it straight to the clipboard via pbcopy/pbpaste. It is a reminder that even trivial steps — mistyping a proxy host is a classic failure mode — deserve explicit handling in operational documentation.


On the device side, the Android path is straightforward for older builds: set the Wi-Fi network's proxy to Manual with the host IP and port 8888, fetch the certificate from https://chls.pro/ssl in the browser, set a lock-screen PIN when prompted, and accept the allow-dialog that pops up on the computer when the device connects. That last detail — the connection-attempt confirmation dialog in Charles — is exactly the kind of friction point that confuses first-time users, and the guide calls it out rather than leaving it as an exercise.


The most technically substantive section addresses Android N (7.0, API level 24) and later, where user-installed CA certificates are no longer trusted by apps by default. The guide's solution is a debug-source-set-only network_security_config.xml using debug-overrides with a trust-anchors entry for certificates src="user", wired into a debug-variant AndroidManifest.xml via the networkSecurityConfig attribute. The design is worth appreciating: because the override lives only in the debug source set, release builds remain untouched, so the same trick that aids authorized testing cannot leak into production. This is textbook safe instrumentation.


The iOS section mirrors the Android flow — manual HTTP PROXY settings, certificate download through Safari from chls.pro/ssl with a fallback URL, and the same host-side allow dialog — and then adds the iOS 10.3+ wrinkle: certificate installation alone is no longer sufficient, and the user must explicitly enable full trust for the Charles root under Settings → General → About → Certificate Trust Settings. The README also notes a terminal debugging path, showing how to point curl at the local proxy with export http_proxy=http://127.0.0.1:8888 and how to undo it with unset http_proxy https_proxy — useful when replicating a mobile app's request behavior from the command line.


From a defensive perspective, everything this guide sets up is loudly observable. A device under Charles interception carries a manually configured proxy on port 8888 and a user- or system-installed CA certificate, both of which are reportable signals in MDM estates and device compliance checks. Charles itself requires explicit per-host allow decisions on the proxy machine. In other words, this configuration is not stealth tooling; it is developer-grade instrumentation that leaves a clear administrative footprint, which is precisely why its legitimate use cases — owned devices, owned apps, authorized engagements — are so cleanly separable from abuse.


The repository's topics — android, ios, charles-proxy, sniffer, debug, tutorial — accurately describe its scope, and the README closes with a small note that a local Charles instance provides the same SSL certificate, covering the case of proxying traffic from the same machine rather than a device. The guide is not a framework, will not automate anything, and does not need to. What it does is compress years of accumulated platform quirks — network-security-config semantics, iOS trust settings, certificate distribution shortcuts — into a single page an authorized professional can follow reliably, which is exactly the niche a good field guide should occupy.



Official project repository for thyrlian/Charles-Proxy-Mobile-Guide.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/inside-charles-proxy-mobile-guide-how.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.