Vibe-Code Audit Request Brief
A good audit request describes the product, stack, data and symptoms in one brief and gives the reviewer scoped access, never live passwords or production secrets.
4 min read / Updated / Last checked
- Format
- Template · Beginner
- Who it is for
- Non-technical founders
- You leave with
- Fill a one-page audit brief, collect repository facts with a read-only script, and agree access rules and deliverables before a reviewer starts.
The problem
On February 2, 2026, Wiz published what it found in Moltbook, a social network for AI agents whose founder said he had not written a single line of its code. A Supabase API key sat in the site's client-side JavaScript, and the database had no row-level security policies, so the key gave anyone full read and write access. Exposed data included about 1.5 million API authentication tokens, 35,000 email addresses and 4,060 private message threads, some holding plaintext third-party API keys. Wiz reported the problem 18 minutes after first contacting the maintainer, and the last table was secured about three hours later [1].
The fix was fast because the people who found the flaw already knew where to look. A founder who suspects the same class of problem is usually in a worse position. The builder has moved on, the code came from prompts, and the honest description is "the AI-built app is buggy and might not be safe." A reviewer cannot scope or price that. Some founders then paste a production password into a contact form to speed things up, which creates a second problem. A short brief fixes both: it tells the reviewer what they need to know and keeps secrets out of the first conversation.
How it works
An audit request has three jobs. It describes the system, it sets the rules for access, and it states what the founder expects back.
Describe the system. The reviewer needs what users do, the stage (demo, beta or live), the tools that generated the code, the hosting, database and sign-in provider, outside services such as payments, email and AI APIs, the kinds of data stored, and the top three symptoms with what changed before each. Most of this needs no technical knowledge. The rest can come from a short script run on the repository.
Set the access rules. Start with the least access that works. GitHub has five repository roles, and the lowest, Read, is meant for people who need to view or discuss a project. It lets a reviewer pull the code without pushing to it [2]. Add test accounts and a sanitized copy of the data, not production logins. If the reviewer will test the running app, write down which systems, which tests and which hours are allowed. NIST calls this the rules of engagement: guidelines and limits for security testing, agreed before the test begins, that give the testers authority for the listed activities without asking again [3].
State the deliverable. An audit that ends in a call is hard to act on. Ask for an inventory of services and repositories, a one-page architecture sketch, prioritized findings with evidence and a severity rating, repair options with rough timing, the tests that will prove each fix, and the open unknowns.
An audit engagement from brief to verified fix
Fig. 01- Brieffacts, symptoms, no secrets
- Scoped accessread role, test accounts
- Reviewcode and allowed tests
- Findingsevidence, severity, options
- Fix and retestregression test per finding
By the numbers
- API authentication tokens exposed in Moltbook's database [1]
- 1.5 million
- private message threads exposed, some containing plaintext third-party API keys [1]
- 4,060
- from Wiz's report to Moltbook's final fix [1]
- About 3 hours
- repository roles on GitHub, from Read up to Admin [2]
- 5
| Rating | CVSS score | What to ask the reviewer |
|---|---|---|
| Critical | 9.0 to 10.0 | Call or message the same day, before the written report |
| High | 7.0 to 8.9 | Fix plan and regression test before the next release |
| Medium | 4.0 to 6.9 | Scheduled fix with an owner and a date |
| Low | 0.1 to 3.9 | Listed, fixed when the code is next touched |
| None | 0.0 | Noted as checked |
The Moltbook numbers show what a single missing control costs once real users arrive. Missing row-level security policies left table after table open, and the private messages added a second leak, because some conversations contained plaintext third-party API keys [1]. The same habit turns up in audit requests, which is why the brief below has a line saying where secrets are not.
CVSS scores measure the technical severity of a vulnerability relative to others. FIRST, which maintains the standard, describes the score as one input to risk assessment alongside factors it does not cover, such as regulation and customer impact [5]. Ask the reviewer to state both the rating and the business impact in plain words, for example "any visitor can read every customer's address."
Implementation
Fill the brief in a private document and send a link through a channel the reviewer confirms. Write "unknown" where you do not know. A reviewer can work with gaps they can see.
# Audit request brief Date: ______
Product and URL: ______ Contact and decision maker: ______
What users do, in two sentences: ______
Stage: demo / beta / live Approximate users: ______
## How it was built
AI builders and coding tools used: ______
Repository host and language (if known): ______
Hosting, database, sign-in provider: ______
Outside services (payments, email, AI APIs, storage): ______
## Data
Stored: public / personal / financial / health / other: ______
Where users upload files, if anywhere: ______
## Symptoms (top three)
1. ______ What changed just before: ______
2. ______ What changed just before: ______
3. ______ What changed just before: ______
Known incidents or exposed keys (details by secure channel only): yes / no
## Recovery
Backups exist: yes / no / unknown Last restore tested: ______
## Access we will provide
Repository: read-only invite to: ______
Test accounts: two ordinary users and one admin, on staging
Data: sanitized copy, no real customer records
Live testing: only these systems and hours: ______
## Not in this brief, by design
Production passwords, API keys, database URLs, customer data.
## What we want back
Deliverable: audit only / audit plus fixes / rebuild plan
Budget range: ______ Deadline: ______ Who approves fixes: ______Then collect the facts a reviewer would otherwise ask for on the first call. The script below is read-only: it changes nothing and prints no secret values, only file names and counts. Run it from the repository root, or ask the original builder to run it and send the output.
#!/usr/bin/env bash
# Facts for an audit brief. Read-only: changes nothing, prints no secret values.
# Run from the repository root: bash repo-facts.sh > repo-facts.txt
set -uo pipefail
echo "== Repository"
git remote -v | awk '{print $2}' | sort -u
echo "commits: $(git rev-list --count HEAD)"
echo "first commit: $(git log --reverse --format=%as | head -1), last: $(git log -1 --format=%as)"
echo "contributors: $(git shortlog -sn HEAD | wc -l | tr -d ' ')"
echo "tracked files: $(git ls-files | wc -l | tr -d ' ')"
echo "== Stack markers"
for f in package.json requirements.txt pyproject.toml supabase/config.toml \
firebase.json vercel.json netlify.toml Dockerfile .github/workflows; do
[ -e "$f" ] && echo "found: $f"
done
if [ -f package.json ] && command -v node >/dev/null; then
node -e 'const p=require("./package.json");console.log("deps:",Object.keys(p.dependencies||{}).join(" "))'
fi
echo "== Tracked files that usually hold secrets (names only)"
git ls-files | grep -E '(^|/)\.env($|\.)|\.pem$|\.p12$|id_rsa|service-account.*\.json$' \
|| echo "none"
echo "== Secret-like strings anywhere in history (count only)"
git log --all -p | grep -cE 'sk_live_|AKIA[0-9A-Z]{16}|BEGIN [A-Z ]*PRIVATE KEY|service_role' || true
echo "== Tests"
echo "test files: $(git ls-files | grep -cE '(test|spec)\.[jt]sx?$|test_.*\.py$')"On a small test repository with a committed .env.local file, the script lists that file by name and reports one secret-like string in history. Either result goes into the "known incidents or exposed keys" line, and the key involved should be rotated whatever the audit finds. A count of zero is not a clean bill of health: the patterns catch a few common key formats, nothing more.
Test it
Judge the audit by its findings. A useful finding names the flaw, shows a safe test that proved it, and says how the fix will be verified. Compare what comes back with this illustrative example.
Finding 3: Any signed-in user can read other customers' bookings
Severity: High (CVSS v4.0 score 7.x) Business impact: names, dates and
addresses of every customer are readable by any account holder.
Where: GET /api/bookings/:id returns the record without checking its owner.
How it was shown: test user B requested booking 1042, owned by test user A,
on staging. Response 200 with A's details. No real customer data was used.
Category: OWASP API1:2023 Broken Object Level Authorization.
Fix: check booking.owner_id against the signed-in user on the server,
and add a database policy so the check also holds for direct queries.
Verified by: automated test "user B gets 404 for A's booking", now in CI.The category line refers to the first entry in OWASP's API Security Top 10 [4]. Check each finding in the report for four things: a location precise enough to find in the code, a test that used test accounts rather than customer data, a fix that lives on the server, and a named regression test. A finding missing the last item is not closed. Exploit details and customer data stay out of any case study or public post.
Decision
Send the brief before the first call, and agree on the deliverable in writing before access is granted.
- Audit: finds and ranks problems. It does not include fixing them. For a typical AI-built MVP, expect days, not weeks.
- Hardening: fixes a defined list of findings, each closed by a regression test.
- Rebuild plan: a separate scope with data migration and cutover steps. See When to Repair vs. Rebuild an AI MVP.
Grant the Read role and test accounts, never production credentials. If a reviewer asks for live passwords before the rules of engagement are signed, find another reviewer.
Sources
- [1]Hacking Moltbook: The AI Social Network Any Human Can Control (opens in a new tab)Wiz, February 2026
- [2]Repository roles for an organization (opens in a new tab)GitHub Docs, November 2026
- [3]Rules of engagement (ROE) (opens in a new tab)NIST Computer Security Resource Center glossary, citing NIST SP 800-115, November 2026
- [4]OWASP Top 10 API Security Risks, 2023 (opens in a new tab)OWASP, 2023
- [5]Common Vulnerability Scoring System v4.0: Specification Document (opens in a new tab)FIRST, June 2024
Technical guidance, not legal or security certification.
Related resources
Need a technical review of an AI-built MVP?
Discuss your build