Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.
140 of your 164 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.
Upstream (GitHub) caused delay on this scan — not Repobility.
  • GitHub API rate-limited (HTTP 403) — preflight skipped, fell back to direct git clone.
  • Clone from GitHub took 158.22s for a 492.6 MB repo slow.
  • Repobility's analysis ran in 7.74s after the clone landed.

google-ai-edge/LiteRT-LM

https://github.com/google-ai-edge/LiteRT-LM.git · scanned 2026-06-09 04:37 UTC (18 hours, 29 minutes ago) · 10 languages

412 raw signals (158 security + 254 graph) 11/13 scanners ran 100th percentile · C · medium (20-100K LoC) System graph score 90 (lower by 11)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 days, 18 hours ago · v12 · 107 actionable findings from 2 signal sources. 115 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 85.0 0.15 12.75
security_score 100.0 0.25 25.00
testing_score 46.0 0.20 9.20
documentation_score 99.0 0.15 14.85
practices_score 76.0 0.15 11.40
code_quality 66.0 0.10 6.60
Overall 1.00 79.8
security_score may be inflated — optional security scanners were skipped on this fast scan
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade B+ (80/100). Dimensions: security 100, maintainability 85. 155 findings (34 security). 54,363 lines analyzed.

Showing 51 of 107 actionable findings. 222 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Security checks quality Quality conf 1.00 ✓ Repobility [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(...)` but never imports `stat`. This raises NameError at runtime the first time the line executes.
Add `import stat` at the top of the file.
python/litert_lm_cli/commands/list.py:45
low Security checks cicd CI/CD security conf 0.35 ✓ Repobility 3 occurrences Workflow references repository secrets in a pull_request workflow
Fork pull_request runs do not receive normal repository secrets on GitHub Actions. Review this as a reliability/intent signal, not as direct fork-secret exfiltration. Raise severity only for pull_request_target or another trusted-context path that runs untrusted PR code with secrets.
3 files, 3 locations
.github/workflows/ci-build-mac.yml:105
.github/workflows/ml-ci-build-win.yml:189
.github/workflows/ml-ci-build.yml:159
CI/CD securityworkflow secretsGitHub Actions
high Security checks software dependencies [BINARY] scipy: compound risk score 2194 (CVEs: 0, binary findings: 550)
Review binary security profile of scipy — consider alternatives with lower binary attack surface
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
Review and fix per the pattern semantics. See CWE-705 / for context.
python/litert_lm_cli/commands/import.py:129
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
Review and fix per the pattern semantics. See CWE-705 / for context.
python/litert_lm_cli/commands/serve.py:62
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED021] Path Traversal Os Join: os.path.join(user_dir, filename) where filename can contain "../" — directory escape.
Review and fix per the pattern semantics. See CWE-22 / A01:2021 for context.
python/litert_lm_cli/model.py:253
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED029] Kotlin Null Bang: x!! throws NullPointerException if x is null. Bypasses Kotlins null safety.
Review and fix per the pattern semantics. See CWE-476 / for context.
kotlin/java/com/google/ai/edge/litertlm/NativeLibraryLoader.kt:123
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED038] Swift Try Bang: try! crashes on thrown error. Use try? or do/catch.
Review and fix per the pattern semantics. See CWE-755 / for context.
swift/Tool.swift:279
high Security checks software dependencies conf 0.90 ✓ Repobility [MINED126] Workflow container/services image `ubuntu:24.04` unpinned: `container/services image: ubuntu:24.04` without `@sha256:...` pulls a mutable tag at workflow-run time. Treat workflow container references with the same supply-chain discipline as Dockerfile FROM lines.
Replace with `ubuntu:24.04@sha256:<digest>`. Re-pin via Dependabot Docker scope.
.github/workflows/ml-ci-build.yml:41
high Security checks software dependencies conf 0.90 ✓ Repobility [MINED126] Workflow container/services image `ubuntu:24.04` unpinned: `container/services image: ubuntu:24.04` without `@sha256:...` pulls a mutable tag at workflow-run time. Treat workflow container references with the same supply-chain discipline as Dockerfile FROM lines.
Replace with `ubuntu:24.04@sha256:<digest>`. Re-pin via Dependabot Docker scope.
.github/workflows/ci-build-cmake.yml:34
low Security checks cicd CI/CD security conf 0.90 ✓ Repobility 48 occurrences GitHub Action is tag-pinned rather than SHA-pinned
[MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout@v4` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-actions/changed-files compromise (2025) instantly affect ~23K repos. Pin to a 40-char commit SHA + lo…
10 files, 48 locations
.github/workflows/ci-build-cmake.yml:53, 70, 78, 90, 99, 108, 117 (14 hits)
.github/workflows/ci-build-mac.yml:54, 80, 177, 181 (6 hits)
.github/workflows/ci-build-win.yml:44, 77, 168 (6 hits)
.github/workflows/ci-build.yml:38, 64, 182 (6 hits)
.github/workflows/ml-ci-build-win.yml:133, 170, 247, 273 (6 hits)
.github/workflows/ml-ci-build.yml:82, 140, 248 (3 hits)
.github/workflows/auto-assignment.yml:30, 31 (2 hits)
.github/workflows/nightly-linux-arm64.yml:51 (2 hits)
CI/CD securitySupply chainGitHub Actions
medium Security checks cicd CI/CD security conf 0.90 ✓ Repobility 8 occurrences GitHub Action is tag-pinned rather than SHA-pinned
[MINED115] Action `nttld/setup-ndk` pinned to mutable ref `@v1`: `uses: nttld/setup-ndk@v1` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-actions/changed-files compromise (2025) instantly affect ~23K repos. Pin to a 40-char commit SHA + lock…
5 files, 8 locations
.github/workflows/ci-build.yml:151 (2 hits)
.github/workflows/nightly-linux-arm64.yml:70 (2 hits)
.github/workflows/nightly-mac-arm64.yml:63 (2 hits)
.github/workflows/ml-ci-build.yml:108
.github/workflows/nightly-linux-x64.yml:69
CI/CD securitySupply chainGitHub Actions
medium Security checks quality Error handling conf 1.00 [ERR002] Empty Catch Block: Empty catch blocks hide errors.
Log the error or rethrow it. Use console.error() at minimum.
js/apps/chat/src/stores/model_loader_service.ts:158
medium Security checks quality Error handling conf 1.00 [ERR002] Empty Catch Block: Empty catch blocks hide errors.
Log the error or rethrow it. Use console.error() at minimum.
js/packages/core/scripts/download-wasm.js:77
low Security checks quality Error handling conf 0.55 ✓ Repobility 13 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
6 files, 13 locations
python/litert_lm_cli/commands/openai_handler.py:592, 806, 898, 1023, 1070 (5 hits)
python/litert_lm_cli/commands/gemini_handler.py:266, 413, 476 (3 hits)
python/litert_lm_cli/commands/run.py:334, 338 (2 hits)
python/litert_lm_cli/commands/benchmark.py:119
python/litert_lm_cli/commands/serve_util.py:65
python/litert_lm_cli/model.py:131
Error handlingquality
high Security checks software dependencies conf 0.70 Remote install command pipes network code directly to a shell
Publish a package-manager install path or add checksum/signature verification before execution. For docs, show the inspect-then-run flow and pin the downloaded artifact version.
.github/workflows/ci-build-cmake.yml:49
high Security checks software dependencies conf 0.70 Remote install command pipes network code directly to a shell
Publish a package-manager install path or add checksum/signature verification before execution. For docs, show the inspect-then-run flow and pin the downloaded artifact version.
.github/workflows/ci-build-mac.yml:117
medium System graph quality Integrity conf 1.00 `fetch()` without try/.catch or AbortSignal — js/packages/core/src/engine.ts:206
Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 `fetch()` without try/.catch or AbortSignal — js/packages/core/src/litertlm_web_test.ts:459
Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout.
runtime safetyRobustness
medium System graph cicd CI/CD security conf 1.00 5 occurrences GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
5 files, 5 locations
.github/workflows/ci-build-mac.yml
.github/workflows/ci-build-win.yml
.github/workflows/ci-build.yml
.github/workflows/ml-ci-build-win.yml
.github/workflows/ml-ci-build.yml
CI/CD securitySupply chainGithub actions
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — python/litert_lm_builder/litertlm_builder_cli_test.py:351
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — python/litert_lm_cli/commands/serve_openai_streaming_test.py:92
`urllib.request.urlopen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — python/litert_lm_cli/venv_manager.py:63
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
low Security checks quality Quality conf 0.60 4 occurrences Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
4 files, 4 locations
js/apps/model_tester/src/litert_lm_model_tester.ts:48
js/apps/model_tester/src/session_chat.ts:6
runtime/conversation/model_data_processor/gemma4_data_processor.h:13
runtime/executor/vision_executor_settings.h:20
duplicationquality
low System graph software Dead code candidate conf 1.00 File has no detected symbols: .github/workflows/auto-assignment.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: js/apps/model_tester/scripts/devserver.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: js/packages/core/src/types.ts
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: python/litert_lm/examples/simple_main.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 10 places
Functions with the same first-5-line body hash: python/litert_lm/_messages.py:to_json, python/litert_lm/_messages.py:to_json, python/litert_lm/_messages.py:to_json, python/litert_lm/_messages.py:to_json This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.h…
duplicatesduplication
low System graph quality Integrity conf 1.00 10 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: python/litert_lm/interfaces.py:create_conversation, python/litert_lm/engine.py:create_conversation This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're …
10 occurrences
repo-level (10 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 6 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: python/litert_lm/tool_test.py:test_create_conversation_with_open_api_tools, python/litert_lm/tool_test.py:test_create_conversation_with_mixed_tools, python/litert_lm/tool_test.py:test_create_conversation_with_malformed_tool_description This is *the* …
6 occurrences
repo-level (6 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: python/litert_lm_cli/main_test.py:test_run_with_audio_attachment_missing_backend, python/litert_lm_cli/main_test.py:test_run_with_image_attachment_missing_backend, python/litert_lm_cli/main_test.py:test_run_with_unsupported_attachment_type, python/lit…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: python/litert_lm/engine_test.py:test_session_api_run_decode, python/litert_lm/engine_test.py:test_session_api_run_text_scoring_with_token_lengths, python/litert_lm/engine_test.py:test_session_api_run_text_scoring_no_token_lengths, python/litert_lm/eng…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 6 places
Functions with the same first-5-line body hash: python/litert_lm_cli/main_test.py:test_run_with_piped_input, python/litert_lm_cli/main_test.py:test_run_with_prompt_and_piped_input, python/litert_lm_cli/main_test.py:test_run_non_tty_no_input, python/litert_lm_cli/main_test.py:test_run_with_vision_an…
duplicatesduplication
low System graph software Dead code conf 1.00 Possibly dead Python function: callback
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm/session.py:79
low System graph software Dead code conf 1.00 Possibly dead Python function: callback
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm/conversation.py:201
low System graph software Dead code conf 1.00 Possibly dead Python function: do_GET
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm_cli/commands/openai_handler.py:766
low System graph software Dead code conf 1.00 Possibly dead Python function: do_POST
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm_cli/commands/openai_handler.py:1073
low System graph software Dead code conf 1.00 Possibly dead Python function: do_POST
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm_cli/commands/gemini_handler.py:479
low System graph software Dead code conf 1.00 Possibly dead Python function: loglikelihood_rolling
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm_eval/runners/lm_eval_runner/litert_lm_model.py:302
low System graph software Dead code conf 1.00 Possibly dead Python function: parse_speculative_decoding
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm_cli/common.py:26
low System graph software Dead code conf 1.00 Possibly dead Python function: recreate_venv_if_self_managed
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm_cli/venv_manager.py:65
low System graph software Dead code conf 1.00 Possibly dead Python function: write_and_compress
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
python/litert_lm_builder/litertlm_builder.py:614
low System graph frontend Frontend quality conf 1.00 Stray `console.log` in TS/JS — .github/workflows/auto-assignment.js:32
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
Fq console leak
low System graph frontend Frontend quality conf 1.00 Stray `console.log` in TS/JS — js/apps/model_tester/scripts/devserver.js:69
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
Fq console leak
low System graph frontend Frontend quality conf 1.00 Stray `console.log` in TS/JS — js/packages/core/scripts/download-wasm.js:24
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
Fq console leak
low System graph frontend Frontend quality conf 1.00 Stray `console.log` in TS/JS — js/packages/core/src/litertlm_web_test.ts:710
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
Fq console leak
low System graph quality Integrity conf 1.00 Stub function `dummy` (body is just `pass`/`return`) — python/litert_lm_cli/help_formatter_test.py:41
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `execute` (body is just `pass`/`return`) — python/litert_lm/tool_test.py:293
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Complexity conf 1.00 Very large file: runtime/components/tool_use/antlr/generated/antlrpythonparser.rs (2429 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/6eab8516-bf5a-4e2a-804e-19ee40e91ce8/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/6eab8516-bf5a-4e2a-804e-19ee40e91ce8/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.