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.

linkedin/Liger-Kernel

https://github.com/linkedin/Liger-Kernel · scanned 2026-05-15 18:26 UTC (2 weeks, 6 days ago) · 10 languages

267 findings (124 legacy + 143 scanner) 79th percentile · Python · medium (20-100K LoC) Scanner says 89 (lower by 10)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 weeks, 6 days ago · v1 · 117 findings from 1 source. Findings combine the legacy security pipeline AND the multi-layer engine (atlas, wiring, flows, ranked) AND verified AI agent contributions.

JSON
Score breakdown â 2026-05-14-v3
Component Sub-score Weight Contribution
structure_score 85.0 0.15 12.75
security_score 86.0 0.25 21.50
testing_score 100.0 0.20 20.00
documentation_score 66.0 0.15 9.90
practices_score 65.0 0.15 9.75
code_quality 50.0 0.10 5.00
Overall 1.00 78.9
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 88.8/100 with 77.8% coverage. It contains 2151 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 0 findings. Risk profile is low: 0 critical, 0 high, 0 medium. Recommended next step: open the software layer findings first — that's where the highest-impact wins live.

Showing 31 of 117 findings. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Legacy security path_traversal conf 0.80 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file path without sanitization. Allows reading arbitrary files.
Use os.path.realpath() and verify the path starts with your expected base directory. Use secure_filename() for uploads.
src/liger_kernel/transformers/model/qwen2_5_vl.py:95 path_traversallegacy
high Legacy security path_traversal conf 0.80 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file path without sanitization. Allows reading arbitrary files.
Use os.path.realpath() and verify the path starts with your expected base directory. Use secure_filename() for uploads.
src/liger_kernel/transformers/model/qwen2_vl.py:92 path_traversallegacy
high Legacy security path_traversal conf 0.80 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file path without sanitization. Allows reading arbitrary files.
Use os.path.realpath() and verify the path starts with your expected base directory. Use secure_filename() for uploads.
src/liger_kernel/transformers/model/llava.py:63 path_traversallegacy
high Legacy quality error_handling conf 0.85 Bare except: pass — silent failure
except: pass or except Exception: pass — silently swallows everything including KeyboardInterrupt and bugs.
src/liger_kernel/ops/backends/_ascend/ub_manager.py:172 error_handlinglegacy bare-except-pass · CWE-755
medium Legacy quality error_handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
src/liger_kernel/ops/backends/_ascend/ub_manager.py:172 error_handlinglegacy
medium Legacy security injection conf 0.50 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
Use subprocess with shell=False and a list of args. Never eval user input.
dev/modal/benchmarks.py:22 injectionlegacy
high Legacy security crypto conf 0.85 Crypto — plaintext HTTP for sensitive endpoint
Hardcoded http:// (not localhost) for endpoints that handle credentials or data.
src/liger_kernel/chunked_loss/grpo_loss.py:10 cryptolegacy http-not-https · CWE-319 · A02:2021
high Legacy security crypto conf 0.45 Crypto — plaintext HTTP for sensitive endpoint
Hardcoded http:// (not localhost) for endpoints that handle credentials or data.
examples/medusa/train.py:9 cryptolegacy http-not-https · CWE-319 · A02:2021
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/ops/backends/_ascend/ops/rms_norm.py:4 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/ops/backends/_ascend/ops/poly_norm.py:352 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/ops/backends/_ascend/ops/layer_norm.py:285 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/ops/backends/_ascend/ops/grpo_loss.py:875 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/ops/backends/_ascend/ops/fused_linear_cross_entropy.py:207 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/ops/backends/_ascend/ops/attn_res.py:1 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/chunked_loss/simpo_loss.py:72 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/chunked_loss/simpo_loss.py:35 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/chunked_loss/orpo_loss.py:63 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/chunked_loss/jsd_loss.py:43 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/chunked_loss/grpo_loss.py:193 qualitylegacy
high Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
src/liger_kernel/chunked_loss/fused_linear_unpaired_preference.py:6 qualitylegacy
high Legacy software logging conf 0.85 PII printed to stdout/stderr
Logging password/token/email/ssn directly to stdout.
src/liger_kernel/transformers/model/internvl.py:70 logginglegacy print-pii · CWE-532 · A09:2021
high Legacy software logging conf 0.85 PII printed to stdout/stderr
Logging password/token/email/ssn directly to stdout.
benchmark/scripts/benchmark_grpo_loss.py:203 logginglegacy print-pii · CWE-532 · A09:2021
high Legacy software logging conf 0.85 PII printed to stdout/stderr
Logging password/token/email/ssn directly to stdout.
examples/huggingface/launch_on_modal.py:39 logginglegacy print-pii · CWE-532 · A09:2021
high Legacy software logging conf 0.85 PII printed to stdout/stderr
Logging password/token/email/ssn directly to stdout.
examples/medusa/train.py:308 logginglegacy print-pii · CWE-532 · A09:2021
high Legacy software logging conf 0.85 PII printed to stdout/stderr
Logging password/token/email/ssn directly to stdout.
examples/medusa/train.py:307 logginglegacy print-pii · CWE-532 · A09:2021
medium Legacy quality quality conf 0.85 Python mutable default argument
def f(x=[]) — Python gotcha; mutates across calls.
benchmark/scripts/utils.py:260 qualitylegacy mutable-default-arg · CWE-1023
high Legacy software supply_chain conf 0.85 Supply chain — npm install without lockfile
Production image runs npm install (resolves new versions on every build) instead of npm ci.
examples/huggingface/launch_on_modal.py:11 supply_chainlegacy npm-install-no-lockfile · CWE-1357 · A06:2021
low Legacy quality quality conf 0.85 Cluster of TODOs in one file
Code path with a TODO/FIXME/HACK comment that gates correctness — left for later but never resolved.
src/liger_kernel/ops/cross_entropy.py:287 qualitylegacy todo-bomb
low Legacy quality quality conf 0.85 Cluster of TODOs in one file
Code path with a TODO/FIXME/HACK comment that gates correctness — left for later but never resolved.
src/liger_kernel/ops/cross_entropy.py:236 qualitylegacy todo-bomb
low Legacy quality quality conf 0.64 Duplicate top-level symbol appears in a patch-style file
A generated replacement file defining the same public function or class name as another module can mean the new logic is not actually wired into the running code.
src/liger_kernel/transformers/model/hunyuan_v1.py:1 qualitylegacy
high Legacy quality quality conf 0.62 Source file name looks like an AI patch artifact
Files named as final, fixed, copy, new, or backup are often temporary patch artifacts. They may be legitimate, but they deserve review before becoming production surface area.
src/liger_kernel/transformers/model/hunyuan_v1.py:1 qualitylegacy
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/fedca033-f0ab-4858-8e75-ec394950c9b6/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/fedca033-f0ab-4858-8e75-ec394950c9b6/

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.