{"id":50417855,"url":"https://github.com/arisrhiannon/vibecheck","last_synced_at":"2026-05-31T07:02:00.978Z","repository":{"id":361530408,"uuid":"1254814523","full_name":"ArisRhiannon/vibecheck","owner":"ArisRhiannon","description":"Offline, zero-dependency, no-AI \"safe to ship?\" gate for vibe-coded apps — finds the security mistakes AI coding agents make (secrets, unprotected routes, eval-RCE, SQLi, CORS, JWT, leaked keys). CLI + MCP, agent-runnable.","archived":false,"fork":false,"pushed_at":"2026-05-31T04:49:26.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T05:10:57.089Z","etag":null,"topics":["agent","ai-generated-code","ci","devsecops","llms-txt","mcp","owasp","sast","secrets","security","ship-gate","typescript","vibe-coding","zero-dependency"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArisRhiannon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-31T03:14:47.000Z","updated_at":"2026-05-31T04:49:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ArisRhiannon/vibecheck","commit_stats":null,"previous_names":["arisrhiannon/vibecheck"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ArisRhiannon/vibecheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fvibecheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fvibecheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fvibecheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fvibecheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArisRhiannon","download_url":"https://codeload.github.com/ArisRhiannon/vibecheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArisRhiannon%2Fvibecheck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai-generated-code","ci","devsecops","llms-txt","mcp","owasp","sast","secrets","security","ship-gate","typescript","vibe-coding","zero-dependency"],"created_at":"2026-05-31T07:01:59.809Z","updated_at":"2026-05-31T07:02:00.969Z","avatar_url":"https://github.com/ArisRhiannon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vibecheck\n\n[![ci](https://github.com/ArisRhiannon/vibecheck/actions/workflows/ci.yml/badge.svg)](https://github.com/ArisRhiannon/vibecheck/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nA fast, **agent-native** \"safe to ship?\" gate for vibe-coded apps. It parses your **JS/TS/JSX/TSX**\n(`@babel/parser`), **Python** (the stdlib `ast`), and **Go** (`go/parser`) with **real parsers** and uses **taint analysis**\n(inter-procedural for JS/TS — return-taint + param→sink summaries, within a file and across files by\nimported name) to flag the security classes AI coding agents get wrong — committed secrets, SQL\ninjection through *abstracted* raw-query APIs, XSS, SSRF, path traversal, command injection, insecure\ndeserialization, weak JWT/CORS/cookies — and ranks every finding by **confidence** so an agent can fix\nthe real ones and ignore the noise.\n\n```sh\nvibecheck .          # human report (severity + confidence)\nvibecheck . --ci     # exit 1 only on high-confidence (taint-backed) issues\nvibecheck . --json   # machine-readable findings for agents / CI\n```\n\n## What it is — and what it is not (read this)\n\nvibecheck is **not** a replacement for [Semgrep](https://semgrep.dev) or\n[CodeQL](https://codeql.github.com). Those are deeper, broader, multi-language engines and you should\nrun them for full coverage. vibecheck aims to be **better on one narrow, measurable axis**: a\n**low-false-positive, taint-backed gate for the AI-vibe-coding failure classes that runs inside agent\nloops and pre-commit in milliseconds**, with **published precision/recall** so you can trust the\n`--ci`/MCP signal. Use it *alongside* the big engines, not instead of them.\n\n| | vibecheck | Semgrep | CodeQL |\n|--|--|--|--|\n| Parsing | real AST (Babel JS/TS/JSX + Python `ast`) | real, many langs | real, many langs |\n| Data-flow | inter-procedural (return-taint + param→sink; intra-file + cross-file by import) | taint (Pro) | full inter-procedural |\n| Languages | **JS/TS/JSX/TSX + Python + Go** | many | many |\n| Speed / infra | ms, local, no account | fast | slower, CI-oriented |\n| Agent-native (MCP, confidence gating) | **yes, first-class** | partial | no |\n| Breadth of rules | small, focused | 2000+ | huge |\n\nIf you only adopt one general SAST, adopt Semgrep or CodeQL. Adopt vibecheck as the **fast agent/CI\npre-flight** that won't drown an agent in false positives.\n\n## Measured quality (not claimed)\n\nAgainst a labeled benchmark of **77 cases** across JS/TS, Python **and** Go (vulnerable + safe + deliberately\ntricky-safe), the core detectors score (see [`METRICS.md`](METRICS.md), reproduce with `bun benchmark/run.ts`):\n\n- **Precision 100%**, **Recall 100%**, **F1 100%** on the corpus.\n\nThe tricky-safe cases that produce **zero false positives** include: parameterized queries, tagged-\ntemplate SQL, numeric-coerced and schema-validated input, ORM/RegExp `.exec()`, Supabase **anon** /\nStripe **publishable** keys, hardened cookies, allow-listed CORS, and pinned JWT algorithms — exactly\nthe patterns a regex linter trips on. This benchmark is curated; for a **real-world** measurement (pinned\nOSS repos, manually triaged), see [`docs/CORPUS.md`](docs/CORPUS.md) — which also drove a precision fix\n(fixed-prefix relative redirects are no longer flagged).\n\n## Confidence (the anti-false-positive-loop design)\n\nEvery finding has a **confidence**:\n- `high` — a user-input **source provably flows into the sink** (taint-backed), or a deterministic fact\n  (committed secret, JWT `none`). These fail `--ci` and are what the MCP `scan` tool returns by default.\n- `medium` — a dangerous sink on a non-literal value with no proven source (e.g. `eval(x)`).\n- `review` — a structural smell that needs a human (e.g. a route with no visible auth). **Excluded from\n  `--ci` and from the agent loop by default**, so agents never chase phantom work. Add `--all` to include them.\n\n## Install \u0026 use\n\n```sh\nbun add -d vibecheck    # or: npm i -D vibecheck (Node \u003e= 20)\nvibecheck . --ci\nvibecheck explain VC-SQLI\nvibecheck mcp           # MCP stdio server exposing a `scan` tool (high-confidence by default)\n```\n\nAgents: see [`AGENTS.md`](AGENTS.md) — run `vibecheck . --ci` before declaring a task done and fix every\nhigh-confidence finding.\n\n\u003e JS/TS scanning needs nothing extra. **Python** scanning requires **`python3` on PATH**; **Go** scanning\n\u003e requires a **`go` toolchain on PATH** (the analyzer is compiled once and cached). If a runtime is absent,\n\u003e those files are silently skipped.\n\n## Rules (exactly what is implemented + benchmarked)\n\nTaint-backed: `VC-RCE-EVAL`, `VC-RCE-CHILD-PROCESS`, `VC-SQLI`, `VC-XSS-REACT`, `VC-XSS-DOM`, `VC-SSRF`,\n`VC-PATH-TRAVERSAL`, `VC-OPEN-REDIRECT`. AST config: `VC-CORS-WILDCARD`, `VC-JWT-NONE`,\n`VC-JWT-UNPINNED`, `VC-COOKIE-INSECURE`, `VC-STACK-EXPOSURE`. Provenance/secrets: `VC-SECRET-*` (8),\n`VC-ENV-COMMITTED/DRIFT/MISSING`, `VC-NEXT-PUBLIC-SECRET`, `VC-SUPABASE-SERVICE-ROLE`. Advisory:\n`VC-ROUTE-NO-AUTH` (review), `VC-INPUT-NO-VALIDATION`. **Python** (`VC-PY-*`): `VC-PY-RCE`,\n`VC-PY-CMDI`, `VC-PY-SQLI`, `VC-PY-DESERIALIZE`, `VC-PY-YAML`, `VC-PY-SSTI`, `VC-PY-OPEN-REDIRECT`,\n`VC-PY-PATH`. **Go** (`VC-GO-*`): `VC-GO-CMDI`, `VC-GO-SQLI`, `VC-GO-PATH`, `VC-GO-OPEN-REDIRECT`,\n`VC-GO-SSRF`. `vibecheck explain \u003cid\u003e` prints the fix for each.\n\n## Limitations (honest)\n\n- **JS/TS/JSX/TSX + Python + Go** (Python needs `python3`, Go needs a `go` toolchain on PATH). More\n  languages are roadmap (each via its own real parser, never hand-rolled).\n- **Taint scope:** JS/TS taint is **inter-procedural** — function summaries carry **return-taint** and\n  **parameter→sink** reachability, resolved **within a file and across files by imported name** (1-hop,\n  sanitizers respected). Not tracked (false negatives): aliased/namespace/re-exported imports, helper\n  chains beyond a few hops, methods, destructured params, and names defined in **multiple** files\n  (treated as ambiguous and skipped — to avoid false positives). Python and Go are intra-procedural\n  (Go does not track multi-return assignments like `x, _ := f(src)`).\n- Config/secret rules are pattern-based where AST adds no value.\n- A high-signal gate and early-warning — **not a proof of security**. Pair it with Semgrep/CodeQL and review.\n\n## Config — `.vibecheck.json`\n\n```json\n{ \"ignoreRules\": [\"VC-INPUT-NO-VALIDATION\"], \"allowPaths\": [\"test/**\"], \"failSeverity\": \"high\" }\n```\n\n## License\n\nMIT © 2026 Aris Rhiannon — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farisrhiannon%2Fvibecheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farisrhiannon%2Fvibecheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farisrhiannon%2Fvibecheck/lists"}