websec-validator 0.22.2__tar.gz → 0.23.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.2/src/websec_validator.egg-info → websec_validator-0.23.0}/PKG-INFO +45 -44
- {websec_validator-0.22.2 → websec_validator-0.23.0}/README.md +44 -43
- {websec_validator-0.22.2 → websec_validator-0.23.0}/pyproject.toml +1 -1
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/baseline.py +3 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/cli.py +5 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/clusters.py +10 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/dast_predict.py +1 -0
- websec_validator-0.23.0/src/websec_validator/dependency_fix.py +319 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/explain.py +2 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/routes.py +1 -1
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/findings.py +12 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/fixprompt.py +2 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/git_read.py +2 -2
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/hooks.py +41 -5
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/proof.py +1 -1
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/scanners.py +204 -18
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/schemas/ledger.schema.json +3 -2
- {websec_validator-0.22.2 → websec_validator-0.23.0/src/websec_validator.egg-info}/PKG-INFO +45 -44
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator.egg-info/SOURCES.txt +3 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_attest.py +6 -2
- websec_validator-0.23.0/tests/test_dependency_fix.py +387 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_hooks_contracts.py +29 -0
- websec_validator-0.23.0/tests/test_subprocess_stdin.py +63 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/LICENSE +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/setup.cfg +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/__init__.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/__main__.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/agenthook.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/attest.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/attribution.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/briefing.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/calibration.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/calibration.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/constitution.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/corpus.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/coverage.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/dast_ingest.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/demo.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/diffscope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/dynamic.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/enrichment.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/__init__.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/agent_config.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/assigned_flow.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/auth.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/authz.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/authz_dataflow.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/base.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/client_exposure.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/client_integrity.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/connexion_routes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/crypto_usage.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/dependencies.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/django_responses.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/django_urls.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/framework_auth.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/graphql.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/iac_ci.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/integrations.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/llm_security.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/pii_exposure.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/policy_consistency.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/profiles.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/python_uploads.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/schemas.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/sql_flow.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/stack.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/surface.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/syntax.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/tenant.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/transport_security.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/trpc_routes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/upload_security.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/extractors/webext.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/feedback.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/formats.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/fpfilter.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/gate.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/graph_enrich.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/init_scope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/install.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/intel.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/inventory.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/literal_yaml.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/mcp_server.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/openapi.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/output.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/pairs.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/probes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/provenance.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/recon.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/registry.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/repairs.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/report.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/research/control-scope-cases.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/research/example.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/research/profile-cases.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/research.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/rules/error-stack-disclosure.yml +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/rules/insecure-default-secret.yml +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/sarif_ingest.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/schemas/coverage.schema.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/schemas/facts.schema.json +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/synthetic.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/demo/app.py.txt +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/demo/requirements.txt.txt +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/_lib.bash +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/_lib.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/appsync-cswsh.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/appsync-introspection.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/appsync-subscription-bola.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/bola-cross-tenant.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/bola-write-verbs.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/client-integrity-checklist.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/compare-roles.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/dlp-bypass-offline.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/entitlement-abuse.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/error-disclosure-probe.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/forged-token.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/hs256-brute-force.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/jwt-attacks.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/mass-assignment.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/password-reuse.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/pii-output-diff.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/race-conditions.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/rate-limit-burst.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/s3-assess.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/ssrf-probes.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/unauth-baseline.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/upload-matrix.sh +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/probes/webhook-forgery.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/reports/FINDINGS-SUMMARY.md.template +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/reports/access-control-matrix.md.template +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/reports/findings-triage.md.template +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/reports/pentest-handover-brief.md.template +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/templates/reports/per-tool-FINDINGS.md.template +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/testplan.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator/updates.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator.egg-info/dependency_links.txt +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator.egg-info/entry_points.txt +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/src/websec_validator.egg-info/top_level.txt +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_action_contracts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_adoption_checkout.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_adoption_contracts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_agent_hook.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_agent_hosts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_agent_launch_specs.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_analysis_scope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_assurance_regressions.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_attribution.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_auth_control_scope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_brief_artifacts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_calibration_claimspec.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_calibration_review.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_calibration_scoring.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_cli_contract_fixes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_compare_reports.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_connexion_yaml.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_constitution.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_container_contracts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_control_scope_research.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_coverage.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_crypto_comparisons.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_dast_ingest.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_dast_predict.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_demo.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_detector_fp_followups.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_detector_precision.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_diffscope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_django_responses.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_django_routes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_docs_reference.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_dynamic_login_shape.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_enrichment.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_entitlement_webext.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_evidence_verdicts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_explain.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_explained_brief.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_extension_controls.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_feedback.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_feedback_calibration_loop.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_field_report_195_197.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_field_report_2026_09.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_fixprompt_fpfilter.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_flow_budget_fixes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_formats.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_fp_sources.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_gate_and_bypass_record.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_gate_command.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_gate_policy_and_scope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_gitleaks_worktree.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_graph_enrich.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_grounding_integration.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_hardening.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_hooks.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_ignore_claimspec.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_install.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_install_contracts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_intel.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_inventory.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_issue_147_sarif_locations.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_jules_201_202_hardened.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_jules_pr_hardening.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_language_fixtures.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_lifecycle.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_mcp.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_mcp_security.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_module_entrypoint.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_openapi.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_output_boundaries.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_pentest_regressions.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_pii_projection_fp.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_precommit_lifecycle.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_probe_transport_boundaries.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_profiles.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_proof_revisions.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_provenance.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_public_precision.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_python_uploads.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_read_boundary.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_read_performance.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_recon.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_registry_existence.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_remaining_control_scope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_research.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_research_cli.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_retained_calibration.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_retained_flows.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_retained_frameworks.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_retained_precision.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_sarif_ingest.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_sarif_workbench.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_scanner_completeness_fixes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_scanner_contracts.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_scope_paths_fixes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_security_fix_boundaries.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_source_budget.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_sql_flow.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_stack_metadata.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_suppression_and_misc_fixes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_synthetic_pairs.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_testplan.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_transport_pii_scope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_transport_stack_scope.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_triage.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_trpc_routes.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_unanalyzed_cli.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_unanalyzed_coverage.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_updates.py +0 -0
- {websec_validator-0.22.2 → websec_validator-0.23.0}/tests/test_workbench_cli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: websec-validator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.23.0
|
|
4
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
5
|
Author: Ricardo Accioly
|
|
6
6
|
License: MIT
|
|
@@ -39,37 +39,38 @@ Dynamic: license-file
|
|
|
39
39
|
|
|
40
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
41
|
|
|
42
|
-
A senior pentester
|
|
42
|
+
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.
|
|
43
43
|
|
|
44
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
45
|
|
|
46
46
|
> Local-first security recon that **briefs your AI coding agent**. It does the deterministic
|
|
47
|
-
> half
|
|
48
|
-
> found
|
|
49
|
-
>
|
|
50
|
-
>
|
|
47
|
+
> half of the work. It reads supported source, maps the visible attack surface, and stages a probe
|
|
48
|
+
> library for what it found. Then it gives your agent (Claude Code, Codex, Gemini, Cursor) a briefing
|
|
49
|
+
> with its orders.
|
|
50
|
+
> `websec run` needs only the code. Add `--scan` to also run the static scanners you have installed
|
|
51
|
+
> and remove duplicate findings. **Code in, artifacts out. No LLM in the tool; no server or
|
|
51
52
|
> running app required for the core pass.**
|
|
52
53
|
|
|
53
54
|
[](https://github.com/raccioly/websec-validator/blob/main/assets/demo.gif)
|
|
54
55
|
|
|
55
|
-
**New here?** Read the eight-page technical brief
|
|
56
|
+
**New here?** Read the eight-page technical brief. It covers what the tool reads, how a finding earns its severity,
|
|
56
57
|
what it refuses to say, and the field evidence:
|
|
57
58
|
**[raccioly.github.io/websec-validator](https://raccioly.github.io/websec-validator/websec-explained.html)**
|
|
58
59
|
· [PDF](https://raccioly.github.io/websec-validator/websec-explained.pdf). The reviewed v0.21.0 snapshot
|
|
59
60
|
has selected fact assertions in `tests/test_explained_brief.py` and an HTML/PDF/renderer hash binding
|
|
60
|
-
in `tests/test_brief_artifacts.py`.
|
|
61
|
-
|
|
61
|
+
in `tests/test_brief_artifacts.py`. A person must still review the prose accuracy and the rendered layout.
|
|
62
|
+
See [rebuilding the brief](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md#publishing-the-technical-brief).
|
|
62
63
|
|
|
63
|
-
It is *not* an autonomous scanner and *not* a SaaS. It
|
|
64
|
-
turns a repo into a precise
|
|
65
|
-
|
|
64
|
+
It is *not* an autonomous scanner and *not* a SaaS. It is the front half that was missing. It
|
|
65
|
+
turns a repo into a precise security brief, based on facts, that an AI agent can act on with a human in the loop.
|
|
66
|
+
How it works and the reasoning behind every check:
|
|
66
67
|
[concepts](https://github.com/raccioly/websec-validator/blob/main/docs/concepts/how-it-works.md) ·
|
|
67
68
|
[methodology](https://github.com/raccioly/websec-validator/blob/main/docs/METHODOLOGY.md).
|
|
68
69
|
|
|
69
|
-
**Part of the Guard family
|
|
70
|
+
**Part of the Guard family.** Three tools each keep one kind of claim honest:
|
|
70
71
|
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
71
|
-
describes
|
|
72
|
-
establish what they assert
|
|
72
|
+
describes. [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
73
|
+
establish what they assert. websec-validator does the same for security findings. Every
|
|
73
74
|
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
74
75
|
|
|
75
76
|
## Getting Started — just point it at your repo
|
|
@@ -80,9 +81,9 @@ finding carries its evidence, its standard, and a calibrated probability that it
|
|
|
80
81
|
> websec-validator`, or github.com/raccioly/websec-validator). It's local and read-only — read the
|
|
81
82
|
> repo and follow its briefing. I own this code and authorize the review."*
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
code
|
|
85
|
-
|
|
84
|
+
The agent installs the tool, runs it, and walks through the findings with you. Say *defensive review of your own
|
|
85
|
+
code*. With that phrase, an agent starts work. Without it, an agent can stop to
|
|
86
|
+
ask if you are authorized. Every path ends in the same `AGENT-BRIEFING.md` that your agent acts on:
|
|
86
87
|
|
|
87
88
|
| Path | One-time setup | Then |
|
|
88
89
|
|---|---|---|
|
|
@@ -94,7 +95,7 @@ confirm you're authorized. Every path ends in the same `AGENT-BRIEFING.md` your
|
|
|
94
95
|
|
|
95
96
|
Already have a codebase with history, tests and fixtures? Follow
|
|
96
97
|
**[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
|
|
98
|
+
scope out non-product code, run, triage, record a baseline, then turn on the gate in phases.
|
|
98
99
|
|
|
99
100
|
## Install
|
|
100
101
|
|
|
@@ -105,10 +106,10 @@ websec --version
|
|
|
105
106
|
websec doctor # which optional scanners are installed, and are they compatible?
|
|
106
107
|
```
|
|
107
108
|
|
|
108
|
-
|
|
109
|
-
Checkov, and per-language Bandit/gosec/Brakeman)
|
|
110
|
-
`--scan
|
|
111
|
-
setup
|
|
109
|
+
The tool has zero Python runtime dependencies. It uses external scanners (Trivy, OSV-Scanner, Gitleaks, Semgrep,
|
|
110
|
+
Checkov, and per-language Bandit/gosec/Brakeman) **when present**, and they run only with
|
|
111
|
+
`--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
|
|
112
|
+
setup, see **[Installation](https://github.com/raccioly/websec-validator/blob/main/docs/installation.md)**.
|
|
112
113
|
|
|
113
114
|
## Usage
|
|
114
115
|
|
|
@@ -124,21 +125,21 @@ websec mcp # typed recon tools for any MCP client, o
|
|
|
124
125
|
```
|
|
125
126
|
|
|
126
127
|
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
|
|
128
|
+
Each attempt gets its own `websec-out/runs/<id>/` directory. `latest` moves only after a completed run.
|
|
128
129
|
Every subcommand and option: [CLI reference](https://github.com/raccioly/websec-validator/blob/main/docs/reference/cli.md).
|
|
129
130
|
|
|
130
131
|
## What you get (`websec-out/`)
|
|
131
132
|
|
|
132
133
|
| Artifact | What it is |
|
|
133
134
|
|---|---|
|
|
134
|
-
| `AGENT-BRIEFING.md` | **The product.**
|
|
135
|
+
| `AGENT-BRIEFING.md` | **The product.** The orders for your agent: detected surface, the access-control map, targeting, findings, the method, and the staged probe list. |
|
|
135
136
|
| `FACTS.json` | The full structured recon. |
|
|
136
|
-
| `findings-ledger.json` / `REPORT.md` | The traceable ledger
|
|
137
|
-
| `results.sarif` | **SARIF 2.1.0
|
|
138
|
-
| `coverage.json` | What ran, what was skipped and why
|
|
139
|
-
| `probes/` | The probe scripts selected and staged for *this* app (BOLA, JWT, SSRF, mass-assignment…). |
|
|
137
|
+
| `findings-ledger.json` / `REPORT.md` | The traceable ledger. Each finding has an evidence chain, a CWE/ASVS/OWASP-API citation, remediation, and a **calibrated `P(real)`** (measured real-vuln rate + 95% CI + sample size). |
|
|
138
|
+
| `results.sarif` | **SARIF 2.1.0**, always written. Load it into GitHub Code Scanning, GitLab, Azure DevOps, VS Code's SARIF viewer, DefectDojo. |
|
|
139
|
+
| `coverage.json` | What ran, what was skipped, and why. A clean result is only as good as its coverage. |
|
|
140
|
+
| `probes/` | The probe scripts that the run selected and staged for *this* app (BOLA, JWT, SSRF, mass-assignment…). |
|
|
140
141
|
|
|
141
|
-
|
|
142
|
+
The run also writes SBOMs, an attack-surface table, the diff scope and a versioned envelope:
|
|
142
143
|
[all outputs](https://github.com/raccioly/websec-validator/blob/main/docs/reference/outputs.md).
|
|
143
144
|
|
|
144
145
|
## Languages
|
|
@@ -150,8 +151,8 @@ Plus SBOMs, an attack-surface table, diff scope and a versioned envelope:
|
|
|
150
151
|
| **Configuration or manual checks only** — reported as a `thin_language_coverage` gap | Kotlin/Android, Swift and Objective-C/iOS, Rust, C/C++ |
|
|
151
152
|
| **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
|
|
|
153
|
-
|
|
154
|
-
scanners are language-agnostic. A completed no
|
|
154
|
+
OWASP Noir discovers routes in many more frameworks when it is installed. The
|
|
155
|
+
scanners are language-agnostic. A completed check with no match is not proof that a service is secure:
|
|
155
156
|
**[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
|
|
|
157
158
|
## Documentation
|
|
@@ -173,24 +174,24 @@ indexes the migration notes — 0.14.0 (schema 2.0), the 0.17.0 exit-code split
|
|
|
173
174
|
`--diff`/`gate` scoping, `.websec-ignore` path matching). Unresolved gaps and their acceptance tests live in the
|
|
174
175
|
[remaining-work specification](https://github.com/raccioly/websec-validator/blob/main/specs/001-continuous-security-improvement/spec.md).
|
|
175
176
|
|
|
176
|
-
These are scoped review tools
|
|
177
|
-
syntax remain limitations. The in-loop gate
|
|
178
|
-
reports evidence
|
|
179
|
-
artifacts it describes
|
|
177
|
+
These are scoped review tools. Manual profiles, unknown routes, dynamic behavior and unsupported
|
|
178
|
+
syntax remain limitations. The in-loop gate helps developers and is not a control. `attest`
|
|
179
|
+
reports evidence and gives no compliance verdict. Evidence tied to a snapshot lives with the
|
|
180
|
+
artifacts it describes: the [validation record](https://github.com/raccioly/websec-validator/blob/main/docs/security-review/validation.md),
|
|
180
181
|
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
|
-
|
|
182
|
+
[proof protocol](https://github.com/raccioly/websec-validator/blob/main/corpus/PROOF-PROTOCOL.md).
|
|
183
|
+
So the numbers cannot become out of date here.
|
|
183
184
|
|
|
184
185
|
**Validated on** a production Next.js app, a large Express/AWS monorepo, and the VAmPI / NodeGoat /
|
|
185
|
-
DVGA vuln-app corpus
|
|
186
|
+
DVGA vuln-app corpus. It independently reproduced the findings of a hand-done pentest (tenant boundary,
|
|
186
187
|
SSRF, file upload, cross-tenant BOLA, role/authz gaps). Route discovery reports what it can parse
|
|
187
|
-
*without importing settings or executing your code
|
|
188
|
-
|
|
188
|
+
*without importing settings or executing your code*. Unknown mounts stay route **candidates**
|
|
189
|
+
and carry their uncertainty. That is human review evidence, not measured vulnerability recall.
|
|
189
190
|
|
|
190
191
|
## Contributing
|
|
191
192
|
|
|
192
193
|
Bug reports, false-positive reports and detector proposals are the most valuable input this project
|
|
193
|
-
gets
|
|
194
|
+
gets. See [CONTRIBUTING.md](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md)
|
|
194
195
|
(including the maintainer release process) and the
|
|
195
196
|
[issue templates](https://github.com/raccioly/websec-validator/issues/new/choose). Report
|
|
196
197
|
vulnerabilities in websec itself privately: [SECURITY.md](https://github.com/raccioly/websec-validator/blob/main/SECURITY.md).
|
|
@@ -201,8 +202,8 @@ python3 -m unittest discover -s tests # stdlib only; synthetic/local-loopback
|
|
|
201
202
|
|
|
202
203
|
## Credits
|
|
203
204
|
|
|
204
|
-
|
|
205
|
-
This tool
|
|
205
|
+
The methodology and the probe library come from a real authenticated penetration-testing pass.
|
|
206
|
+
This tool turns that hand-written methodology into something an AI agent can run on any repo.
|
|
206
207
|
|
|
207
208
|
## License
|
|
208
209
|
|
|
@@ -10,37 +10,38 @@
|
|
|
10
10
|
|
|
11
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
12
|
|
|
13
|
-
A senior pentester
|
|
13
|
+
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.
|
|
14
14
|
|
|
15
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
16
|
|
|
17
17
|
> Local-first security recon that **briefs your AI coding agent**. It does the deterministic
|
|
18
|
-
> half
|
|
19
|
-
> found
|
|
20
|
-
>
|
|
21
|
-
>
|
|
18
|
+
> half of the work. It reads supported source, maps the visible attack surface, and stages a probe
|
|
19
|
+
> library for what it found. Then it gives your agent (Claude Code, Codex, Gemini, Cursor) a briefing
|
|
20
|
+
> with its orders.
|
|
21
|
+
> `websec run` needs only the code. Add `--scan` to also run the static scanners you have installed
|
|
22
|
+
> and remove duplicate findings. **Code in, artifacts out. No LLM in the tool; no server or
|
|
22
23
|
> running app required for the core pass.**
|
|
23
24
|
|
|
24
25
|
[](https://github.com/raccioly/websec-validator/blob/main/assets/demo.gif)
|
|
25
26
|
|
|
26
|
-
**New here?** Read the eight-page technical brief
|
|
27
|
+
**New here?** Read the eight-page technical brief. It covers what the tool reads, how a finding earns its severity,
|
|
27
28
|
what it refuses to say, and the field evidence:
|
|
28
29
|
**[raccioly.github.io/websec-validator](https://raccioly.github.io/websec-validator/websec-explained.html)**
|
|
29
30
|
· [PDF](https://raccioly.github.io/websec-validator/websec-explained.pdf). The reviewed v0.21.0 snapshot
|
|
30
31
|
has selected fact assertions in `tests/test_explained_brief.py` and an HTML/PDF/renderer hash binding
|
|
31
|
-
in `tests/test_brief_artifacts.py`.
|
|
32
|
-
|
|
32
|
+
in `tests/test_brief_artifacts.py`. A person must still review the prose accuracy and the rendered layout.
|
|
33
|
+
See [rebuilding the brief](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md#publishing-the-technical-brief).
|
|
33
34
|
|
|
34
|
-
It is *not* an autonomous scanner and *not* a SaaS. It
|
|
35
|
-
turns a repo into a precise
|
|
36
|
-
|
|
35
|
+
It is *not* an autonomous scanner and *not* a SaaS. It is the front half that was missing. It
|
|
36
|
+
turns a repo into a precise security brief, based on facts, that an AI agent can act on with a human in the loop.
|
|
37
|
+
How it works and the reasoning behind every check:
|
|
37
38
|
[concepts](https://github.com/raccioly/websec-validator/blob/main/docs/concepts/how-it-works.md) ·
|
|
38
39
|
[methodology](https://github.com/raccioly/websec-validator/blob/main/docs/METHODOLOGY.md).
|
|
39
40
|
|
|
40
|
-
**Part of the Guard family
|
|
41
|
+
**Part of the Guard family.** Three tools each keep one kind of claim honest:
|
|
41
42
|
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
42
|
-
describes
|
|
43
|
-
establish what they assert
|
|
43
|
+
describes. [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
44
|
+
establish what they assert. websec-validator does the same for security findings. Every
|
|
44
45
|
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
45
46
|
|
|
46
47
|
## Getting Started — just point it at your repo
|
|
@@ -51,9 +52,9 @@ finding carries its evidence, its standard, and a calibrated probability that it
|
|
|
51
52
|
> websec-validator`, or github.com/raccioly/websec-validator). It's local and read-only — read the
|
|
52
53
|
> repo and follow its briefing. I own this code and authorize the review."*
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
code
|
|
56
|
-
|
|
55
|
+
The agent installs the tool, runs it, and walks through the findings with you. Say *defensive review of your own
|
|
56
|
+
code*. With that phrase, an agent starts work. Without it, an agent can stop to
|
|
57
|
+
ask if you are authorized. Every path ends in the same `AGENT-BRIEFING.md` that your agent acts on:
|
|
57
58
|
|
|
58
59
|
| Path | One-time setup | Then |
|
|
59
60
|
|---|---|---|
|
|
@@ -65,7 +66,7 @@ confirm you're authorized. Every path ends in the same `AGENT-BRIEFING.md` your
|
|
|
65
66
|
|
|
66
67
|
Already have a codebase with history, tests and fixtures? Follow
|
|
67
68
|
**[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
|
|
69
|
+
scope out non-product code, run, triage, record a baseline, then turn on the gate in phases.
|
|
69
70
|
|
|
70
71
|
## Install
|
|
71
72
|
|
|
@@ -76,10 +77,10 @@ websec --version
|
|
|
76
77
|
websec doctor # which optional scanners are installed, and are they compatible?
|
|
77
78
|
```
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
Checkov, and per-language Bandit/gosec/Brakeman)
|
|
81
|
-
`--scan
|
|
82
|
-
setup
|
|
80
|
+
The tool has zero Python runtime dependencies. It uses external scanners (Trivy, OSV-Scanner, Gitleaks, Semgrep,
|
|
81
|
+
Checkov, and per-language Bandit/gosec/Brakeman) **when present**, and they run only with
|
|
82
|
+
`--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
|
|
83
|
+
setup, see **[Installation](https://github.com/raccioly/websec-validator/blob/main/docs/installation.md)**.
|
|
83
84
|
|
|
84
85
|
## Usage
|
|
85
86
|
|
|
@@ -95,21 +96,21 @@ websec mcp # typed recon tools for any MCP client, o
|
|
|
95
96
|
```
|
|
96
97
|
|
|
97
98
|
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
|
|
99
|
+
Each attempt gets its own `websec-out/runs/<id>/` directory. `latest` moves only after a completed run.
|
|
99
100
|
Every subcommand and option: [CLI reference](https://github.com/raccioly/websec-validator/blob/main/docs/reference/cli.md).
|
|
100
101
|
|
|
101
102
|
## What you get (`websec-out/`)
|
|
102
103
|
|
|
103
104
|
| Artifact | What it is |
|
|
104
105
|
|---|---|
|
|
105
|
-
| `AGENT-BRIEFING.md` | **The product.**
|
|
106
|
+
| `AGENT-BRIEFING.md` | **The product.** The orders for your agent: detected surface, the access-control map, targeting, findings, the method, and the staged probe list. |
|
|
106
107
|
| `FACTS.json` | The full structured recon. |
|
|
107
|
-
| `findings-ledger.json` / `REPORT.md` | The traceable ledger
|
|
108
|
-
| `results.sarif` | **SARIF 2.1.0
|
|
109
|
-
| `coverage.json` | What ran, what was skipped and why
|
|
110
|
-
| `probes/` | The probe scripts selected and staged for *this* app (BOLA, JWT, SSRF, mass-assignment…). |
|
|
108
|
+
| `findings-ledger.json` / `REPORT.md` | The traceable ledger. Each finding has an evidence chain, a CWE/ASVS/OWASP-API citation, remediation, and a **calibrated `P(real)`** (measured real-vuln rate + 95% CI + sample size). |
|
|
109
|
+
| `results.sarif` | **SARIF 2.1.0**, always written. Load it into GitHub Code Scanning, GitLab, Azure DevOps, VS Code's SARIF viewer, DefectDojo. |
|
|
110
|
+
| `coverage.json` | What ran, what was skipped, and why. A clean result is only as good as its coverage. |
|
|
111
|
+
| `probes/` | The probe scripts that the run selected and staged for *this* app (BOLA, JWT, SSRF, mass-assignment…). |
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
The run also writes SBOMs, an attack-surface table, the diff scope and a versioned envelope:
|
|
113
114
|
[all outputs](https://github.com/raccioly/websec-validator/blob/main/docs/reference/outputs.md).
|
|
114
115
|
|
|
115
116
|
## Languages
|
|
@@ -121,8 +122,8 @@ Plus SBOMs, an attack-surface table, diff scope and a versioned envelope:
|
|
|
121
122
|
| **Configuration or manual checks only** — reported as a `thin_language_coverage` gap | Kotlin/Android, Swift and Objective-C/iOS, Rust, C/C++ |
|
|
122
123
|
| **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
|
|
|
124
|
-
|
|
125
|
-
scanners are language-agnostic. A completed no
|
|
125
|
+
OWASP Noir discovers routes in many more frameworks when it is installed. The
|
|
126
|
+
scanners are language-agnostic. A completed check with no match is not proof that a service is secure:
|
|
126
127
|
**[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
|
|
|
128
129
|
## Documentation
|
|
@@ -144,24 +145,24 @@ indexes the migration notes — 0.14.0 (schema 2.0), the 0.17.0 exit-code split
|
|
|
144
145
|
`--diff`/`gate` scoping, `.websec-ignore` path matching). Unresolved gaps and their acceptance tests live in the
|
|
145
146
|
[remaining-work specification](https://github.com/raccioly/websec-validator/blob/main/specs/001-continuous-security-improvement/spec.md).
|
|
146
147
|
|
|
147
|
-
These are scoped review tools
|
|
148
|
-
syntax remain limitations. The in-loop gate
|
|
149
|
-
reports evidence
|
|
150
|
-
artifacts it describes
|
|
148
|
+
These are scoped review tools. Manual profiles, unknown routes, dynamic behavior and unsupported
|
|
149
|
+
syntax remain limitations. The in-loop gate helps developers and is not a control. `attest`
|
|
150
|
+
reports evidence and gives no compliance verdict. Evidence tied to a snapshot lives with the
|
|
151
|
+
artifacts it describes: the [validation record](https://github.com/raccioly/websec-validator/blob/main/docs/security-review/validation.md),
|
|
151
152
|
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
|
-
|
|
153
|
+
[proof protocol](https://github.com/raccioly/websec-validator/blob/main/corpus/PROOF-PROTOCOL.md).
|
|
154
|
+
So the numbers cannot become out of date here.
|
|
154
155
|
|
|
155
156
|
**Validated on** a production Next.js app, a large Express/AWS monorepo, and the VAmPI / NodeGoat /
|
|
156
|
-
DVGA vuln-app corpus
|
|
157
|
+
DVGA vuln-app corpus. It independently reproduced the findings of a hand-done pentest (tenant boundary,
|
|
157
158
|
SSRF, file upload, cross-tenant BOLA, role/authz gaps). Route discovery reports what it can parse
|
|
158
|
-
*without importing settings or executing your code
|
|
159
|
-
|
|
159
|
+
*without importing settings or executing your code*. Unknown mounts stay route **candidates**
|
|
160
|
+
and carry their uncertainty. That is human review evidence, not measured vulnerability recall.
|
|
160
161
|
|
|
161
162
|
## Contributing
|
|
162
163
|
|
|
163
164
|
Bug reports, false-positive reports and detector proposals are the most valuable input this project
|
|
164
|
-
gets
|
|
165
|
+
gets. See [CONTRIBUTING.md](https://github.com/raccioly/websec-validator/blob/main/CONTRIBUTING.md)
|
|
165
166
|
(including the maintainer release process) and the
|
|
166
167
|
[issue templates](https://github.com/raccioly/websec-validator/issues/new/choose). Report
|
|
167
168
|
vulnerabilities in websec itself privately: [SECURITY.md](https://github.com/raccioly/websec-validator/blob/main/SECURITY.md).
|
|
@@ -172,8 +173,8 @@ python3 -m unittest discover -s tests # stdlib only; synthetic/local-loopback
|
|
|
172
173
|
|
|
173
174
|
## Credits
|
|
174
175
|
|
|
175
|
-
|
|
176
|
-
This tool
|
|
176
|
+
The methodology and the probe library come from a real authenticated penetration-testing pass.
|
|
177
|
+
This tool turns that hand-written methodology into something an AI agent can run on any repo.
|
|
177
178
|
|
|
178
179
|
## License
|
|
179
180
|
|
|
@@ -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.23.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"
|
|
@@ -55,6 +55,9 @@ def annotate(ledger: dict) -> dict:
|
|
|
55
55
|
for f in (ledger.get("findings", []) or []) + (ledger.get("acknowledged", []) or []):
|
|
56
56
|
aliases = set(f.get("fingerprint_aliases", []))
|
|
57
57
|
aliases.add(legacy_fingerprint(f))
|
|
58
|
+
if f.get("title_previous") and f["title_previous"] != f.get("title"):
|
|
59
|
+
# A reworded title (dependency rows, see dependency_fix) must not orphan a v1 baseline entry.
|
|
60
|
+
aliases.add(legacy_fingerprint({**f, "title": f["title_previous"]}))
|
|
58
61
|
if f.get("fingerprint") and f.get("fingerprint_version") != FINGERPRINT_VERSION:
|
|
59
62
|
aliases.add(f["fingerprint"])
|
|
60
63
|
f["fingerprint"] = fingerprint(f)
|
|
@@ -601,6 +601,11 @@ def cmd_run(args) -> int:
|
|
|
601
601
|
only = [key.strip() for key in args.scanners.split(",") if key.strip()] if args.scanners else None
|
|
602
602
|
coverage.add_scanners(facts, det, scan_results, unified, scan=args.scan, only=only,
|
|
603
603
|
verify_secrets=getattr(args, "verify_secrets", False))
|
|
604
|
+
if args.scan:
|
|
605
|
+
# A compiled binary in the tree carries its own dependency list; say when nothing read it.
|
|
606
|
+
binary_gap = scanners.binary_sca_gap(target, scan_results, args.exclude or ())
|
|
607
|
+
if binary_gap:
|
|
608
|
+
coverage.add_gap(facts, "compiled_binary_sca", binary_gap, execution=False)
|
|
604
609
|
imported = []
|
|
605
610
|
if getattr(args, "sarif", None):
|
|
606
611
|
imported = _sarif_imports(args.sarif, target, excludes=args.exclude or (),
|
|
@@ -53,6 +53,11 @@ def _group_key(f: dict) -> tuple:
|
|
|
53
53
|
commit = f.get("commit") or f.get("commit_short")
|
|
54
54
|
if f.get("history_only") and isinstance(commit, str) and commit:
|
|
55
55
|
return ("incident", f"deleted-in:{commit[:12]}")
|
|
56
|
+
# Every CVE in ONE compiled binary has ONE fix: upgrade, rebuild or remove that file. A Go CLI
|
|
57
|
+
# can carry 70+ advisories (most in the Go standard library), so without this the report reads
|
|
58
|
+
# as 70 problems instead of one stale tool.
|
|
59
|
+
if f.get("artifact") == "binary" and _location_of(f):
|
|
60
|
+
return ("artifact", f"binary:{_location_of(f)}")
|
|
56
61
|
return ("rule", f"{f.get('category') or ''}:{_rule_of(f)}")
|
|
57
62
|
|
|
58
63
|
|
|
@@ -68,6 +73,11 @@ def _title(kind: str, disc: str, members: list) -> str:
|
|
|
68
73
|
return (f"{n} secret(s) removed from the working tree in commit {commit} — the files are "
|
|
69
74
|
f"gone but every blob is still fetchable from the repo. ONE incident: rotating the "
|
|
70
75
|
f"{n} credential(s) is the fix; deleting the files was not.")
|
|
76
|
+
if kind == "artifact":
|
|
77
|
+
path = disc.split(":", 1)[1]
|
|
78
|
+
modules = len({m.get("pkg") for m in members if m.get("pkg")})
|
|
79
|
+
return (f"compiled binary {path} embeds {n} known-vulnerable advisories across {modules} "
|
|
80
|
+
f"module(s) — ONE fix: upgrade or rebuild this tool, or keep it out of the checkout.")
|
|
71
81
|
# Reuse the longest shared prefix of the member titles so the cluster reads like the findings.
|
|
72
82
|
base = min((str(m.get("title") or "") for m in members), key=len, default="")
|
|
73
83
|
base = base.split(" — ")[0][:110] or _rule_of(members[0])
|
|
@@ -93,6 +93,7 @@ _BLIND_SPOTS: dict = {
|
|
|
93
93
|
"webhook-forgery": "needs a crafted unsigned callback delivered to your endpoint.",
|
|
94
94
|
"secret": "committed credentials live in the repo/git history — a black-box scan cannot see them.",
|
|
95
95
|
"cve": "dependency CVEs are inventory-derived; a scanner only sees them if a version banner leaks.",
|
|
96
|
+
"deprecated-dependency": "an unmaintained dependency is inventory-derived, never visible in a response.",
|
|
96
97
|
"malicious-install-script": "build/install-time RCE never appears in a request.",
|
|
97
98
|
"lockfile-drift": "supply-chain drift is a build artifact, not a runtime response.",
|
|
98
99
|
"excessive-agency": "AI-agent tool permissions are config, not an HTTP surface.",
|