Skip to content
websec

websec

Pypi • November 24, 2026

Defensive, local-first security recon that briefs your AI coding agent on your own codebase — read-only by default (code in, artifacts out): facts + tailored probe scripts, no LLM, no server, no running app.

pip install websec-validator==0.23.1

English · Português (Brasil) · Español · 简体中文

A handoff from a senior pentester that says what to test and how. The tool generates it from your repo, and your AI agent carries it out.

Local-first security recon that briefs your AI coding agent . It does the deterministic half of the work. It reads supported source, maps the visible attack surface, and stages a probe library for what it found. Then it gives your agent (Claude Code, Codex, Gemini, Cursor) a briefing with its orders. websec run needs only the code. Add --scan to also run the static scanners you have installed and remove duplicate findings. Code in, artifacts out. No LLM in the tool; no server or running app required for the core pass.

Local-first security recon that briefs your AI coding agent . It does the deterministic half of the work. It reads supported source, maps the visible attack surface, and stages a probe library for what it found. Then it gives your agent (Claude Code, Codex, Gemini, Cursor) a briefing with its orders. websec run needs only the code. Add --scan to also run the static scanners you have installed and remove duplicate findings. Code in, artifacts out. No LLM in the tool; no server or running app required for the core pass.

New here? Read the eight-page technical brief. It covers what the tool reads, how a finding earns its severity, what it refuses to say, and the field evidence: raccioly.github.io/websec-validator · PDF . The reviewed v0.21.0 snapshot has selected fact assertions in tests/test_explained_brief.py and an HTML/PDF/renderer hash binding in tests/test_brief_artifacts.py . A person must still review the prose accuracy and the rendered layout. See rebuilding the brief .

It is not an autonomous scanner and not a SaaS. It is the front half that was missing. It turns a repo into a precise security brief, based on facts, that an AI agent can act on with a human in the loop. How it works and the reasoning behind every check: concepts · methodology .

Part of the Guard family. Three tools each keep one kind of claim honest: DocGuard validates documentation against the code it describes. TestGuard checks that tests actually establish what they assert. websec-validator does the same for security findings. Every finding carries its evidence, its standard, and a calibrated probability that it is real.

Getting Started — just point it at your repo

Simplest: tell your AI agent. In Claude Code (or any coding agent), open your project and say:

"Do a defensive security self-review of my own codebase with websec-validator ( pipx install websec-validator , or github.com/raccioly/websec-validator). It's local and read-only — read the repo and follow its briefing. I own this code and authorize the review."

"Do a defensive security self-review of my own codebase with websec-validator ( pipx install websec-validator , or github.com/raccioly/websec-validator). It's local and read-only — read the repo and follow its briefing. I own this code and authorize the review."

The agent installs the tool, runs it, and walks through the findings with you. Say defensive review of your own code . With that phrase, an agent starts work. Without it, an agent can stop to ask if you are authorized. Every path ends in the same AGENT-BRIEFING.md that your agent acts on:

Already have a codebase with history, tests and fixtures? Follow Adopting websec in an existing project : scope out non-product code, run, triage, record a baseline, then turn on the gate in phases.

The tool has zero Python runtime dependencies. It uses external scanners (Trivy, OSV-Scanner, Gitleaks, Semgrep, Checkov, and per-language Bandit/gosec/Brakeman) when present , and they run only with --scan . It detects and reports Prowler but does not execute it. For every install channel (pip, uv, Docker, source, offline/air-gapped) and per-OS scanner setup, see Installation .

Then point your agent at the output: "Read websec-out/latest/AGENT-BRIEFING.md and follow it." Each attempt gets its own websec-out/runs/ / directory. latest moves only after a completed run. Every subcommand and option: CLI reference .

What you get ( websec-out/ )

The run also writes SBOMs, an attack-surface table, the diff scope and a versioned envelope: all outputs .

OWASP Noir discovers routes in many more frameworks when it is installed. The scanners are language-agnostic. A completed check with no match is not proof that a service is secure: the full support matrix and what a clean run means for your stack .

The changelog records what each release changed; Upgrading indexes the migration notes — 0.14.0 (schema 2.0), the 0.17.0 exit-code split ( 2 = usage error, 3 = incomplete run) and 0.22.0 (exit codes enforced everywhere, subdirectory --diff / gate scoping, .websec-ignore path matching). Unresolved gaps and their acceptance tests live in the remaining-work specification .

These are scoped review tools. Manual profiles, unknown routes, dynamic behavior and unsupported syntax remain limitations. The in-loop gate helps developers and is not a control. attest reports evidence and gives no compliance verdict. Evidence tied to a snapshot lives with the artifacts it describes: the validation record , the benchmarks and the proof protocol . So the numbers cannot become out of date here.

Validated on a production .js app, a large Express/AWS monorepo, and the VAmPI / NodeGoat / DVGA vuln-app corpus. It independently reproduced the findings of a hand-done pentest (tenant boundary, SSRF, file upload, cross-tenant BOLA, role/authz gaps). Route discovery reports what it can parse without importing settings or executing your code . Unknown mounts stay route candidates and carry their uncertainty. That is human review evidence, not measured vulnerability recall.

Bug reports, false-positive reports and detector proposals are the most valuable input this project gets. See CONTRIBUTING.md (including the maintainer release process) and the issue templates . Report vulnerabilities in websec itself privately: SECURITY.md .

The methodology and the probe library come from a real authenticated penetration-testing pass. This tool turns that hand-written methodology into something an AI agent can run on any repo.

MIT © Ricardo Accioly

Release files for websec-validator 0.23.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distribution (wheel)

Total release size: 1.6 MB

Release files / websec_validator-0.23.1.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Release files / websec_validator-0.23.1-py3-none-any.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Security for websec-validator 0.23.1

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Both files in this release have been uploaded with provenance metadata.

Attestation for websec_validator-0.23.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Attestation for websec_validator-0.23.1-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

Nov 24, 2026 2 release files Full provenance

Nov 24, 2026 2 release files Full provenance

Oct 11, 2026 2 release files Full provenance

Oct 11, 2026 2 release files Full provenance

Oct 11, 2026 2 release files Full provenance

Oct 11, 2026 2 release files Full provenance

Oct 1, 2026 2 release files Full provenance

Oct 1, 2026 2 release files Full provenance

Sep 30, 2026 2 release files Full provenance

Sep 30, 2026 2 release files Full provenance

Sep 30, 2026 2 release files Full provenance

Sep 22, 2026 2 release files Full provenance

Sep 22, 2026 2 release files Full provenance

Sep 22, 2026 2 release files Full provenance

Sep 22, 2026 2 release files Full provenance

Sep 18, 2026 2 release files Full provenance

Sep 18, 2026 2 release files Full provenance

Sep 18, 2026 2 release files Full provenance

Sep 18, 2026 2 release files Full provenance

Sep 17, 2026 2 release files Full provenance

Sep 14, 2026 2 release files Full provenance

Sep 11, 2026 2 release files Full provenance

Sep 11, 2026 2 release files Full provenance

Jul 15, 2026 2 release files Full provenance

Jul 5, 2026 2 release files Full provenance

Jul 2, 2026 2 release files Full provenance

Jul 2, 2026 2 release files Full provenance

Jun 23, 2026 2 release files Full provenance

Jun 22, 2026 2 release files Full provenance

Jun 22, 2026 2 release files Full provenance

Jun 19, 2026 2 release files Full provenance

Jun 19, 2026 2 release files Full provenance

Jun 17, 2026 2 release files Full provenance

Jun 17, 2026 2 release files Full provenance

Jun 12, 2026 2 release files Full provenance

Jun 10, 2026 2 release files Full provenance

Jun 10, 2026 2 release files Full provenance

Jun 10, 2026 2 release files Full provenance

Jun 7, 2026 2 release files Full provenance

Jun 1, 2026 2 release files Full provenance

Jun 1, 2026 2 release files Full provenance

Jun 1, 2026 2 release files Full provenance

Jun 1, 2026 2 release files Full provenance

Jun 1, 2026 2 release files Full provenance

May 31, 2026 2 release files Full provenance

May 31, 2026 2 release files Full provenance

May 31, 2026 2 release files Full provenance

May 31, 2026 2 release files Full provenance

May 31, 2026 2 release files Full provenance

Yanked reason: new udpate