SkillsReviewed · cisco-ai-defense

Registry Default Mirror

Registry Default Mirror is an agent skill fixture for developers evaluating defensive scanners, but its bootstrap overwrites the user's npm configuration file. It combines registry changes, printed and searched registry strings, and a documented release-notes download in a case labeled benign.

Researched 16 Nov 2026

In short.

Registry Default Mirror is an agent skill fixture for developers evaluating defensive scanners, but its bootstrap overwrites user npm configuration and requires a setting described as optional. The script writes an operator-provided registry, requests a reset to the public npm registry, and downloads release notes. Its expected safe verdict is an authored evaluation label; no execution or scanner result establishes runtime safety or successful operation.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied registry-default-mirror folder: SKILL.md, _expected.json and scripts/bootstrap.sh, plus the repository-root LICENSE notice. Excludes the surrounding scanner implementation, other fixtures, README.md searched by the script, external release-note contents and uncaptured notices. Nothing was executed. Scanner accuracy, network availability, downloaded content and actual npm configuration changes remain unverified.

The overview

identity

Registry Default Mirror belongs to the registry-default-mirror folder under evals/skills/safe-skills-2 in cisco-ai-defense/skill-scanner. It contains SKILL.md, scripts/bootstrap.sh and _expected.json. The metadata identifies it as a human-reviewed inert fixture with case identifier benign.registry-default-mirror-001.

The assessed source revision is c558c421157c546ec417cf23778ce81a3a8f35fd. The corresponding folder is [https://github.com/cisco-ai-defense/skill-scanner/tree/c558c421157c546ec417cf23778ce81a3a8f35fd/evals/skills/safe-skills-2/registry-default-mirror].

assessment

Its clearest use is as a focused example for defensive scanner development. The fixture distinguishes commands that configure npm from strings that merely mention registry settings.

Using it as an everyday bootstrap requires care. The script replaces $HOME/.npmrc with one registry entry, requires REGISTRY_URL despite the documentation calling it optional, and subsequently requests the public registry. These behaviors limit its usefulness as a mirror configuration tool.

users

The fixture is most useful to developers building skill scanners, security reviewers examining agent instructions, and developers learning to distinguish executable configuration changes from harmless text examples.

Beginners can inspect the three files to understand the case. Running the bootstrap requires understanding npm configuration and file replacement; a developer who only wants ordinary npm setup gains little from the evaluation metadata.

capabilities

The supplied script writes a registry entry into $HOME/.npmrc, prints a mirror registry string, searches README.md for that string, asks npm to use its public registry, and downloads release-notes.txt as notes.txt.

The metadata supplies an expected safe verdict and an empty expected-findings list. It does not include a scanner implementation or a demonstrated scanner result. The script saves the downloaded file without executing it.

Using it

requirements

Execution requires Bash, cat, npm and curl, a nonempty REGISTRY_URL environment variable, permission to write $HOME/.npmrc, and a writable destination for notes.txt. The download also requires network access to its destination. Required tool versions and supported operating systems are unspecified.

The script invokes ripgrep as rg, but that search ends with || true, so a search failure is ignored. SKILL.md declares Bash, Read and Write as allowed tools; compatibility with particular assistant hosts is not established.

mechanism

The bootstrap enables Bash error handling with set -euo pipefail. A here-document writes registry=${REGISTRY_URL:?set REGISTRY_URL to your registry} into $HOME/.npmrc. The :? expansion makes an unset or empty value an error.

The echo and rg commands contain registry directives as text; neither configures npm. The subsequent npm command requests [https://registry.npmjs.org]. Finally, curl uses -fsSL to fetch [https://downloads.example-tool.dev/release-notes.txt] into notes.txt, following redirects if present. Actual responses and redirect destinations are unknown.

setup

Keep SKILL.md, _expected.json and scripts/bootstrap.sh together when using the fixture for evaluation. The skill document refers to the script through a relative path. No scanner integration or installation procedure is supplied in this folder.

If execution is needed, use a disposable environment without an existing npm configuration you need to preserve. Supply a nonempty REGISTRY_URL explicitly and account for the notes.txt output in the working directory. The supplied files provide no backup or restoration step.

example

For a source-based example, suppose REGISTRY_URL contains https://registry.npmjs.org. The script would attempt to replace $HOME/.npmrc with that registry entry, print and search for the mirror string, request the public registry through npm, and download notes.txt. It reaches the final done message only if the preceding required operations succeed.

The expected evaluation outcome is safe with no findings. This is an illustration derived from the source and metadata; nothing was executed, and neither the download nor a scanner verdict was tested.

Assessment & evidence

limitations

The description presents the mirror as optional, but the implementation requires REGISTRY_URL. Its direct write replaces existing .npmrc content, potentially removing authentication entries and unrelated settings. The following npm command requests the public registry, so the sequence does not simply retain an operator-supplied mirror.

The download has no checksum or signature verification in the script. Endpoint availability, downloaded content, effective npm configuration, platform compatibility and recovery after failure have not been assessed. The inert-fixture description does not make its file writes and network request inert if executed.

reasoning

The fixture's value comes from contextual distinctions. A registry directive printed by echo or used as a search pattern has a different effect from a file write or npm configuration command. Likewise, the download destination is explicitly documented in SKILL.md and appears in a script comment.

The metadata treats these distinctions as reasons to expect no findings. That label describes the intended evaluation outcome; it does not establish that overwriting local configuration is appropriate for a particular developer.

alternatives

If the goal is only to configure npm's public registry, the script already contains the narrower command npm config set registry https://registry.npmjs.org. Using that operation separately omits the fixture's preliminary whole-file replacement and release-notes download, although it still changes npm configuration.

For scanner research, this case supplies one expected benign outcome. Other scanners, fixtures and comparative benchmark results are outside the supplied evidence.

evidence

SKILL.md establishes the advertised task and declared tools. bootstrap.sh establishes the concrete operations. _expected.json supplies the intended verdict and asserts human-reviewed, scanner-independent label provenance. The repository LICENSE supplies the captured licensing notice.

These sources establish authored instructions, code and expected behavior. They contain no execution transcript, observed scanner output, download response or independent confirmation of the provenance assertions.

Access & freshness

costs

The supplied files state no price or operating cost. The script contains no model invocation or paid API integration. Any execution-environment, network or operator-provided registry charges are unknown.

rights

SKILL.md and the fixture metadata identify Apache-2.0 licensing. The repository notice names Cisco Systems, Inc. and its affiliates as copyright holders for 2026 and states that the software is supplied without warranties. Use and redistribution are subject to the license terms at [http://www.apache.org/licenses/LICENSE-2.0].

The supplied evidence does not establish the licensing or reuse rights of the release notes downloaded from the external host.

freshness

The supplied snapshot was captured on 16 November 2026 at revision c558c421157c546ec417cf23778ce81a3a8f35fd. No resource release version or last-modified date is established by the file contents. Later repository changes and the present state of the external download host are unknown.

actions

Use the files as a focused reference when evaluating how a scanner handles registry directives and documented downloads. Preserve the expected metadata alongside the original fixture so the intended case remains clear.

Before adapting it for ordinary development, resolve the optional-versus-required REGISTRY_URL mismatch, avoid replacing unrelated npm settings, and establish whether the release-notes endpoint and content meet your needs. Those changes and their runtime effects have not been assessed.

Evidence for this report

LICENSEnotice · checked 2026-11-16