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.

Scan timing: clone 4.06s · analysis 1.12s · 16.8 MB · GitHub API rate-limit (preflight)

shiyu-coder/Kronos

https://github.com/shiyu-coder/Kronos.git · scanned 2026-05-24 01:24 UTC (2 weeks, 6 days ago) · 10 languages

178 raw signals (72 security + 106 graph) 43rd percentile · Python · small (2-20K LoC) System graph score 82 (lower by 17)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 weeks, 6 days ago · v2 · 56 actionable findings from 2 signal sources. 69 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 55.0 0.15 8.25
security_score 98.0 0.25 24.50
testing_score 47.0 0.20 9.40
documentation_score 78.0 0.15 11.70
practices_score 42.0 0.15 6.30
code_quality 45.4 0.10 4.54
Overall 1.00 64.7
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade C+ (65/100). Dimensions: security 98, maintainability 55. 72 findings (3 security). 11,196 lines analyzed.

Showing 44 of 56 actionable findings. 125 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.

critical Security checks quality Quality conf 1.00 ✓ Repobility [MINED030] Python Pickle Loads: pickle.loads() can execute arbitrary code via __reduce__.
Review and fix per the pattern semantics. See CWE-502 / for context.
finetune/dataset.py:42
critical Security checks quality Quality conf 1.00 [SEC081] Python: pickle.loads / marshal.loads on untrusted data: pickle.load(s) and marshal.load(s) execute arbitrary code on untrusted input. Ported from dlint DUO103 / DUO120 (BSD-3).
Use json, msgpack, or protobuf for untrusted data. If pickle is required, sign the payload with HMAC.
finetune/dataset.py:42
high Security checks quality Quality conf 1.00 ✓ Repobility 25 occurrences `self.quantize` used but never assigned in __init__
Method `forward` of class `BinarySphericalQuantizer` reads `self.quantize`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
lines 93, 102, 103, 104, 110, 114, 115, 134, +17 more
model/module.py:93, 102, 103, 104, 110, 114, 115, 134, +17 more (25 hits)
high System graph security auth conf 1.00 Flask mutation route `load_data` without `@login_required` — webui/app.py:341
Flask route declares POST/PUT/DELETE/PATCH methods without an auth decorator. Add `@login_required` (Flask-Login) or equivalent.
webui/app.py:341 securityAuth flask unauth route
high System graph security auth conf 1.00 Flask mutation route `load_model` without `@login_required` — webui/app.py:626
Flask route declares POST/PUT/DELETE/PATCH methods without an auth decorator. Add `@login_required` (Flask-Login) or equivalent.
webui/app.py:626 securityAuth flask unauth route
high System graph security auth conf 1.00 Flask mutation route `predict` without `@login_required` — webui/app.py:404
Flask route declares POST/PUT/DELETE/PATCH methods without an auth decorator. Add `@login_required` (Flask-Login) or equivalent.
webui/app.py:404 securityAuth flask unauth route
high System graph security security conf 1.00 Insecure pattern 'eval_used' in finetune/train_predictor.py:135
Found a known-risky pattern (eval_used). Review and replace if possible.
finetune/train_predictor.py:135 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in finetune/train_tokenizer.py:174
Found a known-risky pattern (eval_used). Review and replace if possible.
finetune/train_tokenizer.py:174 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in finetune_csv/finetune_base_model.py:313
Found a known-risky pattern (eval_used). Review and replace if possible.
finetune_csv/finetune_base_model.py:313 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in finetune_csv/finetune_tokenizer.py:236
Found a known-risky pattern (eval_used). Review and replace if possible.
finetune_csv/finetune_tokenizer.py:236 Eval used
low Security checks security Deserialization conf 1.00 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
Use yaml.safe_load() instead of yaml.load(). Avoid pickle for untrusted data.
finetune/dataset.py:42
medium Security checks quality Quality conf 1.00 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production exposes stack traces, environment variables, framework internals — sometimes triggers RCE (Django debug page with arbitrary template eval).
Set DEBUG=False / APP_DEBUG=false in production. Provide a generic 500 handler that logs to backend but returns a sanitized page to clients.
webui/run.py:82
low Security checks quality Error handling conf 0.55 ✓ Repobility 25 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.
7 files, 25 locations
examples/prediction_new_GUI.py:311, 386, 767, 838, 891, 942, 1176, 1319, +1 more (9 hits)
examples/prediction_new.py:84, 472, 543, 596, 647, 1172, 1295 (7 hits)
examples/get_akshare_date_2024-2025_x.py:152, 195, 256, 348 (4 hits)
examples/get_date_new.py:142, 184 (2 hits)
examples/prediction_akshare_2024-2025.py:504
examples/prediction_cn_markets_day.py:60
examples/run_backtest_kronos.py:408
Error handlingquality
medium Security checks quality Quality conf 1.00 ✓ Repobility Mutable default argument in `analyze_market_trend` (list)
`def analyze_market_trend(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it in one call mutates it for every future call too.
examples/prediction_new.py:394
medium Security checks quality Quality conf 1.00 ✓ Repobility Mutable default argument in `analyze_market_trend` (list)
`def analyze_market_trend(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it in one call mutates it for every future call too.
examples/prediction_new_GUI.py:689
medium Security checks software dependencies conf 0.90 ✓ Repobility 2 occurrences requirements.txt: `numpy` has no version pin
Unpinned pip requirement means every fresh install may resolve a different version. Newer releases can introduce malicious code (typosquats, account compromises). Reproducible installs need exact pins.
lines 1, 2
requirements.txt:1, 2 (2 hits)
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
medium System graph cicd CI/CD security conf 1.00 No CI/CD pipelines detected
No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints.
CI/CD securityCoverage
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.
3 files, 4 locations
finetune_csv/train_sequential.py:73, 182 (2 hits)
finetune/train_tokenizer.py:179
finetune_csv/finetune_tokenizer.py:47
duplicationquality
low System graph security security conf 1.00 Insecure pattern 'debug_true' in webui/app.py:708
Found a known-risky pattern (debug_true). Review and replace if possible.
webui/app.py:708 Debug true
low System graph security security conf 1.00 Insecure pattern 'debug_true' in webui/run.py:82
Found a known-risky pattern (debug_true). Review and replace if possible.
webui/run.py:82 Debug true
low System graph quality Tests conf 1.00 Low test-to-source ratio
4 tests / 25 src (ratio 0.16).
low System graph quality Integrity conf 1.00 16 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: finetune_csv/config_loader.py:get_tokenizer_config, finetune_csv/config_loader.py:get_basemodel_config 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…
16 occurrences
repo-level (16 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: webui/app.py:load_data_files, webui/app.py:load_data_file, webui/app.py:load_data 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 separate.
3 occurrences
repo-level (3 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: examples/prediction_new_GUI.py:get_stock_data_with_retry_all_history, examples/prediction_new_GUI.py:get_stock_data, examples/prediction_new.py:get_stock_data_with_retry_all_history, examples/prediction_new.py:get_stock_data This is *the* AI-coder fa…
duplicatesduplication
low System graph software Dead code conf 1.00 Possibly dead Python function: browse_data_dir
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/prediction_new_GUI.py:210
low System graph software Dead code conf 1.00 Possibly dead Python function: browse_output_dir
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/prediction_new_GUI.py:216
low System graph software Dead code conf 1.00 Possibly dead Python function: forward
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
model/kronos.py:239
low System graph software Dead code conf 1.00 Possibly dead Python function: print_config
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
finetune_csv/config_loader.py:101
low System graph software Dead code conf 1.00 Possibly dead Python function: reduce_tensor
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
finetune/utils/training_utils.py:83
low System graph software Dead code conf 1.00 Possibly dead Python function: reset_fields
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/prediction_new_GUI.py:222
low System graph software Dead code conf 1.00 Possibly dead Python function: run_prediction
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/prediction_new_GUI.py:283
low System graph software Dead code conf 1.00 Possibly dead Python function: save_config
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
finetune_csv/config_loader.py:93
low System graph software Dead code conf 1.00 Possibly dead Python function: start_prediction
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/prediction_new_GUI.py:233
low System graph software Dead code conf 1.00 Possibly dead Python function: update_config
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
finetune_csv/config_loader.py:81
low System graph api Wiring conf 1.00 Unused endpoint: ANY /
`webui/app.py` declares `ANY /` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: ANY /api/available-models
`webui/app.py` declares `ANY /api/available-models` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: ANY /api/data-files
`webui/app.py` declares `ANY /api/data-files` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: ANY /api/load-data
`webui/app.py` declares `ANY /api/load-data` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: ANY /api/load-model
`webui/app.py` declares `ANY /api/load-model` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: ANY /api/model-status
`webui/app.py` declares `ANY /api/model-status` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: ANY /api/predict
`webui/app.py` declares `ANY /api/predict` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph quality Complexity conf 1.00 Very large file: examples/prediction_new.py (1332 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: examples/prediction_new_GUI.py (1624 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/5c477c06-2fcd-427a-8d6c-b93ac760fef7/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/5c477c06-2fcd-427a-8d6c-b93ac760fef7/

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.