Grades are a hygiene check, not a security guarantee.

Claude Code, Skill

Nix Best Practices Skill

A standard for Nix: the scope a with opens, the shape of a module header and where its options live, what a derivation's meta has to say, what a flake.lock must not hold — everything nixfmt, statix and deadnix cannot see and therefore has to be written down — plus check-nix.sh,

Compatibility: Not stated.

Grade D

Two or more Medium findings, or a High. Only try it in a sandbox.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

INSTALL_REMOTE_SCRIPT

Why this grade

  • INSTALL_REMOTE_SCRIPT High

    Fetches a script from the network and runs it (a pipe to a shell, or an install hook with a URL).

    check-pins.sh, line 73 '(curl|wget) [^|]*[|] *(sudo +)?(ba|z)?sh( |$)' 'curl -fsSL https://example.invalid/install.sh | sh'

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

If you think this grade is wrong, email [email protected] with the entry link and your evidence. We aim to acknowledge within two working days and decide within seven. If we confirm an error, we aim to correct it within 24 hours of confirming it. These are aims, not guarantees.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Concern

    can delete files.

    PERMISSION_DELETE_FILES

    vendor-sync.sh, line 189

    shutil.rmtree(target)

  • Install and update

    Serious

    install fetches a script from the network.

    INSTALL_REMOTE_SCRIPT

    check-pins.sh, line 73

    '(curl|wget) [^|]*[|] *(sudo +)?(ba|z)?sh( |$)' 'curl -fsSL https://example.invalid/install.sh | sh'

    check-pins.sh, line 74

    '' 'wget -qO- https://example.invalid/install.sh | sudo bash'

  • Network

    Concern

    can reach example.invalid. The description does not name that host. can reach a host that is not written as a fixed address.

    NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST

    check-pins.sh, line 75

    '' 'curl -fsSL https://example.invalid/install.sh | zsh'

    check-sh.sh, line 1150

    # The help again, through the pipe `bash <(curl …)` hands bash. bash reads a script from

    vendor-sync.sh, line 2

    # Needs bash 3.2, git and POSIX tools only; URL sources also need curl and python3

    Show more

    vendor-sync.sh, line 46

    their executable bit. URL sources need curl and python3; Git sources do not need them.

    vendor-sync.sh, line 144

    fetch() {

    vendor-sync.sh, line 162

    command -v curl >/dev/null || fail "URL sources need curl"

    vendor-sync.sh, line 166

    curl --fail --silent --show-error --location --max-time 120 \

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_PATH_DOTENV

    references/packages.md, line 95

    pname: .env.pname,

    references/packages.md, line 96

    version: .env.version,

    references/packages.md, line 97

    mainProgram: .env.NIX_MAIN_PROGRAM,

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Pass

    No encoded or minified payload found.

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit a1238b481d5f. can delete files. install fetches a script from the network. can reach example.invalid. The description does not name that host. can reach a host that is not written as a fixed address. reads a credential or environment file.

Date and source

Date checked:

View source

github.com

Commit graded: a1238b481d5f377ae8eb24fe9b039d39eb0956e9

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen