Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:32
· 27 commits to main since this release

A hardening release: 28 new rules, the idioms a bypass probe of real CLIs found missing, and code the rules now read the way compilers do.

Added

  • 28 rules from a vulnerable-pattern research pass (CWE Top 25, OWASP Top 10 2025, zizmor, Semgrep, CodeQL) and a bypass probe of 924 real-CLI variants:
    • security: ssrf, open-redirect, nosql-injection, mass-assignment, template-injection, model-remote-code (trust_remote_code), llm-code-execution, host-key-verification-disabled, weak-cipher, insecure-tls-version, fast-password-hash, electron-insecure-webpreferences, open-database-rules (Firebase);
    • sql (Postgres and Supabase): rls-disabled, permissive-policy, policy-user-metadata, security-definer-search-path, grant-to-public;
    • ci: insecure-commands, hardcoded-credentials, unsound-condition, overprovisioned-secrets, cache-poisoning, spoofable-bot-check;
    • secrets: provider-token (18 more providers) and supabase-service-key; deps: dependabot-code-execution; docker: copy-secret-file.
  • scripts/fuzz_text.py, a local differential fuzzer that compares the lexers and the YAML reader with real tokenizers, interpreters and parsers.
  • Website: an examples page with nine pull requests and what CodeVeto reports on each (reviewed by the CLI when the site is built), a security model page, and a Content Security Policy with security headers; the site build fails when an inline script's hash drifts.
  • Releases and CI build the package with a hash-pinned build backend (build-constraints.txt).

Changed

  • Existing rules catch the common idioms the probe found missing (391 misses across 114 causes), among them sink calls with a callback argument, TypeScript casts and call results, child_process under other names, SQL templates held in variables, ORM raw fragments, lower-case SQL in execute calls, TLS and chmod 777 in Dockerfile RUN and workflow run: scripts, more untrusted workflow contexts and sinks, YAML aliases in workflows, registry settings in scripts and Dockerfiles, base64 and PuTTY private keys, other-language reviewer directives and more agent auto-approval flags.
  • Injection findings carry the sink's argument as evidence, so a rewritten argument is reported again; a changed assignment that feeds an unchanged sink is reported at the assignment. This includes the 0.2.0 languages' shell, eval, html_safe/echo and chmod sinks.
  • hygiene/symlink-added is an error for a link added, renamed or retargeted under a code, agent-config, workflow, manifest or lockfile path.
  • HTML <script> blocks and Astro frontmatter are reviewed as JavaScript or TypeScript; Dockerfile-prod, .envrc, .command, SConstruct and uv/zx shebang scripts get their language; agent-config paths are matched case-insensitively and cover more agents' instruction and tool-config files.
  • agent/reviewer-directive and agent/injection-phrase read Chinese, Japanese, Korean, Russian, Portuguese and Italian.
  • agent/ignore-rules-changed reports .cursorignore, .cursorindexingignore, .aiexclude, .geminiignore and .aiderignore.
  • security/sql-interpolation reads PHP ->query(), ->exec(), ->prepare() and the other method sinks, and Perl ->do() and ->prepare(), as calls; they were read as PowerShell -Query parameters and never reported. A sink wrapping another is reported once, and intval, placeholder and esc_sql lists count as safe.
  • security/xss-sink follows a PHP variable echoed whole to the request input it is bound to.
  • Typed C and C++ declarations (char *cmd = ..., std::string s = ...) are bindings for the injection rules, and s.c_str() is followed to its value.
  • security/world-writable evidence for Perl chmod names the mode and the targets.
  • Large reviews run 40 to 52% faster: the security rules share one walk of each Python file's AST, and the security, secrets and agent rules skip files and lines that lack the literals their patterns need. Findings are unchanged.

Fixed

  • False positives: yaml.load with an aliased CSafeLoader, persist-credentials: ${{ false }}, a script that only greps for an agent's skip-permissions flag, ENV OAUTH_TOKEN=https://…, and DELETE on a table the same migration creates.
  • Spaces a formatter adds inside brackets no longer make an unchanged sink report again.
  • The release workflow retries transient GitHub API failures when it moves the minor tag.

Security

  • A rename that changes a file's language or class (a text file renamed into .github/workflows/) is reviewed as a full rewrite instead of a pure rename that no rule reads.
  • Code the language runs is no longer hidden as a comment or string: line comments end at a lone CR (and U+2028/U+2029 in JavaScript), JavaScript HTML-like comments, Python f"\{...}", Ruby #$/#@ interpolation and C #if 0 blocks with a lone CR are read as compilers read them; constructs whose reading depends on a compiler mode make the file partial.
  • A file with image magic bytes or a NUL byte is never a harmless binary when its name gives a code or server-side template language (GIF89a<?php … in a .phar or .jsp); image binaries are benign only under an image file name.
  • Long minified lines are scanned with half-window overlap, so a credential URL or token across a window edge is found.
  • Removing one sink and adding another elsewhere no longer cancels as moved code; an unchanged inline ignore applies only where its rule had a finding at the anchor; secrets on removed lines are redacted from old-side snippets.
  • Repository ignores of non-waivable rules are checked by glob intersection and refused on anything under .github/ and on every agent-config path; ignoring or downgrading a default-off rule counts as a weakening.
  • AI packets redact PuTTY, SSH.com and base64-encoded private keys and treat backed-up SSH key files as sensitive.
  • In a GitHub or Forgejo job log, text, agent and Markdown output is wrapped in stop-commands and JSON/SARIF never contain ##[, so repository text cannot issue workflow commands; SARIF messages cannot form links.
  • The release workflow anchors the published artifacts and release notes to digests from the build job; the site's Markdown allows only http(s), mailto and relative links.
  • Commit parents are read as Git reads them, so a crafted parent header after the committer cannot change what a root commit is compared with.
  • A YAML document of a workflow or config file that the reader drops makes the file partial. Config files with Jinja or Ansible template markup are exempt, since they are rendered before they are read; Helm chart templates keep their benign yaml template reason.
  • A digit separator in a C or Objective-C file, a Swift file with a bare /.../ regex and a custom / operator declared in it, and a Groovy \u escape that changes how the file lexes make the file partial, since compilers read them differently by mode or version.
  • Every module-level regex in CodeVeto, core modules included, is checked for nested and adjacent unbounded repeats; the inline-ignore parser, four other core patterns and two security patterns built at run time were rewritten to linear forms with the same matches.