Skip to content

Security: ZoolCoder/zc-care

SECURITY.md

Security policy

Reporting a vulnerability

Please do not open a public issue for a security problem.

Use GitHub's private reporting — Security → Report a vulnerability — or email the maintainer listed on the repository profile.

You will get an acknowledgement within a few days. This is a small project with one maintainer, so please be patient; if a fix takes longer than that, you will be told where it stands rather than left waiting.

What is in scope

zc-care writes changes to the targets its config names, so the interesting failures are about writing somewhere it should not and about doing something the operator did not review.

Especially in scope:

  • A write outside a target. The localdir provider writes through os.Root, so a symlink or a .. in a file name cannot lead a write out of the target directory. A way around that is a vulnerability.
  • Applying something that was not planned. A saved plan that applies after the world moved, or an action executing that the plan did not list.
  • A MANUAL action executing. Those never have a Do.
  • An agent applying without the operator. The MCP server's apply takes only the id of a plan it saved and never a plan body, and a plan that deletes goes back to the operator's terminal; the plugin's hook asks before an apply with -yes. A path where an agent applies something the operator was not shown is in scope.

What is not in scope

  • A hostile config file. A config can name any directory you can write to. Review a config you did not write, as you would any script.
  • Anything requiring an attacker to already have your shell.

How the repository protects itself

  • main, develop and v* tags cannot be force-pushed or deleted, and change only through pull requests with green CI. Only the maintainer can push a release tag.
  • Every third-party action is pinned to a commit SHA, and the workflow token is read-only unless a job asks for more.
  • Dependabot opens updates weekly after a seven-day cooldown, so a compromised release has time to be caught before it lands here.
  • Secret scanning with push protection blocks a committed credential. Tests and fixtures use no real path, host or account name.
  • security.yml runs CodeQL and govulncheck on every push and once a week, because a vulnerability in a dependency arrives without a commit.

scripts/harden.sh applies these settings to the GitHub repository, and .github/rulesets/ holds the branch and tag rules it applies.

Supported versions

The latest release.

What you can expect from a fix

A security fix gets a release of its own, notes saying what was exposed and under what conditions, and a test that fails without the fix.

There aren't any published security advisories