pytorch-lightning

ISSUES FOUND max severity HIGHSkillSpector Caution 0 registry K-Dense-AI last scanned 1 scan

1 finding (1 high), mainly command injection. Most recent scan 2026-10-21.

Second scanner: NVIDIA SkillSpector

SkillSpector found no issues but could not fully inspect the package, usually because SKILL.md refers to a file that is not present, so it fails closed to CAUTION instead of SAFE. Read it as "not fully checked", not as a finding. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

Deep learning framework (PyTorch Lightning / lightning package). Organize PyTorch code into LightningModules, configure Trainers for multi-GPU/TPU, implement data pipelines, callbacks, logging (W&B, TensorBoard, MLflow), distributed training (DDP, FSDP, DeepSpeed), for scalable neural network training.

Package
11 files, 79 KB
SKILL.md
1137 words, 12+ sections
Code
Python (3)
Allowed tools
Read Write Edit Bash
License
Apache-2.0 license
Compatibility
Requires Python 3.10+ with lightning 2.6.6 and compatible PyTorch. CPU examples need no network after installation. CUDA/DDP/FSDP/DeepSpeed need suitable hardware; optional loggers require separate packages and online services need credentials/network.

SKILL.md covers: PyTorch Lightning · Overview · Installation · When to Use This Skill · Core Capabilities · 1. LightningModule - Model Definition · 2. Trainer - Training Automation · 3. LightningDataModule - Data Pipeline Organization · 4. Callbacks - Extensible Training Logic · 5. Logging - Experiment Tracking · 6. Distributed Training - Scale to Multiple Devices · 7. Best Practices

Findings

HIGH Python code block uses eval/exec Command Injectionbehavioral

Code block in references/lightning_module.md at line 106 contains potentially dangerous Python code.

references/lightning_module.md:106

model.eval()
Remediation: Review the code block for security implications.

What is in the package

FileKindSize
SKILL.mddoc10 KB
references/best_practices.mddoc5.2 KB
references/callbacks.mddoc5.4 KB
references/data_module.mddoc5.3 KB
references/distributed_training.mddoc7.4 KB
references/lightning_module.mddoc5.6 KB
references/logging.mddoc7.7 KB
references/trainer.mddoc5.6 KB
scripts/quick_trainer_setup.pyscript14 KB
scripts/template_datamodule.pyscript6.7 KB
scripts/template_lightning_module.pyscript6.1 KB

External hosts referenced

github.com lightning.ai arxiv.org docs.pytorch.org docs.neptune.ai doi.org export.arxiv.org www.comet.com www.deepspeed.ai

Hostnames that appear in the skill's files. Referencing a host is not a finding; compare against the findings above and the skill's stated purpose.

Environment variables referenced

COMET_API_KEY MLFLOW_TRACKING_URI

Package contents recorded 2026-10-22 at commit 593377bb0487. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources