GitBills

gitbills-diff-check/1 · Diff X-Ray · 14 security rules · Layer 1 anti-slop · secret audit · stateless

X-ray a diff for supply-chain attacks, hidden instructions and AI slop.

Paste a unified diff, or pick a preset attack. One request runs three deterministic checks: 14 linear-time security rules graded A to F (install hooks, curl piped to a shell, instructions aimed at AI reviewers, invisible-character smuggling, disabled TLS checks and more), the PR Gate's Layer 1 anti-slop score, and an audit for secrets, Trojan Source bidi characters, sensitive paths and malformed hunks. No account, no install, no LLM.

PrivacyZero storage · Zero LLM · Zero checkout · Typical PR: under 1 ms. Your diff goes to this site's server in one HTTPS request, is checked in memory by deterministic rules and is dropped once the answer is sent: it is never saved or logged, no model reads it, and no code in it runs. A secret is named by its rule, never shown. Each answer reports its own time: a typical pull request's diff takes well under a millisecond, the largest allowed diff a few.

Check a diff

Pick a preset, or paste your own diff below.

Each preset is a small, safe example: nothing in it runs, and its one URL is under example.invalid.

0 of 65,536 bytes

What runs on your diff

Three deterministic checks, one request

  1. Security grade, A to F. 14 linear-time rules read every added line, from install-time scripts in package.json to instructions aimed at AI reviewers. Each signal names its rule, its file and line, and one sentence of remediation; A means no signal.
  2. Layer 1 anti-slop score, 0 to 100. The PR Gate's diff-only check (valun-slop-gate/2): AI-tool artifacts such as a root CLAUDE.md, comment-only fixes, tautological tests, hidden bidi characters and more; 50 or more is slop. The answer carries the decision's gate_sha256.
  3. Diff audit. gitbills-pr-audit/1: secret patterns, named by rule only; sensitive paths such as workflows, package.json and .env; Trojan Source characters and malformed hunks.

The 14 security rules: dangerous_eval_or_exec shell_command_interpolation prototype_pollution_sink unsafe_sql_interpolation unpinned_github_action insecure_http_fetch_or_redirect hardcoded_secret_or_jwt redos_nested_quantifier curl_pipe_shell supply_chain_install_hook tls_verification_disabled unsafe_deserialization cors_wildcard_credentials agent_prompt_injection_smuggling.

Every pull request, automatically

15-second GitHub Action install

Run Layer 1 on every pull request with the PR Gate. Save this as .github/workflows/valun-gate.yml on your default branch: it runs on pull_request_target, reads each PR's diff through GitHub's API, never checks out or runs the PR's code, and needs no API key and no secrets. It starts in advisory mode: slop fails the check, each PR keeps one scorecard comment, and nothing is auto-closed.

name: Valun PR Gate

on:
  pull_request_target:
    types: [opened, edited, synchronize, reopened]
  issue_comment:
    types: [created]

permissions:
  contents: read
  pull-requests: write

jobs:
  gate:
    if: github.event_name != 'issue_comment' || (github.event.issue.pull_request && (contains(github.event.comment.body, '/valun vouch') || contains(github.event.comment.body, '/gitbills vouch')))
    runs-on: ubuntu-latest
    steps:
      - name: GitBills Deterministic Pre-Flight (example-org/example-repo)
        uses: fitzss/valun-open@5fd775e1b95e53bf236e8766fa16838ceca8a61c # v0.9.21
        with:
          mode: 'unified-gate'
          payee: 'valun-auditor'
          policy-mode: 'advisory'
          fail-on-slop: 'true'
          post-comment: 'true'

Or let the CLI write it for you:

npx --yes @fitzdoud/valun@0.9.21 gate init --maintainer valun-auditor --write

Scan a live GitHub repo on /gate Read the 60-PR study

API

Call it from a script or an agent

POST /pilot/v1/check/diff with a JSON object: diff (required, at most 65,536 bytes), title (optional, at most 300 characters) and body (optional, at most 4,000 characters). The answer holds overall_verdict (blocked_security, blocked_slop or clean), the security, audit and slop_gate results, elapsed_ms, persisted: false and tracker_mutated: false.

curl -s https://gitbills.com/pilot/v1/check/diff \
  -H 'Content-Type: application/json' \
  -d '{"diff":"diff --git a/src/sum.js b/src/sum.js\n--- a/src/sum.js\n+++ b/src/sum.js\n@@ -1 +1 @@\n-export const sum = (a, b) => a - b;\n+export const sum = (a, b) => a + b;\n"}'

The presets and limits as JSON: /check?format=json.