Scan rules
DSH Universe statically checks each new plugin version. It downloads the npm tarball or GitHub commit archive and analyzes source files in memory. It never executes plugin code.
What does the scanner check?
Section titled “What does the scanner check?”| Rule | What it checks | Risk levels |
|---|---|---|
| Install scripts | preinstall, install, and postinstall are high risk. prepare is low risk. | Low, High |
| Child processes | Importing child_process is medium risk. Building a dynamic command for exec or execSync is high risk. | Medium, High |
| Network access | Network calls are low risk. Calls to literal IP addresses or known relay services are high risk. | Low, High |
| Environment variables and sensitive paths | Reading an individual variable is low risk. Enumerating the environment is medium risk. Referencing a sensitive path is high risk. | Low, Medium, High |
| Obfuscation and dynamic execution | Dynamic execution, long lines, and long encoded strings are medium risk individually. Two or more categories in one file are high risk. | Medium, High |
| Direct dependencies | More than 30 direct dependencies is low risk. A direct dependency from a non-registry source is medium risk. | Low, Medium |
Findings include the rule, its risk level, and the file and line when available.
How do findings affect a version’s rating?
Section titled “How do findings affect a version’s rating?”When a scan completes without medium- or high-risk findings, the version is marked Scanned. Medium- or high-risk findings give the version a Warning rating. Low-risk findings are shown on the version without changing its rating.
What happens when a package is too large?
Section titled “What happens when a package is too large?”Archives whose download exceeds 3 MiB skip deep scanning. The version remains Listed.
How can I ask for a review?
Section titled “How can I ask for a review?”Check the rule and source location in the plugin’s security details. Describe why the plugin needs the capability in its README, then follow the report and appeal guide. If the capability is unnecessary, remove it and publish a new version so the scanner can check the change.