websec-validator 0.21.0__tar.gz → 0.22.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- websec_validator-0.22.0/PKG-INFO +209 -0
- websec_validator-0.22.0/README.md +180 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/pyproject.toml +1 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/agenthook.py +18 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/cli.py +235 -52
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/coverage.py +87 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/diffscope.py +16 -3
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/dynamic.py +7 -2
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/__init__.py +3 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/assigned_flow.py +179 -15
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/auth.py +70 -2
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/authz.py +8 -2
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/base.py +151 -9
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/crypto_usage.py +38 -2
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/graphql.py +12 -3
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/integrations.py +15 -2
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/policy_consistency.py +3 -3
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/routes.py +48 -7
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/surface.py +61 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/syntax.py +82 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/tenant.py +12 -2
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/upload_security.py +1 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/feedback.py +24 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/findings.py +187 -9
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/gate.py +77 -19
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/graph_enrich.py +73 -7
- websec_validator-0.22.0/src/websec_validator/init_scope.py +309 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/install.py +2 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/mcp_server.py +1 -1
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/scanners.py +245 -21
- websec_validator-0.22.0/src/websec_validator.egg-info/PKG-INFO +209 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator.egg-info/SOURCES.txt +10 -0
- websec_validator-0.22.0/tests/test_adoption_checkout.py +77 -0
- websec_validator-0.22.0/tests/test_cli_contract_fixes.py +392 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_coverage.py +27 -10
- websec_validator-0.22.0/tests/test_docs_reference.py +311 -0
- websec_validator-0.22.0/tests/test_field_report_195_197.py +520 -0
- websec_validator-0.22.0/tests/test_flow_budget_fixes.py +264 -0
- websec_validator-0.22.0/tests/test_grounding_integration.py +117 -0
- websec_validator-0.22.0/tests/test_jules_pr_hardening.py +350 -0
- websec_validator-0.22.0/tests/test_read_performance.py +250 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_retained_precision.py +15 -1
- websec_validator-0.22.0/tests/test_scanner_completeness_fixes.py +426 -0
- websec_validator-0.22.0/tests/test_scope_paths_fixes.py +399 -0
- websec_validator-0.22.0/tests/test_suppression_and_misc_fixes.py +493 -0
- websec_validator-0.21.0/PKG-INFO +0 -839
- websec_validator-0.21.0/README.md +0 -810
- websec_validator-0.21.0/src/websec_validator/init_scope.py +0 -174
- websec_validator-0.21.0/src/websec_validator.egg-info/PKG-INFO +0 -839
- websec_validator-0.21.0/tests/test_read_performance.py +0 -70
- {websec_validator-0.21.0 → websec_validator-0.22.0}/LICENSE +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/setup.cfg +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/__init__.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/attest.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/attribution.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/baseline.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/briefing.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/calibration.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/calibration.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/clusters.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/constitution.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/corpus.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/dast_ingest.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/dast_predict.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/demo.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/enrichment.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/explain.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/agent_config.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/authz_dataflow.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/client_exposure.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/client_integrity.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/connexion_routes.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/dependencies.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/django_responses.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/django_urls.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/framework_auth.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/iac_ci.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/llm_security.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/pii_exposure.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/profiles.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/python_uploads.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/schemas.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/sql_flow.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/stack.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/transport_security.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/trpc_routes.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/extractors/webext.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/fixprompt.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/formats.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/fpfilter.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/git_read.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/hooks.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/intel.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/inventory.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/literal_yaml.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/openapi.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/output.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/pairs.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/probes.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/proof.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/provenance.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/recon.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/registry.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/repairs.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/report.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/research/control-scope-cases.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/research/example.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/research/profile-cases.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/research.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/rules/error-stack-disclosure.yml +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/rules/insecure-default-secret.yml +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/sarif_ingest.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/schemas/coverage.schema.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/schemas/facts.schema.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/schemas/ledger.schema.json +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/synthetic.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/demo/app.py.txt +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/demo/requirements.txt.txt +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/_lib.bash +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/_lib.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/appsync-cswsh.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/appsync-introspection.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/appsync-subscription-bola.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/bola-cross-tenant.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/bola-write-verbs.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/client-integrity-checklist.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/compare-roles.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/dlp-bypass-offline.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/entitlement-abuse.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/error-disclosure-probe.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/forged-token.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/hs256-brute-force.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/jwt-attacks.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/mass-assignment.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/password-reuse.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/pii-output-diff.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/race-conditions.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/rate-limit-burst.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/s3-assess.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/ssrf-probes.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/unauth-baseline.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/upload-matrix.sh +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/probes/webhook-forgery.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/reports/FINDINGS-SUMMARY.md.template +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/reports/access-control-matrix.md.template +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/reports/findings-triage.md.template +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/reports/pentest-handover-brief.md.template +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/templates/reports/per-tool-FINDINGS.md.template +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/testplan.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator/updates.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator.egg-info/dependency_links.txt +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator.egg-info/entry_points.txt +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/src/websec_validator.egg-info/top_level.txt +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_action_contracts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_adoption_contracts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_agent_hook.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_agent_hosts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_agent_launch_specs.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_analysis_scope.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_assurance_regressions.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_attest.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_attribution.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_auth_control_scope.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_brief_artifacts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_calibration_claimspec.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_calibration_review.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_calibration_scoring.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_compare_reports.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_connexion_yaml.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_constitution.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_container_contracts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_control_scope_research.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_crypto_comparisons.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_dast_ingest.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_dast_predict.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_demo.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_detector_fp_followups.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_detector_precision.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_diffscope.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_django_responses.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_django_routes.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_dynamic_login_shape.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_enrichment.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_entitlement_webext.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_evidence_verdicts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_explain.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_explained_brief.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_extension_controls.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_feedback.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_feedback_calibration_loop.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_field_report_2026_09.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_fixprompt_fpfilter.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_formats.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_fp_sources.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_gate_and_bypass_record.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_gate_command.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_gate_policy_and_scope.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_gitleaks_worktree.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_graph_enrich.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_hardening.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_hooks.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_hooks_contracts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_ignore_claimspec.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_install.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_install_contracts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_intel.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_inventory.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_issue_147_sarif_locations.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_language_fixtures.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_lifecycle.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_mcp.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_mcp_security.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_openapi.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_output_boundaries.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_pentest_regressions.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_pii_projection_fp.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_precommit_lifecycle.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_probe_transport_boundaries.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_profiles.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_proof_revisions.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_provenance.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_public_precision.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_python_uploads.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_read_boundary.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_recon.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_registry_existence.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_remaining_control_scope.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_research.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_research_cli.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_retained_calibration.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_retained_flows.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_retained_frameworks.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_sarif_ingest.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_sarif_workbench.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_scanner_contracts.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_security_fix_boundaries.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_source_budget.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_sql_flow.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_stack_metadata.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_synthetic_pairs.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_testplan.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_transport_pii_scope.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_transport_stack_scope.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_triage.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_trpc_routes.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_unanalyzed_cli.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_unanalyzed_coverage.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_updates.py +0 -0
- {websec_validator-0.21.0 → websec_validator-0.22.0}/tests/test_workbench_cli.py +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: websec-validator
|
|
3
|
+
Version: 0.22.0
|
|
4
|
+
Summary: 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.
|
|
5
|
+
Author: Ricardo Accioly
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/raccioly/websec-validator
|
|
8
|
+
Project-URL: Repository, https://github.com/raccioly/websec-validator
|
|
9
|
+
Project-URL: Documentation, https://github.com/raccioly/websec-validator/blob/main/docs/METHODOLOGY.md
|
|
10
|
+
Project-URL: Changelog, https://github.com/raccioly/websec-validator/blob/main/CHANGELOG.md
|
|
11
|
+
Project-URL: Issues, https://github.com/raccioly/websec-validator/issues
|
|
12
|
+
Keywords: security,pentest,sast,dast,bola,ai-agent,appsec
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: Information Technology
|
|
17
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Security
|
|
24
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
25
|
+
Requires-Python: >=3.11
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# websec-validator
|
|
31
|
+
|
|
32
|
+
[](https://github.com/raccioly/websec-validator/actions/workflows/ci.yml)
|
|
33
|
+
[](https://pypi.org/project/websec-validator/)
|
|
34
|
+
[](https://pypi.org/project/websec-validator/)
|
|
35
|
+
[-brightgreen)](#install)
|
|
36
|
+
[](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ci/github-actions.md)
|
|
37
|
+
[](https://github.com/raccioly/websec-validator/blob/main/docs/README.md)
|
|
38
|
+
[](https://github.com/raccioly/websec-validator/blob/main/LICENSE)
|
|
39
|
+
|
|
40
|
+
**English** · [Português (Brasil)](https://github.com/raccioly/websec-validator/blob/main/docs/i18n/pt-BR/README.md) · [Español](https://github.com/raccioly/websec-validator/blob/main/docs/i18n/es/README.md) · [简体中文](https://github.com/raccioly/websec-validator/blob/main/docs/i18n/zh-CN/README.md)
|
|
41
|
+
|
|
42
|
+
A senior pentester's "here's what to test and how" handoff — auto-generated from your repo, for your AI agent to execute.
|
|
43
|
+
|
|
44
|
+
<!-- docguard:quality negation-load off — "no LLM / no server / no running app / not a SaaS / never touches prod" is this tool's core positioning; defining it by contrast with the scanners-and-SaaS it deliberately is NOT is intentional, not a phrasing defect. -->
|
|
45
|
+
|
|
46
|
+
> Local-first security recon that **briefs your AI coding agent**. It does the deterministic
|
|
47
|
+
> half — read supported source, map the visible attack surface, and stage a probe library tailored to what it
|
|
48
|
+
> found — then hands your agent (Claude Code, Codex, Gemini, Cursor) a marching-orders briefing.
|
|
49
|
+
> `websec run` needs nothing but the code; add `--scan` to also run and de-duplicate whichever
|
|
50
|
+
> static scanners you have installed. **Code in, artifacts out. No LLM in the tool; no server or
|
|
51
|
+
> running app required for the core pass.**
|
|
52
|
+
|
|
53
|
+
[](https://github.com/raccioly/websec-validator/blob/main/assets/demo.gif)
|
|
54
|
+
|
|
55
|
+
**New here?** Read the eight-page technical brief — what it reads, how a finding earns its severity,
|
|
56
|
+
what it refuses to say, and the field evidence:
|
|
57
|
+
**[raccioly.github.io/websec-validator](https://raccioly.github.io/websec-validator/websec-explained.html)**
|
|
58
|
+
· [PDF](https://raccioly.github.io/websec-validator/websec-explained.pdf). The reviewed v0.21.0 snapshot
|
|
59
|
+
has selected fact assertions in `tests/test_explained_brief.py` and an HTML/PDF/renderer hash binding
|
|
60
|
+
in `tests/test_brief_artifacts.py`. Prose accuracy and rendered layout still require review;
|
|
61
|
+
see [rebuilding the brief](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md#publishing-the-technical-brief).
|
|
62
|
+
|
|
63
|
+
It is *not* an autonomous scanner and *not* a SaaS. It's the missing front-half: the thing that
|
|
64
|
+
turns a repo into a precise, fact-grounded security brief an AI agent (with a human in the loop)
|
|
65
|
+
can act on. How it works and the reasoning behind every check:
|
|
66
|
+
[concepts](https://github.com/raccioly/websec-validator/blob/main/docs/concepts/how-it-works.md) ·
|
|
67
|
+
[methodology](https://github.com/raccioly/websec-validator/blob/main/docs/METHODOLOGY.md).
|
|
68
|
+
|
|
69
|
+
**Part of the Guard family**, three tools that each keep one kind of claim honest:
|
|
70
|
+
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
71
|
+
describes, [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
72
|
+
establish what they assert, and websec-validator does the same for security findings — every
|
|
73
|
+
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
74
|
+
|
|
75
|
+
## Getting Started — just point it at your repo
|
|
76
|
+
|
|
77
|
+
**Simplest: tell your AI agent.** In Claude Code (or any coding agent), open your project and say:
|
|
78
|
+
|
|
79
|
+
> *"Do a defensive security self-review of **my own** codebase with websec-validator (`pipx install
|
|
80
|
+
> websec-validator`, or github.com/raccioly/websec-validator). It's local and read-only — read the
|
|
81
|
+
> repo and follow its briefing. I own this code and authorize the review."*
|
|
82
|
+
|
|
83
|
+
It installs, runs, and walks the findings with you. Phrasing it as a *defensive review of your own
|
|
84
|
+
code* matters: it's the difference between an agent that just gets to work and one that stops to
|
|
85
|
+
confirm you're authorized. Every path ends in the same `AGENT-BRIEFING.md` your agent acts on:
|
|
86
|
+
|
|
87
|
+
| Path | One-time setup | Then |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| **Tell your agent** (simplest) | — | say the line above |
|
|
90
|
+
| **CLI** (a terminal) | `pipx install websec-validator` | `websec run /path/to/your/app` |
|
|
91
|
+
| **Claude Code plugin** | `/plugin marketplace add raccioly/websec-validator` → `/plugin install websec-validator@websec-plugins` | invoke the **security-pass** skill, or just ask |
|
|
92
|
+
| **Any other agent** (Codex, Cursor, Gemini, Aider) | `pipx install websec-validator` | `websec install <host>` |
|
|
93
|
+
| **Docker** (no install) | `docker build -t websec-validator .` | `docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out` |
|
|
94
|
+
|
|
95
|
+
Already have a codebase with history, tests and fixtures? Follow
|
|
96
|
+
**[Adopting websec in an existing project](https://github.com/raccioly/websec-validator/blob/main/docs/guides/existing-projects.md)**:
|
|
97
|
+
scope out non-product code, run, triage, record a baseline, then turn on gating in phases.
|
|
98
|
+
|
|
99
|
+
## Install
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
pipx install websec-validator # from PyPI; Python 3.11+
|
|
103
|
+
brew install noir # optional: OWASP Noir, the route engine (regex fallback if absent)
|
|
104
|
+
websec --version
|
|
105
|
+
websec doctor # which optional scanners are installed, and are they compatible?
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Zero Python runtime dependencies. External scanners (Trivy, OSV-Scanner, Gitleaks, Semgrep,
|
|
109
|
+
Checkov, and per-language Bandit/gosec/Brakeman) are used **when present** and run only with
|
|
110
|
+
`--scan`; Prowler is detected and reported, not executed. Every channel — pip, uv, Docker, source, offline/air-gapped — and per-OS scanner
|
|
111
|
+
setup: **[Installation](https://github.com/raccioly/websec-validator/blob/main/docs/installation.md)**.
|
|
112
|
+
|
|
113
|
+
## Usage
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
websec run ./my-app # recon + stage tailored probes + emit the briefing
|
|
117
|
+
websec ./my-app # same thing — a bare path defaults to `run`
|
|
118
|
+
websec run ./my-app --scan # …and also execute the available static scanners
|
|
119
|
+
websec run ./my-app --fail-on high # exit 1 if any HIGH+ finding remains (a CI gate)
|
|
120
|
+
websec run ./my-app --diff main # PR mode: scope to changed files + exact hunk line ranges
|
|
121
|
+
websec gate # fast pass/fail on the files you just changed (agent loop)
|
|
122
|
+
websec install codex # teach an agent to use websec (claude · cursor · gemini · aider · generic)
|
|
123
|
+
websec mcp # typed recon tools for any MCP client, over stdio
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Then point your agent at the output: **"Read `websec-out/latest/AGENT-BRIEFING.md` and follow it."**
|
|
127
|
+
Each attempt gets its own `websec-out/runs/<id>/` directory; `latest` moves only after a completed run.
|
|
128
|
+
Every subcommand and option: [CLI reference](https://github.com/raccioly/websec-validator/blob/main/docs/reference/cli.md).
|
|
129
|
+
|
|
130
|
+
## What you get (`websec-out/`)
|
|
131
|
+
|
|
132
|
+
| Artifact | What it is |
|
|
133
|
+
|---|---|
|
|
134
|
+
| `AGENT-BRIEFING.md` | **The product.** Marching orders: detected surface, the access-control map, targeting, findings, the method, and the staged probe list. |
|
|
135
|
+
| `FACTS.json` | The full structured recon. |
|
|
136
|
+
| `findings-ledger.json` / `REPORT.md` | The traceable ledger: each finding with an evidence chain, CWE/ASVS/OWASP-API citation, remediation, and a **calibrated `P(real)`** (measured real-vuln rate + 95% CI + sample size). |
|
|
137
|
+
| `results.sarif` | **SARIF 2.1.0** — always written. Drop it into GitHub Code Scanning, GitLab, Azure DevOps, VS Code's SARIF viewer, DefectDojo. |
|
|
138
|
+
| `coverage.json` | What ran, what was skipped and why — a clean result is only as good as its coverage. |
|
|
139
|
+
| `probes/` | The probe scripts selected and staged for *this* app (BOLA, JWT, SSRF, mass-assignment…). |
|
|
140
|
+
|
|
141
|
+
Plus SBOMs, an attack-surface table, diff scope and a versioned envelope:
|
|
142
|
+
[all outputs](https://github.com/raccioly/websec-validator/blob/main/docs/reference/outputs.md).
|
|
143
|
+
|
|
144
|
+
## Languages
|
|
145
|
+
|
|
146
|
+
| Support | Languages |
|
|
147
|
+
|---|---|
|
|
148
|
+
| **Deep, framework-aware analysis** — Django, Flask, FastAPI, Connexion, Express, Fastify, Next.js, tRPC, Supabase Edge, AWS SAM… | Python, JavaScript, TypeScript |
|
|
149
|
+
| **Named sink checks** — direct command/query syntax (plus literal Spring and ASP.NET routes) | Java, C#, Go, Ruby, PHP |
|
|
150
|
+
| **Configuration or manual checks only** — reported as a `thin_language_coverage` gap | Kotlin/Android, Swift and Objective-C/iOS, Rust, C/C++ |
|
|
151
|
+
| **Recognized, not analyzed** — reported as a coverage gap, never as clean | Elixir, Scala, Clojure, Erlang, Perl, Lua, Dart, shell, server-side templates and more |
|
|
152
|
+
|
|
153
|
+
Route discovery across many more frameworks comes from OWASP Noir when it is installed, and the
|
|
154
|
+
scanners are language-agnostic. A completed no-match check is not proof that a service is secure:
|
|
155
|
+
**[the full support matrix and what a clean run means for your stack](https://github.com/raccioly/websec-validator/blob/main/docs/reference/languages.md)**.
|
|
156
|
+
|
|
157
|
+
## Documentation
|
|
158
|
+
|
|
159
|
+
| Start here | Guides | Reference |
|
|
160
|
+
|---|---|---|
|
|
161
|
+
| [Docs hub](https://github.com/raccioly/websec-validator/blob/main/docs/README.md) | [Existing projects](https://github.com/raccioly/websec-validator/blob/main/docs/guides/existing-projects.md) | [CLI](https://github.com/raccioly/websec-validator/blob/main/docs/reference/cli.md) |
|
|
162
|
+
| [Quickstart](https://github.com/raccioly/websec-validator/blob/main/docs/quickstart.md) | [AI agents](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ai-agents.md) | [Languages](https://github.com/raccioly/websec-validator/blob/main/docs/reference/languages.md) |
|
|
163
|
+
| [Installation](https://github.com/raccioly/websec-validator/blob/main/docs/installation.md) | [GitHub Actions](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ci/github-actions.md) · [other CI](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ci/other-ci.md) | [Configuration](https://github.com/raccioly/websec-validator/blob/main/docs/reference/configuration.md) |
|
|
164
|
+
| [Upgrading](https://github.com/raccioly/websec-validator/blob/main/docs/upgrade.md) | [Triage and suppression](https://github.com/raccioly/websec-validator/blob/main/docs/guides/triage-and-suppression.md) | [Outputs](https://github.com/raccioly/websec-validator/blob/main/docs/reference/outputs.md) |
|
|
165
|
+
| [Troubleshooting](https://github.com/raccioly/websec-validator/blob/main/docs/troubleshooting.md) · [FAQ](https://github.com/raccioly/websec-validator/blob/main/docs/faq.md) | [Dynamic testing](https://github.com/raccioly/websec-validator/blob/main/docs/guides/dynamic-testing.md) | [MCP server](https://github.com/raccioly/websec-validator/blob/main/docs/reference/mcp.md) |
|
|
166
|
+
|
|
167
|
+
## Status
|
|
168
|
+
|
|
169
|
+
The [changelog](https://github.com/raccioly/websec-validator/blob/main/CHANGELOG.md) records what each
|
|
170
|
+
release changed; [Upgrading](https://github.com/raccioly/websec-validator/blob/main/docs/upgrade.md)
|
|
171
|
+
indexes the migration notes — 0.14.0 (schema 2.0), the 0.17.0 exit-code split
|
|
172
|
+
(`2` = usage error, `3` = incomplete run) and 0.22.0 (exit codes enforced everywhere, subdirectory
|
|
173
|
+
`--diff`/`gate` scoping, `.websec-ignore` path matching). Unresolved gaps and their acceptance tests live in the
|
|
174
|
+
[remaining-work specification](https://github.com/raccioly/websec-validator/blob/main/specs/001-continuous-security-improvement/spec.md).
|
|
175
|
+
|
|
176
|
+
These are scoped review tools: manual profiles, unknown routes, dynamic behavior and unsupported
|
|
177
|
+
syntax remain limitations. The in-loop gate is developer ergonomics, not a control, and `attest`
|
|
178
|
+
reports evidence without rendering a compliance verdict. Snapshot-bound evidence lives with the
|
|
179
|
+
artifacts it describes — the [validation record](https://github.com/raccioly/websec-validator/blob/main/docs/security-review/validation.md),
|
|
180
|
+
the [benchmarks](https://github.com/raccioly/websec-validator/blob/main/BENCHMARKS.md) and the
|
|
181
|
+
[proof protocol](https://github.com/raccioly/websec-validator/blob/main/corpus/PROOF-PROTOCOL.md) —
|
|
182
|
+
so the numbers cannot drift out of date here.
|
|
183
|
+
|
|
184
|
+
**Validated on** a production Next.js app, a large Express/AWS monorepo, and the VAmPI / NodeGoat /
|
|
185
|
+
DVGA vuln-app corpus — independently reproducing a hand-done pentest's findings (tenant boundary,
|
|
186
|
+
SSRF, file upload, cross-tenant BOLA, role/authz gaps). Route discovery reports what it can parse
|
|
187
|
+
*without importing settings or executing your code*, so unknown mounts stay route **candidates**
|
|
188
|
+
carrying their uncertainty; that is human review evidence, not measured vulnerability recall.
|
|
189
|
+
|
|
190
|
+
## Contributing
|
|
191
|
+
|
|
192
|
+
Bug reports, false-positive reports and detector proposals are the most valuable input this project
|
|
193
|
+
gets — see [CONTRIBUTING.md](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md)
|
|
194
|
+
(including the maintainer release process) and the
|
|
195
|
+
[issue templates](https://github.com/raccioly/websec-validator/issues/new/choose). Report
|
|
196
|
+
vulnerabilities in websec itself privately: [SECURITY.md](https://github.com/raccioly/websec-validator/blob/main/SECURITY.md).
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
python3 -m unittest discover -s tests # stdlib only; synthetic/local-loopback tests, no public network
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## Credits
|
|
203
|
+
|
|
204
|
+
Methodology + probe library are distilled from a real authenticated penetration-testing pass.
|
|
205
|
+
This tool productizes that hand-written methodology into something an AI agent can run on any repo.
|
|
206
|
+
|
|
207
|
+
## License
|
|
208
|
+
|
|
209
|
+
[MIT](https://github.com/raccioly/websec-validator/blob/main/LICENSE) © Ricardo Accioly
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# websec-validator
|
|
2
|
+
|
|
3
|
+
[](https://github.com/raccioly/websec-validator/actions/workflows/ci.yml)
|
|
4
|
+
[](https://pypi.org/project/websec-validator/)
|
|
5
|
+
[](https://pypi.org/project/websec-validator/)
|
|
6
|
+
[-brightgreen)](#install)
|
|
7
|
+
[](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ci/github-actions.md)
|
|
8
|
+
[](https://github.com/raccioly/websec-validator/blob/main/docs/README.md)
|
|
9
|
+
[](https://github.com/raccioly/websec-validator/blob/main/LICENSE)
|
|
10
|
+
|
|
11
|
+
**English** · [Português (Brasil)](https://github.com/raccioly/websec-validator/blob/main/docs/i18n/pt-BR/README.md) · [Español](https://github.com/raccioly/websec-validator/blob/main/docs/i18n/es/README.md) · [简体中文](https://github.com/raccioly/websec-validator/blob/main/docs/i18n/zh-CN/README.md)
|
|
12
|
+
|
|
13
|
+
A senior pentester's "here's what to test and how" handoff — auto-generated from your repo, for your AI agent to execute.
|
|
14
|
+
|
|
15
|
+
<!-- docguard:quality negation-load off — "no LLM / no server / no running app / not a SaaS / never touches prod" is this tool's core positioning; defining it by contrast with the scanners-and-SaaS it deliberately is NOT is intentional, not a phrasing defect. -->
|
|
16
|
+
|
|
17
|
+
> Local-first security recon that **briefs your AI coding agent**. It does the deterministic
|
|
18
|
+
> half — read supported source, map the visible attack surface, and stage a probe library tailored to what it
|
|
19
|
+
> found — then hands your agent (Claude Code, Codex, Gemini, Cursor) a marching-orders briefing.
|
|
20
|
+
> `websec run` needs nothing but the code; add `--scan` to also run and de-duplicate whichever
|
|
21
|
+
> static scanners you have installed. **Code in, artifacts out. No LLM in the tool; no server or
|
|
22
|
+
> running app required for the core pass.**
|
|
23
|
+
|
|
24
|
+
[](https://github.com/raccioly/websec-validator/blob/main/assets/demo.gif)
|
|
25
|
+
|
|
26
|
+
**New here?** Read the eight-page technical brief — what it reads, how a finding earns its severity,
|
|
27
|
+
what it refuses to say, and the field evidence:
|
|
28
|
+
**[raccioly.github.io/websec-validator](https://raccioly.github.io/websec-validator/websec-explained.html)**
|
|
29
|
+
· [PDF](https://raccioly.github.io/websec-validator/websec-explained.pdf). The reviewed v0.21.0 snapshot
|
|
30
|
+
has selected fact assertions in `tests/test_explained_brief.py` and an HTML/PDF/renderer hash binding
|
|
31
|
+
in `tests/test_brief_artifacts.py`. Prose accuracy and rendered layout still require review;
|
|
32
|
+
see [rebuilding the brief](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md#publishing-the-technical-brief).
|
|
33
|
+
|
|
34
|
+
It is *not* an autonomous scanner and *not* a SaaS. It's the missing front-half: the thing that
|
|
35
|
+
turns a repo into a precise, fact-grounded security brief an AI agent (with a human in the loop)
|
|
36
|
+
can act on. How it works and the reasoning behind every check:
|
|
37
|
+
[concepts](https://github.com/raccioly/websec-validator/blob/main/docs/concepts/how-it-works.md) ·
|
|
38
|
+
[methodology](https://github.com/raccioly/websec-validator/blob/main/docs/METHODOLOGY.md).
|
|
39
|
+
|
|
40
|
+
**Part of the Guard family**, three tools that each keep one kind of claim honest:
|
|
41
|
+
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
42
|
+
describes, [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
43
|
+
establish what they assert, and websec-validator does the same for security findings — every
|
|
44
|
+
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
45
|
+
|
|
46
|
+
## Getting Started — just point it at your repo
|
|
47
|
+
|
|
48
|
+
**Simplest: tell your AI agent.** In Claude Code (or any coding agent), open your project and say:
|
|
49
|
+
|
|
50
|
+
> *"Do a defensive security self-review of **my own** codebase with websec-validator (`pipx install
|
|
51
|
+
> websec-validator`, or github.com/raccioly/websec-validator). It's local and read-only — read the
|
|
52
|
+
> repo and follow its briefing. I own this code and authorize the review."*
|
|
53
|
+
|
|
54
|
+
It installs, runs, and walks the findings with you. Phrasing it as a *defensive review of your own
|
|
55
|
+
code* matters: it's the difference between an agent that just gets to work and one that stops to
|
|
56
|
+
confirm you're authorized. Every path ends in the same `AGENT-BRIEFING.md` your agent acts on:
|
|
57
|
+
|
|
58
|
+
| Path | One-time setup | Then |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| **Tell your agent** (simplest) | — | say the line above |
|
|
61
|
+
| **CLI** (a terminal) | `pipx install websec-validator` | `websec run /path/to/your/app` |
|
|
62
|
+
| **Claude Code plugin** | `/plugin marketplace add raccioly/websec-validator` → `/plugin install websec-validator@websec-plugins` | invoke the **security-pass** skill, or just ask |
|
|
63
|
+
| **Any other agent** (Codex, Cursor, Gemini, Aider) | `pipx install websec-validator` | `websec install <host>` |
|
|
64
|
+
| **Docker** (no install) | `docker build -t websec-validator .` | `docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out` |
|
|
65
|
+
|
|
66
|
+
Already have a codebase with history, tests and fixtures? Follow
|
|
67
|
+
**[Adopting websec in an existing project](https://github.com/raccioly/websec-validator/blob/main/docs/guides/existing-projects.md)**:
|
|
68
|
+
scope out non-product code, run, triage, record a baseline, then turn on gating in phases.
|
|
69
|
+
|
|
70
|
+
## Install
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pipx install websec-validator # from PyPI; Python 3.11+
|
|
74
|
+
brew install noir # optional: OWASP Noir, the route engine (regex fallback if absent)
|
|
75
|
+
websec --version
|
|
76
|
+
websec doctor # which optional scanners are installed, and are they compatible?
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Zero Python runtime dependencies. External scanners (Trivy, OSV-Scanner, Gitleaks, Semgrep,
|
|
80
|
+
Checkov, and per-language Bandit/gosec/Brakeman) are used **when present** and run only with
|
|
81
|
+
`--scan`; Prowler is detected and reported, not executed. Every channel — pip, uv, Docker, source, offline/air-gapped — and per-OS scanner
|
|
82
|
+
setup: **[Installation](https://github.com/raccioly/websec-validator/blob/main/docs/installation.md)**.
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
websec run ./my-app # recon + stage tailored probes + emit the briefing
|
|
88
|
+
websec ./my-app # same thing — a bare path defaults to `run`
|
|
89
|
+
websec run ./my-app --scan # …and also execute the available static scanners
|
|
90
|
+
websec run ./my-app --fail-on high # exit 1 if any HIGH+ finding remains (a CI gate)
|
|
91
|
+
websec run ./my-app --diff main # PR mode: scope to changed files + exact hunk line ranges
|
|
92
|
+
websec gate # fast pass/fail on the files you just changed (agent loop)
|
|
93
|
+
websec install codex # teach an agent to use websec (claude · cursor · gemini · aider · generic)
|
|
94
|
+
websec mcp # typed recon tools for any MCP client, over stdio
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Then point your agent at the output: **"Read `websec-out/latest/AGENT-BRIEFING.md` and follow it."**
|
|
98
|
+
Each attempt gets its own `websec-out/runs/<id>/` directory; `latest` moves only after a completed run.
|
|
99
|
+
Every subcommand and option: [CLI reference](https://github.com/raccioly/websec-validator/blob/main/docs/reference/cli.md).
|
|
100
|
+
|
|
101
|
+
## What you get (`websec-out/`)
|
|
102
|
+
|
|
103
|
+
| Artifact | What it is |
|
|
104
|
+
|---|---|
|
|
105
|
+
| `AGENT-BRIEFING.md` | **The product.** Marching orders: detected surface, the access-control map, targeting, findings, the method, and the staged probe list. |
|
|
106
|
+
| `FACTS.json` | The full structured recon. |
|
|
107
|
+
| `findings-ledger.json` / `REPORT.md` | The traceable ledger: each finding with an evidence chain, CWE/ASVS/OWASP-API citation, remediation, and a **calibrated `P(real)`** (measured real-vuln rate + 95% CI + sample size). |
|
|
108
|
+
| `results.sarif` | **SARIF 2.1.0** — always written. Drop it into GitHub Code Scanning, GitLab, Azure DevOps, VS Code's SARIF viewer, DefectDojo. |
|
|
109
|
+
| `coverage.json` | What ran, what was skipped and why — a clean result is only as good as its coverage. |
|
|
110
|
+
| `probes/` | The probe scripts selected and staged for *this* app (BOLA, JWT, SSRF, mass-assignment…). |
|
|
111
|
+
|
|
112
|
+
Plus SBOMs, an attack-surface table, diff scope and a versioned envelope:
|
|
113
|
+
[all outputs](https://github.com/raccioly/websec-validator/blob/main/docs/reference/outputs.md).
|
|
114
|
+
|
|
115
|
+
## Languages
|
|
116
|
+
|
|
117
|
+
| Support | Languages |
|
|
118
|
+
|---|---|
|
|
119
|
+
| **Deep, framework-aware analysis** — Django, Flask, FastAPI, Connexion, Express, Fastify, Next.js, tRPC, Supabase Edge, AWS SAM… | Python, JavaScript, TypeScript |
|
|
120
|
+
| **Named sink checks** — direct command/query syntax (plus literal Spring and ASP.NET routes) | Java, C#, Go, Ruby, PHP |
|
|
121
|
+
| **Configuration or manual checks only** — reported as a `thin_language_coverage` gap | Kotlin/Android, Swift and Objective-C/iOS, Rust, C/C++ |
|
|
122
|
+
| **Recognized, not analyzed** — reported as a coverage gap, never as clean | Elixir, Scala, Clojure, Erlang, Perl, Lua, Dart, shell, server-side templates and more |
|
|
123
|
+
|
|
124
|
+
Route discovery across many more frameworks comes from OWASP Noir when it is installed, and the
|
|
125
|
+
scanners are language-agnostic. A completed no-match check is not proof that a service is secure:
|
|
126
|
+
**[the full support matrix and what a clean run means for your stack](https://github.com/raccioly/websec-validator/blob/main/docs/reference/languages.md)**.
|
|
127
|
+
|
|
128
|
+
## Documentation
|
|
129
|
+
|
|
130
|
+
| Start here | Guides | Reference |
|
|
131
|
+
|---|---|---|
|
|
132
|
+
| [Docs hub](https://github.com/raccioly/websec-validator/blob/main/docs/README.md) | [Existing projects](https://github.com/raccioly/websec-validator/blob/main/docs/guides/existing-projects.md) | [CLI](https://github.com/raccioly/websec-validator/blob/main/docs/reference/cli.md) |
|
|
133
|
+
| [Quickstart](https://github.com/raccioly/websec-validator/blob/main/docs/quickstart.md) | [AI agents](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ai-agents.md) | [Languages](https://github.com/raccioly/websec-validator/blob/main/docs/reference/languages.md) |
|
|
134
|
+
| [Installation](https://github.com/raccioly/websec-validator/blob/main/docs/installation.md) | [GitHub Actions](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ci/github-actions.md) · [other CI](https://github.com/raccioly/websec-validator/blob/main/docs/guides/ci/other-ci.md) | [Configuration](https://github.com/raccioly/websec-validator/blob/main/docs/reference/configuration.md) |
|
|
135
|
+
| [Upgrading](https://github.com/raccioly/websec-validator/blob/main/docs/upgrade.md) | [Triage and suppression](https://github.com/raccioly/websec-validator/blob/main/docs/guides/triage-and-suppression.md) | [Outputs](https://github.com/raccioly/websec-validator/blob/main/docs/reference/outputs.md) |
|
|
136
|
+
| [Troubleshooting](https://github.com/raccioly/websec-validator/blob/main/docs/troubleshooting.md) · [FAQ](https://github.com/raccioly/websec-validator/blob/main/docs/faq.md) | [Dynamic testing](https://github.com/raccioly/websec-validator/blob/main/docs/guides/dynamic-testing.md) | [MCP server](https://github.com/raccioly/websec-validator/blob/main/docs/reference/mcp.md) |
|
|
137
|
+
|
|
138
|
+
## Status
|
|
139
|
+
|
|
140
|
+
The [changelog](https://github.com/raccioly/websec-validator/blob/main/CHANGELOG.md) records what each
|
|
141
|
+
release changed; [Upgrading](https://github.com/raccioly/websec-validator/blob/main/docs/upgrade.md)
|
|
142
|
+
indexes the migration notes — 0.14.0 (schema 2.0), the 0.17.0 exit-code split
|
|
143
|
+
(`2` = usage error, `3` = incomplete run) and 0.22.0 (exit codes enforced everywhere, subdirectory
|
|
144
|
+
`--diff`/`gate` scoping, `.websec-ignore` path matching). Unresolved gaps and their acceptance tests live in the
|
|
145
|
+
[remaining-work specification](https://github.com/raccioly/websec-validator/blob/main/specs/001-continuous-security-improvement/spec.md).
|
|
146
|
+
|
|
147
|
+
These are scoped review tools: manual profiles, unknown routes, dynamic behavior and unsupported
|
|
148
|
+
syntax remain limitations. The in-loop gate is developer ergonomics, not a control, and `attest`
|
|
149
|
+
reports evidence without rendering a compliance verdict. Snapshot-bound evidence lives with the
|
|
150
|
+
artifacts it describes — the [validation record](https://github.com/raccioly/websec-validator/blob/main/docs/security-review/validation.md),
|
|
151
|
+
the [benchmarks](https://github.com/raccioly/websec-validator/blob/main/BENCHMARKS.md) and the
|
|
152
|
+
[proof protocol](https://github.com/raccioly/websec-validator/blob/main/corpus/PROOF-PROTOCOL.md) —
|
|
153
|
+
so the numbers cannot drift out of date here.
|
|
154
|
+
|
|
155
|
+
**Validated on** a production Next.js app, a large Express/AWS monorepo, and the VAmPI / NodeGoat /
|
|
156
|
+
DVGA vuln-app corpus — independently reproducing a hand-done pentest's findings (tenant boundary,
|
|
157
|
+
SSRF, file upload, cross-tenant BOLA, role/authz gaps). Route discovery reports what it can parse
|
|
158
|
+
*without importing settings or executing your code*, so unknown mounts stay route **candidates**
|
|
159
|
+
carrying their uncertainty; that is human review evidence, not measured vulnerability recall.
|
|
160
|
+
|
|
161
|
+
## Contributing
|
|
162
|
+
|
|
163
|
+
Bug reports, false-positive reports and detector proposals are the most valuable input this project
|
|
164
|
+
gets — see [CONTRIBUTING.md](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md)
|
|
165
|
+
(including the maintainer release process) and the
|
|
166
|
+
[issue templates](https://github.com/raccioly/websec-validator/issues/new/choose). Report
|
|
167
|
+
vulnerabilities in websec itself privately: [SECURITY.md](https://github.com/raccioly/websec-validator/blob/main/SECURITY.md).
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
python3 -m unittest discover -s tests # stdlib only; synthetic/local-loopback tests, no public network
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Credits
|
|
174
|
+
|
|
175
|
+
Methodology + probe library are distilled from a real authenticated penetration-testing pass.
|
|
176
|
+
This tool productizes that hand-written methodology into something an AI agent can run on any repo.
|
|
177
|
+
|
|
178
|
+
## License
|
|
179
|
+
|
|
180
|
+
[MIT](https://github.com/raccioly/websec-validator/blob/main/LICENSE) © Ricardo Accioly
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "websec-validator"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.22.0"
|
|
8
8
|
description = "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."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -49,6 +49,23 @@ ANALYZABLE = {".py", ".js", ".jsx", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts
|
|
|
49
49
|
".env", ".yml", ".yaml"}
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
# Mirrors gate.SEV_ORDER (a test pins the equality). Kept local so importing this module stays free:
|
|
53
|
+
# the gate import happens inside run()'s fail-open block.
|
|
54
|
+
_THRESHOLDS = ("low", "medium", "high", "critical")
|
|
55
|
+
DEFAULT_FAIL_ON = "medium"
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def effective_fail_on(env=None) -> str:
|
|
59
|
+
"""The threshold the hook actually enforces: WEBSEC_GATE_FAIL_ON, else medium.
|
|
60
|
+
|
|
61
|
+
An unrecognised value falls back to medium (as gate.verdict always did); returning the
|
|
62
|
+
normalised value lets the install message and the gate output name the threshold in force
|
|
63
|
+
instead of echoing a value that was ignored."""
|
|
64
|
+
env = os.environ if env is None else env
|
|
65
|
+
value = str(env.get("WEBSEC_GATE_FAIL_ON") or DEFAULT_FAIL_ON).lower()
|
|
66
|
+
return value if value in _THRESHOLDS else DEFAULT_FAIL_ON
|
|
67
|
+
|
|
68
|
+
|
|
52
69
|
def _payload() -> dict:
|
|
53
70
|
"""PostToolUse sends its event as JSON on stdin. Malformed input is not our problem to fix."""
|
|
54
71
|
try:
|
|
@@ -116,7 +133,7 @@ def run(event: dict | None = None, *, env: dict | None = None) -> int:
|
|
|
116
133
|
try:
|
|
117
134
|
from . import gate as _gate
|
|
118
135
|
from . import __version__ as _version
|
|
119
|
-
result = _gate.evaluate(Path(root), relative, env
|
|
136
|
+
result = _gate.evaluate(Path(root), relative, effective_fail_on(env),
|
|
120
137
|
version=_version, scope_source="agent-hook",
|
|
121
138
|
min_confidence=env.get("WEBSEC_GATE_MIN_CONFIDENCE", "low"))
|
|
122
139
|
except Exception as error:
|