Hub rules-lightgbm

rules-lightgbm

v3 public Verified

Lightgbm

LightGBM is a high-performance gradient boosting framework for machine learning. These rules enforce best practices for model training, data handling, and hyperparameter optimization when agents interact with LightGBM.

@sigmashakeinc 2 pulls 4 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-lightgbm →
Severity
2 error 2 warn 0 info
demo.cast
LightGBM is a high-performance gradient boosting framework for machine learning. These rules enforce best practices for model training, data handling, and hyperparameter optimization when agents interact with LightGBM.

Rules index

4 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

lightgbm

lightgbm-no-joblib-load-untrusted error block

joblib.load() deserializes Python objects from disk and can execute arbitrary code in a malicious file (CWE-502). Never load joblib files from user-supplied paths. For LightGBM models, prefer lgb.Booster(model_file=path).

Rule source requires an active Pro or Enterprise subscription.
lightgbm-no-model-path-traversal warning log

Constructing LightGBM model file paths from user-controlled input enables path traversal (CWE-22). Validate and canonicalize file paths against a fixed model directory before passing them to Booster() or save_model().

Rule source requires an active Pro or Enterprise subscription.
lightgbm-no-network-model-load warning log

Loading LightGBM models from remote URLs without integrity verification allows model substitution attacks. Verify the SHA-256 checksum of any downloaded model file against a pinned expected value before loading.

Rule source requires an active Pro or Enterprise subscription.
lightgbm-no-pickle-load error block

Loading LightGBM models via pickle is an RCE vector (CWE-502): a crafted pickle payload executes arbitrary Python. Use model.save_model() / lgb.Booster(model_file=path) which uses LightGBM's own text format that does not execute code.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
3e2d0d641837effaed52a2151d403c40fe5fadd8d5368161d83c1116c37b1f4d
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-lightgbm/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-lightgbm. The published version only bumps when a maintainer resyncs.

No commit history available.