websec-validator 0.17.1__tar.gz → 0.19.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.17.1/src/websec_validator.egg-info → websec_validator-0.19.0}/PKG-INFO +57 -49
- {websec_validator-0.17.1 → websec_validator-0.19.0}/README.md +56 -48
- {websec_validator-0.17.1 → websec_validator-0.19.0}/pyproject.toml +2 -2
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/briefing.py +50 -1
- websec_validator-0.19.0/src/websec_validator/calibration.json +137 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/calibration.py +254 -12
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/cli.py +217 -7
- websec_validator-0.19.0/src/websec_validator/corpus.json +192 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/coverage.py +57 -1
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/dynamic.py +11 -2
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/explain.py +30 -3
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/authz.py +179 -4
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/base.py +117 -2
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/crypto_usage.py +19 -2
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/pii_exposure.py +33 -4
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/syntax.py +20 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/webext.py +115 -11
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/findings.py +93 -3
- websec_validator-0.19.0/src/websec_validator/fixprompt.py +258 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/formats.py +28 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/gate.py +12 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/inventory.py +12 -2
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/openapi.py +114 -0
- websec_validator-0.19.0/src/websec_validator/pairs.json +52 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/repairs.py +4 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/report.py +12 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/schemas/ledger.schema.json +27 -0
- websec_validator-0.19.0/src/websec_validator/synthetic.py +106 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0/src/websec_validator.egg-info}/PKG-INFO +57 -49
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator.egg-info/SOURCES.txt +16 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_calibration_claimspec.py +51 -10
- websec_validator-0.19.0/tests/test_calibration_review.py +301 -0
- websec_validator-0.19.0/tests/test_calibration_scoring.py +98 -0
- websec_validator-0.19.0/tests/test_detector_fp_followups.py +189 -0
- websec_validator-0.19.0/tests/test_dynamic_login_shape.py +92 -0
- websec_validator-0.19.0/tests/test_explained_brief.py +333 -0
- websec_validator-0.19.0/tests/test_feedback_calibration_loop.py +170 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_formats.py +12 -2
- websec_validator-0.19.0/tests/test_fp_sources.py +228 -0
- websec_validator-0.19.0/tests/test_ignore_claimspec.py +231 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_intel.py +12 -4
- websec_validator-0.19.0/tests/test_issue_147_sarif_locations.py +141 -0
- websec_validator-0.19.0/tests/test_pii_projection_fp.py +72 -0
- websec_validator-0.19.0/tests/test_synthetic_pairs.py +109 -0
- websec_validator-0.19.0/tests/test_triage.py +203 -0
- websec_validator-0.19.0/tests/test_unanalyzed_cli.py +165 -0
- websec_validator-0.19.0/tests/test_unanalyzed_coverage.py +256 -0
- websec_validator-0.17.1/src/websec_validator/calibration.json +0 -77
- websec_validator-0.17.1/src/websec_validator/corpus.json +0 -115
- websec_validator-0.17.1/src/websec_validator/fixprompt.py +0 -103
- {websec_validator-0.17.1 → websec_validator-0.19.0}/LICENSE +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/setup.cfg +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/__init__.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/agenthook.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/attest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/attribution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/baseline.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/clusters.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/constitution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/dast_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/dast_predict.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/demo.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/diffscope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/enrichment.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/__init__.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/agent_config.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/auth.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/authz_dataflow.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/client_exposure.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/client_integrity.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/dependencies.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/django_urls.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/graphql.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/iac_ci.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/integrations.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/llm_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/policy_consistency.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/profiles.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/routes.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/schemas.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/sql_flow.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/stack.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/surface.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/tenant.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/transport_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/extractors/upload_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/feedback.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/fpfilter.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/graph_enrich.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/hooks.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/init_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/install.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/intel.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/mcp_server.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/probes.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/proof.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/provenance.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/recon.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/registry.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/research/control-scope-cases.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/research/example.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/research/profile-cases.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/research.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/rules/error-stack-disclosure.yml +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/rules/insecure-default-secret.yml +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/sarif_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/scanners.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/schemas/coverage.schema.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/schemas/facts.schema.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/demo/app.py.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/demo/requirements.txt.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/_lib.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/appsync-cswsh.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/appsync-introspection.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/appsync-subscription-bola.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/bola-cross-tenant.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/bola-write-verbs.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/client-integrity-checklist.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/compare-roles.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/dlp-bypass-offline.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/entitlement-abuse.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/error-disclosure-probe.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/forged-token.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/hs256-brute-force.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/jwt-attacks.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/mass-assignment.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/password-reuse.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/pii-output-diff.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/race-conditions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/rate-limit-burst.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/s3-assess.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/ssrf-probes.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/unauth-baseline.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/upload-matrix.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/probes/webhook-forgery.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/reports/FINDINGS-SUMMARY.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/reports/access-control-matrix.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/reports/findings-triage.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/reports/pentest-handover-brief.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/templates/reports/per-tool-FINDINGS.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator/testplan.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator.egg-info/dependency_links.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator.egg-info/entry_points.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/src/websec_validator.egg-info/top_level.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_action_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_adoption_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_agent_hook.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_agent_hosts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_agent_launch_specs.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_analysis_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_assurance_regressions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_attest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_attribution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_auth_control_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_constitution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_control_scope_research.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_coverage.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_crypto_comparisons.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_dast_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_dast_predict.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_demo.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_detector_precision.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_diffscope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_django_routes.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_enrichment.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_entitlement_webext.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_evidence_verdicts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_explain.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_extension_controls.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_feedback.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_field_report_2026_09.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_fixprompt_fpfilter.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_gate_and_bypass_record.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_gate_command.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_gitleaks_worktree.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_graph_enrich.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_hardening.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_hooks.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_hooks_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_install.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_install_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_inventory.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_lifecycle.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_mcp.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_mcp_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_openapi.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_output_boundaries.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_pentest_regressions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_profiles.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_proof_revisions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_provenance.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_public_precision.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_read_boundary.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_read_performance.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_recon.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_registry_existence.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_remaining_control_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_research.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_research_cli.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_sarif_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_sarif_workbench.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_scanner_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_source_budget.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_sql_flow.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_stack_metadata.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_testplan.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_transport_pii_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.0}/tests/test_transport_stack_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.19.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.19.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
|
|
@@ -41,18 +41,31 @@ A senior pentester's "here's what to test and how" handoff — auto-generated fr
|
|
|
41
41
|
<!-- 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. -->
|
|
42
42
|
|
|
43
43
|
> Local-first security recon that **briefs your AI coding agent**. It does the deterministic
|
|
44
|
-
> half — read the repo, map the full attack surface,
|
|
45
|
-
>
|
|
46
|
-
>
|
|
47
|
-
>
|
|
44
|
+
> half — read the repo, map the full attack surface, and stage a probe library tailored to what it
|
|
45
|
+
> found — then hands your agent (Claude Code, Codex, Gemini, Cursor) a marching-orders briefing.
|
|
46
|
+
> `websec run` needs nothing but the code; add `--scan` to also run and de-duplicate whichever
|
|
47
|
+
> static scanners you have installed. **Code in, artifacts out. No LLM in the tool, no server, no
|
|
48
|
+
> running app required.**
|
|
48
49
|
|
|
49
50
|
[](assets/demo.gif)
|
|
50
51
|
|
|
52
|
+
**New here?** Read the eight-page technical brief — what it reads, how a finding earns its severity,
|
|
53
|
+
what it refuses to say, and the field evidence:
|
|
54
|
+
**[raccioly.github.io/websec-validator](https://raccioly.github.io/websec-validator/websec-explained.html)**
|
|
55
|
+
· [PDF](https://raccioly.github.io/websec-validator/websec-explained.pdf). Every number in it is
|
|
56
|
+
asserted against this tree by `tests/test_explained_brief.py`, so it cannot drift silently.
|
|
57
|
+
|
|
51
58
|
It is *not* an autonomous scanner and *not* a SaaS. It's the missing front-half: the thing that
|
|
52
59
|
turns a repo into a precise, fact-grounded security brief an AI agent (with a human in the loop)
|
|
53
60
|
can act on — an auto-filled, repo-aware version of a senior pentester's "here's what to test and
|
|
54
61
|
how" handoff. How it works + the reasoning behind every check: [`docs/METHODOLOGY.md`](docs/METHODOLOGY.md).
|
|
55
62
|
|
|
63
|
+
**Part of the Guard family**, three tools that each keep one kind of claim honest:
|
|
64
|
+
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
65
|
+
describes, [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
66
|
+
establish what they assert, and websec-validator does the same for security findings — every
|
|
67
|
+
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
68
|
+
|
|
56
69
|
## Getting Started — just point it at your repo
|
|
57
70
|
|
|
58
71
|
**Simplest: tell your AI agent.** In Claude Code (or any coding agent), open your project and say:
|
|
@@ -65,7 +78,7 @@ It installs, runs, and walks the findings with you. There's nothing to host and
|
|
|
65
78
|
local. (Phrasing it as a *defensive review of your own code* matters: it's the difference between an
|
|
66
79
|
agent that just gets to work and one that stops to confirm you're authorized — the tool is local and
|
|
67
80
|
read-only by default, but a generic "pentest this" can read as a request to attack something.) The
|
|
68
|
-
|
|
81
|
+
five ways to get there, all ending in the same `AGENT-BRIEFING.md` your agent acts on:
|
|
69
82
|
|
|
70
83
|
| Path | One-time setup | Then |
|
|
71
84
|
|---|---|---|
|
|
@@ -103,7 +116,7 @@ brew install noir # OWASP Noir — the route engine (50+ framework
|
|
|
103
116
|
websec --version
|
|
104
117
|
```
|
|
105
118
|
|
|
106
|
-
|
|
119
|
+
_For bleeding-edge (unreleased changes), install straight from source instead:_
|
|
107
120
|
`pipx install git+https://github.com/raccioly/websec-validator` (or from a clone: `pipx install .`).
|
|
108
121
|
|
|
109
122
|
Requires **Python 3.11+** (on stock macOS, `python3` is often 3.9 — use `pipx`, which picks a newer
|
|
@@ -113,17 +126,23 @@ plus **per-language SAST auto-selected by stack** — Bandit (Python), gosec (Go
|
|
|
113
126
|
each fired only when its language is detected. It reports what's missing and never hard-fails if a tool
|
|
114
127
|
is absent.
|
|
115
128
|
|
|
116
|
-
### Or run via Docker (
|
|
129
|
+
### Or run via Docker (scanners bundled, zero install)
|
|
117
130
|
|
|
118
|
-
No need to install Noir or
|
|
131
|
+
No need to install Noir or the scanners separately — the image carries a working set
|
|
132
|
+
(arch-aware, amd64 + arm64):
|
|
119
133
|
|
|
120
134
|
```bash
|
|
121
135
|
docker build -t websec-validator .
|
|
122
136
|
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out
|
|
137
|
+
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out --scan # …and execute the bundled scanners
|
|
123
138
|
```
|
|
124
139
|
|
|
125
|
-
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov
|
|
126
|
-
|
|
140
|
+
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov — not the full list above, so
|
|
141
|
+
OSV-Scanner, Prowler and the per-language SAST tools (Bandit, gosec, Brakeman) are absent and are
|
|
142
|
+
reported as missing rather than silently skipped. **Bundling them is not the same as running them:**
|
|
143
|
+
Noir is the route engine and runs on every `run`, but the four static scanners execute only under
|
|
144
|
+
`--scan` — a plain `run` lists them and prints `(add --scan to execute them)`, exactly as it does
|
|
145
|
+
outside Docker. Mount your repo at `/scan`; artifacts land in `/scan/websec-out`.
|
|
127
146
|
|
|
128
147
|
## Usage
|
|
129
148
|
|
|
@@ -276,12 +295,12 @@ candidates — so probes get pointed at the *exact* endpoints, not fired blindly
|
|
|
276
295
|
🔧 websec (deterministic) 🤖 your agent + 🧑 you
|
|
277
296
|
───────────────────────────────── ─────────────────────────────────
|
|
278
297
|
1. recon → full attack surface → confirm the tenant boundary + auth model
|
|
279
|
-
2.
|
|
298
|
+
2. de-dup scanners (--scan, opt-in)→ triage real-vs-noise
|
|
280
299
|
3. stage tailored probes → fill placeholders, run vs a TEST instance
|
|
281
300
|
4. emit AGENT-BRIEFING.md → propose fixes, re-run to confirm, report back
|
|
282
301
|
```
|
|
283
302
|
|
|
284
|
-
Static recon + briefing need **only the code
|
|
303
|
+
Static recon + briefing need **only the code**, and run without `--scan`. *Running* the probes needs a live test instance +
|
|
285
304
|
test credentials (the human supplies them) — the tool itself never touches a running app.
|
|
286
305
|
|
|
287
306
|
## CI / enterprise integration
|
|
@@ -687,8 +706,9 @@ add the matching dated changelog and migration guidance, and validate the combin
|
|
|
687
706
|
In the 0.x series, feature additions or incompatible contracts increment the minor version.
|
|
688
707
|
|
|
689
708
|
After reviewing current main and overlapping PRs, merge the approved release PR only after its
|
|
690
|
-
required CI checks pass. The resulting main commit subject must be `release:
|
|
691
|
-
|
|
709
|
+
required CI checks pass. The resulting main commit subject must be `release: v<version>`, where
|
|
710
|
+
`<version>` is whatever `pyproject.toml` currently declares — do not hard-code a number here, it
|
|
711
|
+
drifts. [release-tag.yml](.github/workflows/release-tag.yml) validates that subject against the
|
|
692
712
|
package version, creates the matching tag/GitHub Release, and explicitly dispatches
|
|
693
713
|
[publish.yml](.github/workflows/publish.yml) at that tag. A version edit alone does not publish.
|
|
694
714
|
|
|
@@ -703,7 +723,7 @@ omit an independent version field. Check both sources when diagnosing stale inst
|
|
|
703
723
|
|
|
704
724
|
## Status / roadmap
|
|
705
725
|
|
|
706
|
-
Version 0.
|
|
726
|
+
Version 0.18.0 provides 22 recon extractors, eleven optional scanner entries, nine named profiles,
|
|
707
727
|
SARIF import/export, bounded source/query analysis, explicit coverage and lifecycle evidence,
|
|
708
728
|
intelligence/research commands, and opt-in agent/hook/CI adoption. It adds an in-loop security gate
|
|
709
729
|
(`websec gate` and a `PostToolUse` hook), analysis scoping with `--only`, an opt-in dependency
|
|
@@ -715,7 +735,12 @@ in-loop gate is developer ergonomics, not a control, and `attest` reports eviden
|
|
|
715
735
|
rendering a compliance verdict.
|
|
716
736
|
|
|
717
737
|
The [0.14.0 migration guide](docs/MIGRATING-0.14.0.md) explains schema 2.0 and gate/artifact
|
|
718
|
-
changes. 0.16.0
|
|
738
|
+
changes. 0.16.0 added the claimspec calibration export over 0.15.3 and needed no migration.
|
|
739
|
+
0.17.0 split the exit codes (`2` = usage error, `3` = incomplete run) — the one breaking change in the
|
|
740
|
+
project's history; CI scripts that tested for `2` as "incomplete" must test for `3`. 0.17.1 changed no
|
|
741
|
+
behaviour: it corrected only what the tool says about itself.
|
|
742
|
+
0.18.0 adds a measured `P(real)` from a relabelled corpus, and stops a scan that could read no
|
|
743
|
+
analyzable source from reporting as a completed clean run (`--require-analyzed`, exit 3).
|
|
719
744
|
The [remaining-work specification](specs/001-continuous-security-improvement/spec.md) consolidates
|
|
720
745
|
unresolved gaps and acceptance tests so overlapping old-base PRs do not become competing roadmaps.
|
|
721
746
|
Existing runtime probes are opt-in; their earlier isolated results are not current deployment proofs.
|
|
@@ -766,35 +791,18 @@ This tool productizes that hand-written methodology into something an AI agent c
|
|
|
766
791
|
|
|
767
792
|
## Latest source review and adoption
|
|
768
793
|
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
trusted Python environment; the hosted example requires a reviewed engine commit and keeps target
|
|
785
|
-
code separate. The examples do not install hooks or activate a hosted schedule. Validation covers
|
|
786
|
-
actual isolated CLI arguments and limited configuration structure, not a full pre-commit/YAML or
|
|
787
|
-
hosted workflow lifecycle.
|
|
788
|
-
|
|
789
|
-
`research catalog` discovers the shipped `control-scope` suite; `research evaluate --suite
|
|
790
|
-
control-scope` evaluates all three proposals and 24 authored cases. Aggregate and per-proposal
|
|
791
|
-
results retain exact detector revision, partition metrics and uncertainty. An empty, regressed or
|
|
792
|
-
revision-inconsistent suite exits 2. Eligibility means human review, not installation, independent
|
|
793
|
-
real-project validation or measured vulnerability recall.
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
Assigned Python SQL query review now follows supported local assignments and branch joins to the
|
|
797
|
-
query sink, preserving source traces and separate bound-value controls. Loops and cross-function
|
|
798
|
-
behavior remain limited and disclosed. The [final fourth-phase validation](docs/security-review/validation.md)
|
|
799
|
-
records 1082 tests across two Python versions and 15 isolated-wheel checks; historical corpus
|
|
800
|
-
scores remain separate and do not establish full protection.
|
|
794
|
+
Snapshot-bound review records live with the artefacts they describe rather than in this README, so
|
|
795
|
+
the numbers cannot drift out of date here:
|
|
796
|
+
|
|
797
|
+
- [**Validation record**](docs/security-review/validation.md) — dated results bound to exact
|
|
798
|
+
detector revisions and test counts.
|
|
799
|
+
- [**Upstream overlap review**](docs/security-review/upstream-overlap-review.md) — selected open PRs
|
|
800
|
+
compared at exact heads. No PR was merged as part of it; recompare both heads before integrating.
|
|
801
|
+
- [**Integration examples**](docs/integrations/README.md) — opt-in pre-commit, PR/weekly workflow and
|
|
802
|
+
composite Action. They reuse the existing CLI and install nothing on their own.
|
|
803
|
+
|
|
804
|
+
Two standing limits worth knowing before you read any of them. Route discovery reports what it can
|
|
805
|
+
parse *without importing settings or executing your code*, so unknown mounts stay route **candidates**
|
|
806
|
+
carrying their uncertainty rather than becoming confirmed paths. And eligibility recorded in these
|
|
807
|
+
documents means human review — not installation, independent real-project validation, or measured
|
|
808
|
+
vulnerability recall.
|
|
@@ -12,18 +12,31 @@ A senior pentester's "here's what to test and how" handoff — auto-generated fr
|
|
|
12
12
|
<!-- 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. -->
|
|
13
13
|
|
|
14
14
|
> Local-first security recon that **briefs your AI coding agent**. It does the deterministic
|
|
15
|
-
> half — read the repo, map the full attack surface,
|
|
16
|
-
>
|
|
17
|
-
>
|
|
18
|
-
>
|
|
15
|
+
> half — read the repo, map the full attack surface, and stage a probe library tailored to what it
|
|
16
|
+
> found — then hands your agent (Claude Code, Codex, Gemini, Cursor) a marching-orders briefing.
|
|
17
|
+
> `websec run` needs nothing but the code; add `--scan` to also run and de-duplicate whichever
|
|
18
|
+
> static scanners you have installed. **Code in, artifacts out. No LLM in the tool, no server, no
|
|
19
|
+
> running app required.**
|
|
19
20
|
|
|
20
21
|
[](assets/demo.gif)
|
|
21
22
|
|
|
23
|
+
**New here?** Read the eight-page technical brief — what it reads, how a finding earns its severity,
|
|
24
|
+
what it refuses to say, and the field evidence:
|
|
25
|
+
**[raccioly.github.io/websec-validator](https://raccioly.github.io/websec-validator/websec-explained.html)**
|
|
26
|
+
· [PDF](https://raccioly.github.io/websec-validator/websec-explained.pdf). Every number in it is
|
|
27
|
+
asserted against this tree by `tests/test_explained_brief.py`, so it cannot drift silently.
|
|
28
|
+
|
|
22
29
|
It is *not* an autonomous scanner and *not* a SaaS. It's the missing front-half: the thing that
|
|
23
30
|
turns a repo into a precise, fact-grounded security brief an AI agent (with a human in the loop)
|
|
24
31
|
can act on — an auto-filled, repo-aware version of a senior pentester's "here's what to test and
|
|
25
32
|
how" handoff. How it works + the reasoning behind every check: [`docs/METHODOLOGY.md`](docs/METHODOLOGY.md).
|
|
26
33
|
|
|
34
|
+
**Part of the Guard family**, three tools that each keep one kind of claim honest:
|
|
35
|
+
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
36
|
+
describes, [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
37
|
+
establish what they assert, and websec-validator does the same for security findings — every
|
|
38
|
+
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
39
|
+
|
|
27
40
|
## Getting Started — just point it at your repo
|
|
28
41
|
|
|
29
42
|
**Simplest: tell your AI agent.** In Claude Code (or any coding agent), open your project and say:
|
|
@@ -36,7 +49,7 @@ It installs, runs, and walks the findings with you. There's nothing to host and
|
|
|
36
49
|
local. (Phrasing it as a *defensive review of your own code* matters: it's the difference between an
|
|
37
50
|
agent that just gets to work and one that stops to confirm you're authorized — the tool is local and
|
|
38
51
|
read-only by default, but a generic "pentest this" can read as a request to attack something.) The
|
|
39
|
-
|
|
52
|
+
five ways to get there, all ending in the same `AGENT-BRIEFING.md` your agent acts on:
|
|
40
53
|
|
|
41
54
|
| Path | One-time setup | Then |
|
|
42
55
|
|---|---|---|
|
|
@@ -74,7 +87,7 @@ brew install noir # OWASP Noir — the route engine (50+ framework
|
|
|
74
87
|
websec --version
|
|
75
88
|
```
|
|
76
89
|
|
|
77
|
-
|
|
90
|
+
_For bleeding-edge (unreleased changes), install straight from source instead:_
|
|
78
91
|
`pipx install git+https://github.com/raccioly/websec-validator` (or from a clone: `pipx install .`).
|
|
79
92
|
|
|
80
93
|
Requires **Python 3.11+** (on stock macOS, `python3` is often 3.9 — use `pipx`, which picks a newer
|
|
@@ -84,17 +97,23 @@ plus **per-language SAST auto-selected by stack** — Bandit (Python), gosec (Go
|
|
|
84
97
|
each fired only when its language is detected. It reports what's missing and never hard-fails if a tool
|
|
85
98
|
is absent.
|
|
86
99
|
|
|
87
|
-
### Or run via Docker (
|
|
100
|
+
### Or run via Docker (scanners bundled, zero install)
|
|
88
101
|
|
|
89
|
-
No need to install Noir or
|
|
102
|
+
No need to install Noir or the scanners separately — the image carries a working set
|
|
103
|
+
(arch-aware, amd64 + arm64):
|
|
90
104
|
|
|
91
105
|
```bash
|
|
92
106
|
docker build -t websec-validator .
|
|
93
107
|
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out
|
|
108
|
+
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out --scan # …and execute the bundled scanners
|
|
94
109
|
```
|
|
95
110
|
|
|
96
|
-
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov
|
|
97
|
-
|
|
111
|
+
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov — not the full list above, so
|
|
112
|
+
OSV-Scanner, Prowler and the per-language SAST tools (Bandit, gosec, Brakeman) are absent and are
|
|
113
|
+
reported as missing rather than silently skipped. **Bundling them is not the same as running them:**
|
|
114
|
+
Noir is the route engine and runs on every `run`, but the four static scanners execute only under
|
|
115
|
+
`--scan` — a plain `run` lists them and prints `(add --scan to execute them)`, exactly as it does
|
|
116
|
+
outside Docker. Mount your repo at `/scan`; artifacts land in `/scan/websec-out`.
|
|
98
117
|
|
|
99
118
|
## Usage
|
|
100
119
|
|
|
@@ -247,12 +266,12 @@ candidates — so probes get pointed at the *exact* endpoints, not fired blindly
|
|
|
247
266
|
🔧 websec (deterministic) 🤖 your agent + 🧑 you
|
|
248
267
|
───────────────────────────────── ─────────────────────────────────
|
|
249
268
|
1. recon → full attack surface → confirm the tenant boundary + auth model
|
|
250
|
-
2.
|
|
269
|
+
2. de-dup scanners (--scan, opt-in)→ triage real-vs-noise
|
|
251
270
|
3. stage tailored probes → fill placeholders, run vs a TEST instance
|
|
252
271
|
4. emit AGENT-BRIEFING.md → propose fixes, re-run to confirm, report back
|
|
253
272
|
```
|
|
254
273
|
|
|
255
|
-
Static recon + briefing need **only the code
|
|
274
|
+
Static recon + briefing need **only the code**, and run without `--scan`. *Running* the probes needs a live test instance +
|
|
256
275
|
test credentials (the human supplies them) — the tool itself never touches a running app.
|
|
257
276
|
|
|
258
277
|
## CI / enterprise integration
|
|
@@ -658,8 +677,9 @@ add the matching dated changelog and migration guidance, and validate the combin
|
|
|
658
677
|
In the 0.x series, feature additions or incompatible contracts increment the minor version.
|
|
659
678
|
|
|
660
679
|
After reviewing current main and overlapping PRs, merge the approved release PR only after its
|
|
661
|
-
required CI checks pass. The resulting main commit subject must be `release:
|
|
662
|
-
|
|
680
|
+
required CI checks pass. The resulting main commit subject must be `release: v<version>`, where
|
|
681
|
+
`<version>` is whatever `pyproject.toml` currently declares — do not hard-code a number here, it
|
|
682
|
+
drifts. [release-tag.yml](.github/workflows/release-tag.yml) validates that subject against the
|
|
663
683
|
package version, creates the matching tag/GitHub Release, and explicitly dispatches
|
|
664
684
|
[publish.yml](.github/workflows/publish.yml) at that tag. A version edit alone does not publish.
|
|
665
685
|
|
|
@@ -674,7 +694,7 @@ omit an independent version field. Check both sources when diagnosing stale inst
|
|
|
674
694
|
|
|
675
695
|
## Status / roadmap
|
|
676
696
|
|
|
677
|
-
Version 0.
|
|
697
|
+
Version 0.18.0 provides 22 recon extractors, eleven optional scanner entries, nine named profiles,
|
|
678
698
|
SARIF import/export, bounded source/query analysis, explicit coverage and lifecycle evidence,
|
|
679
699
|
intelligence/research commands, and opt-in agent/hook/CI adoption. It adds an in-loop security gate
|
|
680
700
|
(`websec gate` and a `PostToolUse` hook), analysis scoping with `--only`, an opt-in dependency
|
|
@@ -686,7 +706,12 @@ in-loop gate is developer ergonomics, not a control, and `attest` reports eviden
|
|
|
686
706
|
rendering a compliance verdict.
|
|
687
707
|
|
|
688
708
|
The [0.14.0 migration guide](docs/MIGRATING-0.14.0.md) explains schema 2.0 and gate/artifact
|
|
689
|
-
changes. 0.16.0
|
|
709
|
+
changes. 0.16.0 added the claimspec calibration export over 0.15.3 and needed no migration.
|
|
710
|
+
0.17.0 split the exit codes (`2` = usage error, `3` = incomplete run) — the one breaking change in the
|
|
711
|
+
project's history; CI scripts that tested for `2` as "incomplete" must test for `3`. 0.17.1 changed no
|
|
712
|
+
behaviour: it corrected only what the tool says about itself.
|
|
713
|
+
0.18.0 adds a measured `P(real)` from a relabelled corpus, and stops a scan that could read no
|
|
714
|
+
analyzable source from reporting as a completed clean run (`--require-analyzed`, exit 3).
|
|
690
715
|
The [remaining-work specification](specs/001-continuous-security-improvement/spec.md) consolidates
|
|
691
716
|
unresolved gaps and acceptance tests so overlapping old-base PRs do not become competing roadmaps.
|
|
692
717
|
Existing runtime probes are opt-in; their earlier isolated results are not current deployment proofs.
|
|
@@ -737,35 +762,18 @@ This tool productizes that hand-written methodology into something an AI agent c
|
|
|
737
762
|
|
|
738
763
|
## Latest source review and adoption
|
|
739
764
|
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
trusted Python environment; the hosted example requires a reviewed engine commit and keeps target
|
|
756
|
-
code separate. The examples do not install hooks or activate a hosted schedule. Validation covers
|
|
757
|
-
actual isolated CLI arguments and limited configuration structure, not a full pre-commit/YAML or
|
|
758
|
-
hosted workflow lifecycle.
|
|
759
|
-
|
|
760
|
-
`research catalog` discovers the shipped `control-scope` suite; `research evaluate --suite
|
|
761
|
-
control-scope` evaluates all three proposals and 24 authored cases. Aggregate and per-proposal
|
|
762
|
-
results retain exact detector revision, partition metrics and uncertainty. An empty, regressed or
|
|
763
|
-
revision-inconsistent suite exits 2. Eligibility means human review, not installation, independent
|
|
764
|
-
real-project validation or measured vulnerability recall.
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
Assigned Python SQL query review now follows supported local assignments and branch joins to the
|
|
768
|
-
query sink, preserving source traces and separate bound-value controls. Loops and cross-function
|
|
769
|
-
behavior remain limited and disclosed. The [final fourth-phase validation](docs/security-review/validation.md)
|
|
770
|
-
records 1082 tests across two Python versions and 15 isolated-wheel checks; historical corpus
|
|
771
|
-
scores remain separate and do not establish full protection.
|
|
765
|
+
Snapshot-bound review records live with the artefacts they describe rather than in this README, so
|
|
766
|
+
the numbers cannot drift out of date here:
|
|
767
|
+
|
|
768
|
+
- [**Validation record**](docs/security-review/validation.md) — dated results bound to exact
|
|
769
|
+
detector revisions and test counts.
|
|
770
|
+
- [**Upstream overlap review**](docs/security-review/upstream-overlap-review.md) — selected open PRs
|
|
771
|
+
compared at exact heads. No PR was merged as part of it; recompare both heads before integrating.
|
|
772
|
+
- [**Integration examples**](docs/integrations/README.md) — opt-in pre-commit, PR/weekly workflow and
|
|
773
|
+
composite Action. They reuse the existing CLI and install nothing on their own.
|
|
774
|
+
|
|
775
|
+
Two standing limits worth knowing before you read any of them. Route discovery reports what it can
|
|
776
|
+
parse *without importing settings or executing your code*, so unknown mounts stay route **candidates**
|
|
777
|
+
carrying their uncertainty rather than becoming confirmed paths. And eligibility recorded in these
|
|
778
|
+
documents means human review — not installation, independent real-project validation, or measured
|
|
779
|
+
vulnerability recall.
|
|
@@ -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.19.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"
|
|
@@ -50,4 +50,4 @@ package-dir = { "" = "src" }
|
|
|
50
50
|
where = ["src"]
|
|
51
51
|
|
|
52
52
|
[tool.setuptools.package-data]
|
|
53
|
-
websec_validator = ["templates/probes/*", "templates/reports/*", "templates/demo/*", "rules/*.yml", "corpus.json", "calibration.json", "schemas/*.json", "research/*.json"]
|
|
53
|
+
websec_validator = ["templates/probes/*", "templates/reports/*", "templates/demo/*", "rules/*.yml", "corpus.json", "calibration.json", "pairs.json", "schemas/*.json", "research/*.json"]
|
|
@@ -29,6 +29,48 @@ def _section(title, items):
|
|
|
29
29
|
return f"**{title}** ({len(items or [])}):\n{_bullets(items)}\n"
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
def _render_disposition(ledger: dict, limit: int = 12) -> str:
|
|
33
|
+
"""§4d — the three axes side by side, ordered by (severity, P(real), disposition).
|
|
34
|
+
|
|
35
|
+
Disposition is the LAST sort key on purpose. Ordering by actionability first would put a
|
|
36
|
+
trivially-fixable header above a critical authorization hole, which is precisely the wrong
|
|
37
|
+
reading; it breaks ties between findings that are otherwise equally urgent and equally likely.
|
|
38
|
+
"""
|
|
39
|
+
from .findings import SEV_RANK
|
|
40
|
+
|
|
41
|
+
rows = [f for f in (ledger or {}).get("findings") or [] if f.get("triage")]
|
|
42
|
+
if not rows:
|
|
43
|
+
return "_No findings to disposition._"
|
|
44
|
+
counts = (ledger or {}).get("by_disposition") or {}
|
|
45
|
+
|
|
46
|
+
def _key(f):
|
|
47
|
+
p = (f.get("calibrated") or {}).get("p")
|
|
48
|
+
return (-SEV_RANK.get(f.get("severity", ""), 0),
|
|
49
|
+
-(p if isinstance(p, (int, float)) else 0.0),
|
|
50
|
+
0 if f["triage"]["disposition"] == "agent-fixable" else 1)
|
|
51
|
+
|
|
52
|
+
lines = [
|
|
53
|
+
f"_{counts.get('agent-fixable', 0)} agent-fixable · "
|
|
54
|
+
f"{counts.get('human-required', 0)} human-required. **Advisory.** `agent-fixable` means an "
|
|
55
|
+
"agent may PROPOSE the patch — a human still reviews every diff, and nothing gates on this "
|
|
56
|
+
"column. Sorted by severity, then P(real), then disposition._\n",
|
|
57
|
+
"| Severity | P(real) | Disposition | Finding | Why |",
|
|
58
|
+
"|---|---|---|---|---|",
|
|
59
|
+
]
|
|
60
|
+
for f in sorted(rows, key=_key)[:limit]:
|
|
61
|
+
cal = f.get("calibrated") or {}
|
|
62
|
+
p = cal.get("p")
|
|
63
|
+
basis = cal.get("basis", "")
|
|
64
|
+
p_text = "—" if p is None else (f"{p} _(prior)_" if "prior" in basis else f"{p} (n={cal.get('n', 0)})")
|
|
65
|
+
mark = "🤖 agent" if f["triage"]["disposition"] == "agent-fixable" else "🧑 human"
|
|
66
|
+
lines.append(f"| {_data(f.get('severity'))} | {p_text} | {mark} | "
|
|
67
|
+
f"{_data(f.get('attack_class'))} — {_data(f.get('location'))} | "
|
|
68
|
+
f"{_data(f['triage']['reason'])} |")
|
|
69
|
+
if len(rows) > limit:
|
|
70
|
+
lines.append(f"\n_… and {len(rows) - limit} more in `findings-ledger.json`._")
|
|
71
|
+
return "\n".join(lines)
|
|
72
|
+
|
|
73
|
+
|
|
32
74
|
def render(facts: dict, scanners: dict, scan_results: list, probe_manifest: list,
|
|
33
75
|
unified: dict | None = None, ledger: dict | None = None) -> str:
|
|
34
76
|
stack = facts.get("stack", {})
|
|
@@ -45,7 +87,7 @@ def render(facts: dict, scanners: dict, scan_results: list, probe_manifest: list
|
|
|
45
87
|
from . import testplan as _testplan
|
|
46
88
|
_inv = _inventory.build(facts)
|
|
47
89
|
_pred = _dast.predict(facts, ledger)
|
|
48
|
-
inventory_md = _inventory.render_md(_inv)
|
|
90
|
+
inventory_md = _inventory.render_md(_inv, coverage=facts.get("coverage")) # §3a — ranked "test in this order"
|
|
49
91
|
dast_md = _dast.render_md(_pred) # §4b — predicted scanner alerts + blind spots
|
|
50
92
|
testplan_md = _testplan.render_md(_testplan.build(facts, _inv, _pred)) # §5b — phased runbook
|
|
51
93
|
# §3e — OpenAPI contract: shadow (undocumented) endpoints + spec hygiene.
|
|
@@ -63,6 +105,9 @@ def render(facts: dict, scanners: dict, scan_results: list, probe_manifest: list
|
|
|
63
105
|
fpfilter_md = _fpfilter.render_md(ledger or {}, _fp_counts)
|
|
64
106
|
# §6b — one paste-ready fix instruction per finding, each ending in a VERIFY step.
|
|
65
107
|
fixprompts_md = _fixprompt.render_md(_fixprompt.build(ledger or {}))
|
|
108
|
+
# §4d — the third axis. Ordered by (severity, P(real), disposition) so the agent starts where
|
|
109
|
+
# the evidence is strongest AND it can actually act, without ever implying it may act alone.
|
|
110
|
+
disposition_md = _render_disposition(ledger or {})
|
|
66
111
|
|
|
67
112
|
authz = facts.get("authz", {})
|
|
68
113
|
gs = authz.get("guard_summary", {})
|
|
@@ -346,6 +391,10 @@ Install for fuller coverage:
|
|
|
346
391
|
|
|
347
392
|
{fpfilter_md}
|
|
348
393
|
|
|
394
|
+
## 4d. Three axes — how bad, how likely, and who acts
|
|
395
|
+
|
|
396
|
+
{disposition_md}
|
|
397
|
+
|
|
349
398
|
## 5. Tailored probes (staged — drafts you finalize against §2–§3)
|
|
350
399
|
|
|
351
400
|
{probe_lines}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"corpus": [
|
|
4
|
+
"VAmPI",
|
|
5
|
+
"NodeGoat",
|
|
6
|
+
"DVGA"
|
|
7
|
+
],
|
|
8
|
+
"n_total": 21,
|
|
9
|
+
"n_unknown": 35,
|
|
10
|
+
"method": "binomial proportion + Wilson 95% CI",
|
|
11
|
+
"min_n": 5,
|
|
12
|
+
"unmatched_rule": "unmatched finding = unknown (excluded from calibration)",
|
|
13
|
+
"researched_classes": [
|
|
14
|
+
"command-injection",
|
|
15
|
+
"eval-injection",
|
|
16
|
+
"graphql",
|
|
17
|
+
"missing-auth",
|
|
18
|
+
"nosql-injection",
|
|
19
|
+
"open-redirect",
|
|
20
|
+
"path-traversal",
|
|
21
|
+
"timing-unsafe-compare",
|
|
22
|
+
"xss"
|
|
23
|
+
],
|
|
24
|
+
"caveat": "indicative \u2014 calibrated on a deliberately-vulnerable app corpus; skews optimistic on clean production code",
|
|
25
|
+
"evidence_status": "reviewed",
|
|
26
|
+
"reviewed_on": "2026-09-22",
|
|
27
|
+
"limitation": "21 of 56 corpus findings carry a reviewed label; the other 35 are UNKNOWN and are excluded from every count rather than treated as false. All per-class cells except missing-auth|MEDIUM (n=7) are below min_n=5, so every other class falls back to the per-label tier. Measured after the 2026-09-22 false-positive fixes (vendored assets, spec-as-handler, Express route middleware, displayed source), so these rates describe the current detector and not any earlier one."
|
|
28
|
+
},
|
|
29
|
+
"by_class_label": {
|
|
30
|
+
"command-injection|LOW": {
|
|
31
|
+
"n": 1,
|
|
32
|
+
"k": 0,
|
|
33
|
+
"p": 0.0,
|
|
34
|
+
"ci": [
|
|
35
|
+
0.0,
|
|
36
|
+
0.793
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"eval-injection|LOW": {
|
|
40
|
+
"n": 3,
|
|
41
|
+
"k": 3,
|
|
42
|
+
"p": 1.0,
|
|
43
|
+
"ci": [
|
|
44
|
+
0.439,
|
|
45
|
+
1.0
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"graphql|MEDIUM": {
|
|
49
|
+
"n": 2,
|
|
50
|
+
"k": 2,
|
|
51
|
+
"p": 1.0,
|
|
52
|
+
"ci": [
|
|
53
|
+
0.342,
|
|
54
|
+
1.0
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"missing-auth|MEDIUM": {
|
|
58
|
+
"n": 7,
|
|
59
|
+
"k": 4,
|
|
60
|
+
"p": 0.571,
|
|
61
|
+
"ci": [
|
|
62
|
+
0.25,
|
|
63
|
+
0.842
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"nosql-injection|LOW": {
|
|
67
|
+
"n": 2,
|
|
68
|
+
"k": 1,
|
|
69
|
+
"p": 0.5,
|
|
70
|
+
"ci": [
|
|
71
|
+
0.095,
|
|
72
|
+
0.905
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"open-redirect|LOW": {
|
|
76
|
+
"n": 1,
|
|
77
|
+
"k": 1,
|
|
78
|
+
"p": 1.0,
|
|
79
|
+
"ci": [
|
|
80
|
+
0.207,
|
|
81
|
+
1.0
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"path-traversal|LOW": {
|
|
85
|
+
"n": 3,
|
|
86
|
+
"k": 1,
|
|
87
|
+
"p": 0.333,
|
|
88
|
+
"ci": [
|
|
89
|
+
0.061,
|
|
90
|
+
0.792
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"timing-unsafe-compare|MEDIUM": {
|
|
94
|
+
"n": 1,
|
|
95
|
+
"k": 1,
|
|
96
|
+
"p": 1.0,
|
|
97
|
+
"ci": [
|
|
98
|
+
0.207,
|
|
99
|
+
1.0
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"xss|LOW": {
|
|
103
|
+
"n": 1,
|
|
104
|
+
"k": 0,
|
|
105
|
+
"p": 0.0,
|
|
106
|
+
"ci": [
|
|
107
|
+
0.0,
|
|
108
|
+
0.793
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"by_label": {
|
|
113
|
+
"LOW": {
|
|
114
|
+
"n": 11,
|
|
115
|
+
"k": 6,
|
|
116
|
+
"p": 0.545,
|
|
117
|
+
"ci": [
|
|
118
|
+
0.28,
|
|
119
|
+
0.787
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"MEDIUM": {
|
|
123
|
+
"n": 10,
|
|
124
|
+
"k": 7,
|
|
125
|
+
"p": 0.7,
|
|
126
|
+
"ci": [
|
|
127
|
+
0.397,
|
|
128
|
+
0.892
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"prior": {
|
|
133
|
+
"HIGH": 0.85,
|
|
134
|
+
"MEDIUM": 0.5,
|
|
135
|
+
"LOW": 0.25
|
|
136
|
+
}
|
|
137
|
+
}
|