websec-validator 0.17.1__tar.gz → 0.18.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.18.0}/PKG-INFO +38 -45
- {websec_validator-0.17.1 → websec_validator-0.18.0}/README.md +37 -44
- {websec_validator-0.17.1 → websec_validator-0.18.0}/pyproject.toml +2 -2
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/briefing.py +50 -1
- websec_validator-0.18.0/src/websec_validator/calibration.json +137 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/calibration.py +254 -12
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/cli.py +187 -7
- websec_validator-0.18.0/src/websec_validator/corpus.json +192 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/coverage.py +57 -1
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/dynamic.py +11 -2
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/explain.py +30 -3
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/authz.py +179 -4
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/base.py +117 -2
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/syntax.py +20 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/findings.py +8 -2
- websec_validator-0.18.0/src/websec_validator/fixprompt.py +258 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/formats.py +28 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/gate.py +12 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/inventory.py +12 -2
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/openapi.py +114 -0
- websec_validator-0.18.0/src/websec_validator/pairs.json +52 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/repairs.py +4 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/report.py +12 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/schemas/ledger.schema.json +27 -0
- websec_validator-0.18.0/src/websec_validator/synthetic.py +106 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0/src/websec_validator.egg-info}/PKG-INFO +38 -45
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator.egg-info/SOURCES.txt +12 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_calibration_claimspec.py +51 -10
- websec_validator-0.18.0/tests/test_calibration_review.py +301 -0
- websec_validator-0.18.0/tests/test_calibration_scoring.py +98 -0
- websec_validator-0.18.0/tests/test_dynamic_login_shape.py +92 -0
- websec_validator-0.18.0/tests/test_feedback_calibration_loop.py +170 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_formats.py +12 -2
- websec_validator-0.18.0/tests/test_fp_sources.py +228 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_intel.py +12 -4
- websec_validator-0.18.0/tests/test_issue_147_sarif_locations.py +141 -0
- websec_validator-0.18.0/tests/test_synthetic_pairs.py +109 -0
- websec_validator-0.18.0/tests/test_triage.py +203 -0
- websec_validator-0.18.0/tests/test_unanalyzed_cli.py +165 -0
- websec_validator-0.18.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.18.0}/LICENSE +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/setup.cfg +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/__init__.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/agenthook.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/attest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/attribution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/baseline.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/clusters.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/constitution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/dast_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/dast_predict.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/demo.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/diffscope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/enrichment.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/__init__.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/agent_config.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/auth.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/authz_dataflow.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/client_exposure.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/client_integrity.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/crypto_usage.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/dependencies.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/django_urls.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/graphql.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/iac_ci.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/integrations.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/llm_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/pii_exposure.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/policy_consistency.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/profiles.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/routes.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/schemas.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/sql_flow.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/stack.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/surface.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/tenant.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/transport_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/upload_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/extractors/webext.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/feedback.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/fpfilter.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/graph_enrich.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/hooks.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/init_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/install.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/intel.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/mcp_server.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/probes.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/proof.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/provenance.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/recon.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/registry.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/research/control-scope-cases.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/research/example.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/research/profile-cases.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/research.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/rules/error-stack-disclosure.yml +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/rules/insecure-default-secret.yml +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/sarif_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/scanners.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/schemas/coverage.schema.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/schemas/facts.schema.json +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/demo/app.py.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/demo/requirements.txt.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/_lib.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/appsync-cswsh.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/appsync-introspection.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/appsync-subscription-bola.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/bola-cross-tenant.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/bola-write-verbs.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/client-integrity-checklist.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/compare-roles.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/dlp-bypass-offline.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/entitlement-abuse.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/error-disclosure-probe.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/forged-token.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/hs256-brute-force.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/jwt-attacks.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/mass-assignment.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/password-reuse.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/pii-output-diff.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/race-conditions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/rate-limit-burst.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/s3-assess.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/ssrf-probes.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/unauth-baseline.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/upload-matrix.sh +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/probes/webhook-forgery.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/reports/FINDINGS-SUMMARY.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/reports/access-control-matrix.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/reports/findings-triage.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/reports/pentest-handover-brief.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/templates/reports/per-tool-FINDINGS.md.template +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator/testplan.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator.egg-info/dependency_links.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator.egg-info/entry_points.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/src/websec_validator.egg-info/top_level.txt +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_action_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_adoption_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_agent_hook.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_agent_hosts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_agent_launch_specs.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_analysis_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_assurance_regressions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_attest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_attribution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_auth_control_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_constitution.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_control_scope_research.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_coverage.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_crypto_comparisons.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_dast_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_dast_predict.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_demo.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_detector_precision.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_diffscope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_django_routes.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_enrichment.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_entitlement_webext.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_evidence_verdicts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_explain.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_extension_controls.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_feedback.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_field_report_2026_09.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_fixprompt_fpfilter.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_gate_and_bypass_record.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_gate_command.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_gitleaks_worktree.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_graph_enrich.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_hardening.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_hooks.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_hooks_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_install.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_install_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_inventory.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_lifecycle.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_mcp.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_mcp_security.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_openapi.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_output_boundaries.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_pentest_regressions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_profiles.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_proof_revisions.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_provenance.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_public_precision.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_read_boundary.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_read_performance.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_recon.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_registry_existence.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_remaining_control_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_research.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_research_cli.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_sarif_ingest.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_sarif_workbench.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_scanner_contracts.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_source_budget.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_sql_flow.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_stack_metadata.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_testplan.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_transport_pii_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.0}/tests/test_transport_stack_scope.py +0 -0
- {websec_validator-0.17.1 → websec_validator-0.18.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.18.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,10 +41,11 @@ 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
|
|
|
@@ -53,6 +54,12 @@ turns a repo into a precise, fact-grounded security brief an AI agent (with a hu
|
|
|
53
54
|
can act on — an auto-filled, repo-aware version of a senior pentester's "here's what to test and
|
|
54
55
|
how" handoff. How it works + the reasoning behind every check: [`docs/METHODOLOGY.md`](docs/METHODOLOGY.md).
|
|
55
56
|
|
|
57
|
+
**Part of the Guard family**, three tools that each keep one kind of claim honest:
|
|
58
|
+
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
59
|
+
describes, [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
60
|
+
establish what they assert, and websec-validator does the same for security findings — every
|
|
61
|
+
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
62
|
+
|
|
56
63
|
## Getting Started — just point it at your repo
|
|
57
64
|
|
|
58
65
|
**Simplest: tell your AI agent.** In Claude Code (or any coding agent), open your project and say:
|
|
@@ -65,7 +72,7 @@ It installs, runs, and walks the findings with you. There's nothing to host and
|
|
|
65
72
|
local. (Phrasing it as a *defensive review of your own code* matters: it's the difference between an
|
|
66
73
|
agent that just gets to work and one that stops to confirm you're authorized — the tool is local and
|
|
67
74
|
read-only by default, but a generic "pentest this" can read as a request to attack something.) The
|
|
68
|
-
|
|
75
|
+
five ways to get there, all ending in the same `AGENT-BRIEFING.md` your agent acts on:
|
|
69
76
|
|
|
70
77
|
| Path | One-time setup | Then |
|
|
71
78
|
|---|---|---|
|
|
@@ -103,7 +110,7 @@ brew install noir # OWASP Noir — the route engine (50+ framework
|
|
|
103
110
|
websec --version
|
|
104
111
|
```
|
|
105
112
|
|
|
106
|
-
|
|
113
|
+
_For bleeding-edge (unreleased changes), install straight from source instead:_
|
|
107
114
|
`pipx install git+https://github.com/raccioly/websec-validator` (or from a clone: `pipx install .`).
|
|
108
115
|
|
|
109
116
|
Requires **Python 3.11+** (on stock macOS, `python3` is often 3.9 — use `pipx`, which picks a newer
|
|
@@ -113,17 +120,20 @@ plus **per-language SAST auto-selected by stack** — Bandit (Python), gosec (Go
|
|
|
113
120
|
each fired only when its language is detected. It reports what's missing and never hard-fails if a tool
|
|
114
121
|
is absent.
|
|
115
122
|
|
|
116
|
-
### Or run via Docker (
|
|
123
|
+
### Or run via Docker (scanners bundled, zero install)
|
|
117
124
|
|
|
118
|
-
No need to install Noir or
|
|
125
|
+
No need to install Noir or the scanners separately — the image carries a working set
|
|
126
|
+
(arch-aware, amd64 + arm64):
|
|
119
127
|
|
|
120
128
|
```bash
|
|
121
129
|
docker build -t websec-validator .
|
|
122
130
|
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out
|
|
123
131
|
```
|
|
124
132
|
|
|
125
|
-
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov
|
|
126
|
-
|
|
133
|
+
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov — not the full list above, so
|
|
134
|
+
OSV-Scanner, Prowler and the per-language SAST tools (Bandit, gosec, Brakeman) are absent and are
|
|
135
|
+
reported as missing rather than silently skipped. Mount your repo at `/scan`; artifacts land in
|
|
136
|
+
`/scan/websec-out`.
|
|
127
137
|
|
|
128
138
|
## Usage
|
|
129
139
|
|
|
@@ -276,12 +286,12 @@ candidates — so probes get pointed at the *exact* endpoints, not fired blindly
|
|
|
276
286
|
🔧 websec (deterministic) 🤖 your agent + 🧑 you
|
|
277
287
|
───────────────────────────────── ─────────────────────────────────
|
|
278
288
|
1. recon → full attack surface → confirm the tenant boundary + auth model
|
|
279
|
-
2.
|
|
289
|
+
2. de-dup scanners (--scan, opt-in)→ triage real-vs-noise
|
|
280
290
|
3. stage tailored probes → fill placeholders, run vs a TEST instance
|
|
281
291
|
4. emit AGENT-BRIEFING.md → propose fixes, re-run to confirm, report back
|
|
282
292
|
```
|
|
283
293
|
|
|
284
|
-
Static recon + briefing need **only the code
|
|
294
|
+
Static recon + briefing need **only the code**, and run without `--scan`. *Running* the probes needs a live test instance +
|
|
285
295
|
test credentials (the human supplies them) — the tool itself never touches a running app.
|
|
286
296
|
|
|
287
297
|
## CI / enterprise integration
|
|
@@ -766,35 +776,18 @@ This tool productizes that hand-written methodology into something an AI agent c
|
|
|
766
776
|
|
|
767
777
|
## Latest source review and adoption
|
|
768
778
|
|
|
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.
|
|
779
|
+
Snapshot-bound review records live with the artefacts they describe rather than in this README, so
|
|
780
|
+
the numbers cannot drift out of date here:
|
|
781
|
+
|
|
782
|
+
- [**Validation record**](docs/security-review/validation.md) — dated results bound to exact
|
|
783
|
+
detector revisions and test counts.
|
|
784
|
+
- [**Upstream overlap review**](docs/security-review/upstream-overlap-review.md) — selected open PRs
|
|
785
|
+
compared at exact heads. No PR was merged as part of it; recompare both heads before integrating.
|
|
786
|
+
- [**Integration examples**](docs/integrations/README.md) — opt-in pre-commit, PR/weekly workflow and
|
|
787
|
+
composite Action. They reuse the existing CLI and install nothing on their own.
|
|
788
|
+
|
|
789
|
+
Two standing limits worth knowing before you read any of them. Route discovery reports what it can
|
|
790
|
+
parse *without importing settings or executing your code*, so unknown mounts stay route **candidates**
|
|
791
|
+
carrying their uncertainty rather than becoming confirmed paths. And eligibility recorded in these
|
|
792
|
+
documents means human review — not installation, independent real-project validation, or measured
|
|
793
|
+
vulnerability recall.
|
|
@@ -12,10 +12,11 @@ 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
|
|
|
@@ -24,6 +25,12 @@ turns a repo into a precise, fact-grounded security brief an AI agent (with a hu
|
|
|
24
25
|
can act on — an auto-filled, repo-aware version of a senior pentester's "here's what to test and
|
|
25
26
|
how" handoff. How it works + the reasoning behind every check: [`docs/METHODOLOGY.md`](docs/METHODOLOGY.md).
|
|
26
27
|
|
|
28
|
+
**Part of the Guard family**, three tools that each keep one kind of claim honest:
|
|
29
|
+
[**DocGuard**](https://github.com/raccioly/docguard) validates documentation against the code it
|
|
30
|
+
describes, [**TestGuard**](https://github.com/raccioly/testguard) checks that tests actually
|
|
31
|
+
establish what they assert, and websec-validator does the same for security findings — every
|
|
32
|
+
finding carries its evidence, its standard, and a calibrated probability that it is real.
|
|
33
|
+
|
|
27
34
|
## Getting Started — just point it at your repo
|
|
28
35
|
|
|
29
36
|
**Simplest: tell your AI agent.** In Claude Code (or any coding agent), open your project and say:
|
|
@@ -36,7 +43,7 @@ It installs, runs, and walks the findings with you. There's nothing to host and
|
|
|
36
43
|
local. (Phrasing it as a *defensive review of your own code* matters: it's the difference between an
|
|
37
44
|
agent that just gets to work and one that stops to confirm you're authorized — the tool is local and
|
|
38
45
|
read-only by default, but a generic "pentest this" can read as a request to attack something.) The
|
|
39
|
-
|
|
46
|
+
five ways to get there, all ending in the same `AGENT-BRIEFING.md` your agent acts on:
|
|
40
47
|
|
|
41
48
|
| Path | One-time setup | Then |
|
|
42
49
|
|---|---|---|
|
|
@@ -74,7 +81,7 @@ brew install noir # OWASP Noir — the route engine (50+ framework
|
|
|
74
81
|
websec --version
|
|
75
82
|
```
|
|
76
83
|
|
|
77
|
-
|
|
84
|
+
_For bleeding-edge (unreleased changes), install straight from source instead:_
|
|
78
85
|
`pipx install git+https://github.com/raccioly/websec-validator` (or from a clone: `pipx install .`).
|
|
79
86
|
|
|
80
87
|
Requires **Python 3.11+** (on stock macOS, `python3` is often 3.9 — use `pipx`, which picks a newer
|
|
@@ -84,17 +91,20 @@ plus **per-language SAST auto-selected by stack** — Bandit (Python), gosec (Go
|
|
|
84
91
|
each fired only when its language is detected. It reports what's missing and never hard-fails if a tool
|
|
85
92
|
is absent.
|
|
86
93
|
|
|
87
|
-
### Or run via Docker (
|
|
94
|
+
### Or run via Docker (scanners bundled, zero install)
|
|
88
95
|
|
|
89
|
-
No need to install Noir or
|
|
96
|
+
No need to install Noir or the scanners separately — the image carries a working set
|
|
97
|
+
(arch-aware, amd64 + arm64):
|
|
90
98
|
|
|
91
99
|
```bash
|
|
92
100
|
docker build -t websec-validator .
|
|
93
101
|
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/scan" websec-validator run /scan --out /scan/websec-out
|
|
94
102
|
```
|
|
95
103
|
|
|
96
|
-
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov
|
|
97
|
-
|
|
104
|
+
The image carries Noir + Trivy + Gitleaks + Semgrep + Checkov — not the full list above, so
|
|
105
|
+
OSV-Scanner, Prowler and the per-language SAST tools (Bandit, gosec, Brakeman) are absent and are
|
|
106
|
+
reported as missing rather than silently skipped. Mount your repo at `/scan`; artifacts land in
|
|
107
|
+
`/scan/websec-out`.
|
|
98
108
|
|
|
99
109
|
## Usage
|
|
100
110
|
|
|
@@ -247,12 +257,12 @@ candidates — so probes get pointed at the *exact* endpoints, not fired blindly
|
|
|
247
257
|
🔧 websec (deterministic) 🤖 your agent + 🧑 you
|
|
248
258
|
───────────────────────────────── ─────────────────────────────────
|
|
249
259
|
1. recon → full attack surface → confirm the tenant boundary + auth model
|
|
250
|
-
2.
|
|
260
|
+
2. de-dup scanners (--scan, opt-in)→ triage real-vs-noise
|
|
251
261
|
3. stage tailored probes → fill placeholders, run vs a TEST instance
|
|
252
262
|
4. emit AGENT-BRIEFING.md → propose fixes, re-run to confirm, report back
|
|
253
263
|
```
|
|
254
264
|
|
|
255
|
-
Static recon + briefing need **only the code
|
|
265
|
+
Static recon + briefing need **only the code**, and run without `--scan`. *Running* the probes needs a live test instance +
|
|
256
266
|
test credentials (the human supplies them) — the tool itself never touches a running app.
|
|
257
267
|
|
|
258
268
|
## CI / enterprise integration
|
|
@@ -737,35 +747,18 @@ This tool productizes that hand-written methodology into something an AI agent c
|
|
|
737
747
|
|
|
738
748
|
## Latest source review and adoption
|
|
739
749
|
|
|
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.
|
|
750
|
+
Snapshot-bound review records live with the artefacts they describe rather than in this README, so
|
|
751
|
+
the numbers cannot drift out of date here:
|
|
752
|
+
|
|
753
|
+
- [**Validation record**](docs/security-review/validation.md) — dated results bound to exact
|
|
754
|
+
detector revisions and test counts.
|
|
755
|
+
- [**Upstream overlap review**](docs/security-review/upstream-overlap-review.md) — selected open PRs
|
|
756
|
+
compared at exact heads. No PR was merged as part of it; recompare both heads before integrating.
|
|
757
|
+
- [**Integration examples**](docs/integrations/README.md) — opt-in pre-commit, PR/weekly workflow and
|
|
758
|
+
composite Action. They reuse the existing CLI and install nothing on their own.
|
|
759
|
+
|
|
760
|
+
Two standing limits worth knowing before you read any of them. Route discovery reports what it can
|
|
761
|
+
parse *without importing settings or executing your code*, so unknown mounts stay route **candidates**
|
|
762
|
+
carrying their uncertainty rather than becoming confirmed paths. And eligibility recorded in these
|
|
763
|
+
documents means human review — not installation, independent real-project validation, or measured
|
|
764
|
+
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.18.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. Per-class cells are all below min_n=5, so the runtime 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
|
+
}
|