ETOS-LLM-Studio icon indicating copy to clipboard operation
ETOS-LLM-Studio copied to clipboard

AI governance scan findings — 95 signals including AS-007 WebView and OW-003 PII

Open jsingh6 opened this issue 5 months ago • 3 comments

Hi,

I ran MobileGuard against ETOS-LLM-Studio as part of a cross-repo study on AI governance in open source iOS apps. Given the scope of this project (LLM Studio with multiple provider integrations), there are a significant number of findings — 95 in total. I'm flagging the most critical ones.

Most critical: AS-007 — WebView + JavaScript execution

AppToolJavaScriptExecution.swift:438 and ETAdvancedMarkdownRendererMathWebView.swift contain patterns that AS-007 flags — WKWebView or JavaScript engine usage alongside AI API calls.

Apple blocked Replit, Vibecode, and Anything from the App Store in March 2026 for executing AI-generated code in WKWebView (Guideline 2.5.2). AS-007 flags this pattern for manual review — it does not automatically confirm a violation, since rendering static math (MathJax/KaTeX) in WKWebView is generally permitted.

Action needed: Review whether any content loaded into WKWebView or evaluated in the JS engine is AI-generated at runtime. If yes, render it in native SwiftUI instead or open in SFSafariViewController.

Also flagged: OW-003 — PII in AI API calls ProviderEditView.swift passes fields that may contain sensitive user data to external AI APIs without masking. Review whether provider credentials or user identifiers are included in API payloads.

Full scan:

pip install mobileguard
mobileguard scan . --platform ios --format json > findings.json

95 findings is a large number — happy to help prioritize which ones matter most for your use case or App Store submission timeline.

Jaspreet Singh Independent Researcher | github.com/jsingh6/mobileguard Research: doi.org/10.5281/zenodo.20970167

jsingh6 avatar Jun 30 '26 06:06 jsingh6

Hi Jaspreet,

Thank you for taking the time to scan the project and open such a detailed issue. I appreciate the heads-up and the context around the MobileGuard findings.

For AS-007, ETOS LLM Studio does intentionally support AI-generated content that may include <script> and run inside chat bubbles. This behavior has already passed Apple App Review for the current app, so I am not planning to remove or disable that capability for now, since it is part of the feature set I want to keep. That said, I understand why the pattern is worth flagging and I will keep it in mind for future App Store compliance reviews.

For the broader scan, if you have time, could you please send the full report to [email protected]? I will review it when I have some time.

Thanks again for the report!

Eric-Terminal avatar Jul 01 '26 15:07 Eric-Terminal

Hi Eric, Sending the full report separately to your email. One more thing if you want these checks to run automatically on every PR going forward, here is a GitHub Action you can drop into .github/workflows/mobileguard-scan.yml. It runs alongside your existing pr-build-check.yml and takes about 30 seconds on Ubuntu:

- name: Install MobileGuard
  run: pip install mobileguard

- name: Run MobileGuard preflight scan
  run: mobileguard scan . --platform ios --fail-on critical

Full workflow file is in the attachment. It uploads the JSON results as a build artifact on every run so you have a history of findings over time. On AS-007 specifically , you're right that it passed review and I understand it's an intentional feature. Worth keeping an eye on as Apple's enforcement around AI-generated dynamic content evolves post the Replit/Vibecode actions. The check is there if you ever want it. Thanks again for engaging with the findings.

jsingh6 avatar Jul 02 '26 01:07 jsingh6

thx

Eric-Terminal avatar Jul 03 '26 04:07 Eric-Terminal