Supported iOS API for entirely on-device managed traffic inspection and rewriting

We are developing a customer-authorized security agent for organization-owned, MDM-managed iPhones, distributed as a private Custom App. All TLS/content inspection must remain on the device. Customer-authorized audit uploads use a separate backend connection.

Our existing App Proxy/per-app VPN implementation uses Apple's managed routing. We also prototyped a packet provider with an authenticated local stream adapter: selected AI traffic is inspected under an MDM-installed organization CA; supported non-selected traffic is forwarded locally to its destination. There is no remote inline-inspection gateway. We understand this overlaps TN3120's unsupported local-proxy/content-filter scenarios and are not treating prototype success or Custom App distribution as an exception.

Which supported iOS architecture, if any, can combine these requirements?

  • Entirely on-device request-content inspection, redaction/blocking and audits.
  • Downloaded organization policy selecting destinations, without maintaining Safari hostname lists or individual managed-app VPN associations in MDM.
  • No remote inline-inspection gateway.

NEFilterDataProvider appears appropriate for connection-based filtering, but we need to know whether any supported combination permits TLS/content rewriting. If iOS cannot support this combination, please confirm which requirement must change. Does private Custom App distribution affect the TN3120 constraints?

No traffic, credentials, certificates, private keys or user content are attached.

Written by taladarwin in 860419021

Does private Custom App distribution affect the TN3120 constraints?

The TN3120 constraints are not about App Review but rather about DTS. DTS doesn’t support ‘off label’ uses of packet tunnel providers because, in our experience, such products are brittle. That is, they suffer ongoing binary compatibility concerns, meaning they often break in unusual environments or as the system evolves.

Now, App Review may have their own constraints in this space, but I don’t work for App Review and can’t offer definitive answers about their policies.

Coming back to the technical side of this, my general advice is:

  • If you want to filter content — that is, inspect a connection’s content and optionally break the connection if you don’t like something — then you should use a content filter.
  • If you want to modify a connection’s content then you should use an app proxy or, or macOS, a transparent proxy.

It seems that you already have an app proxy. Given that, what’s the problem here? That is, what limitation of the app proxy architecture are you trying to overcome?

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"