websec-validator 0.15.0__tar.gz → 0.15.2__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.15.0/src/websec_validator.egg-info → websec_validator-0.15.2}/PKG-INFO +4 -4
- {websec_validator-0.15.0 → websec_validator-0.15.2}/README.md +3 -3
- {websec_validator-0.15.0 → websec_validator-0.15.2}/pyproject.toml +1 -1
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/calibration.py +10 -2
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/cli.py +17 -1
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/gate.py +8 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2/src/websec_validator.egg-info}/PKG-INFO +4 -4
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_evidence_verdicts.py +31 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_gate_and_bypass_record.py +48 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_gate_command.py +37 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_recon.py +31 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/LICENSE +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/setup.cfg +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/__init__.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/agenthook.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/attest.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/attribution.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/baseline.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/briefing.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/calibration.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/constitution.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/corpus.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/coverage.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/dast_ingest.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/dast_predict.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/diffscope.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/dynamic.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/enrichment.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/__init__.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/agent_config.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/auth.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/authz.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/authz_dataflow.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/base.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/client_exposure.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/client_integrity.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/crypto_usage.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/dependencies.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/django_urls.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/graphql.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/iac_ci.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/integrations.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/llm_security.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/pii_exposure.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/policy_consistency.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/profiles.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/routes.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/schemas.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/sql_flow.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/stack.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/surface.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/syntax.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/tenant.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/transport_security.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/upload_security.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/webext.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/feedback.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/findings.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/fixprompt.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/formats.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/fpfilter.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/graph_enrich.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/hooks.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/install.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/intel.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/inventory.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/mcp_server.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/openapi.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/probes.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/proof.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/recon.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/registry.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/repairs.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/report.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/research/control-scope-cases.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/research/example.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/research/profile-cases.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/research.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/rules/error-stack-disclosure.yml +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/rules/insecure-default-secret.yml +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/sarif_ingest.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/scanners.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/schemas/coverage.schema.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/schemas/facts.schema.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/schemas/ledger.schema.json +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/_lib.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/appsync-cswsh.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/appsync-introspection.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/appsync-subscription-bola.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/bola-cross-tenant.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/bola-write-verbs.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/client-integrity-checklist.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/compare-roles.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/dlp-bypass-offline.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/entitlement-abuse.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/error-disclosure-probe.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/forged-token.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/hs256-brute-force.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/jwt-attacks.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/mass-assignment.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/password-reuse.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/pii-output-diff.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/race-conditions.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/rate-limit-burst.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/s3-assess.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/ssrf-probes.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/unauth-baseline.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/upload-matrix.sh +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/webhook-forgery.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/reports/FINDINGS-SUMMARY.md.template +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/reports/access-control-matrix.md.template +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/reports/findings-triage.md.template +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/reports/pentest-handover-brief.md.template +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/reports/per-tool-FINDINGS.md.template +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/testplan.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator.egg-info/SOURCES.txt +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator.egg-info/dependency_links.txt +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator.egg-info/entry_points.txt +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator.egg-info/top_level.txt +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_action_contracts.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_adoption_contracts.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_agent_hook.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_agent_hosts.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_agent_launch_specs.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_analysis_scope.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_assurance_regressions.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_attest.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_attribution.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_auth_control_scope.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_constitution.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_control_scope_research.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_coverage.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_crypto_comparisons.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_dast_ingest.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_dast_predict.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_detector_precision.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_diffscope.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_django_routes.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_enrichment.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_entitlement_webext.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_extension_controls.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_feedback.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_fixprompt_fpfilter.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_formats.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_gitleaks_worktree.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_graph_enrich.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_hardening.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_hooks.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_hooks_contracts.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_install.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_install_contracts.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_intel.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_inventory.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_lifecycle.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_mcp.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_mcp_security.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_openapi.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_output_boundaries.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_pentest_regressions.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_profiles.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_proof_revisions.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_public_precision.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_read_boundary.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_read_performance.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_registry_existence.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_remaining_control_scope.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_research.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_research_cli.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_sarif_ingest.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_sarif_workbench.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_scanner_contracts.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_source_budget.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_sql_flow.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_stack_metadata.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_testplan.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_transport_pii_scope.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/tests/test_transport_stack_scope.py +0 -0
- {websec_validator-0.15.0 → websec_validator-0.15.2}/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.15.
|
|
3
|
+
Version: 0.15.2
|
|
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
|
|
@@ -623,7 +623,7 @@ add the matching dated changelog and migration guidance, and validate the combin
|
|
|
623
623
|
In the 0.x series, feature additions or incompatible contracts increment the minor version.
|
|
624
624
|
|
|
625
625
|
After reviewing current main and overlapping PRs, merge the approved release PR only after its
|
|
626
|
-
required CI checks pass. The resulting main commit subject must be `release: v0.15.
|
|
626
|
+
required CI checks pass. The resulting main commit subject must be `release: v0.15.2` for this
|
|
627
627
|
release. [release-tag.yml](.github/workflows/release-tag.yml) validates that subject against the
|
|
628
628
|
package version, creates the matching tag/GitHub Release, and explicitly dispatches
|
|
629
629
|
[publish.yml](.github/workflows/publish.yml) at that tag. A version edit alone does not publish.
|
|
@@ -639,7 +639,7 @@ omit an independent version field. Check both sources when diagnosing stale inst
|
|
|
639
639
|
|
|
640
640
|
## Status / roadmap
|
|
641
641
|
|
|
642
|
-
Version 0.15.
|
|
642
|
+
Version 0.15.2 provides 22 recon extractors, eleven optional scanner entries, nine named profiles,
|
|
643
643
|
SARIF import/export, bounded source/query analysis, explicit coverage and lifecycle evidence,
|
|
644
644
|
intelligence/research commands, and opt-in agent/hook/CI adoption. It adds an in-loop security gate
|
|
645
645
|
(`websec gate` and a `PostToolUse` hook), analysis scoping with `--only`, an opt-in dependency
|
|
@@ -650,7 +650,7 @@ in-loop gate is developer ergonomics, not a control, and `attest` reports eviden
|
|
|
650
650
|
rendering a compliance verdict.
|
|
651
651
|
|
|
652
652
|
The [0.14.0 migration guide](docs/MIGRATING-0.14.0.md) explains schema 2.0 and gate/artifact
|
|
653
|
-
changes. 0.15.
|
|
653
|
+
changes. 0.15.2 is a patch over 0.15.1 and needs no migration.
|
|
654
654
|
The [remaining-work specification](specs/001-continuous-security-improvement/spec.md) consolidates
|
|
655
655
|
unresolved gaps and acceptance tests so overlapping old-base PRs do not become competing roadmaps.
|
|
656
656
|
Existing runtime probes are opt-in; their earlier isolated results are not current deployment proofs.
|
|
@@ -594,7 +594,7 @@ add the matching dated changelog and migration guidance, and validate the combin
|
|
|
594
594
|
In the 0.x series, feature additions or incompatible contracts increment the minor version.
|
|
595
595
|
|
|
596
596
|
After reviewing current main and overlapping PRs, merge the approved release PR only after its
|
|
597
|
-
required CI checks pass. The resulting main commit subject must be `release: v0.15.
|
|
597
|
+
required CI checks pass. The resulting main commit subject must be `release: v0.15.2` for this
|
|
598
598
|
release. [release-tag.yml](.github/workflows/release-tag.yml) validates that subject against the
|
|
599
599
|
package version, creates the matching tag/GitHub Release, and explicitly dispatches
|
|
600
600
|
[publish.yml](.github/workflows/publish.yml) at that tag. A version edit alone does not publish.
|
|
@@ -610,7 +610,7 @@ omit an independent version field. Check both sources when diagnosing stale inst
|
|
|
610
610
|
|
|
611
611
|
## Status / roadmap
|
|
612
612
|
|
|
613
|
-
Version 0.15.
|
|
613
|
+
Version 0.15.2 provides 22 recon extractors, eleven optional scanner entries, nine named profiles,
|
|
614
614
|
SARIF import/export, bounded source/query analysis, explicit coverage and lifecycle evidence,
|
|
615
615
|
intelligence/research commands, and opt-in agent/hook/CI adoption. It adds an in-loop security gate
|
|
616
616
|
(`websec gate` and a `PostToolUse` hook), analysis scoping with `--only`, an opt-in dependency
|
|
@@ -621,7 +621,7 @@ in-loop gate is developer ergonomics, not a control, and `attest` reports eviden
|
|
|
621
621
|
rendering a compliance verdict.
|
|
622
622
|
|
|
623
623
|
The [0.14.0 migration guide](docs/MIGRATING-0.14.0.md) explains schema 2.0 and gate/artifact
|
|
624
|
-
changes. 0.15.
|
|
624
|
+
changes. 0.15.2 is a patch over 0.15.1 and needs no migration.
|
|
625
625
|
The [remaining-work specification](specs/001-continuous-security-improvement/spec.md) consolidates
|
|
626
626
|
unresolved gaps and acceptance tests so overlapping old-base PRs do not become competing roadmaps.
|
|
627
627
|
Existing runtime probes are opt-in; their earlier isolated results are not current deployment proofs.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "websec-validator"
|
|
7
|
-
version = "0.15.
|
|
7
|
+
version = "0.15.2"
|
|
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"
|
|
@@ -31,6 +31,13 @@ MIN_N = 5 # a cell needs ≥ this many samples to be used (else
|
|
|
31
31
|
PRIOR = {"HIGH": 0.85, "MEDIUM": 0.5, "LOW": 0.25}
|
|
32
32
|
CAVEAT = ("indicative — calibrated on a deliberately-vulnerable app corpus; "
|
|
33
33
|
"skews optimistic on clean production code")
|
|
34
|
+
# Used when NO shipped corpus table is present and the numbers come only from the operator's own
|
|
35
|
+
# confirmed runs. CAVEAT must not be reused here: it asserts corpus provenance this data does not
|
|
36
|
+
# have, and its specific bias direction ("optimistic on clean production code") describes the
|
|
37
|
+
# vulnerable-app corpus, not local samples. Claiming the wrong provenance is worse than claiming
|
|
38
|
+
# none, so the local-only path gets its own honest label.
|
|
39
|
+
LOCAL_ONLY_CAVEAT = ("indicative — no shipped corpus table was available; these numbers come only "
|
|
40
|
+
"from your own confirmed local samples and carry no corpus baseline")
|
|
34
41
|
|
|
35
42
|
# Self-improving LOCAL overlay: user-global, gitignored (lives outside any repo), never
|
|
36
43
|
# shipped. It accrues *confirmed* labels from your own dynamic runs (and optional hand-labels)
|
|
@@ -144,8 +151,9 @@ def _merge(shipped: dict | None, local: dict | None) -> dict | None:
|
|
|
144
151
|
recomputing Wilson. Local samples are confirmed (oracle), so they're not filtered."""
|
|
145
152
|
if not shipped and not local:
|
|
146
153
|
return None
|
|
147
|
-
base = json.loads(json.dumps(shipped)) if shipped
|
|
148
|
-
|
|
154
|
+
base = (json.loads(json.dumps(shipped)) if shipped
|
|
155
|
+
else {"meta": {"caveat": LOCAL_ONLY_CAVEAT, "corpus": [], "shipped_table": False},
|
|
156
|
+
"by_class_label": {}, "by_label": {}})
|
|
149
157
|
base.setdefault("prior", PRIOR)
|
|
150
158
|
base.setdefault("meta", {})
|
|
151
159
|
if local:
|
|
@@ -12,6 +12,7 @@ agent at the generated AGENT-BRIEFING.md.
|
|
|
12
12
|
from __future__ import annotations
|
|
13
13
|
|
|
14
14
|
import argparse
|
|
15
|
+
import difflib
|
|
15
16
|
import hashlib
|
|
16
17
|
import json
|
|
17
18
|
import os
|
|
@@ -770,6 +771,12 @@ def cmd_gate(args) -> int:
|
|
|
770
771
|
if not paths:
|
|
771
772
|
discovered = _gate.working_tree_paths(target)
|
|
772
773
|
paths, scope_source = discovered["paths"], discovered["source"]
|
|
774
|
+
if scope_source == "working-tree-unavailable":
|
|
775
|
+
# Not a pass: the gate could not determine what to analyse, so it never
|
|
776
|
+
# answered the question. Exit 2 (incomplete requested execution), never 0.
|
|
777
|
+
print(f"error: {discovered.get('note', 'changed-file scope unavailable')}",
|
|
778
|
+
file=sys.stderr)
|
|
779
|
+
return 2
|
|
773
780
|
if not paths:
|
|
774
781
|
# Nothing changed is a PASS, but say which question was answered.
|
|
775
782
|
print(_gate.to_json({"tool": "websec-validator", "command": "gate", "passed": True,
|
|
@@ -1440,8 +1447,17 @@ def main(argv=None) -> int:
|
|
|
1440
1447
|
if not argv: # bare `websec` → show help, don't error
|
|
1441
1448
|
parser.print_help()
|
|
1442
1449
|
return 0
|
|
1443
|
-
# bare `websec <path>` (no subcommand) ⇒ treat as `websec run <path>` — point-and-go
|
|
1450
|
+
# bare `websec <path>` (no subcommand) ⇒ treat as `websec run <path>` — point-and-go.
|
|
1451
|
+
# Gate this on the path EXISTING. Without that check a mistyped or not-yet-released
|
|
1452
|
+
# subcommand is silently rewritten into a scan target: `websec atest .` scanned the
|
|
1453
|
+
# current directory, and `websec gate --help` on a build with no gate printed run's
|
|
1454
|
+
# help and exited 0, so a missing command was indistinguishable from a present one.
|
|
1444
1455
|
if argv[0] not in _COMMANDS and not argv[0].startswith("-"):
|
|
1456
|
+
if not Path(argv[0]).expanduser().exists():
|
|
1457
|
+
near = difflib.get_close_matches(argv[0], sorted(_COMMANDS), n=1, cutoff=0.6)
|
|
1458
|
+
hint = f" Did you mean {near[0]!r}?" if near else ""
|
|
1459
|
+
parser.error(f"unknown command {argv[0]!r} (and no such path).{hint} "
|
|
1460
|
+
f"Run `websec --help` for the command list.")
|
|
1445
1461
|
argv = ["run"] + argv
|
|
1446
1462
|
args = parser.parse_args(argv)
|
|
1447
1463
|
return args.func(args)
|
|
@@ -68,6 +68,14 @@ def working_tree_paths(repo: Path) -> dict:
|
|
|
68
68
|
out: list[str] = []
|
|
69
69
|
# -z keeps paths with spaces/newlines intact; porcelain v1 is stable across git versions.
|
|
70
70
|
raw = _git(repo, "status", "--porcelain", "-z", "--untracked-files=all")
|
|
71
|
+
if raw is None:
|
|
72
|
+
# `git status` failed (timeout, index.lock contention, non-zero exit). An empty
|
|
73
|
+
# path list here is NOT an empty working tree, and reporting source="working-tree"
|
|
74
|
+
# would make the two indistinguishable — the gate would then pass having analysed
|
|
75
|
+
# nothing. The rev-parse check above already draws this distinction; so does this.
|
|
76
|
+
return {"paths": [], "source": "working-tree-unavailable",
|
|
77
|
+
"note": "`git status` did not complete, so the changed-file set is unknown; "
|
|
78
|
+
"pass paths explicitly with --only"}
|
|
71
79
|
if raw:
|
|
72
80
|
for entry in raw.split("\0"):
|
|
73
81
|
if len(entry) < 4:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: websec-validator
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.2
|
|
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
|
|
@@ -623,7 +623,7 @@ add the matching dated changelog and migration guidance, and validate the combin
|
|
|
623
623
|
In the 0.x series, feature additions or incompatible contracts increment the minor version.
|
|
624
624
|
|
|
625
625
|
After reviewing current main and overlapping PRs, merge the approved release PR only after its
|
|
626
|
-
required CI checks pass. The resulting main commit subject must be `release: v0.15.
|
|
626
|
+
required CI checks pass. The resulting main commit subject must be `release: v0.15.2` for this
|
|
627
627
|
release. [release-tag.yml](.github/workflows/release-tag.yml) validates that subject against the
|
|
628
628
|
package version, creates the matching tag/GitHub Release, and explicitly dispatches
|
|
629
629
|
[publish.yml](.github/workflows/publish.yml) at that tag. A version edit alone does not publish.
|
|
@@ -639,7 +639,7 @@ omit an independent version field. Check both sources when diagnosing stale inst
|
|
|
639
639
|
|
|
640
640
|
## Status / roadmap
|
|
641
641
|
|
|
642
|
-
Version 0.15.
|
|
642
|
+
Version 0.15.2 provides 22 recon extractors, eleven optional scanner entries, nine named profiles,
|
|
643
643
|
SARIF import/export, bounded source/query analysis, explicit coverage and lifecycle evidence,
|
|
644
644
|
intelligence/research commands, and opt-in agent/hook/CI adoption. It adds an in-loop security gate
|
|
645
645
|
(`websec gate` and a `PostToolUse` hook), analysis scoping with `--only`, an opt-in dependency
|
|
@@ -650,7 +650,7 @@ in-loop gate is developer ergonomics, not a control, and `attest` reports eviden
|
|
|
650
650
|
rendering a compliance verdict.
|
|
651
651
|
|
|
652
652
|
The [0.14.0 migration guide](docs/MIGRATING-0.14.0.md) explains schema 2.0 and gate/artifact
|
|
653
|
-
changes. 0.15.
|
|
653
|
+
changes. 0.15.2 is a patch over 0.15.1 and needs no migration.
|
|
654
654
|
The [remaining-work specification](specs/001-continuous-security-improvement/spec.md) consolidates
|
|
655
655
|
unresolved gaps and acceptance tests so overlapping old-base PRs do not become competing roadmaps.
|
|
656
656
|
Existing runtime probes are opt-in; their earlier isolated results are not current deployment proofs.
|
|
@@ -198,6 +198,37 @@ class CalibrationProvenanceTests(unittest.TestCase):
|
|
|
198
198
|
self.assertEqual(calibration._upgrade_local(local)["legacy_uncertain"], local)
|
|
199
199
|
self.assertEqual(local["by_label"]["HIGH"]["n"], 8)
|
|
200
200
|
|
|
201
|
+
def test_local_only_table_does_not_claim_corpus_provenance(self):
|
|
202
|
+
# A table built with no shipped corpus previously inherited CAVEAT, which asserts
|
|
203
|
+
# "calibrated on a deliberately-vulnerable app corpus" and warns the numbers skew
|
|
204
|
+
# optimistic on clean production code. Both describe the shipped corpus, not the
|
|
205
|
+
# operator's own confirmed samples, so every finding carried a provenance and a bias
|
|
206
|
+
# direction its data did not have. load_shipped() swallows every exception and returns
|
|
207
|
+
# None, so an unpackaged calibration.json reaches this path.
|
|
208
|
+
local = {"schema_version": 2, "meta": {"samples": 7},
|
|
209
|
+
"by_class_label": {"sql-injection|HIGH": {"k": 6, "n": 7, "p": 0.86, "ci": [0.49, 0.97]}},
|
|
210
|
+
"by_label": {"HIGH": {"k": 6, "n": 7, "p": 0.86, "ci": [0.49, 0.97]}}, "observations": {}}
|
|
211
|
+
merged = calibration._merge(None, local)
|
|
212
|
+
caveat = merged["meta"]["caveat"]
|
|
213
|
+
self.assertNotIn("corpus;", caveat)
|
|
214
|
+
self.assertNotIn("skews optimistic", caveat)
|
|
215
|
+
self.assertIn("no shipped corpus table", caveat)
|
|
216
|
+
self.assertIs(merged["meta"]["shipped_table"], False)
|
|
217
|
+
self.assertEqual(merged["meta"]["corpus"], [])
|
|
218
|
+
# The disclosure has to reach the finding, not just the table.
|
|
219
|
+
self.assertEqual(calibration.apply("sql-injection", "HIGH", merged)["note"], caveat)
|
|
220
|
+
|
|
221
|
+
def test_shipped_table_keeps_its_corpus_caveat(self):
|
|
222
|
+
# Guard the other direction: the fix must not strip provenance when a corpus IS present.
|
|
223
|
+
shipped = {"meta": {"caveat": calibration.CAVEAT, "corpus": ["vampi"], "n_total": 40},
|
|
224
|
+
"by_class_label": {}, "by_label": {}}
|
|
225
|
+
self.assertEqual(calibration._merge(shipped, None)["meta"]["caveat"], calibration.CAVEAT)
|
|
226
|
+
personalized = calibration._merge(shipped, {"schema_version": 2, "meta": {"samples": 3},
|
|
227
|
+
"by_class_label": {}, "by_label": {},
|
|
228
|
+
"observations": {}})["meta"]
|
|
229
|
+
self.assertTrue(personalized["caveat"].startswith(calibration.CAVEAT))
|
|
230
|
+
self.assertEqual(personalized["corpus"], ["vampi"])
|
|
231
|
+
|
|
201
232
|
def test_reimport_deduplicates_verified_observation(self):
|
|
202
233
|
context = {"application_id": "fixture", "build_id": "rev", "identity": "anonymous", "endpoint": "/", "method": "GET", "parameter": ""}
|
|
203
234
|
samples = dast_ingest.derive_labels(
|
|
@@ -139,6 +139,54 @@ class GateRecordTests(unittest.TestCase):
|
|
|
139
139
|
self.assertEqual(gate["exit_code"], code)
|
|
140
140
|
self.assertIn(gate["verdict"], {"pass", "fail", "incomplete"})
|
|
141
141
|
|
|
142
|
+
# ---- the FAIL path, with a finding that actually blocks ----
|
|
143
|
+
#
|
|
144
|
+
# Found by mutation testing: making the recorded verdict unconditionally "pass" survived the
|
|
145
|
+
# whole suite. The consistency test below compares the recorded exit_code against the process
|
|
146
|
+
# exit code, and that mutation changes BOTH together, so they still agreed — wrongly. The
|
|
147
|
+
# severity fixture also produced no findings at all, so the fail path was never exercised.
|
|
148
|
+
# Asserting a relationship between two values a fault moves in lockstep proves nothing; these
|
|
149
|
+
# cases pin the ABSOLUTE outcome against a repository that really does contain a blocking
|
|
150
|
+
# finding.
|
|
151
|
+
def _vuln_repo(self):
|
|
152
|
+
repo = _repo(self.base / "v")
|
|
153
|
+
(repo / "src").mkdir()
|
|
154
|
+
(repo / "src" / "app.py").write_text(
|
|
155
|
+
"from flask import Flask, request\n"
|
|
156
|
+
"import subprocess\n"
|
|
157
|
+
"app = Flask(__name__)\n\n"
|
|
158
|
+
"@app.route('/ping')\n"
|
|
159
|
+
"def ping():\n"
|
|
160
|
+
" return subprocess.check_output('ping -c1 ' + request.args.get('host'), shell=True)\n")
|
|
161
|
+
(repo / "requirements.txt").write_text("flask==3.0.0\n")
|
|
162
|
+
return repo
|
|
163
|
+
|
|
164
|
+
def _run_on(self, repo, *extra):
|
|
165
|
+
out = self.base / f"out-{repo.name}"
|
|
166
|
+
code = cli.main(["run", str(repo), "--out", str(out), *extra])
|
|
167
|
+
led = sorted(out.glob("runs/*/findings-ledger.json"))[-1]
|
|
168
|
+
return code, json.loads(led.read_text())
|
|
169
|
+
|
|
170
|
+
def test_blocking_findings_record_verdict_fail_not_pass(self):
|
|
171
|
+
repo = self._vuln_repo()
|
|
172
|
+
code, ledger = self._run_on(repo, "--fail-on", "medium")
|
|
173
|
+
gate = ledger["gate"]
|
|
174
|
+
self.assertGreater(ledger["total"], 0, "fixture must actually produce findings")
|
|
175
|
+
self.assertEqual(gate["verdict"], "fail",
|
|
176
|
+
"a blocking finding must be recorded as a FAILED gate, not a pass")
|
|
177
|
+
self.assertGreater(gate["count_at_or_above"], 0)
|
|
178
|
+
self.assertEqual(gate["exit_code"], 1)
|
|
179
|
+
self.assertEqual(code, 1)
|
|
180
|
+
|
|
181
|
+
def test_clean_repo_records_verdict_pass_with_zero_count(self):
|
|
182
|
+
"""The paired case: `pass` must mean zero blocking findings, not merely 'not fail'."""
|
|
183
|
+
code, ledger = self._run_on(self.repo, "--fail-on", "critical")
|
|
184
|
+
gate = ledger["gate"]
|
|
185
|
+
self.assertEqual(gate["verdict"], "pass")
|
|
186
|
+
self.assertEqual(gate["count_at_or_above"], 0)
|
|
187
|
+
self.assertEqual(gate["exit_code"], 0)
|
|
188
|
+
self.assertEqual(code, 0)
|
|
189
|
+
|
|
142
190
|
def test_recorded_exit_code_matches_the_process_exit_code(self):
|
|
143
191
|
for extra in ((), ("--fail-on", "critical"), ("--fail-on", "low")):
|
|
144
192
|
with self.subTest(extra=extra):
|
|
@@ -4,12 +4,15 @@ A finding surfaced after forty merges is a backlog item; the same finding surfac
|
|
|
4
4
|
caused it is a retry. This pins the properties that make that true: it sees UNCOMMITTED work, it is
|
|
5
5
|
fast, it writes nothing, and it never reports 'clean' for something it did not analyse.
|
|
6
6
|
"""
|
|
7
|
+
import contextlib
|
|
8
|
+
import io
|
|
7
9
|
import json
|
|
8
10
|
from pathlib import Path
|
|
9
11
|
import subprocess
|
|
10
12
|
import sys
|
|
11
13
|
import tempfile
|
|
12
14
|
import unittest
|
|
15
|
+
from unittest.mock import patch
|
|
13
16
|
|
|
14
17
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
|
|
15
18
|
from websec_validator import cli, gate
|
|
@@ -141,6 +144,40 @@ class GateTests(unittest.TestCase):
|
|
|
141
144
|
self.assertEqual(cli.main(["gate", str(self.repo), "--only", "src/safe.py",
|
|
142
145
|
"--format", "json"]), 0)
|
|
143
146
|
|
|
147
|
+
def test_failed_git_status_is_not_reported_as_a_clean_tree(self):
|
|
148
|
+
# `git status` failing left paths empty with source="working-tree", which is
|
|
149
|
+
# exactly what a genuinely clean tree returns. The gate then passed having
|
|
150
|
+
# analysed nothing — a silent pass inside the agent loop.
|
|
151
|
+
real = gate._git
|
|
152
|
+
|
|
153
|
+
def flaky(repo, *args):
|
|
154
|
+
return None if args and args[0] == "status" else real(repo, *args)
|
|
155
|
+
|
|
156
|
+
with patch.object(gate, "_git", flaky):
|
|
157
|
+
discovered = gate.working_tree_paths(self.repo)
|
|
158
|
+
self.assertEqual(discovered["source"], "working-tree-unavailable")
|
|
159
|
+
self.assertIn("git status", discovered["note"])
|
|
160
|
+
|
|
161
|
+
def test_unavailable_scope_exits_2_rather_than_passing(self):
|
|
162
|
+
# A harness must not read "the gate could not determine what to analyse" as a pass.
|
|
163
|
+
real = gate._git
|
|
164
|
+
|
|
165
|
+
def flaky(repo, *args):
|
|
166
|
+
return None if args and args[0] == "status" else real(repo, *args)
|
|
167
|
+
|
|
168
|
+
err = io.StringIO()
|
|
169
|
+
with patch.object(gate, "_git", flaky), contextlib.redirect_stderr(err):
|
|
170
|
+
code = cli.main(["gate", str(self.repo), "--format", "json"])
|
|
171
|
+
self.assertEqual(code, 2)
|
|
172
|
+
self.assertIn("changed-file set is unknown", err.getvalue())
|
|
173
|
+
|
|
174
|
+
def test_genuinely_clean_tree_still_passes(self):
|
|
175
|
+
# The guard must not turn "nothing changed" into a failure. setUp already
|
|
176
|
+
# commits the fixture, so the tree is clean here.
|
|
177
|
+
discovered = gate.working_tree_paths(self.repo)
|
|
178
|
+
self.assertEqual(discovered["source"], "working-tree")
|
|
179
|
+
self.assertEqual(discovered["paths"], [])
|
|
180
|
+
|
|
144
181
|
def test_bad_target_exits_2_not_1(self):
|
|
145
182
|
"""A harness must be able to tell a FAILED check from a BROKEN one."""
|
|
146
183
|
self.assertEqual(cli.main(["gate", str(self.repo / "nope"), "--format", "json"]), 2)
|
|
@@ -1877,6 +1877,37 @@ class EmitContextTests(unittest.TestCase):
|
|
|
1877
1877
|
with self.assertRaises(json.JSONDecodeError): # markdown mode is NOT JSON
|
|
1878
1878
|
json.loads(out)
|
|
1879
1879
|
|
|
1880
|
+
def test_unknown_subcommand_fails_loudly_instead_of_scanning(self):
|
|
1881
|
+
# A mistyped or not-yet-released subcommand used to be rewritten into a scan
|
|
1882
|
+
# target, so it printed `run`'s help and exited 0. A missing command was then
|
|
1883
|
+
# indistinguishable from a present one — `websec gate --help` on a build without
|
|
1884
|
+
# gate looked exactly like success.
|
|
1885
|
+
from websec_validator import cli
|
|
1886
|
+
for bogus in ("totally-not-a-command", "atest", "gat"):
|
|
1887
|
+
with self.subTest(bogus=bogus):
|
|
1888
|
+
with self.assertRaises(SystemExit) as caught:
|
|
1889
|
+
cli.main([bogus, "--help"])
|
|
1890
|
+
self.assertEqual(caught.exception.code, 2)
|
|
1891
|
+
|
|
1892
|
+
def test_unknown_subcommand_suggests_the_near_match(self):
|
|
1893
|
+
from websec_validator import cli
|
|
1894
|
+
import contextlib, io
|
|
1895
|
+
err = io.StringIO()
|
|
1896
|
+
with contextlib.redirect_stderr(err), self.assertRaises(SystemExit):
|
|
1897
|
+
cli.main(["atest", "."])
|
|
1898
|
+
self.assertIn("unknown command 'atest'", err.getvalue())
|
|
1899
|
+
self.assertIn("attest", err.getvalue())
|
|
1900
|
+
|
|
1901
|
+
def test_point_and_go_still_runs_an_existing_path(self):
|
|
1902
|
+
# The convenience this guard must not break: `websec <path>` == `websec run <path>`.
|
|
1903
|
+
with tempfile.TemporaryDirectory() as directory:
|
|
1904
|
+
target = Path(directory) / "app"
|
|
1905
|
+
target.mkdir()
|
|
1906
|
+
(target / "a.py").write_text("print(1)\n", encoding="utf-8")
|
|
1907
|
+
from websec_validator import cli
|
|
1908
|
+
code = cli.main([str(target), "--out", str(Path(directory) / "out"), "--format", "json"])
|
|
1909
|
+
self.assertEqual(code, 0)
|
|
1910
|
+
|
|
1880
1911
|
def test_bare_subcommand_not_rewritten_to_run(self):
|
|
1881
1912
|
# regression: `emit-context` must be in _COMMANDS, else main() rewrites it to `run
|
|
1882
1913
|
# emit-context <path>` and argparse rejects the target.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/__init__.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/agent_config.py
RENAMED
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/authz.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/crypto_usage.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/dependencies.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/django_urls.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/graphql.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/iac_ci.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/integrations.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/llm_security.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/pii_exposure.py
RENAMED
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/profiles.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/routes.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/schemas.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/sql_flow.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/stack.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/surface.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/syntax.py
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/tenant.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/extractors/webext.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/research/example.json
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/research/profile-cases.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/schemas/facts.schema.json
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/schemas/ledger.schema.json
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator/templates/probes/_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{websec_validator-0.15.0 → websec_validator-0.15.2}/src/websec_validator.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|