SKY-SCA-NEW001 · Supply chain and agent configuration
Dependency name is new or barely used on its registry
A package registry lets anyone register an unused name. SKY-SCA-NEW001 reports a direct npm or PyPI dependency whose name has almost no history there: it was first published less than 30 days ago, or it is less than 180 days old and has at most 2 releases.
- Languages
- requirements*.txt, pyproject.toml, setup.cfg, setup.py, uv.lock, poetry.lock, package.json, npm, pnpm and Yarn lockfiles
- Quality gate
- listed, not counted by the gate (full and diff scans). In the default
warnmode the finding is reported and no gate counts it.unproven_packages = "off"stops the check. - Needs
unproven_packages = "block"under[tool.skylos.supply_chain]makes the finding HIGH and counts it towardmax_dependency_vulnerabilities.- Finding type
- review
Why it matters
AI coding tools sometimes invent package names, and they tend to invent the same ones again and again. An attacker can register such a name and wait for someone to install it (slopsquatting). Once registered the name exists, so a check that only asks "is this a real package?" passes. Its age and release count are facts the uploader cannot backdate. A new package from a real project also matches, so the finding asks you to check, it does not say the package is malicious.
What Skylos flags
fitz[project]name = "shop"version = "1.0.0"What Skylos leaves alone
PyMuPDFWhy Skylos leaves it alone
PyMuPDF is imported as fitz, which is why fitz gets typed into requirements files, but the package to install is PyMuPDF. It has years of history on PyPI, so it is not reported. The fitz project on PyPI was, when this page was written, a few months old with a single release. A package you have checked and listed in approved_packages is not reported either.
How Skylos decides
- Runs with
--sca(part of-a). It checks direct dependencies only: pinned ones from the dependency inventory, and PyPI names declared without a version, such asfitzorflask>=3. - For each one Skylos asks the
ca9library, which reads the project's first publish time and release count from PyPI's JSON API or the npm registry. These lookups are the only network requests this rule makes, and an old project is answered from a local cache afterwards. - Reported: first published under 30 days ago, or under 180 days old with at most 2 releases. On 2,521 dependencies of 184 popular Python projects that was 0.6%, mostly a project's own brand-new packages.
- Links, descriptions and author names never decide the result: the uploader writes them. They are shown so you can check the package.
- Never looked up: transitive dependencies, names matching
internal_packages, packages that resolve from a private registry, and approved packages. Withprivate_registriesset and nointernal_packages, names declared without a version are not looked up either, so a private name is not sent to a public registry. - A registry that cannot be read is counted in
sca_coverage.supply_chain.package_historyand reports nothing. - Packages approved in Skylos Cloud are added to the repository's
approved_packages. In pull-request CI the repository's list comes from the base commit, so a pull request cannot approve its own new package.
How to fix it
Open the registry page in the message and check the package is the one you meant: who publishes it, whether it links to real source code, and whether the name matches what the documentation of the library you wanted says to install. If it is wrong, remove it. If it is right, add it to approved_packages.
Removed: [project]Removed: name = "shop"Removed: version = "1.0.0"Added: [tool.skylos.supply_chain]Added: approved_packages = ["pypi:some-new-package"]When it can be wrong
- A genuinely new package, including your own organization's, is reported until it is approved or has aged.
- A name registered more than 180 days ago, or one with 3 or more releases, is not reported even if nobody uses it.
Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.
How to silence it
List the package in
approved_packagesunder[tool.skylos.supply_chain], or setunproven_packages = "off". Like the other dependency rulesca9decides, it is not hidden by[tool.skylos] ignorein a full scan.