Rule dictionary · Skylos 5.8.0
Every rule Skylos reports
Each finding Skylos prints has a rule ID, such as SKY-D211. Its page says what the rule finds and why it matters, shows code it flags and code it leaves alone, and explains how to fix it or silence it.
Skylos got it wrong? Every rule page has a Wrong result? Report it link that sends the rule ID with your report, privately to the founder. From a terminal, skylos feedback opens the same form.
Security in code
These rules look for code an attacker could abuse: outside input that reaches a database query, a shell, a file path or an outgoing request; unsafe deserialization; weak cryptography; cross-site scripting; and risky use of LLMs and MCP servers.
Many of them follow values through the code. They report when a value that can come from outside the program reaches a dangerous call without passing a known safe form, such as a bound query parameter. They run with --danger (also spelled --security) or -a.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-D200 | Dangerous call pattern | Not rated | – |
| SKY-D201 | Dynamic code execution with eval | High | Python, TypeScript/JavaScript, PHP |
| SKY-D202 | Dynamic code execution with exec | High | Python, TypeScript/JavaScript |
| SKY-D203 | OS command run through a shell | Critical | Python, Java, Kotlin, PHP |
| SKY-D204 | Unsafe pickle deserialization | Critical | Python, Java, Kotlin, PHP |
| SKY-D205 | Unsafe pickle.loads deserialization | Critical | Python |
| SKY-D206 | Unsafe YAML load | High | Python, Ruby |
| SKY-D207 | Weak MD5 hash | Medium | Python, TypeScript/JavaScript, Go, Java, Rust |
| SKY-D208 | Weak SHA-1 hash | Medium | Python, TypeScript/JavaScript, Go, Java, Rust |
| SKY-D209 | Subprocess run through a shell | High | Python |
| SKY-D210 | TLS certificate verification turned off | High | Python, TypeScript/JavaScript, Go, Rust, Java, Dart, PHP |
| SKY-D211 | SQL injection | Critical | Python, TypeScript/JavaScript, Java, Kotlin, Go, C#, PHP, Ruby, Rust |
| SKY-D212 | Command injection | Critical | Python, TypeScript/JavaScript, Go, Java, Kotlin, C#, PHP, Rust, Ruby, Dart, Shell |
| SKY-D213 | Hugging Face trust_remote_code runs repository code | High | Python |
| SKY-D215 | Path traversal | High | Python, TypeScript/JavaScript, Go, Java, Kotlin, C#, PHP, Rust, Dart, Shell |
| SKY-D216 | Server-side request forgery (SSRF) | Critical | Python, TypeScript/JavaScript, Go, Java, Kotlin, C#, PHP, Rust, Dart, Shell, Ruby |
| SKY-D217 | SQL injection through an ORM's raw SQL | Critical | Python |
| SKY-D218 | Dynamic urllib URL scheme audit | Medium | – |
| SKY-D226 | Cross-site scripting through raw HTML | Critical | TypeScript/JavaScript, Python, Go, Java, Kotlin, C#, PHP |
| SKY-D227 | Inline template that turns off HTML escaping | High | Python |
| SKY-D228 | HTML response built from user input | High | Python, TypeScript/JavaScript, Go, PHP, C#, Rust |
| SKY-D229 | XPath injection | Critical | Java |
| SKY-D230 | Open redirect | High | Python, TypeScript/JavaScript, Go, Java, Kotlin, C# |
| SKY-D231 | Unsafe CORS configuration | High | Python |
| SKY-D232 | JWT signature check turned off | Critical | Python |
| SKY-D233 | Unsafe deserialization | Critical | Python, Java, Kotlin, C#, TypeScript/JavaScript, Rust |
| SKY-D234 | Form or serializer accepts every model field | High | Python |
| SKY-D235 | Remote command execution over SSH | High | Python |
| SKY-D236 | XML external entity (XXE) | High | Java, Kotlin, TypeScript/JavaScript, Python, C# |
| SKY-D237 | Expression, JNDI or script injection | Critical | Java, Kotlin |
| SKY-D238 | NoSQL injection | High | TypeScript/JavaScript |
| SKY-D239 | LDAP injection | Critical | Java |
| SKY-D240 | MCP tool description poisoning | Critical | Python |
| SKY-D241 | MCP server on a network transport without authentication | High | Python |
| SKY-D242 | MCP resource template that exposes any file path | High | Python |
| SKY-D243 | MCP server open on every network interface without authentication | Critical | Python |
| SKY-D244 | Secret as the default value of an MCP tool parameter | Critical | Python |
| SKY-D245 | Dynamic require | High | TypeScript/JavaScript |
| SKY-D246 | JWT read with decode() instead of verify() | High | TypeScript/JavaScript |
| SKY-D247 | CORS middleware open to every origin | Medium | TypeScript/JavaScript |
| SKY-D248 | Hard-coded localhost URL | Medium | TypeScript/JavaScript |
| SKY-D250 | Weak random numbers for security values | Medium | Python, TypeScript/JavaScript, Go, Java |
| SKY-D251 | Password or token written to logs | High | Python, TypeScript/JavaScript, Rust |
| SKY-D252 | Cookie sent without the Secure or HttpOnly flag | Medium | Python, TypeScript/JavaScript, Java, Go, Rust |
| SKY-D253 | Secret compared with == or === | Medium | TypeScript/JavaScript, Python |
| SKY-D254 | Request data stored in the HTTP session | High | Java |
| SKY-D255 | File inclusion | Critical | PHP |
| SKY-D257 | Android WebView exposes app code to page JavaScript | High | Kotlin |
| SKY-D258 | Android WebView lets file pages read other files and sites | Medium | Kotlin |
| SKY-D260 | Prompt injection text in the repository | High | Python, Markdown, reStructuredText, text, YAML, JSON, TOML, .env files |
| SKY-D261 | Untrusted input pasted into an LLM prompt | High | Python |
| SKY-D262 | LLM output run as code, SQL, a shell command or a URL | Critical | Python |
| SKY-D263 | Secrets or personal data sent to an LLM | High | Python |
| SKY-D264 | AI agent given a shell, code runner or other broad tool | High | Python |
| SKY-D265 | Unsafe ML model deserialization | Critical | Python |
| SKY-D266 | Hidden or overriding orders in AI agent instruction files | Critical | AGENTS.md, CLAUDE.md, .cursorrules and other agent instruction files, AI code reviewer settings |
| SKY-D267 | LLM call or agent loop with no limits | Medium | Python |
| SKY-D270 | Token or password saved in browser storage | Medium | TypeScript/JavaScript |
| SKY-D271 | Stack trace or SQL error sent to the client | Medium | TypeScript/JavaScript |
| SKY-D280 | Next.js API route changes data without checking the user | High | TypeScript/JavaScript |
| SKY-D281 | SQL injection in a Next.js Server Action | Critical | TypeScript/JavaScript |
| SKY-D282 | Webhook handler trusts events without checking the signature | High | Python, TypeScript/JavaScript |
| SKY-D283 | Unauthenticated control, destructive or admin route | High | Python |
| SKY-D324 | Symlink-following file write | High | Python |
| SKY-D325 | Symlink-following file read | Medium | Python |
| SKY-D326 | Unsafe archive extraction | High | Python |
| SKY-D327 | Secrets or environment sent to an outside host | Critical | Shell, GitHub Actions, GitLab CI, Dockerfile, Python, TypeScript/JavaScript |
| SKY-D328 | Remote script piped into a shell | High | Dockerfile, Shell, GitHub Actions, GitLab CI, Python, TypeScript/JavaScript |
| SKY-D329 | Broad destructive shell command | High | Shell, GitHub Actions, GitLab CI, Dockerfile, Python, TypeScript/JavaScript |
| SKY-D337 | Package registry or index override | High | Dockerfile, Shell, GitHub Actions, GitLab CI, Python, TypeScript/JavaScript |
| SKY-D338 | Command reads host credentials or mounts the host root | Critical | Shell, GitHub Actions, GitLab CI, Dockerfile, Python, TypeScript/JavaScript |
| SKY-D339 | Command changes the machine's persistent setup | High | Shell, GitHub Actions, GitLab CI, Dockerfile, Python, TypeScript/JavaScript |
| SKY-D340 | Package or image published outside a release | High | GitHub Actions workflows, GitLab CI, Shell, Dockerfile, Python, TypeScript/JavaScript |
| SKY-D341 | Tool downloaded from the registry and run unpinned | High | GitHub Actions workflows, GitLab CI, Shell, Dockerfile, Python, TypeScript/JavaScript |
| SKY-D344 | Trojan Source bidirectional Unicode | High | Python |
| SKY-D345 | Hugging Face download not pinned to a commit | High | Python |
| SKY-D346 | Flask app started in debug mode | High | Python |
| SKY-D347 | Logging configuration accepted over a socket | Medium | Python |
| SKY-D348 | Insecure temporary filename | High | Python |
| SKY-D349 | Server-side template injection | Critical | Python, Java, PHP |
| SKY-D355 | Jinja environment without autoescape | High | Python |
| SKY-D356 | Cleartext outbound HTTP | Medium | Python, Rust |
| SKY-D357 | Untrusted dynamic Python import | High | Python |
| SKY-D358 | Gradio app open on every network interface without a login | High | Python |
| SKY-D359 | Cached request-derived external Flask URL | Medium | Python |
| SKY-D378 | Incomplete path traversal defence | Medium | – |
| SKY-D379 | Catastrophic regex backtracking | Medium | – |
| SKY-D380 | SSH host-key verification disabled | High | Python, Go |
| SKY-D383 | RSA key size defaults below 2048 bits | Medium | Python |
| SKY-D384 | ECB mode selected for encryption | Medium | Python, Kotlin |
| SKY-D385 | Django view saves a debit from a previously checked balance | Medium | Python |
| SKY-D386 | Legacy cipher used for encryption | High | Rust |
| SKY-D387 | Exposed password written to a database | High | Rust |
| SKY-D388 | Symmetric key embedded in source | High | Rust |
| SKY-D389 | Request text inserted into a regular expression | Medium | Rust |
| SKY-D390 | Request controls initial allocation capacity | High | Rust |
| SKY-D391 | Exposed secret in a request URL | High | Rust |
| SKY-D392 | Decoded request text in a log message | Medium | Rust |
| SKY-D415 | Unix permission value grants write access to all users | Medium | Rust |
| SKY-D416 | Non-octal Unix permission mode literal | Medium | Rust |
| SKY-D417 | PostgreSQL SECURITY DEFINER routine inherits its search path | Medium | PostgreSQL |
| SKY-D418 | PostgreSQL schema creation privilege granted to PUBLIC | Medium | PostgreSQL |
| SKY-D419 | PostgreSQL login role bypasses row-level security | Medium | PostgreSQL |
| SKY-D420 | PostgreSQL table write privileges granted to PUBLIC | Medium | PostgreSQL |
| SKY-D430 | Obsolete TLS protocol configured | High | Python |
| SKY-D431 | Unvalidated browser message origin | High | TypeScript/JavaScript |
| SKY-D432 | Spring Boot Actuator wildcard exposure | Medium | YAML, Java properties |
| SKY-D433 | Spring Security CSRF disabled | Medium | Java |
| SKY-D434 | Sensitive data stored in UserDefaults | High | Swift |
| SKY-D435 | Unbounded C library write | Medium | C++ |
| SKY-D436 | Repeated free of a local allocation | High | C++ |
| SKY-D437 | Local pointer used after free | High | C++ |
| SKY-D510 | Prototype pollution from request data | High | TypeScript/JavaScript |
| SKY-SC001 | Route lost an auth guard its security contract requires | High | Python (FastAPI) |
Secrets
Passwords, API keys and tokens written into source or configuration files, and server-only values exposed to code that runs in the browser. They run with --secrets or -a. Any reported secret fails the quality gate, whatever the configured limits. In test files and folders only known token formats, such as GitHub or AWS keys, are reported; generic random-looking values there are not.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-S101 | Secret written into a file | Critical | Python, TypeScript/JavaScript, Go, Java, Kotlin, C#, PHP, Rust, Ruby, Swift, Dart, C/C++, Shell, configuration, Markdown and key files |
| SKY-S102 | Secret exposed to code that runs in the browser | High | TypeScript/JavaScript, HTML, Vue, Svelte, Astro, and any file the secrets scan reads under a public folder |
Supply chain and agent configuration
Risks that arrive through what a project installs or what its developer tools run: dependency confusion, lockfile entries without integrity hashes, mutable dependency sources, risky upgrades, imports of packages the project never declared, and agent, editor and MCP settings committed to the repository, such as hooks that run commands on a developer's machine.
The SKY-SCA rules run with --sca. Some need more: upgrade review (UPG001, UPG002) needs --review-upgrades and a diff scan, install hardening (HRD001) a diff scan, and dependency confusion, release age and licence checks a policy in pyproject.toml. SKY-D223 runs with --ai-defects, the agent and editor rules with --danger. Skylos reads manifests and lockfiles itself; the ca9 library decides the supply-chain findings and reads the agent settings.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-D223 | Undeclared third-party import | Medium | Python |
| SKY-D365 | Agent hook committed to the repository | High | Claude Code, Gemini CLI, Cursor and Codex settings files |
| SKY-D366 | Editor task that runs when the folder opens | High | VS Code task and workspace files |
| SKY-D367 | MCP server launched without an exact version | Medium | MCP configuration files |
| SKY-D368 | MCP server launched from a hidden or temporary folder | High | MCP configuration files |
| SKY-D369 | MCP server package imitating a vendor | Medium | MCP configuration files |
| SKY-D370 | Agent API base URL overridden in repository settings | High | Claude Code and Codex settings files |
| SKY-D377 | Agent config with duplicated keys | Medium | Agent, editor and MCP settings files (JSON) |
| SKY-SCA-AGE001 | Dependency version younger than the release-age window | High | requirements*.txt, pyproject.toml, uv.lock, poetry.lock, Pipfile.lock, package.json, npm, pnpm, Yarn and Bun lockfiles |
| SKY-SCA-API001 | Your line uses API a dependency upgrade removed | Medium | Python lockfiles, requirements*.txt pins |
| SKY-SCA-HRD001 | Change weakens install hardening | High | .npmrc, package.json, pnpm-workspace.yaml, .yarnrc.yml, bunfig.toml, uv.toml, pyproject.toml, pip.conf, requirements*.txt, Dependabot, Renovate, GitHub Actions workflows |
| SKY-SCA-INT001 | Lockfile entry without an integrity hash | Medium | package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, uv.lock, poetry.lock |
| SKY-SCA-LIC001 | Dependency licence not allowed by your policy | High | package-lock.json, npm-shrinkwrap.json, installed node_modules and Python packages |
| SKY-SCA-NEW001 | Dependency name is new or barely used on its registry | Medium | requirements*.txt, pyproject.toml, setup.cfg, setup.py, uv.lock, poetry.lock, package.json, npm, pnpm and Yarn lockfiles |
| SKY-SCA-SRC001 | Possible dependency confusion | Critical | requirements*.txt, pyproject.toml, uv.lock, poetry.lock, Pipfile.lock, package.json, npm, pnpm, Yarn and Bun lockfiles |
| SKY-SCA-SRC003 | Dependency from Git or a URL that can change | Medium | requirements*.txt, pyproject.toml, uv.lock, poetry.lock, Pipfile.lock, package.json, npm, pnpm, Yarn and Bun lockfiles |
| SKY-SCA-SRC004 | Package moved to a source this repository did not use | High | npm, pnpm, Yarn, Bun, uv, Poetry, Pipfile, Cargo, Composer, Bundler and pub lockfiles |
| SKY-SCA-UPG001 | Dependency upgrade adds install-time or import-time code | Critical | package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, bun.lock, uv.lock, poetry.lock, Pipfile.lock |
| SKY-SCA-UPG002 | Dependency upgrade adds code worth reviewing | Medium | package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, bun.lock, uv.lock, poetry.lock, Pipfile.lock |
CI/CD pipelines
Rules for GitHub Actions workflows, GitLab CI files, Dependabot settings and jobs that publish packages. A CI job often holds secrets and a token that can write to the repository, so one workflow mistake can hand them to anyone who can open an issue or a pull request.
Skylos reads .github/workflows/*.yml and *.yaml, action.yml, action.yaml, .github/dependabot.yml and .gitlab-ci.yml (whose include: entries are checked for pinning; the included files are not read). These rules run with --danger or -a; the publish-job rules are decided by the ca9 library, and SKY-D375 appears only in diff scans. Note that SKY-G IDs belong to Go, not to CI.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-D290 | GitHub Actions dangerous trigger | High | GitHub Actions workflows |
| SKY-D291 | GitHub Actions missing or broad token permissions | High | GitHub Actions workflows |
| SKY-D292 | GitHub Actions unpinned action | High | GitHub Actions workflows, composite actions |
| SKY-D293 | GitHub Actions persisted checkout credentials | Medium | GitHub Actions workflows, composite actions |
| SKY-D294 | GitHub Actions template injection | Critical | GitHub Actions workflows, composite actions |
| SKY-D295 | Job runs on a self-hosted runner | High | GitHub Actions workflows |
| SKY-D296 | Container image not pinned by digest | High | GitHub Actions workflows, Docker and composite actions |
| SKY-D297 | Reusable workflow gets every secret with secrets inherit | High | GitHub Actions workflows |
| SKY-D298 | Workflow reads the whole secrets context | High | GitHub Actions workflows, composite actions |
| SKY-D299 | Secret in a job outsiders can start, without an environment | Medium | GitHub Actions workflows |
| SKY-D300 | Unsafe write to GITHUB_ENV or GITHUB_PATH | High | GitHub Actions workflows, composite actions |
| SKY-D301 | Container registry password written in the workflow | High | GitHub Actions workflows |
| SKY-D302 | GitHub App token broader than needed | High | GitHub Actions workflows, composite actions |
| SKY-D303 | contains() used as an allow-list check | Medium | GitHub Actions workflows |
| SKY-D304 | Bot check on a spoofable actor | Medium | GitHub Actions workflows |
| SKY-D305 | Multi-line if with ${{ }} that is always true | Medium | GitHub Actions workflows |
| SKY-D306 | Insecure workflow commands turned back on | High | GitHub Actions workflows, composite actions |
| SKY-D307 | Workflow or action without a name | Low | GitHub Actions workflows, composite actions |
| SKY-D308 | Release build restores a CI cache | High | GitHub Actions workflows |
| SKY-D309 | Secret in a workflow-wide or job-wide environment | High | GitHub Actions workflows |
| SKY-D310 | OIDC publish job runs repository build scripts | High | GitHub Actions workflows |
| SKY-D311 | Artifact upload passes when files are missing | Medium | GitHub Actions workflows, composite actions |
| SKY-D312 | JavaScript install runs dependency scripts in CI | High | GitHub Actions workflows, composite actions |
| SKY-D313 | Privileged job running outsiders' code has no timeout | Low | GitHub Actions workflows |
| SKY-D314 | GitLab CI mutable container image | High | GitLab CI |
| SKY-D315 | GitLab CI unpinned external include | High | GitLab CI |
| SKY-D316 | GitLab CI literal secret variable | High | GitLab CI |
| SKY-D317 | GitLab CI untrusted eval | High | GitLab CI |
| SKY-D318 | GitLab CI Docker-in-Docker TLS disabled | High | GitLab CI |
| SKY-D319 | GitLab CI OIDC token in a job that runs repository scripts | High | GitLab CI |
| SKY-D320 | GitLab CI release job restores a cache | High | GitLab CI |
| SKY-D321 | GitLab CI release or OIDC job without a timeout | Medium | GitLab CI |
| SKY-D322 | GitLab CI runner tag set from a variable | Medium | GitLab CI |
| SKY-D323 | GitLab CI secret that does not name its ID token | Medium | GitLab CI |
| SKY-D350 | AI agent that anyone can start, with no actor check | Critical | GitHub Actions workflows |
| SKY-D351 | AI agent action's write-access check switched off | Critical | GitHub Actions workflows |
| SKY-D352 | AI agent with an unrestricted shell reads untrusted text | High | GitHub Actions workflows |
| SKY-D353 | Untrusted text pasted into an AI agent's prompt | High | GitHub Actions workflows |
| SKY-D354 | AI agent action version with a published advisory | High | GitHub Actions workflows |
| SKY-D360 | Dependabot runs manifest code with registry credentials | High | Dependabot configuration |
| SKY-D361 | Dependabot cooldown under seven days | Low | Dependabot configuration |
| SKY-D362 | GitHub Actions decoded secret printed unmasked | Medium | GitHub Actions workflows |
| SKY-D363 | GitHub Actions obfuscated action path or expression | Medium | GitHub Actions workflows, composite actions |
| SKY-D364 | Long-lived publish token where trusted publishing exists | Medium | GitHub Actions workflows |
| SKY-D371 | Unpinned tool installed in a job that holds publish credentials | High | GitHub Actions workflows, GitLab CI |
| SKY-D372 | Unverified download reaching the publish step | High | GitHub Actions workflows, GitLab CI |
| SKY-D373 | OIDC publish job without an environment | High | GitHub Actions workflows, GitLab CI |
| SKY-D374 | Publish workflow started by workflow_dispatch or any-branch push | High | GitHub Actions workflows |
| SKY-D375 | Pull request changes a job that publishes packages | Medium | GitHub Actions workflows, GitLab CI |
| SKY-D376 | Secrets passed to a reusable workflow from another repository | Medium | GitHub Actions workflows |
Deployment and infrastructure
Rules for the files that describe how code is deployed: Kubernetes manifests, Docker Compose files, systemd units, Dockerfiles, Terraform and GPU release contracts. They read the declarations in the repository; Skylos does not contact a cluster or a cloud account. The source checks run with --danger or -a. The Envoy check reads listener configuration. For the DNS cleanup check, pass a saved plan to skylos rules terraform-plan plan.json before applying it.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-D330 | Privileged container with device or GPU access | High | Docker Compose |
| SKY-D331 | Host device or control path mounted into a container | High | Docker Compose |
| SKY-D332 | Host networking on an edge or device service | Medium | Docker Compose |
| SKY-D333 | Edge systemd service runs as root | High | systemd units |
| SKY-D334 | Root systemd service runs a program from a user-writable folder | High | systemd units |
| SKY-D335 | Root edge systemd service without basic sandboxing | Medium | systemd units |
| SKY-D336 | Edge systemd service with broad capabilities or devices | High | systemd units |
| SKY-D342 | Dockerfile ADD downloads a file without a checksum | High | Dockerfile |
| SKY-D343 | Dockerfile bakes a secret into the image | High | Dockerfile |
| SKY-D400 | Terraform security group opens SSH or RDP to the whole internet | High | Terraform |
| SKY-D401 | Terraform creates an RDS database with storage encryption turned off | High | Terraform |
| SKY-D402 | Terraform gives an S3 bucket a public ACL | High | Terraform |
| SKY-D403 | Terraform S3 bucket policy grants access to everyone | High | Terraform |
| SKY-D404 | Terraform turns off S3 public access protections | High | Terraform |
| SKY-D405 | Terraform makes an RDS database publicly accessible | High | Terraform |
| SKY-D406 | Terraform creates an unencrypted EBS volume | High | Terraform |
| SKY-D407 | Terraform lets EC2 servers use metadata without tokens (IMDSv1) | High | Terraform |
| SKY-D408 | Terraform security group opens a database port to the whole internet | High | Terraform |
| SKY-D409 | Kubernetes container runs in privileged mode | High | Kubernetes YAML |
| SKY-D410 | Kubernetes pod shares the node's process, IPC or network namespace | High | Kubernetes YAML |
| SKY-D411 | Kubernetes container mounts a sensitive host path | High | Kubernetes YAML |
| SKY-D413 | Envoy HTTP/1 listener accepts ambiguous message framing | Medium | Envoy YAML |
| SKY-D414 | Terraform plan deletes an S3 bucket while retaining its DNS record | Medium | Terraform plan JSON |
| SKY-DEP001 | Internet-facing route is missing the auth guard your deployment requires | High | Python (FastAPI, Flask), Kubernetes YAML |
| SKY-DEP002 | Internet-facing Ingress reaches the Flask debugger | High | Kubernetes YAML, Flask |
| SKY-DEP003 | Internet-facing Ingress routes to a server in reload mode | Medium | Kubernetes YAML, Uvicorn, Gunicorn, Flask |
| SKY-GPU000 | GPU release contract is invalid or cannot be checked | High | GPU target contract (YAML), Dockerfile, CMake, Python |
| SKY-GPU001 | CUDA image needs a newer NVIDIA driver than the targets have | High | Dockerfile, GPU target contract (YAML) |
| SKY-GPU002 | CUDA build leaves out a target GPU's architecture | High | CMake, Makefile, Bazel, shell, Python build scripts, GPU target contract (YAML) |
| SKY-GPU003 | TensorRT engine shipped to GPUs it was not built for | High | Python, C++, Dockerfile, GPU target contract (YAML) |
AI-code defects
Mistakes coding agents make often: packages and APIs that do not exist, tests that were weakened, skipped or deleted, loosened CI or linter settings, and code that detects the test run. A few rules read one version of the code. Most compare a change with an earlier commit, either in a diff scan (--diff) or in skylos done, the check an agent runs when it finishes.
They run with --ai-defects or -a; the skylos done rules run only in skylos done, and SKY-A105 only in skylos verify. Some older rules keep their SKY-L or SKY-D IDs so that existing suppressions and baselines keep working.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-A101 | Test assertion weakened | Medium | Python tests (pytest, unittest), JavaScript/TypeScript tests (Jest, Vitest, node:assert), snapshot files |
| SKY-A102 | High-risk change without tests | Low | Python, TypeScript, JavaScript, Go, Java, Kotlin, C#, PHP, Rust, Dart |
| SKY-A103 | CI permission expansion | High | GitHub Actions workflows |
| SKY-A104 | Public CLI surface drift | Medium | Python (argparse, Click, Typer) |
| SKY-A105 | Contract route guard missing | High | Python (Flask, FastAPI and other decorator-routed frameworks) |
| SKY-A106 | Suspicious dependency version bump | Low | Python packaging (pyproject.toml, setup.py, requirements files, uv.lock, poetry.lock) |
| SKY-A110 | Test deleted | High | Python tests (pytest, unittest), JavaScript/TypeScript tests (Jest, Vitest, Mocha, node:test, Playwright) |
| SKY-A111 | Test newly skipped | High | Python tests (pytest, unittest), JavaScript/TypeScript tests (Jest, Vitest, Mocha, node:test, Playwright) |
| SKY-A112 | Test settings loosened | High | pytest settings (pyproject.toml, pytest.ini, tox.ini, setup.cfg, conftest.py), coverage settings, Jest and Vitest configs, package.json test scripts, GitHub Actions test steps |
| SKY-A113 | Tests fail when Skylos runs them | High | Python (pytest, found automatically), any test command that writes JUnit XML (set test_command and junit_xml) |
| SKY-A114 | Skylos settings or hooks changed | High | pyproject.toml, skylos.toml, .skylos/ files, agent hook settings (Claude Code, Codex, Cursor), GitHub Actions workflows |
| SKY-A115 | Test answer hard-coded in code | High | Python, JavaScript, TypeScript |
| SKY-A116 | Code detects the test run | High | Python, JavaScript, TypeScript |
| SKY-A117 | Comparison rigged to always pass | High | Python, JavaScript, TypeScript |
| SKY-A118 | Inline suppression added | Low | Python, JavaScript/TypeScript (also Vue, Svelte, Astro), Go, Rust, Java/Kotlin, C# |
| SKY-A119 | Linter or scanner settings weakened | High | Python tool settings (Ruff, Flake8, Pylint, mypy, Pyright, Bandit), TypeScript and ESLint, Biome, golangci-lint, Cargo lints, pre-commit, scanner settings (Semgrep, SonarQube, CodeQL, gitleaks, detect-secrets, Trivy, OSV-Scanner, Snyk, Checkstyle, SpotBugs) |
| SKY-A120 | Changed line not checked by tests | Medium | Python (pytest) |
| SKY-A121 | CI check weakened | High | GitHub Actions workflows and composite actions, GitLab CI |
| SKY-A122 | AI-reviewer settings changed | Medium | AI reviewer settings (YAML, TOML, JSON, TypeScript), reviewer instruction files (Markdown) |
| SKY-A125 | Scanner suppression marker added | Medium | Any file with comments (Python, JavaScript/TypeScript, Go, Java, PHP, Ruby, C/C++, Terraform, YAML, shell, Dockerfiles and more) |
| SKY-A135 | Code left unused by the change | Medium | Python, TypeScript/JavaScript (symbols and whole files), Java, Kotlin, Go (needs the skylos-go engine), PHP, Rust, and the other languages the dead-code engine reads |
| SKY-A136 | New code nothing calls | Low | Python, TypeScript/JavaScript (symbols and whole files), Java, Kotlin, Go (needs the skylos-go engine), PHP, Rust, and the other languages the dead-code engine reads |
| SKY-A137 | New code only tests call | Low | Python, TypeScript/JavaScript (symbols and whole files), Java, Kotlin, Go (needs the skylos-go engine), PHP, Rust, and the other languages the dead-code engine reads |
| SKY-D222 | Dependency hallucination | Critical | Python, JavaScript/TypeScript (npm), Go modules, install commands in scripts, Dockerfiles, CI files and docs |
| SKY-D224 | API signature hallucination | High | Python |
| SKY-D225 | Dependency version hallucination | High | Python (requirements.txt, pyproject.toml), JavaScript/TypeScript (package.json), Go modules, install commands in scripts, Dockerfiles, CI files and docs |
| SKY-L012 | Phantom symbol reference | Critical | Python, Go, Java, TypeScript, JavaScript |
| SKY-L023 | Phantom decorator | Critical | Python |
Logic and resilience
Common bug patterns: mutable default arguments, bare or empty exception handlers, debug leftovers, network calls without a timeout, and placeholder code left behind. They run with --quality or -a.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-L001 | Mutable default argument | High | Python |
| SKY-L002 | Bare except block | Medium | Python |
| SKY-L003 | Comparison to True, False or None with == | Low | Python |
| SKY-L004 | Try block too broad | Varies | Python |
| SKY-L005 | Unused exception variable | Low | Python |
| SKY-L006 | Inconsistent return | Medium | Python |
| SKY-L007 | Empty error handler | Varies | Python, TypeScript, JavaScript |
| SKY-L008 | Missing resource cleanup | Medium | Python |
| SKY-L009 | Debug leftover | Varies | Python |
| SKY-L010 | Security TODO marker | Medium | Python |
| SKY-L011 | Disabled security control | Varies | Python |
| SKY-L013 | Insecure randomness | High | Python |
| SKY-L014 | Hardcoded credential | Varies | Python |
| SKY-L016 | Undefined config | Medium | Python |
| SKY-L017 | Error information disclosure | Medium | Python |
| SKY-L020 | Overly broad file permissions | High | Python |
| SKY-L021 | Security control removed by a change | High | Python, TypeScript, JavaScript, Go, Java, PHP, Rust, Dart |
| SKY-L024 | Stale mock target | High | Python |
| SKY-L026 | Unfinished code or placeholder default | Medium | Python, TypeScript, JavaScript |
| SKY-L027 | Duplicate string literal | Varies | Python |
| SKY-L028 | Too many returns | Varies | Python |
| SKY-L029 | Unclear boolean argument | Low | Python |
| SKY-L030 | Broad exception with trivial handler | High | Python |
| SKY-L031 | Missing network timeout | Medium | Python |
| SKY-L032 | Mock or placeholder data | Varies | Python |
| SKY-L033 | No-effect statement | Low | Python |
| SKY-L034 | Repeated mutable alias | Medium | Python |
| SKY-L035 | Blanket ESLint disable | High | TypeScript, JavaScript |
| SKY-L036 | Import repeated inside function | Low | Python |
| SKY-L037 | Conditional returning bool literals | Low | Python |
| SKY-L038 | Conversion call inside f-string | Low | Python |
| SKY-L039 | Except clause that only re-raises | Low | Python |
| SKY-L040 | Constant assertion in test | Low | Python |
| SKY-L041 | Empty test body | Low | Python |
| SKY-L042 | Repeated test assertion | Low | Python |
| SKY-L043 | Sleep used for test synchronization | Low | Python |
| SKY-L044 | Test runs no project code | Low | Python |
| SKY-L045 | Test assertion always true | Low | Python |
| SKY-L046 | Test result never checked | Low | Python |
| SKY-L047 | Duplicate test | Low | Python |
Quality, structure and performance
Maintainability and performance: complexity, nesting and size, duplicated code, coupling, async and threading mistakes, typing practice, framework practice and repository policy. They run with --quality or -a, except circular imports (SKY-CIRC), which every scan reports.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-C303 | Too many arguments | Varies | Python, TypeScript, JavaScript, Java, Go |
| SKY-C304 | Function too long | Varies | Python, TypeScript, JavaScript, Java, Go |
| SKY-C401 | Duplicated code clone | Varies | Python |
| SKY-CIRC | Circular dependency | Low | Python, TypeScript, JavaScript |
| SKY-F101 | FastAPI route without a response contract | Low | Python |
| SKY-F102 | Route that changes data without an auth guard | Varies | Python |
| SKY-P401 | Potential unbounded read | Low | Python |
| SKY-P402 | pandas read_csv without a row bound | Low | Python |
| SKY-P403 | Nested loop that searches a collection per item | Low | Python |
| SKY-P404 | Unbounded eager ORM query | Medium | Python |
| SKY-Q301 | Cyclomatic complexity too high | Varies | Python, TypeScript, JavaScript, Java, Go |
| SKY-Q302 | Deep nesting | Varies | Python, TypeScript, JavaScript, Java, Go |
| SKY-Q305 | Duplicate branch logic | Medium | Python, TypeScript, JavaScript, Rust |
| SKY-Q306 | Cognitive complexity too high | Varies | Python, TypeScript, JavaScript |
| SKY-Q401 | Async blocking call | High | Python |
| SKY-Q402 | Await in loop | Low | TypeScript, JavaScript |
| SKY-Q403 | Inconsistent lock acquisition order | High | Python |
| SKY-Q404 | Thread shared state mutation | Medium | Python |
| SKY-Q405 | Async Promise executor | High | TypeScript, JavaScript |
| SKY-Q406 | Async callback passed to forEach | High | TypeScript, JavaScript |
| SKY-Q407 | Discarded async Array.map result | High | TypeScript, JavaScript |
| SKY-Q408 | Undeclared npm dependency | Medium | TypeScript, JavaScript, package.json |
| SKY-Q409 | Unlisted npm script binary | Medium | package.json |
| SKY-Q410 | Discarded local async result | Medium | TypeScript, JavaScript |
| SKY-Q411 | Unused pnpm catalog entry | Low | pnpm-workspace.yaml, package.json |
| SKY-Q412 | Unresolved pnpm catalog reference | Medium | package.json, pnpm-workspace.yaml |
| SKY-Q413 | Referenced optional peer dependency | Low | TypeScript, JavaScript, package.json |
| SKY-Q414 | Unresolved import | Medium | TypeScript, JavaScript, Vue, Svelte, Astro |
| SKY-Q501 | God class | Medium | Python |
| SKY-Q502 | File too large | Varies | Python |
| SKY-Q503 | Unused read-only PostgreSQL CTE | Low | PostgreSQL |
| SKY-Q504 | PostgreSQL filter compares a value to NULL | Medium | PostgreSQL |
| SKY-Q505 | Literal NULL in a PostgreSQL NOT IN filter | Medium | PostgreSQL |
| SKY-Q506 | Concurrent PostgreSQL index command inside a transaction | Medium | PostgreSQL |
| SKY-Q507 | Unsupported concurrent PostgreSQL index drop | Medium | PostgreSQL |
| SKY-Q508 | Mismatched PostgreSQL foreign key column counts | Medium | PostgreSQL |
| SKY-Q509 | Unreachable PostgreSQL CASE arm | Low | PostgreSQL |
| SKY-Q510 | PostgreSQL COUNT includes every CASE result | Medium | PostgreSQL |
| SKY-Q701 | High coupling | Varies | Python |
| SKY-Q702 | Low cohesion | Varies | Python |
| SKY-Q801 | High instability | Medium | – |
| SKY-Q802 | Unbalanced module design | Varies | Python, TypeScript, JavaScript |
| SKY-Q803 | Module hard to change or unused | Medium | Python, TypeScript, JavaScript |
| SKY-Q804 | Stable module depends on an unstable one | Varies | Python, TypeScript, JavaScript |
| SKY-Q805 | Architecture layer policy violation | Varies | Python, TypeScript, JavaScript |
| SKY-Q806 | Opaque identifier | Low | Python |
| SKY-Q807 | Sibling package dependency cycle | Low | Python |
| SKY-R101 | Python type-check policy | Medium | Python |
| SKY-R102 | Python lint policy | Low | Python |
| SKY-R103 | Skylos gate policy | Low | Python, TypeScript, JavaScript, Java, Go |
| SKY-R104 | Pre-commit policy | Low | Python, TypeScript, JavaScript, Java, Go |
| SKY-R105 | TypeScript type-check policy | Low | TypeScript |
| SKY-T101 | Missing parameter type annotations | Low | Python |
| SKY-T102 | Missing return type annotation | Low | Python |
| SKY-T103 | Suspicious chained type assertion | Medium | TypeScript |
| SKY-T104 | TypeScript compiler suppression directive | Medium | TypeScript, JavaScript |
| SKY-T105 | Unvalidated JSON type assertion | Medium | TypeScript |
| SKY-T106 | Unsafe exported API type | Medium | TypeScript |
Dead code
Code nothing uses: functions, classes, imports, variables, parameters, files and declared dependencies, plus statements that can never run. A plain skylos . reports unused functions, classes, imports, variables and parameters, and empty or unused files. Unused declared dependencies (SKY-U005) and unreachable code (SKY-UC001, UC002) need --quality.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-E002 | Empty file | Low | Python |
| SKY-E003 | Unused TypeScript/JavaScript file | Low | TypeScript, JavaScript |
| SKY-E004 | Unnecessary TypeScript/JavaScript export | Low | TypeScript, JavaScript |
| SKY-E005 | Duplicate TypeScript/JavaScript export | Low | TypeScript, JavaScript |
| SKY-U001 | Unused function | No severity | Python, TypeScript/JavaScript, Java, PHP, Dart, Go, Ruby (partial), C# (partial), C++ (file-local functions), Kotlin (private functions), Swift (private and fileprivate functions), Rust (hidden below the default threshold) |
| SKY-U002 | Unused import | No severity | Python, TypeScript/JavaScript, PHP (`use`), Kotlin, Dart, Rust (hidden below the default threshold) |
| SKY-U003 | Unused variable | No severity | Python, TypeScript/JavaScript (top-level declarations), PHP (properties), C# (fields), Swift (private properties), Dart |
| SKY-U004 | Unused class | No severity | Python, TypeScript/JavaScript, Java, Go (types), PHP, Kotlin (private classes), Swift (private and fileprivate types), C#, Dart |
| SKY-U005 | Unused dependency | Medium | Python, npm package.json |
| SKY-U006 | Unused parameter | No severity | Python |
| SKY-U007 | Unused TypeScript enum member | Low | TypeScript |
| SKY-U008 | Unused TypeScript namespace member | Low | TypeScript |
| SKY-U009 | Unused private Rust enum variant | Low | Rust |
| SKY-UC001 | Unreachable Python code | Medium | Python |
| SKY-UC002 | Unreachable statement | Medium | TypeScript, JavaScript, Java, C#, Rust |
Go-specific rules
SKY-G IDs come from the Go engine that ships with Skylos. When a Go problem has a rule shared with other languages, Skylos reports it under that rule: Go SQL injection is reported as SKY-D211, for example. Only the Go-only rules, such as defer inside a loop, keep a SKY-G ID in the output, so the renamed IDs have no page of their own. They run with --danger or -a.
| Rule | Title | Severity | Languages and files |
|---|---|---|---|
| SKY-G203 | Go defer inside a loop | Medium | Go |
| SKY-G206 | Go unsafe package use | Low | Go |
| SKY-G207 | Go weak MD5 hash | Medium | – |
| SKY-G208 | Go weak SHA1 hash | Medium | – |
| SKY-G209 | Go weak RNG | Medium | – |
| SKY-G210 | Go TLS verification disabled | High | – |
| SKY-G211 | Go SQL injection | Critical | – |
| SKY-G212 | Go command injection | Critical | – |
| SKY-G215 | Go path traversal | High | – |
| SKY-G216 | Go SSRF | Critical | – |
| SKY-G220 | Go open redirect | High | – |
| SKY-G221 | Go insecure cookie | Medium | – |
| SKY-G260 | Go unclosed resource | Medium | Go |
| SKY-G280 | Go weak TLS version | High | Go |