Skip to content

UI Demo

Sam MG Harish edited this page Oct 15, 2026 · 2 revisions

UI demo

Fastest way to see the dashboard: open the hosted static demo, no install, no scan.

https://sam-mg.github.io/lu77U-MobileSec/

It is the real React app (lu77U_MobileSec/frontend/src), unmodified, pointed at pre-generated JSON instead of a live server. Every read (/api/version, status, scans, scans/:id, settings, settings/models/:provider) resolves to a file under demo/public/demo-data/, built by scripts/build_demo_data.py. Logs are not published: the log panel is compiled out of the demo build and scans/:id/logs answers empty. Report downloads are intercepted the same way as writes. Any write (create/stop/pause/resume/delete scan, settings save, credential test) returns HTTP 501, which the app renders through its normal error path. Buttons look and behave like the real thing, but nothing runs.

What it shows

Real scans of deliberately vulnerable apps that anyone can download, all made with the free Ollama cloud model gemma4:31b and the rules this wiki describes, static analysis only (device verification off), and published exactly as the tool wrote them; see below. Each is listed by where to get it, as github.com/<owner>/<repository>/<debug|release>.apk, with the package name beneath:

Listed as Framework The app
github.com/payatu/diva-android/debug.apk Java/Kotlin with a native library DIVA (Damn Insecure and Vulnerable App), a debuggable build; its native issues in libdivajni.so are read through Ghidra
github.com/waseeq14/Damn-Vulnerable-React-Native/release.apk React Native (Hermes) Damn Vulnerable React Native, the release APK of variant C from the repository's releases
github.com/Schmiemandev/dvfa/release.apk Flutter (release, Blutter) Damn Vulnerable Flutter App (FinTech edition), the release APK from the repository's GitHub Releases
github.com/brnpl/Flutter-Reverse-Engineering-Labs/all-release.apk Flutter (release, Blutter) All nine levels of the Flutter Reverse Engineering Labs in one release APK, built here from the upstream code (see Development)

Below them in the scan list are the 119 scans of the Ghera benchmark run: each of the 60 benchmarks' vulnerable app, followed by its fixed app where Ghera has one. Each is listed the same way, by where to get it: bitbucket.org/secure-it-i/android-app-vulnerability-benchmarks/<Category>/<Benchmark>/<benign|secure>.apk, where the benchmark's folder in the Ghera repository holds a Benign folder with the vulnerable app and a Secure folder with the fixed one. Search the scan list for a benchmark's name to find both. They are the exact scans the Benchmarks page scores: benchmark_scans() in scripts/build_demo_data.py reads them from scripts/ghera_results.json. They are listed after the four apps above even though they ran later, so the dashboard's recent scans still show those four. The banner at the top of the demo links to the results.

The Settings page is built from the same registries and defaults as the real endpoint, so it carries every field the live snapshot does (a test fails if one goes missing), names the Ollama model the published scans actually ran on, and gives a path to every tool its readiness block calls configured. Each provider's stored key is a stand-in, sk-d…emo labelled demo@example.com, not a redaction of a real key. The sample and each scan's listed name are chosen in SOURCE_SCANS in scripts/build_demo_data.py, which publishes only deliberately vulnerable apps; present_as() sets the listed name as the scan's app and file name. This project's own benchmark apps (PocketVault, StreamBox) are not in the demo, because no public repository serves their APKs.

Same APK, same model, not the same report

Scanning the same APK again with the same model does not necessarily give the same results. The agents, the file review, the review pass, the title pass, chain confirmation and device verification are all model calls, and a model call is not repeatable: on another run an agent reads files in a different order, follows a different lead, words a title differently, or occasionally finds one issue less or one more; the review pass can grade a borderline finding a rung differently; chain confirmation can accept or reject a borderline pairing. What does repeat is the deterministic part: the scanners, the mechanical gates, the class ceilings, the review floor, deduplication and the score formula give the same answer for the same input. A scan you run of one of these apps should therefore find the same issues at broadly the same severities, but not the same report word for word, and a difference in wording or in one borderline finding is not by itself a sign that either report is wrong. Nor is a published report the best of several runs: each app is scanned once per change to the tool, as below.

How the published scans are kept current

When the tool changes in a way that could change a report, every published app is scanned again, once, with the current code, and the new run replaces the old one. A published report is never edited: build_demo_data.py only names it after where to download the app and scrubs local paths out of it. Re-scanning until one run happened to be perfect would publish a lucky run rather than the tool, so each app gets one run per change, whatever that run finds. For the Ghera apps this is also what keeps the demo honest about the Benchmarks page: the report a reader opens is the one that was scored.

Deployment

Deployed by .github/workflows/demo-pages.yml on every push to main that touches the frontend. The build runs from the frontend directory, not the repository root:

cd lu77U_MobileSec/frontend
npm ci
npm run build:demo        # vite build --config demo/vite.config.demo.js

Output goes to demo-dist/ at the repository root, which is what the Pages artifact uploads.

Use the npm run script rather than calling npx vite directly. From the repository root there is no node_modules, so npx resolves nothing locally and downloads whatever major version is current from the registry — currently Vite 8, whose rolldown-based config loader fails against this project's pinned Vite 6 config with an UNRESOLVED_ENTRY error that names the config file and looks like a missing-file problem rather than a version one.

Running the demo locally instead

cd lu77U_MobileSec/frontend
npm ci
npm run dev:demo          # vite --config demo/vite.config.demo.js

Opens on http://localhost:5174.

Running the real dashboard (live data, needs a scan)

Not a demo: this drives an actual local server, see Getting started.

lu77U-MobileSec

For frontend source changes, run backend and Vite dev server separately (see Web UI):

lu77U-MobileSec --no-browser          # backend on :8000
cd lu77U_MobileSec/frontend && npm run dev   # Vite on :5173, proxies /api to :8000

Clone this wiki locally