websec-validator 0.13.0__tar.gz → 0.15.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.13.0/src/websec_validator.egg-info → websec_validator-0.15.0}/PKG-INFO +321 -98
- {websec_validator-0.13.0 → websec_validator-0.15.0}/README.md +320 -97
- {websec_validator-0.13.0 → websec_validator-0.15.0}/pyproject.toml +5 -2
- websec_validator-0.15.0/src/websec_validator/agenthook.py +146 -0
- websec_validator-0.15.0/src/websec_validator/attest.py +279 -0
- websec_validator-0.15.0/src/websec_validator/attribution.py +214 -0
- websec_validator-0.15.0/src/websec_validator/baseline.py +214 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/briefing.py +23 -14
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/calibration.json +3 -1
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/calibration.py +91 -58
- websec_validator-0.15.0/src/websec_validator/cli.py +1451 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/constitution.py +14 -5
- websec_validator-0.15.0/src/websec_validator/corpus.json +115 -0
- websec_validator-0.15.0/src/websec_validator/coverage.py +395 -0
- websec_validator-0.15.0/src/websec_validator/dast_ingest.py +173 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/dynamic.py +150 -84
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/enrichment.py +25 -14
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/__init__.py +30 -4
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/agent_config.py +128 -38
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/auth.py +95 -8
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/authz.py +158 -20
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/authz_dataflow.py +35 -7
- websec_validator-0.15.0/src/websec_validator/extractors/base.py +503 -0
- websec_validator-0.15.0/src/websec_validator/extractors/crypto_usage.py +285 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/dependencies.py +99 -2
- websec_validator-0.15.0/src/websec_validator/extractors/django_urls.py +345 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/iac_ci.py +9 -6
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/integrations.py +82 -4
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/llm_security.py +91 -9
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/pii_exposure.py +42 -9
- websec_validator-0.15.0/src/websec_validator/extractors/profiles.py +442 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/routes.py +67 -10
- websec_validator-0.15.0/src/websec_validator/extractors/sql_flow.py +383 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/stack.py +45 -23
- websec_validator-0.15.0/src/websec_validator/extractors/surface.py +459 -0
- websec_validator-0.15.0/src/websec_validator/extractors/syntax.py +351 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/transport_security.py +186 -43
- websec_validator-0.15.0/src/websec_validator/extractors/upload_security.py +245 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/webext.py +80 -9
- websec_validator-0.15.0/src/websec_validator/feedback.py +168 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/findings.py +321 -107
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/fixprompt.py +30 -16
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/formats.py +92 -11
- websec_validator-0.15.0/src/websec_validator/gate.py +175 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/graph_enrich.py +19 -5
- websec_validator-0.15.0/src/websec_validator/hooks.py +441 -0
- websec_validator-0.15.0/src/websec_validator/install.py +328 -0
- websec_validator-0.15.0/src/websec_validator/intel.py +436 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/inventory.py +35 -9
- websec_validator-0.15.0/src/websec_validator/mcp_server.py +464 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/openapi.py +18 -19
- websec_validator-0.15.0/src/websec_validator/proof.py +244 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/recon.py +5 -2
- websec_validator-0.15.0/src/websec_validator/registry.py +254 -0
- websec_validator-0.15.0/src/websec_validator/repairs.py +212 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/report.py +12 -9
- websec_validator-0.15.0/src/websec_validator/research/control-scope-cases.json +304 -0
- websec_validator-0.15.0/src/websec_validator/research/example.json +50 -0
- websec_validator-0.15.0/src/websec_validator/research/profile-cases.json +24 -0
- websec_validator-0.15.0/src/websec_validator/research.py +218 -0
- websec_validator-0.15.0/src/websec_validator/sarif_ingest.py +607 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/scanners.py +289 -24
- websec_validator-0.15.0/src/websec_validator/schemas/coverage.schema.json +224 -0
- websec_validator-0.15.0/src/websec_validator/schemas/facts.schema.json +87 -0
- websec_validator-0.15.0/src/websec_validator/schemas/ledger.schema.json +232 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0/src/websec_validator.egg-info}/PKG-INFO +321 -98
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator.egg-info/SOURCES.txt +66 -1
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator.egg-info/entry_points.txt +1 -0
- websec_validator-0.15.0/tests/test_action_contracts.py +97 -0
- websec_validator-0.15.0/tests/test_adoption_contracts.py +208 -0
- websec_validator-0.15.0/tests/test_agent_hook.py +192 -0
- websec_validator-0.15.0/tests/test_agent_hosts.py +119 -0
- websec_validator-0.15.0/tests/test_agent_launch_specs.py +79 -0
- websec_validator-0.15.0/tests/test_analysis_scope.py +166 -0
- websec_validator-0.15.0/tests/test_assurance_regressions.py +244 -0
- websec_validator-0.15.0/tests/test_attest.py +156 -0
- websec_validator-0.15.0/tests/test_attribution.py +146 -0
- websec_validator-0.15.0/tests/test_auth_control_scope.py +79 -0
- websec_validator-0.15.0/tests/test_constitution.py +68 -0
- websec_validator-0.15.0/tests/test_control_scope_research.py +71 -0
- websec_validator-0.15.0/tests/test_coverage.py +374 -0
- websec_validator-0.15.0/tests/test_crypto_comparisons.py +143 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_dast_ingest.py +89 -11
- websec_validator-0.15.0/tests/test_detector_precision.py +219 -0
- websec_validator-0.15.0/tests/test_django_routes.py +234 -0
- websec_validator-0.15.0/tests/test_evidence_verdicts.py +223 -0
- websec_validator-0.15.0/tests/test_extension_controls.py +79 -0
- websec_validator-0.15.0/tests/test_feedback.py +175 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_formats.py +40 -0
- websec_validator-0.15.0/tests/test_gate_and_bypass_record.py +193 -0
- websec_validator-0.15.0/tests/test_gate_command.py +150 -0
- websec_validator-0.15.0/tests/test_gitleaks_worktree.py +193 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_graph_enrich.py +4 -2
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_hardening.py +23 -15
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_hooks.py +3 -1
- websec_validator-0.15.0/tests/test_hooks_contracts.py +115 -0
- websec_validator-0.15.0/tests/test_install_contracts.py +203 -0
- websec_validator-0.15.0/tests/test_intel.py +132 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_inventory.py +70 -0
- websec_validator-0.15.0/tests/test_lifecycle.py +410 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_mcp.py +21 -23
- websec_validator-0.15.0/tests/test_mcp_security.py +271 -0
- websec_validator-0.15.0/tests/test_output_boundaries.py +108 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_pentest_regressions.py +3 -1
- websec_validator-0.15.0/tests/test_profiles.py +266 -0
- websec_validator-0.15.0/tests/test_proof_revisions.py +90 -0
- websec_validator-0.15.0/tests/test_public_precision.py +127 -0
- websec_validator-0.15.0/tests/test_read_boundary.py +332 -0
- websec_validator-0.15.0/tests/test_read_performance.py +70 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_recon.py +43 -42
- websec_validator-0.15.0/tests/test_registry_existence.py +197 -0
- websec_validator-0.15.0/tests/test_remaining_control_scope.py +121 -0
- websec_validator-0.15.0/tests/test_research.py +55 -0
- websec_validator-0.15.0/tests/test_research_cli.py +120 -0
- websec_validator-0.15.0/tests/test_sarif_ingest.py +364 -0
- websec_validator-0.15.0/tests/test_sarif_workbench.py +215 -0
- websec_validator-0.15.0/tests/test_scanner_contracts.py +302 -0
- websec_validator-0.15.0/tests/test_source_budget.py +166 -0
- websec_validator-0.15.0/tests/test_sql_flow.py +207 -0
- websec_validator-0.15.0/tests/test_stack_metadata.py +161 -0
- websec_validator-0.15.0/tests/test_transport_pii_scope.py +167 -0
- websec_validator-0.15.0/tests/test_transport_stack_scope.py +106 -0
- websec_validator-0.15.0/tests/test_workbench_cli.py +140 -0
- websec_validator-0.13.0/src/websec_validator/baseline.py +0 -82
- websec_validator-0.13.0/src/websec_validator/cli.py +0 -768
- websec_validator-0.13.0/src/websec_validator/corpus.json +0 -49
- websec_validator-0.13.0/src/websec_validator/dast_ingest.py +0 -138
- websec_validator-0.13.0/src/websec_validator/extractors/base.py +0 -201
- websec_validator-0.13.0/src/websec_validator/extractors/crypto_usage.py +0 -112
- websec_validator-0.13.0/src/websec_validator/extractors/surface.py +0 -287
- websec_validator-0.13.0/src/websec_validator/extractors/upload_security.py +0 -101
- websec_validator-0.13.0/src/websec_validator/hooks.py +0 -206
- websec_validator-0.13.0/src/websec_validator/install.py +0 -228
- websec_validator-0.13.0/src/websec_validator/mcp_server.py +0 -251
- websec_validator-0.13.0/src/websec_validator/proof.py +0 -96
- websec_validator-0.13.0/src/websec_validator/schemas/facts.schema.json +0 -25
- websec_validator-0.13.0/src/websec_validator/schemas/ledger.schema.json +0 -39
- {websec_validator-0.13.0 → websec_validator-0.15.0}/LICENSE +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/setup.cfg +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/__init__.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/dast_predict.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/diffscope.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/client_exposure.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/client_integrity.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/graphql.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/policy_consistency.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/schemas.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/extractors/tenant.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/fpfilter.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/probes.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/rules/error-stack-disclosure.yml +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/rules/insecure-default-secret.yml +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/_lib.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/appsync-cswsh.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/appsync-introspection.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/appsync-subscription-bola.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/bola-cross-tenant.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/bola-write-verbs.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/client-integrity-checklist.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/compare-roles.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/dlp-bypass-offline.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/entitlement-abuse.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/error-disclosure-probe.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/forged-token.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/hs256-brute-force.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/jwt-attacks.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/mass-assignment.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/password-reuse.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/pii-output-diff.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/race-conditions.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/rate-limit-burst.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/s3-assess.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/ssrf-probes.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/unauth-baseline.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/upload-matrix.sh +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/probes/webhook-forgery.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/reports/FINDINGS-SUMMARY.md.template +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/reports/access-control-matrix.md.template +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/reports/findings-triage.md.template +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/reports/pentest-handover-brief.md.template +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/templates/reports/per-tool-FINDINGS.md.template +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator/testplan.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator.egg-info/dependency_links.txt +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/src/websec_validator.egg-info/top_level.txt +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_dast_predict.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_diffscope.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_enrichment.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_entitlement_webext.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_fixprompt_fpfilter.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_install.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_openapi.py +0 -0
- {websec_validator-0.13.0 → websec_validator-0.15.0}/tests/test_testplan.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: websec-validator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.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
|
|
@@ -87,7 +87,11 @@ websec install status # show what's installed
|
|
|
87
87
|
websec install codex --uninstall
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
Shared instructions preserve text outside a complete managed block. Install/uninstall refuses
|
|
91
|
+
ambiguous markers and foreign dedicated skill files; resolve ownership manually before retrying.
|
|
92
|
+
The generated instructions select `websec-out/runs/<generated>/` from the current JSON envelope,
|
|
93
|
+
keep incomplete results visible, and reject stale `latest` or symlink aliases. The engine and plugin
|
|
94
|
+
are separate trusted inputs; neither is silently upgraded by the skill.
|
|
91
95
|
|
|
92
96
|
➡️ **Want the reasoning behind every check?** Read **[docs/METHODOLOGY.md](docs/METHODOLOGY.md)** — what each test does and why.
|
|
93
97
|
|
|
@@ -155,7 +159,7 @@ Other AI security tools make the LLM do the review from scratch (nondeterministi
|
|
|
155
159
|
|
|
156
160
|
Now the agent knows your routes, auth model, tenant boundary, unguarded write endpoints, and dangerous sinks *before its first turn* — no LLM, same output every run. (`--markdown` prints the raw block for other harnesses.)
|
|
157
161
|
|
|
158
|
-
>
|
|
162
|
+
> Start with **`run`**. The optional workbench commands below expose capabilities, explicit threat-feed refresh, offline reassessment and research evaluation; **`dynamic`** performs authorized live testing. `recon`/`proof`/`calibrate` remain development commands.
|
|
159
163
|
|
|
160
164
|
## Scoping & suppression — keep the signal about *your* code
|
|
161
165
|
|
|
@@ -196,9 +200,9 @@ signal commercial tools sell, minus the cloud:
|
|
|
196
200
|
of model; unparsed ecosystems (Go, Rust…) are tagged `n/a` rather than guessed.
|
|
197
201
|
- **Exploitability** — each CVE is joined against a **local cache** of [FIRST.org EPSS](https://www.first.org/epss/)
|
|
198
202
|
(exploit-probability) + [CISA KEV](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
|
|
199
|
-
(known
|
|
200
|
-
|
|
201
|
-
|
|
203
|
+
(known exploitation reports). These are prioritization inputs alongside application context.
|
|
204
|
+
`websec intel refresh` explicitly downloads public feeds without sending project data. Snapshots
|
|
205
|
+
record source hashes/dates and freshness; consumers remain offline. Legacy flat caches are unverified.
|
|
202
206
|
|
|
203
207
|
Both are **strictly additive**: they annotate and re-rank, but never change a finding's severity, drop
|
|
204
208
|
one, or add one — so they can only sharpen triage, never reintroduce a false positive.
|
|
@@ -226,7 +230,7 @@ websec knows it statically, so it aims them:
|
|
|
226
230
|
|
|
227
231
|
| | Dimension | Notable output |
|
|
228
232
|
|---|---|---|
|
|
229
|
-
| stack | languages, frameworks, datastores |
|
|
233
|
+
| stack | languages, frameworks, datastores | manifest-aware service inventory, including Rust workspaces; declared hints do not prove deployment |
|
|
230
234
|
| routes | every endpoint via **OWASP Noir** (+ Supabase-edge, **AWS SAM / Function-URL**, **raw `http.createServer`/`Bun.serve`/py `http.server`**) | method · path · typed params · code path · **AuthType:NONE public endpoints**; **fixture/example routes split out of the attack surface** |
|
|
231
235
|
| auth | scheme + login surface + **insecure-default signing secrets** + **broken-auth backdoors** | multi-scheme; flags a hard-coded `JWT_SECRET \|\| 'dev-secret'` fallback (forgeable JWT), a **`dev-`token / accept-any-password backdoor** (total bypass, CRITICAL), and a **fail-open** `if(env.SECRET)` signature check |
|
|
232
236
|
| **authz** | access-control map | guard coverage (incl. **router-mount auth**) + **write endpoints with no visible guard** + roles |
|
|
@@ -289,48 +293,178 @@ non-Claude agents. All stdlib, no new dependency.
|
|
|
289
293
|
finding lands **inline on the PR diff** and in the **Security tab**, ranked by a security-severity band,
|
|
290
294
|
with its CWE/ASVS/OWASP citation and remediation.
|
|
291
295
|
|
|
292
|
-
**Gate the build.** `--fail-on {critical,high,medium,low}` exits
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
296
|
+
**Gate the build.** `--fail-on {critical,high,medium,low}` exits 1 for matching findings and 2 when
|
|
297
|
+
requested execution is incomplete. `--require-complete` gates execution without a severity threshold.
|
|
298
|
+
Extractor failures, source read loss/caps, invalid scanner reports, timeouts, and explicitly selected
|
|
299
|
+
missing scanners remain visible in `coverage.json`; partial artifacts are preserved. Optional missing
|
|
300
|
+
unselected scanners are reported as unavailable. `--scanners` requires `--scan`.
|
|
301
|
+
|
|
302
|
+
Every attempt receives a unique directory under `websec-out/runs/`. The atomic `latest` pointer
|
|
303
|
+
advances only after a completed execution has written its artifacts; a partial attempt retains its
|
|
304
|
+
own directory and leaves the previous completed scan selected. Completed execution describes the
|
|
305
|
+
requested checks, not complete protection against vulnerabilities.
|
|
306
|
+
|
|
307
|
+
**Reuse specialist analysis (0.14.0).** Import existing SARIF without executing
|
|
308
|
+
the analyzer or loading any source path/URL referenced by its report:
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
websec run ./my-app --sarif ./codeql.sarif --sarif ./other-analysis.sarif --require-complete
|
|
312
|
+
websec run ./my-python-app --scan --scanners bandit --fail-on high
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
SARIF 2.1.0 import preserves native tool/rule identities, traces and report hashes in
|
|
316
|
+
`sarif-imports.json` and the unified ledger. Safe relative paths are supported; unknown analyzer
|
|
317
|
+
execution, malformed references and caps are visible incomplete checks. Native suppressions remain
|
|
318
|
+
metadata until locally acknowledged. Source freshness stays unverified, and imported absence cannot
|
|
319
|
+
verify a repair. Unique producer fingerprints remain stable; collisions are deliberately report-bound.
|
|
320
|
+
|
|
321
|
+
Bandit is an optional preinstalled executable. The adapter uses built-in defaults, bypasses target
|
|
322
|
+
configuration and ignores `nosec`; its native confidence and CWE remain separate from severity.
|
|
323
|
+
Source-cache payloads have a 64 MiB per-context budget, with read loss visible in coverage. These
|
|
324
|
+
budgets constrain input retention, not the entire Python process's memory usage.
|
|
325
|
+
|
|
326
|
+
**Review changes against a baseline.** `--baseline <prior findings-ledger.json>` tracks new,
|
|
327
|
+
unchanged, changed, reopened, and no-longer-observed findings using versioned semantic identities.
|
|
328
|
+
New, changed, and reopened findings participate in the severity gate. Disappearance means only
|
|
329
|
+
“no longer observed”; it does not prove a repair. Expired or malformed dated acknowledgements reopen
|
|
330
|
+
for review. Legacy fingerprints remain migration aliases; ambiguous aliases cannot hide distinct
|
|
331
|
+
occurrences. A malformed or unreadable supplied baseline makes requested execution incomplete.
|
|
332
|
+
|
|
333
|
+
`repair-plans.json` binds each remediation plan to its original application, source digest, finding,
|
|
334
|
+
and detector scope. This command validates operator-supplied positive and negative reports:
|
|
335
|
+
|
|
336
|
+
```bash
|
|
337
|
+
websec repair-verify --plan plan.json --record record.json --rerun findings-ledger.json --evidence-root ./evidence
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Verification requires a
|
|
341
|
+
hashed failing negative report for the original build. Reports must identify the same plan, finding,
|
|
342
|
+
test and intended build; the rerun must be complete with unchanged review scope. The command validates
|
|
343
|
+
artifacts offline and never executes their commands. Acceptance is evidence validation, not independent
|
|
344
|
+
execution of tests by websec. See the [validated evidence examples](docs/security-review/examples/README.md)
|
|
345
|
+
for exact dynamic, DAST and repair artifact fields.
|
|
346
|
+
|
|
347
|
+
**GitHub Action** ([`action.yml`](action.yml), 0.14.0): the action installs
|
|
348
|
+
its own trusted checkout, passes inputs as data and uploads the exact current attempt's SARIF,
|
|
349
|
+
including incomplete attempts. `require-complete` defaults to true; `scanners` names explicitly
|
|
350
|
+
required tools when `scan: true`. Outputs expose `run-directory`, `sarif-file` and `execution-complete`.
|
|
351
|
+
Keep the reviewed action checkout separate from untrusted target source. Pin a reviewed 0.14.0-or-later commit when adopting these changes; the historical v0.13.0 tag
|
|
352
|
+
does not include them.
|
|
353
|
+
|
|
354
|
+
**Audit evidence — `websec attest`.** Projects an existing run into a per-control evidence table.
|
|
355
|
+
It computes nothing and asserts nothing.
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
websec attest # latest run, human-readable
|
|
359
|
+
websec attest --format json
|
|
360
|
+
websec attest --format in-toto # UNSIGNED Statement — sign it with your own key
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
**Gaps are listed before evidence**, in the data and in the output, because a table that leads with
|
|
364
|
+
coverage invites absence to read as satisfaction. On a typical run, 5 of 12 rows have no websec
|
|
365
|
+
evidence at all — most of these controls are organisational and the artifact says so.
|
|
366
|
+
|
|
367
|
+
It renders no verdict, score, percentage or badge, and the word "compliant" does not appear in any
|
|
368
|
+
output format (there is a test). Compliance is an attribute of an assessed *entity*, determined by a
|
|
369
|
+
qualified assessor and evidenced by their report — PCI SSC FAQ 1258: *"no single product can provide
|
|
370
|
+
PCI DSS compliance"*. Three things are declared non-goals in the artifact itself: approver
|
|
371
|
+
independence (it lives in the forge's approval record), rollback, and PCI 6.4.2 runtime protection.
|
|
372
|
+
The output also states that the local gate is bypassable and that its bypass record is not
|
|
373
|
+
exhaustive.
|
|
374
|
+
|
|
375
|
+
Citations are exact, because the obvious ones are wrong. EU DORA change management is **Commission
|
|
376
|
+
Delegated Regulation (EU) 2024/1774 Art. 17** (the RTS under DORA Art. 9(4)(e)); DORA Art. 17 itself
|
|
377
|
+
is incident management. There is **no SOX article** for ITGC — the domains come from SEC Release
|
|
378
|
+
33-8810 §II.A.2.d. PCI DSS **6.2.3 permits automated review**, and **6.2.3.1 is conditional** on
|
|
379
|
+
choosing manual review, so websec is deliberately not offered against it.
|
|
380
|
+
|
|
381
|
+
The in-toto Statement is unsigned by design: a websec-signed attestation would only attest that
|
|
382
|
+
websec ran. Sign it with your own key and identity and it becomes verifiable.
|
|
383
|
+
|
|
384
|
+
**Dependency existence — `websec run --network` (opt-in).** Offline checks cannot tell whether a
|
|
385
|
+
declared package actually exists, which is the AI-hallucinated-dependency surface.
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
websec run . --network-dry-run # print the exact names that WOULD be sent; sends nothing
|
|
389
|
+
websec run . --network # HEAD registry.npmjs.org / pypi.org; ~2.8s for 52 deps
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Only bare package **names** are sent — never versions, paths or repository identity. Suppression is
|
|
393
|
+
applied **offline, before any request**: names this repo publishes (via the real workspace graph),
|
|
394
|
+
scopes bound to a private registry in `.npmrc`/`.yarnrc.yml`, and pip `index-url` overrides. A
|
|
395
|
+
private name that reaches a public registry cannot be un-sent, and a 404 on an internal name tells
|
|
396
|
+
an attacker which name to squat.
|
|
397
|
+
|
|
398
|
+
A 404 is split by offline lockfile evidence: `resolved` + `integrity` means the package once
|
|
399
|
+
existed, so it is `dependency-unpublished-or-removed` (a package pulled for malware looks exactly
|
|
400
|
+
like this) rather than `dependency-nonexistent`. Findings are MEDIUM/LOW-confidence and do **not**
|
|
401
|
+
fail `--fail-on` unless you also pass `--fail-on-network` — the UNKNOWN rate is outside your
|
|
402
|
+
control, so gating on it would make registry uptime a dependency of shipping. UNKNOWN is recorded
|
|
403
|
+
as a coverage gap, never as clean.
|
|
404
|
+
|
|
405
|
+
**A 200 is not evidence of safety.** A squatter who has already registered the hallucinated name
|
|
406
|
+
also returns 200 — that is the successful attack, not the clean case.
|
|
407
|
+
|
|
408
|
+
**Agent-loop gate — `websec gate` and `websec hooks install --agent`.** Scanning at the merge
|
|
409
|
+
request makes a finding a backlog item; scanning on the edit that caused it makes it a retry the
|
|
410
|
+
agent fixes immediately.
|
|
411
|
+
|
|
412
|
+
```bash
|
|
413
|
+
websec gate # the files you just changed, ~0.3s, exit 1 if blocking
|
|
414
|
+
websec gate --fail-on high # default is medium (see below)
|
|
415
|
+
websec hooks install --agent # PostToolUse hook: runs the gate on every file the agent writes
|
|
416
|
+
websec hooks status --agent
|
|
417
|
+
websec hooks uninstall --agent
|
|
319
418
|
```
|
|
320
419
|
|
|
321
|
-
|
|
322
|
-
|
|
420
|
+
`gate` scopes the **analysis**, not just the report: `--only` narrows what is read and matched
|
|
421
|
+
(~13x faster than a full pass), while the tree is still walked in full so stack detection, ignore
|
|
422
|
+
policy and fixture classification are unchanged. Its default scope is the **working tree** —
|
|
423
|
+
tracked modifications plus untracked files — because agent edits are uncommitted and a three-dot
|
|
424
|
+
`base...HEAD` diff would see nothing. It writes no artifacts, publishes no run directory and never
|
|
425
|
+
advances an accepted baseline.
|
|
426
|
+
|
|
427
|
+
The default threshold is **medium, not high**: command injection and SSRF on agent-written code are
|
|
428
|
+
frequently rated MEDIUM, so a HIGH default would miss the main case. `--min-confidence` filters
|
|
429
|
+
low-confidence leads for teams that measure them as noisy; there is no confidence floor by default,
|
|
430
|
+
because in the loop a false block costs one turn while a miss ships.
|
|
431
|
+
|
|
432
|
+
Three deliberate properties of the hook:
|
|
433
|
+
|
|
434
|
+
- It **fails open, loudly**. If the gate cannot run, the hook exits 0 and says on stderr that the
|
|
435
|
+
edit was *not* security-checked. A check that blocks every edit when broken gets uninstalled, and
|
|
436
|
+
then there is no check at all. A pass means "nothing blocking was found", never "this was verified".
|
|
437
|
+
- It does **not** honour `WEBSEC_SKIP_HOOK`, unlike the git guardrail below. The agent can set an
|
|
438
|
+
environment variable in a Bash call, so an env escape hatch here would be one the agent operates.
|
|
439
|
+
- It is **developer ergonomics, not a compliance control.** Settings files are editable by the user
|
|
440
|
+
and, in a repository the agent can write to, by the agent. Only managed policy settings deployed
|
|
441
|
+
through device management are genuinely unbypassable. This hook catches mistakes early; it cannot
|
|
442
|
+
evidence that it ran for every change, and should not be presented as though it could. For
|
|
443
|
+
enforcement, run `websec run --fail-on …` as a required status check.
|
|
444
|
+
|
|
445
|
+
A scoped pass is a fast retry signal, not a review: it does not consult cross-file evidence outside
|
|
446
|
+
the scope, and a clean result does not mean the repository is clean. Keep running the full pass.
|
|
447
|
+
|
|
448
|
+
**Local guardrail — `websec hooks`.** Advisory and gating runs have separate responsibilities:
|
|
323
449
|
|
|
324
450
|
```bash
|
|
325
|
-
websec hooks install # advisory post-commit
|
|
326
|
-
websec hooks install --pre-push #
|
|
327
|
-
websec hooks status
|
|
451
|
+
websec hooks install # advisory post-commit; prints outcome and current artifact path
|
|
452
|
+
websec hooks install --pre-push # severity gate (default high) plus complete-execution check
|
|
453
|
+
websec hooks status
|
|
328
454
|
websec hooks uninstall
|
|
329
455
|
```
|
|
330
456
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
457
|
+
A successful pre-push gate accepts a ledger under its severity/scanner policy. Advisory runs and
|
|
458
|
+
failed gates never advance that accepted baseline. The first gate, or a changed policy, checks all
|
|
459
|
+
current findings; later gates compare against the accepted ledger. Retrying an unchanged failed gate
|
|
460
|
+
continues to fail. `WEBSEC_HOOK_FAIL_ON` changes the threshold; `WEBSEC_HOOK_SCAN=1` executes scanners,
|
|
461
|
+
and `WEBSEC_HOOK_SCANNERS` selects required adapters. The default is recon-only.
|
|
462
|
+
|
|
463
|
+
Hooks launch isolated Python bound to the trusted installed package path, including editable source
|
|
464
|
+
installs. They preserve existing shell hooks and refuse automatic insertion into non-shell hooks.
|
|
465
|
+
`WEBSEC_SKIP_HOOK=1` is an explicit one-off override. Native hooks inspect the current working tree,
|
|
466
|
+
not immutable snapshots of every pushed Git object. A missing runtime or concurrent incomplete gate
|
|
467
|
+
blocks pre-push; post-commit remains advisory.
|
|
334
468
|
|
|
335
469
|
**MCP server (any agent, not just Claude Code).** `websec mcp` speaks the Model Context Protocol over
|
|
336
470
|
stdio, exposing typed tools — `websec_recon`, `websec_findings`, `websec_sarif`, `websec_briefing` — so
|
|
@@ -341,10 +475,18 @@ Register it in your MCP client:
|
|
|
341
475
|
{ "mcpServers": { "websec": { "command": "websec", "args": ["mcp"] } } }
|
|
342
476
|
```
|
|
343
477
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
478
|
+
The optional HTTP transport is loopback-only and requires `WEBSEC_MCP_TOKEN` at startup:
|
|
479
|
+
|
|
480
|
+
```bash
|
|
481
|
+
# Supply WEBSEC_MCP_TOKEN through your local secret environment.
|
|
482
|
+
websec mcp --http --allow-root /absolute/path/to/project
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
Repeat `--allow-root` for additional projects; otherwise the startup directory is the allowed root.
|
|
486
|
+
JSON-RPC requests require the bearer token. Host/Origin validation, framing and body limits, bounded
|
|
487
|
+
workers, and an absolute receive deadline constrain the HTTP boundary. `GET /health` remains a
|
|
488
|
+
minimal liveness endpoint. Non-loopback binding is refused. Stdio uses the launching process's trust
|
|
489
|
+
and filesystem permissions.
|
|
348
490
|
|
|
349
491
|
**Blast-radius from a knowledge graph (opt-in, zero-dep).** If your repo has a
|
|
350
492
|
[`graphify`](https://github.com/Graphify-Labs/graphify) graph at `graphify-out/graph.json` (or you
|
|
@@ -359,16 +501,68 @@ websec run . --scan # auto-detects graphify-out/graph.json if present
|
|
|
359
501
|
Each mapped finding gains a `graph` block (`blast_radius`, a `dependents` sample, `community`) in
|
|
360
502
|
`findings-ledger.json`, and the ledger a `graph_enrichment` summary. It reads the graph as plain
|
|
361
503
|
JSON — it never imports tree-sitter, so websec stays **stdlib-only, zero runtime deps** — and a
|
|
362
|
-
missing
|
|
504
|
+
missing implicit graph is optional. Invalid implicit graphs produce a visible diagnostic; an explicitly
|
|
505
|
+
requested malformed, unreadable, excluded, or oversized graph makes requested execution incomplete.
|
|
363
506
|
|
|
364
507
|
**Versioned contract.** `FACTS.json`, `findings-ledger.json`, and `findings.envelope.json` all carry a
|
|
365
|
-
`schema_version`;
|
|
366
|
-
`schemas/ledger.schema.json`)
|
|
508
|
+
`schema_version: "2.0"`; JSON Schemas ship in the package (`schemas/facts.schema.json`,
|
|
509
|
+
`schemas/ledger.schema.json`, `schemas/coverage.schema.json`). Coverage is embedded in facts, ledger,
|
|
510
|
+
and envelope, with SARIF execution status reflecting partial checks. Fingerprint V2 preserves V1
|
|
511
|
+
migration aliases. SARIF lifecycle states use its legal enum and retain richer lifecycle metadata in
|
|
512
|
+
properties. `.websec-ignore` is read from the selected target by default, through the same contained
|
|
513
|
+
read policy; an unrelated working directory no longer contributes implicit suppressions.
|
|
514
|
+
|
|
515
|
+
## Named profiles and the research workbench
|
|
516
|
+
|
|
517
|
+
```bash
|
|
518
|
+
websec capabilities # offline profile/check/limitation matrix
|
|
519
|
+
websec feedback --fingerprint <fp> --verdict false-positive \
|
|
520
|
+
--reason "behind an nginx auth_request" # report a wrong detector; metadata-only, sends nothing
|
|
521
|
+
websec intel status # offline freshness and provenance
|
|
522
|
+
websec intel refresh # explicit public FIRST/CISA downloads
|
|
523
|
+
websec intel reassess --ledger prior-ledger.json --out reassessment.json
|
|
524
|
+
websec research catalog # discover shipped suites without evaluating
|
|
525
|
+
websec research evaluate --suite control-scope --out suite-evaluation.json
|
|
526
|
+
websec research example --out proposal.json # current detector-bound synthetic example
|
|
527
|
+
websec research evaluate --proposal proposal.json --out evaluation.json
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
`--out` writes a new JSON file and refuses existing files. Intel commands accept `--cache-dir`;
|
|
531
|
+
status and reassessment never fetch automatically. Reassessment updates known CVEs while preserving
|
|
532
|
+
source evidence and finding identities. Newly exploited or materially higher-risk acknowledged CVEs
|
|
533
|
+
can reopen for review. A detector change requests a source rescan; stale/unavailable intelligence
|
|
534
|
+
remains explicit and reassessment exits 2. Discovering new dependency CVEs requires a fresh inventory
|
|
535
|
+
and advisory scan; unchanged-source reassessment is not such a scan.
|
|
536
|
+
|
|
537
|
+
The capability matrix exposes nine bounded profiles:
|
|
538
|
+
|
|
539
|
+
| Profile | Named checks | Main limits |
|
|
540
|
+
|---|---|---|
|
|
541
|
+
| Java/Spring | Direct request-to-command/query syntax; literal Spring routes | No binding resolution, aliases or cross-function flow |
|
|
542
|
+
| .NET | Direct command/raw-query syntax; literal ASP.NET routes | No framework convention or route-group resolution |
|
|
543
|
+
| Go | Direct command/query arguments, including context variants | No indirect request aliases or full data flow |
|
|
544
|
+
| Ruby | Direct command/raw-query syntax with parameterized forms distinguished | No whole-Rails authorization or dynamic metaprogramming analysis |
|
|
545
|
+
| PHP | Direct command/query request reads | No whole-application flow analysis |
|
|
546
|
+
| Android | Explicit manifest cleartext setting | Network-security configuration, manifest merges and API levels need review |
|
|
547
|
+
| iOS | Explicit ATS exception keys | Scope and OS precedence need review; not proof of an insecure connection |
|
|
548
|
+
| Rust | Explicit reqwest invalid-certificate acceptance | Receiver/binding and runtime reachability remain unverified |
|
|
549
|
+
| C/C++ | Source inventory and manual memory-safety review | No automated memory-safety analysis |
|
|
550
|
+
|
|
551
|
+
Nearest manifest boundaries identify services and keep their route/datastore evidence separate.
|
|
552
|
+
Coverage records each selected check as completed, unknown or manual, with examined counts and
|
|
553
|
+
limitations. Invalid analyzed configuration is an execution error. A language label or a completed
|
|
554
|
+
no-match check does not mean comprehensive support or a secure service.
|
|
555
|
+
|
|
556
|
+
Research proposals are data-only, provenance-described candidates evaluated against an allowlist of
|
|
557
|
+
shipped detectors. Source snippets become disposable text fixtures and are never executed. Results
|
|
558
|
+
separate development/holdout TP/FN/TN/FP/unknown counts. Passing means **eligible for human review**,
|
|
559
|
+
not automatic detector promotion. The authored synthetic holdout is regression evidence, not a
|
|
560
|
+
statistically independent production benchmark or proof of competitor superiority.
|
|
367
561
|
|
|
368
562
|
## Proof harness
|
|
369
563
|
|
|
370
564
|
`websec proof` clones a vuln-app corpus (VAmPI, NodeGoat, DVGA) and scores whether recon surfaces
|
|
371
|
-
each app's documented attack surface — a deterministic, CI-trackable proxy (
|
|
565
|
+
each app's documented attack surface — a deterministic, CI-trackable proxy (historical **10/10**, not rerun for this detector revision).
|
|
372
566
|
The real kill-criterion (does the briefing lift an agent's bug-finding vs a generic prompt?) is the
|
|
373
567
|
manual A/B in [`corpus/PROOF-PROTOCOL.md`](corpus/PROOF-PROTOCOL.md). Full methodology, calibrated
|
|
374
568
|
precision numbers, and the competitor-comparison protocol: [`BENCHMARKS.md`](BENCHMARKS.md).
|
|
@@ -379,20 +573,20 @@ precision numbers, and the competitor-comparison protocol: [`BENCHMARKS.md`](BEN
|
|
|
379
573
|
*(attack-class, confidence)* bucket is a **real** documented vuln, and writes `calibration.json`
|
|
380
574
|
(shipped + applied at runtime). Each finding then carries `P(real)` with a **95% Wilson confidence
|
|
381
575
|
interval** and the sample size `n` — so "MEDIUM" stops being a vibe and becomes "real ~57% of the
|
|
382
|
-
time on the corpus (CI 43–70%, n=51)".
|
|
383
|
-
|
|
576
|
+
time on the historical corpus (CI 43–70%, n=51)". Unmatched findings now remain **unknown**,
|
|
577
|
+
unless explicit negative evidence labels them false. Historical measurements using unmatched-as-false
|
|
578
|
+
labels are not a fresh measurement of this detector revision. **Honest caveats:** the corpus is *deliberately
|
|
384
579
|
vulnerable*, so the rates skew **optimistic** for clean production code, and small samples mean
|
|
385
580
|
**wide intervals** — the CI is the headline, not the point estimate, and both tighten as the corpus
|
|
386
581
|
grows. With thin data a bucket falls back to the per-label aggregate, then to a clearly-flagged
|
|
387
582
|
uncalibrated prior. No ML, no deps — binomial proportion + Wilson interval; the structure upgrades to
|
|
388
583
|
isotonic regression if a large labeled set ever exists.
|
|
389
584
|
|
|
390
|
-
**
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
instead, feed a `{attack_class, confidence, is_real}` file to `websec calibrate --ingest`.
|
|
585
|
+
**Evidence controls learning.** Dynamic status codes and scanner silence are observations, not
|
|
586
|
+
truth labels. Only evidence-backed labels are admitted to the local calibration overlay; legacy
|
|
587
|
+
unproven samples are quarantined. Unknown-only input reports no successful measurement and leaves
|
|
588
|
+
existing fitted calibration unchanged. A DAST hit may confirm a scoped lead; absence from a report
|
|
589
|
+
cannot refute it. Manual labels should include reviewer/evidence provenance, not only a boolean.
|
|
396
590
|
|
|
397
591
|
## Dynamic phase (v2 — read-only so far)
|
|
398
592
|
|
|
@@ -402,7 +596,7 @@ GET endpoints recon discovered.
|
|
|
402
596
|
|
|
403
597
|
```bash
|
|
404
598
|
cp dynamic-config.example.json dynamic-config.json # TEST target + role creds (gitignored)
|
|
405
|
-
websec run ./my-app # static recon → websec-out/FACTS.json
|
|
599
|
+
websec run ./my-app # static recon → websec-out/latest/FACTS.json
|
|
406
600
|
websec dynamic --config dynamic-config.json --facts websec-out/FACTS.json
|
|
407
601
|
# → "14/14 cross-tenant GET reads blocked — all isolated" (or 🚨 LEAK with the exact endpoint)
|
|
408
602
|
```
|
|
@@ -419,54 +613,47 @@ upload, cross-tenant BOLA, role/authz gaps).
|
|
|
419
613
|
## Tests
|
|
420
614
|
|
|
421
615
|
```bash
|
|
422
|
-
python3 -m unittest discover -s tests # stdlib only, no
|
|
616
|
+
python3 -m unittest discover -s tests # stdlib only; synthetic/local-loopback tests, no public network
|
|
423
617
|
```
|
|
424
618
|
|
|
425
619
|
## Releasing (maintainer)
|
|
426
620
|
|
|
427
|
-
|
|
621
|
+
The release train is PR-driven. Keep the version in `pyproject.toml` as the single source of truth,
|
|
622
|
+
add the matching dated changelog and migration guidance, and validate the combined release branch.
|
|
623
|
+
In the 0.x series, feature additions or incompatible contracts increment the minor version.
|
|
428
624
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
# calibration ships, a real `websec run`), then publishes. A bad build fails
|
|
435
|
-
# CI instead of reaching PyPI — so you never have to yank after the fact.
|
|
436
|
-
```
|
|
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.0` for this
|
|
627
|
+
release. [release-tag.yml](.github/workflows/release-tag.yml) validates that subject against the
|
|
628
|
+
package version, creates the matching tag/GitHub Release, and explicitly dispatches
|
|
629
|
+
[publish.yml](.github/workflows/publish.yml) at that tag. A version edit alone does not publish.
|
|
437
630
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
631
|
+
The publish workflow builds and installs the wheel, verifies its version and smoke test, then uses
|
|
632
|
+
PyPI Trusted Publishing through the `pypi` environment. Verify the completed workflow, tag,
|
|
633
|
+
GitHub Release and PyPI artifact before reporting publication success. Do not bypass failed checks
|
|
634
|
+
with manual tags, and do not describe a locally built wheel as published.
|
|
441
635
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
636
|
+
The CLI and Claude plugin have separate delivery paths: the CLI uses PyPI semver releases; the
|
|
637
|
+
plugin uses reviewed Git content and explicit marketplace refresh. Plugin manifests deliberately
|
|
638
|
+
omit an independent version field. Check both sources when diagnosing stale instructions.
|
|
445
639
|
|
|
446
640
|
## Status / roadmap
|
|
447
641
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
scanners + Noir, arch-aware), **dynamic phase v1** (authenticated read-only cross-tenant BOLA —
|
|
464
|
-
validated live, reproduced a hand-pentest's 14/14). Validated against the **REF-PENTEST pen test +
|
|
465
|
-
retest** and re-validated on a large real-world LLM-agent monorepo (HIGH-finding noise 178 → 15, AI +
|
|
466
|
-
crypto surfaces newly covered).
|
|
467
|
-
**Next:** dynamic write-verb BOLA + JWT/auth probes + ZAP/Nuclei two-role diff (gated, they mutate),
|
|
468
|
-
calibration on hand-labeled real repos (more representative base rate), ASVS index lookup, optional
|
|
469
|
-
model-SDK adapters for no-agent fallback.
|
|
642
|
+
Version 0.15.0 provides 22 recon extractors, eleven optional scanner entries, nine named profiles,
|
|
643
|
+
SARIF import/export, bounded source/query analysis, explicit coverage and lifecycle evidence,
|
|
644
|
+
intelligence/research commands, and opt-in agent/hook/CI adoption. It adds an in-loop security gate
|
|
645
|
+
(`websec gate` and a `PostToolUse` hook), analysis scoping with `--only`, an opt-in dependency
|
|
646
|
+
existence check (`--network`), run attribution with graded assurance, recorded gate verdicts and
|
|
647
|
+
hook bypasses, and an audit-evidence projection (`websec attest`). These are scoped review tools;
|
|
648
|
+
manual profiles, unknown routes, dynamic behavior and unsupported syntax remain limitations. The
|
|
649
|
+
in-loop gate is developer ergonomics, not a control, and `attest` reports evidence without
|
|
650
|
+
rendering a compliance verdict.
|
|
651
|
+
|
|
652
|
+
The [0.14.0 migration guide](docs/MIGRATING-0.14.0.md) explains schema 2.0 and gate/artifact
|
|
653
|
+
changes. 0.15.0 is additive and needs no migration.
|
|
654
|
+
The [remaining-work specification](specs/001-continuous-security-improvement/spec.md) consolidates
|
|
655
|
+
unresolved gaps and acceptance tests so overlapping old-base PRs do not become competing roadmaps.
|
|
656
|
+
Existing runtime probes are opt-in; their earlier isolated results are not current deployment proofs.
|
|
470
657
|
|
|
471
658
|
## Using it as a Claude Code skill / plugin
|
|
472
659
|
|
|
@@ -487,7 +674,8 @@ works the findings with you. For other agents the universal interface is unchang
|
|
|
487
674
|
- The install id is `plugin@marketplace` — `websec-validator@websec-plugins` (the marketplace name
|
|
488
675
|
from `.claude-plugin/marketplace.json`), **not** `@websec-validator` (the repo).
|
|
489
676
|
- The plugin only delivers the *instructions*; the actual scanning is a **separate Python CLI**
|
|
490
|
-
(`websec`). The skill
|
|
677
|
+
(`websec`). The skill checks the selected engine's version/source and reports a missing engine;
|
|
678
|
+
installation or upgrades require an operator-selected trusted source.
|
|
491
679
|
- **`/plugin …` only works in the terminal CLI.** In the Claude **app / Agent SDK** (no `/plugin`),
|
|
492
680
|
configure it in `.claude/settings.json` instead:
|
|
493
681
|
```json
|
|
@@ -510,3 +698,38 @@ This tool productizes that hand-written methodology into something an AI agent c
|
|
|
510
698
|
## License
|
|
511
699
|
|
|
512
700
|
[MIT](LICENSE) © Ricardo Accioly
|
|
701
|
+
|
|
702
|
+
## Latest source review and adoption
|
|
703
|
+
|
|
704
|
+
The [upstream overlap review](docs/security-review/upstream-overlap-review.md) compares selected
|
|
705
|
+
open PRs at exact heads with the working implementation. Recompare both target and PR heads before
|
|
706
|
+
future integration, then rerun combined checks; overlapping old-base PRs are not automatically safe
|
|
707
|
+
to apply. No PR was merged as part of that review.
|
|
708
|
+
|
|
709
|
+
Django URL discovery parses supported declarations and local include bindings without importing
|
|
710
|
+
settings or executing target code. Unknown mounts remain route candidates with explicit uncertainty.
|
|
711
|
+
A scoped read of pinned Linkding produced 53 candidates and one dynamic mount gap, not 53 confirmed
|
|
712
|
+
HTTP paths. Framework metadata, native React views and browser renderers are distinguished; actual
|
|
713
|
+
browser/HTTP hints remain review scope rather than proof of deployment. See the dated
|
|
714
|
+
[validation record](docs/security-review/validation.md) for snapshot-bound results.
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
Opt-in [pre-commit and PR/weekly workflow examples](docs/integrations/README.md) reuse the existing
|
|
718
|
+
CLI, native post-commit/pre-push hooks and composite Action. The local example requires an explicit
|
|
719
|
+
trusted Python environment; the hosted example requires a reviewed engine commit and keeps target
|
|
720
|
+
code separate. The examples do not install hooks or activate a hosted schedule. Validation covers
|
|
721
|
+
actual isolated CLI arguments and limited configuration structure, not a full pre-commit/YAML or
|
|
722
|
+
hosted workflow lifecycle.
|
|
723
|
+
|
|
724
|
+
`research catalog` discovers the shipped `control-scope` suite; `research evaluate --suite
|
|
725
|
+
control-scope` evaluates all three proposals and 24 authored cases. Aggregate and per-proposal
|
|
726
|
+
results retain exact detector revision, partition metrics and uncertainty. An empty, regressed or
|
|
727
|
+
revision-inconsistent suite exits 2. Eligibility means human review, not installation, independent
|
|
728
|
+
real-project validation or measured vulnerability recall.
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
Assigned Python SQL query review now follows supported local assignments and branch joins to the
|
|
732
|
+
query sink, preserving source traces and separate bound-value controls. Loops and cross-function
|
|
733
|
+
behavior remain limited and disclosed. The [final fourth-phase validation](docs/security-review/validation.md)
|
|
734
|
+
records 1082 tests across two Python versions and 15 isolated-wheel checks; historical corpus
|
|
735
|
+
scores remain separate and do not establish full protection.
|