Files
poli0981andClaude Opus 5.5 49301f266b docs: the project lives on Gitea, issues on GitLab, releases on R2
README (badges from Gitea Actions and shields' Gitea release badge,
"Where things live", downloads from releases.poli0981.dev, checksums and
the CycloneDX SBOM instead of `gh attestation verify`, a note that 2.2.0 and
older must update once by hand), USAGE, UPDATES (the HTTP feed, the file
layout on R2, the delta from `vpk download s3`), RELEASING (the new release
workflow, its dry run, user-level R2 secrets), BUILD (the CI table on Gitea
Actions, Renovate), PRIVACY (the update check goes to releases.poli0981.dev
through Cloudflare), SECURITY (e-mail only, never a public issue on the
mirror; Qodana, gitleaks, Opengrep, osv-scanner, NuGetAudit, Renovate instead
of CodeQL, Scorecard, SonarCloud, Snyk and Dependabot; no attestations),
CONTRIBUTING (Gitea read-only, issues and merge requests on GitLab, patches
by e-mail), CODE_OF_CONDUCT, EULA, DISCLAIMER and MAINTAINERS lose their
GitHub references, THIRD-PARTY-NOTICES swaps SonarScanner for CycloneDX,
Directory.Build.props points RepositoryUrl at Gitea, and CLAUDE.md gets the
new rules 6 and 7 and a "Forge & CI" section. CHANGELOG entries stay as they
were; only the compare links at the bottom point at Gitea.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:24:40 +07:00

7.1 KiB

Security Policy

CommandForge runs system-level commands, some as administrator, so security is a top priority.

Supported versions

Version Supported
2.3.x (latest) ✅
< 2.3 ❌ — please update (2.2.0 and older can't update themselves: install the latest release once by hand, see UPDATES.md)

Only the latest release receives security fixes. Please update before reporting.

CommandForge is in maintenance mode since 2.2.0, and security work goes on: a High or Critical vulnerability in CommandForge, a dependency or the toolchain (the .NET runtime it ships with, for example) gets an urgent patch release; a Moderate one goes into the next routine update. A catalog command that could cause harm is reported here too, privately.

Reporting a vulnerability

Report privately by e-mail: security@poli0981.dev.

Do not open a public issue for security vulnerabilities — not on the GitLab mirror (gitlab.com/poli0981/CommandForge), where issues are public, and not anywhere else. If one is opened there by mistake, it is made confidential and the conversation continues by e-mail. (GitHub's private vulnerability reporting is gone with the GitHub account.)

Please include:

  • the affected version (More → About in the app),
  • steps to reproduce,
  • the impact you observed or expect.

We aim to acknowledge reports within a reasonable time and will credit reporters who wish to be named. Please give us a reasonable window to fix the issue before any public disclosure.

Security model

CommandForge guards the line between your normal (non-elevated) session and administrator rights: no file, setting, network response or other program running as you should be able to decide what runs elevated.

  • Vetted, read-only catalog. Every command that can run as administrator is in a catalog that is built into the app and reviewed by the maintainer. The app never loads catalog commands from files, users or the network. When the catalog loads, contradictory or unsafe records are rejected (for example, unknown placeholders, or a Caution/Dangerous command without a confirmation).
  • Least privilege. The UI runs as the invoking user (asInvoker). Admin commands go to a separate helper, CommandForge.Elevator, which starts with one UAC prompt per session; you can end the session at any time. The helper accepts only a command ID, which it looks up in its own copy of the catalog — never a command line.
  • Authenticated channel. The named pipe has a random name and an access list for your account only, and each end verifies the other: the app accepts only the helper process it launched, and the helper serves only CommandForge.Wpf.exe from its own folder. The helper connects with Identification-level impersonation and writes no files; its diagnostics travel back to the app's log through the pipe.
  • Trusted paths and environment. Catalog programs resolve to absolute paths in System32 or the Windows folder, never through a search of the per-user app folder. Elevated commands get an environment rebuilt from trusted sources (the system directory, known folders, HKLM), so per-user variables such as PSModulePath, COR_PROFILER, SystemRoot or windir can't redirect what an elevated command loads or deletes. The {SystemDrive}, {SystemRoot} and {UserProfile} placeholders in the catalog are filled from the same trusted values, and PowerShell always runs with -NoProfile -NonInteractive. The helper ignores DOTNET_STARTUP_HOOKS.
  • Your own commands stay unprivileged. Commands you add under My commands are stored apart from the catalog and always run without administrator rights.
  • Transparency and confirmation. The exact command line is shown before it runs. Caution commands ask first; Dangerous commands require typing the command's name or ID, and that check can't be turned off. A System Restore Point can be created first.
  • Containment. Commands whose output is captured run in a kill-on-close job object, so closing or crashing the app doesn't leave them running.
  • No telemetry. The only network connection the app makes is the update check against https://releases.poli0981.dev/commandforge (see PRIVACY.md). The feed is static files over HTTPS; no token or account is involved.

Known limitations

  • Per-user installation. Velopack installs the app under %LocalAppData%\CommandForge, a folder your account can write to. Malware already running as you could replace the app's files — including the elevated helper — and wait for you to approve the next UAC prompt. This applies to every per-user app (UAC does not separate programs running as the same user), and since releases aren't Authenticode-signed yet, the UAC prompt can't show a verified publisher either. Keep untrusted software off your account, and approve the prompt only right after you started an admin command and it names CommandForge.Elevator.
  • winget is an App Execution Alias in %LocalAppData%\Microsoft\WindowsApps, another per-user folder. The catalog's winget commands start it from there, including the ones that run as administrator, so the same caveat applies.
  • Commands do what they say. Commands you choose to run can change system settings, use the network (winget, DNS tests…) or delete data by design; read the preview and see DISCLAIMER.md.

Distribution integrity

Releases are not Authenticode-signed yet, so SmartScreen may warn about an unknown publisher and some antivirus engines may show false positives (common for admin tools). Instead:

  • Every release is built by the release workflow on Gitea Actions (git.poli0981.dev/poli0981/CommandForge) from a signed tag on main; the workflow and its logs are public. Build-provenance attestations ended with the move from GitHub (Gitea has no OIDC signing).
  • SHA-256 checksums (<version>/SHA256SUMS), a CycloneDX SBOM (<version>/sbom.cdx.json) and, when a scan was made, VirusTotal links come with every release, under https://releases.poli0981.dev/commandforge/.
  • The code is not obfuscated (obfuscation is a leading cause of false positives), and the source is public under the GPLv3.
  • CI runs Qodana (JetBrains' inspections and security rules), gitleaks over the whole history, Opengrep (SAST), osv-scanner, and a NuGetAudit restore that fails on known vulnerabilities in direct and transitive packages; the workflows are linted with actionlint and every action is pinned to a commit SHA. A self-hosted Renovate keeps dependencies and those pins current, with separate pull requests for security fixes; main is protected and takes changes through pull requests that pass the build.

Code signing (Azure Trusted Signing, or SignPath Foundation for open source) is planned for a future release.

Malicious contributions

Contributions suspected of containing malicious code are closed and may result in a ban — see CONTRIBUTING.md. Detection equals a ban, no exceptions.