stackparity 1.0.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.
- stackparity-1.0.0/.gitignore +59 -0
- stackparity-1.0.0/LICENSE +201 -0
- stackparity-1.0.0/PKG-INFO +204 -0
- stackparity-1.0.0/README.md +150 -0
- stackparity-1.0.0/SECURITY.md +35 -0
- stackparity-1.0.0/policies/default.yaml +56 -0
- stackparity-1.0.0/policies/strict.yaml +35 -0
- stackparity-1.0.0/pyproject.toml +99 -0
- stackparity-1.0.0/src/agents/investigator.py +294 -0
- stackparity-1.0.0/src/agents/memory_agent.py +37 -0
- stackparity-1.0.0/src/agents/pipeline_agent.py +152 -0
- stackparity-1.0.0/src/agents/remediation_agent.py +248 -0
- stackparity-1.0.0/src/agents/runtime.py +177 -0
- stackparity-1.0.0/src/agents/specialists.py +709 -0
- stackparity-1.0.0/src/agents/suspicious_change_agent.py +1275 -0
- stackparity-1.0.0/src/cli/__init__.py +2 -0
- stackparity-1.0.0/src/cli/main.py +1252 -0
- stackparity-1.0.0/src/cli/remediate.py +461 -0
- stackparity-1.0.0/src/cli/term.py +44 -0
- stackparity-1.0.0/src/config/__init__.py +0 -0
- stackparity-1.0.0/src/config/constants.py +88 -0
- stackparity-1.0.0/src/config/loader.py +155 -0
- stackparity-1.0.0/src/config/settings.py +108 -0
- stackparity-1.0.0/src/containers/__init__.py +12 -0
- stackparity-1.0.0/src/containers/discovery.py +143 -0
- stackparity-1.0.0/src/containers/models.py +72 -0
- stackparity-1.0.0/src/containers/trivy_image_scanner.py +165 -0
- stackparity-1.0.0/src/core/__init__.py +0 -0
- stackparity-1.0.0/src/core/capabilities.py +107 -0
- stackparity-1.0.0/src/core/finding_schema.py +305 -0
- stackparity-1.0.0/src/core/git_manager.py +206 -0
- stackparity-1.0.0/src/core/http.py +64 -0
- stackparity-1.0.0/src/core/models.py +109 -0
- stackparity-1.0.0/src/core/netpolicy.py +242 -0
- stackparity-1.0.0/src/core/plugins.py +43 -0
- stackparity-1.0.0/src/core/repository_inspector.py +243 -0
- stackparity-1.0.0/src/core/safe_env.py +48 -0
- stackparity-1.0.0/src/core/scan_orchestrator.py +289 -0
- stackparity-1.0.0/src/core/scan_state.py +58 -0
- stackparity-1.0.0/src/core/url_validator.py +135 -0
- stackparity-1.0.0/src/ecosystems/__init__.py +1 -0
- stackparity-1.0.0/src/ecosystems/registry.py +138 -0
- stackparity-1.0.0/src/evidence/__init__.py +1 -0
- stackparity-1.0.0/src/evidence/store.py +65 -0
- stackparity-1.0.0/src/explainability/__init__.py +0 -0
- stackparity-1.0.0/src/explainability/evidence_formatter.py +30 -0
- stackparity-1.0.0/src/explainability/explanation_engine.py +132 -0
- stackparity-1.0.0/src/explainability/explanation_validator.py +54 -0
- stackparity-1.0.0/src/explainability/prompt_templates.py +18 -0
- stackparity-1.0.0/src/graph/__init__.py +0 -0
- stackparity-1.0.0/src/graph/dependency_tracer.py +86 -0
- stackparity-1.0.0/src/graph/graph_builder.py +165 -0
- stackparity-1.0.0/src/graph/graph_diff.py +57 -0
- stackparity-1.0.0/src/graph/graph_exporter.py +194 -0
- stackparity-1.0.0/src/graph/graph_validator.py +46 -0
- stackparity-1.0.0/src/graph/impact_analyzer.py +23 -0
- stackparity-1.0.0/src/graph/tree_view.py +185 -0
- stackparity-1.0.0/src/intel/__init__.py +0 -0
- stackparity-1.0.0/src/intel/epss.py +53 -0
- stackparity-1.0.0/src/llm/__init__.py +1 -0
- stackparity-1.0.0/src/llm/client.py +138 -0
- stackparity-1.0.0/src/monitor/__init__.py +0 -0
- stackparity-1.0.0/src/monitor/watch.py +171 -0
- stackparity-1.0.0/src/non_cve/__init__.py +7 -0
- stackparity-1.0.0/src/non_cve/base.py +62 -0
- stackparity-1.0.0/src/non_cve/iac.py +144 -0
- stackparity-1.0.0/src/non_cve/sast.py +272 -0
- stackparity-1.0.0/src/non_cve/supply_chain.py +147 -0
- stackparity-1.0.0/src/orchestration/__init__.py +1 -0
- stackparity-1.0.0/src/orchestration/pipeline.py +279 -0
- stackparity-1.0.0/src/orchestration/supervisor.py +167 -0
- stackparity-1.0.0/src/pipeline_analysis/__init__.py +0 -0
- stackparity-1.0.0/src/pipeline_analysis/analyzer.py +90 -0
- stackparity-1.0.0/src/pipeline_analysis/ci.py +189 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/__init__.py +24 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/azure_pipelines.py +221 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/base.py +239 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/circleci.py +176 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/github_actions.py +356 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/gitlab_ci.py +268 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/jenkins.py +180 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_adapters/registry.py +80 -0
- stackparity-1.0.0/src/pipeline_analysis/ci_models.py +72 -0
- stackparity-1.0.0/src/pipeline_analysis/dockerfile.py +235 -0
- stackparity-1.0.0/src/pipeline_analysis/eol.py +62 -0
- stackparity-1.0.0/src/pipeline_analysis/models.py +37 -0
- stackparity-1.0.0/src/policy/__init__.py +0 -0
- stackparity-1.0.0/src/policy/engine.py +216 -0
- stackparity-1.0.0/src/reachability/__init__.py +0 -0
- stackparity-1.0.0/src/reachability/app_reachability.py +186 -0
- stackparity-1.0.0/src/reachability/scanners.py +215 -0
- stackparity-1.0.0/src/remediation/__init__.py +0 -0
- stackparity-1.0.0/src/remediation/adapters.py +198 -0
- stackparity-1.0.0/src/remediation/apply_local.py +309 -0
- stackparity-1.0.0/src/remediation/code_fixes.py +383 -0
- stackparity-1.0.0/src/remediation/compat.py +156 -0
- stackparity-1.0.0/src/remediation/container_plan.py +127 -0
- stackparity-1.0.0/src/remediation/delivery.py +31 -0
- stackparity-1.0.0/src/remediation/export.py +44 -0
- stackparity-1.0.0/src/remediation/lifecycle.py +623 -0
- stackparity-1.0.0/src/remediation/local_trial.py +358 -0
- stackparity-1.0.0/src/remediation/patchers.py +215 -0
- stackparity-1.0.0/src/remediation/planner.py +285 -0
- stackparity-1.0.0/src/remediation/pr_template_engine.py +234 -0
- stackparity-1.0.0/src/remediation/reachability_impact.py +147 -0
- stackparity-1.0.0/src/remediation/versions.py +92 -0
- stackparity-1.0.0/src/remediation/whatif.py +64 -0
- stackparity-1.0.0/src/remediation/worktree_pr.py +434 -0
- stackparity-1.0.0/src/reporting/__init__.py +0 -0
- stackparity-1.0.0/src/reporting/counts.py +63 -0
- stackparity-1.0.0/src/reporting/fix_pdf.py +343 -0
- stackparity-1.0.0/src/reporting/fix_report.py +135 -0
- stackparity-1.0.0/src/reporting/json_exporter.py +61 -0
- stackparity-1.0.0/src/reporting/report_generator.py +200 -0
- stackparity-1.0.0/src/reporting/sarif.py +71 -0
- stackparity-1.0.0/src/reporting/vex.py +57 -0
- stackparity-1.0.0/src/reporting/view.py +166 -0
- stackparity-1.0.0/src/risk_analysis/__init__.py +0 -0
- stackparity-1.0.0/src/risk_analysis/contextual_scorer.py +253 -0
- stackparity-1.0.0/src/risk_analysis/evidence_collector.py +62 -0
- stackparity-1.0.0/src/risk_analysis/evidence_normalizer.py +37 -0
- stackparity-1.0.0/src/risk_analysis/finding_correlator.py +90 -0
- stackparity-1.0.0/src/risk_analysis/function_impact.py +184 -0
- stackparity-1.0.0/src/risk_analysis/production_context.py +252 -0
- stackparity-1.0.0/src/risk_analysis/risk_rules.py +81 -0
- stackparity-1.0.0/src/risk_analysis/risk_scorer.py +390 -0
- stackparity-1.0.0/src/sandbox/__init__.py +0 -0
- stackparity-1.0.0/src/sandbox/runner.py +142 -0
- stackparity-1.0.0/src/sbom/__init__.py +0 -0
- stackparity-1.0.0/src/sbom/adapters/__init__.py +19 -0
- stackparity-1.0.0/src/sbom/adapters/builtin.py +29 -0
- stackparity-1.0.0/src/sbom/adapters/syft.py +26 -0
- stackparity-1.0.0/src/sbom/adapters/trivy.py +76 -0
- stackparity-1.0.0/src/sbom/builtin_generator.py +227 -0
- stackparity-1.0.0/src/sbom/cyclonedx_validator.py +166 -0
- stackparity-1.0.0/src/sbom/exporters.py +153 -0
- stackparity-1.0.0/src/sbom/fusion/__init__.py +5 -0
- stackparity-1.0.0/src/sbom/fusion/engine.py +315 -0
- stackparity-1.0.0/src/sbom/fusion/hashes.py +47 -0
- stackparity-1.0.0/src/sbom/fusion/ledger.py +96 -0
- stackparity-1.0.0/src/sbom/fusion/registries.py +271 -0
- stackparity-1.0.0/src/sbom/fusion/resolver.py +143 -0
- stackparity-1.0.0/src/sbom/fusion/writer.py +114 -0
- stackparity-1.0.0/src/sbom/lockfile_analyzer.py +114 -0
- stackparity-1.0.0/src/sbom/merge.py +71 -0
- stackparity-1.0.0/src/sbom/package_extractors/common.py +104 -0
- stackparity-1.0.0/src/sbom/package_extractors/manifests.py +101 -0
- stackparity-1.0.0/src/sbom/package_extractors/npm.py +206 -0
- stackparity-1.0.0/src/sbom/package_extractors/others.py +267 -0
- stackparity-1.0.0/src/sbom/package_extractors/python.py +143 -0
- stackparity-1.0.0/src/sbom/quality_analyzer.py +191 -0
- stackparity-1.0.0/src/sbom/scanner_engine.py +98 -0
- stackparity-1.0.0/src/sbom/syft_runner.py +100 -0
- stackparity-1.0.0/src/sbom/tool_locator.py +69 -0
- stackparity-1.0.0/src/sbom/trivy_runner.py +82 -0
- stackparity-1.0.0/src/stackparity/__init__.py +17 -0
- stackparity-1.0.0/src/stackparity/cli.py +30 -0
- stackparity-1.0.0/src/stackparity/dashboard_app.py +95 -0
- stackparity-1.0.0/src/stackparity/web_dist/assets/index-DRJYw2Du.css +1 -0
- stackparity-1.0.0/src/stackparity/web_dist/assets/index-Q6LLpbEi.js +495 -0
- stackparity-1.0.0/src/stackparity/web_dist/index.html +13 -0
- stackparity-1.0.0/src/stackparity/web_server.py +533 -0
- stackparity-1.0.0/src/storage/__init__.py +0 -0
- stackparity-1.0.0/src/storage/cache.py +56 -0
- stackparity-1.0.0/src/storage/database.py +295 -0
- stackparity-1.0.0/src/storage/memory.py +146 -0
- stackparity-1.0.0/src/suspicious_changes/__init__.py +12 -0
- stackparity-1.0.0/src/suspicious_changes/analyzer.py +1022 -0
- stackparity-1.0.0/src/suspicious_changes/change_correlation.py +861 -0
- stackparity-1.0.0/src/suspicious_changes/lifecycle_script_detector.py +263 -0
- stackparity-1.0.0/src/suspicious_changes/lockfile_change_detector.py +316 -0
- stackparity-1.0.0/src/suspicious_changes/manifest_diff_detector.py +251 -0
- stackparity-1.0.0/src/suspicious_changes/package_risk.py +78 -0
- stackparity-1.0.0/src/suspicious_changes/popular_packages.py +94 -0
- stackparity-1.0.0/src/suspicious_changes/registry_detector.py +354 -0
- stackparity-1.0.0/src/suspicious_changes/suspicious_models.py +57 -0
- stackparity-1.0.0/src/suspicious_changes/typosquatting_detector.py +298 -0
- stackparity-1.0.0/src/tools/__init__.py +1 -0
- stackparity-1.0.0/src/tools/builtin.py +93 -0
- stackparity-1.0.0/src/tools/registry.py +66 -0
- stackparity-1.0.0/src/ui/__init__.py +0 -0
- stackparity-1.0.0/src/ui/components/__init__.py +0 -0
- stackparity-1.0.0/src/ui/components/common.py +238 -0
- stackparity-1.0.0/src/ui/components/live_progress.py +157 -0
- stackparity-1.0.0/src/ui/components/memory_panel.py +82 -0
- stackparity-1.0.0/src/ui/pages/__init__.py +0 -0
- stackparity-1.0.0/src/ui/pages/agents_page.py +76 -0
- stackparity-1.0.0/src/ui/pages/architecture_page.py +44 -0
- stackparity-1.0.0/src/ui/pages/fixes_page.py +98 -0
- stackparity-1.0.0/src/ui/pages/graph_page.py +203 -0
- stackparity-1.0.0/src/ui/pages/health_page.py +117 -0
- stackparity-1.0.0/src/ui/pages/monitor_page.py +67 -0
- stackparity-1.0.0/src/ui/pages/pipeline_page.py +219 -0
- stackparity-1.0.0/src/ui/pages/remediation_page.py +409 -0
- stackparity-1.0.0/src/ui/pages/reports_page.py +54 -0
- stackparity-1.0.0/src/ui/pages/sbom_page.py +210 -0
- stackparity-1.0.0/src/ui/pages/scan_page.py +131 -0
- stackparity-1.0.0/src/ui/pages/suspicious_page.py +551 -0
- stackparity-1.0.0/src/ui/pages/vulns_page.py +201 -0
- stackparity-1.0.0/src/ui/state.py +116 -0
- stackparity-1.0.0/src/ui/theme.py +201 -0
- stackparity-1.0.0/src/ui/visualizations/__init__.py +0 -0
- stackparity-1.0.0/src/ui/visualizations/graphs.py +373 -0
- stackparity-1.0.0/src/vulnerability/__init__.py +0 -0
- stackparity-1.0.0/src/vulnerability/cvss.py +58 -0
- stackparity-1.0.0/src/vulnerability/kev_client.py +47 -0
- stackparity-1.0.0/src/vulnerability/nvd_client.py +74 -0
- stackparity-1.0.0/src/vulnerability/osv_client.py +139 -0
- stackparity-1.0.0/src/vulnerability/remediation_engine.py +50 -0
- stackparity-1.0.0/src/vulnerability/verification.py +94 -0
- stackparity-1.0.0/src/vulnerability/version_matcher.py +299 -0
- stackparity-1.0.0/src/vulnerability/vulnerability_correlator.py +303 -0
- stackparity-1.0.0/src/vulnerability/vulnerability_models.py +64 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# StackParity local configuration, credentials, runtime data, and generated files
|
|
2
|
+
|
|
3
|
+
# Secrets and local configuration
|
|
4
|
+
.env
|
|
5
|
+
.env.*
|
|
6
|
+
.envrc
|
|
7
|
+
.envrc.*
|
|
8
|
+
*.env
|
|
9
|
+
*.env.*
|
|
10
|
+
!/.env.example
|
|
11
|
+
*.pem
|
|
12
|
+
*.key
|
|
13
|
+
*.p12
|
|
14
|
+
*.pfx
|
|
15
|
+
credentials*.json
|
|
16
|
+
scanner.toml
|
|
17
|
+
stackparity.toml
|
|
18
|
+
.streamlit/secrets.toml
|
|
19
|
+
|
|
20
|
+
# Application state and runtime data (scan databases, clones, generated SBOMs, graphs, reports, patches)
|
|
21
|
+
.stackparity/
|
|
22
|
+
.sc-guardian/
|
|
23
|
+
.workspaces/
|
|
24
|
+
data/
|
|
25
|
+
artifacts/
|
|
26
|
+
*.db
|
|
27
|
+
*.sqlite
|
|
28
|
+
*.sqlite3
|
|
29
|
+
|
|
30
|
+
# Build output (the dashboard assets are compiled from frontend/ by `npm run build`)
|
|
31
|
+
dist/
|
|
32
|
+
build/
|
|
33
|
+
*.egg-info/
|
|
34
|
+
src/stackparity/web_dist/
|
|
35
|
+
frontend/dist/
|
|
36
|
+
frontend/.vite/
|
|
37
|
+
frontend/test-results/
|
|
38
|
+
*.tsbuildinfo
|
|
39
|
+
|
|
40
|
+
# Python caches and virtual environments
|
|
41
|
+
__pycache__/
|
|
42
|
+
*.py[cod]
|
|
43
|
+
.pytest_cache/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
htmlcov/
|
|
47
|
+
.mypy_cache/
|
|
48
|
+
.ruff_cache/
|
|
49
|
+
.venv/
|
|
50
|
+
venv/
|
|
51
|
+
|
|
52
|
+
# Node
|
|
53
|
+
node_modules/
|
|
54
|
+
|
|
55
|
+
# IDE & OS
|
|
56
|
+
.idea/
|
|
57
|
+
.vscode/
|
|
58
|
+
.DS_Store
|
|
59
|
+
Thumbs.db
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: stackparity
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: CLI-first, local-first software supply-chain security platform with reviewed remediation and an optional localhost dashboard.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Surya-Hariharan/Stack-Parity
|
|
6
|
+
Project-URL: Repository, https://github.com/Surya-Hariharan/Stack-Parity
|
|
7
|
+
Author: StackParity Contributors
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: cli,cve,cyclonedx,iac,sast,sbom,security,stackparity,supply-chain
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Information Technology
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Topic :: Security
|
|
23
|
+
Requires-Python: >=3.11
|
|
24
|
+
Requires-Dist: jsonschema<5,>=4.21
|
|
25
|
+
Requires-Dist: langgraph-checkpoint-sqlite<4,>=3.0
|
|
26
|
+
Requires-Dist: langgraph<2,>=1.0
|
|
27
|
+
Requires-Dist: networkx<4,>=3.2
|
|
28
|
+
Requires-Dist: packaging>=24.0
|
|
29
|
+
Requires-Dist: pydantic<3,>=2.6
|
|
30
|
+
Requires-Dist: python-dotenv<2,>=1.0
|
|
31
|
+
Requires-Dist: pyyaml<7,>=6.0
|
|
32
|
+
Requires-Dist: rapidfuzz<4,>=3.6
|
|
33
|
+
Requires-Dist: requests<3,>=2.31
|
|
34
|
+
Requires-Dist: rich<16,>=13.7
|
|
35
|
+
Requires-Dist: starlette<2,>=1.3.1
|
|
36
|
+
Requires-Dist: typer<1,>=0.12
|
|
37
|
+
Requires-Dist: uvicorn[standard]<1,>=0.30
|
|
38
|
+
Provides-Extra: all
|
|
39
|
+
Requires-Dist: pandas<4,>=2.2; extra == 'all'
|
|
40
|
+
Requires-Dist: reportlab<5,>=4.0; extra == 'all'
|
|
41
|
+
Requires-Dist: streamlit<2,>=1.40; extra == 'all'
|
|
42
|
+
Provides-Extra: dashboard
|
|
43
|
+
Provides-Extra: dev
|
|
44
|
+
Requires-Dist: hatchling>=1.25; extra == 'dev'
|
|
45
|
+
Requires-Dist: httpx<1,>=0.27; extra == 'dev'
|
|
46
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
47
|
+
Provides-Extra: legacy-dashboard
|
|
48
|
+
Requires-Dist: pandas<4,>=2.2; extra == 'legacy-dashboard'
|
|
49
|
+
Requires-Dist: reportlab<5,>=4.0; extra == 'legacy-dashboard'
|
|
50
|
+
Requires-Dist: streamlit<2,>=1.40; extra == 'legacy-dashboard'
|
|
51
|
+
Provides-Extra: reports
|
|
52
|
+
Requires-Dist: reportlab<5,>=4.0; extra == 'reports'
|
|
53
|
+
Description-Content-Type: text/markdown
|
|
54
|
+
|
|
55
|
+
# StackParity
|
|
56
|
+
|
|
57
|
+
StackParity is a local-first software supply-chain security tool. It inventories dependencies, correlates known vulnerabilities, detects selected non-CVE risks, and helps you review and validate remediations before applying them or opening a pull request.
|
|
58
|
+
|
|
59
|
+
Scans are read-only. Remediations require explicit approval, and pull requests are never merged automatically.
|
|
60
|
+
|
|
61
|
+
## Capabilities
|
|
62
|
+
|
|
63
|
+
- Generates and validates CycloneDX software bills of materials (SBOMs).
|
|
64
|
+
- Builds dependency graphs and identifies known vulnerabilities using OSV; deep scans can also consult NVD, CISA KEV, and package registries.
|
|
65
|
+
- Detects selected non-CVE risks, including suspicious dependency changes, source-code patterns, and infrastructure or CI configuration issues.
|
|
66
|
+
- Reports analysis coverage and limitations, so skipped or incomplete checks are not presented as clean results.
|
|
67
|
+
- Proposes dependency and source/configuration changes with evidence, compatibility notes, and reviewable diffs.
|
|
68
|
+
- Validates approved changes in a temporary Git worktree. Writing changes to your checkout and publishing a pull request each require explicit authorization.
|
|
69
|
+
- Provides a CLI and an optional dashboard that use the same scan and remediation records.
|
|
70
|
+
|
|
71
|
+
Coverage varies by ecosystem and input files. Check the [support matrix](docs/public/support-matrix.md) before relying on a particular analysis.
|
|
72
|
+
|
|
73
|
+
## Requirements
|
|
74
|
+
|
|
75
|
+
- Python 3.11 or later.
|
|
76
|
+
- Git for cloning repositories and applying fixes through a temporary worktree. A plain folder can be scanned without Git.
|
|
77
|
+
- Node.js and npm are only needed to build the dashboard from source.
|
|
78
|
+
- Optional: Docker to run project tests during remediation validation.
|
|
79
|
+
- Optional: GitHub CLI (`gh`) to publish pull requests.
|
|
80
|
+
- Optional scanners and integrations, such as Syft, Trivy, or Semgrep, can extend analysis; they are not required for the built-in scan workflow.
|
|
81
|
+
|
|
82
|
+
## Installation
|
|
83
|
+
|
|
84
|
+
When a StackParity release is available from your configured Python package index, install it with an isolated tool installer:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pipx install stackparity
|
|
88
|
+
# or
|
|
89
|
+
uv tool install stackparity
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The installer resolves the Python dependencies declared in the wheel, including the dashboard server. The wheel also contains the compiled frontend.
|
|
93
|
+
|
|
94
|
+
In a new PowerShell window, verify that the command is on PATH and reports the installed version:
|
|
95
|
+
|
|
96
|
+
```powershell
|
|
97
|
+
where.exe stackparity
|
|
98
|
+
stackparity --version
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`where.exe` lists the executable path. PowerShell uses `where` as an alias for `Where-Object`. On macOS and Linux, use `command -v stackparity`. If PowerShell cannot find a pipx install, run `pipx ensurepath` and open a new terminal.
|
|
102
|
+
|
|
103
|
+
For development from a source checkout:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
python -m venv .venv
|
|
107
|
+
# Windows PowerShell:
|
|
108
|
+
.\.venv\Scripts\Activate.ps1
|
|
109
|
+
# macOS/Linux:
|
|
110
|
+
# source .venv/bin/activate
|
|
111
|
+
|
|
112
|
+
python -m pip install --upgrade pip
|
|
113
|
+
npm --prefix frontend ci
|
|
114
|
+
npm --prefix frontend run build
|
|
115
|
+
python -m pip install ".[dev]"
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The npm commands build the browser dashboard assets before packaging the source checkout. Published packages bundle those assets and the dashboard server. For development and test conventions, see [Contributing](CONTRIBUTING.md).
|
|
119
|
+
|
|
120
|
+
## Quick start
|
|
121
|
+
|
|
122
|
+
Run the guided workflow from any terminal:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
stackparity run "/path/to/project"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
StackParity scans the directory, presents fix candidates, and validates approved changes in a temporary Git worktree. Confirm the final diff to write the fixes to your checkout. After the summary, answer **Yes** to view the saved results at a localhost URL, or **No** to exit. Local application requires a Git repository with at least one commit. Omit the path to scan the current directory.
|
|
129
|
+
|
|
130
|
+
Run individual steps from the repository you want to inspect:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
stackparity doctor
|
|
134
|
+
stackparity scan
|
|
135
|
+
stackparity findings --severity critical,high
|
|
136
|
+
stackparity inspect VULN-001
|
|
137
|
+
stackparity fix --interactive
|
|
138
|
+
stackparity fix --apply
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
`fix --interactive` records your decisions. `fix --apply` validates approved changes in an isolated worktree; it does not modify your checkout. To apply validated changes to your checkout, use:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
stackparity fix --apply --to-working-tree
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Opening a pull request is a separate, explicitly authorized operation:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
stackparity pr
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
StackParity uses your Git configuration and GitHub CLI authentication for publishing. It displays the proposed PR and asks before pushing and opening it. It never merges.
|
|
154
|
+
|
|
155
|
+
For command-specific options, see the [CLI reference](docs/public/cli-reference.md).
|
|
156
|
+
|
|
157
|
+
## Scanning modes and data
|
|
158
|
+
|
|
159
|
+
- `stackparity scan --deep` enables additional advisory and registry lookups and always performs a fresh scan.
|
|
160
|
+
- `stackparity scan --offline` disables network access. Vulnerability sources that were not queried are reported as **not assessed**, not as having no vulnerabilities.
|
|
161
|
+
- `stackparity scan --no-ai` disables optional LLM reasoning; AI is off by default. `--ai` requires a configured provider key.
|
|
162
|
+
- Scan results, reports, SBOMs, and temporary workspaces are stored under `~/.stackparity` by default. Set `STACKPARITY_HOME` to use another application directory.
|
|
163
|
+
|
|
164
|
+
Online checks may send package names and versions to the selected advisory or registry services. Enabling AI may send relevant finding context to the configured model provider. Review the [security model and AI notes](docs/public/security-and-ai.md) before enabling network services or AI for sensitive repositories.
|
|
165
|
+
|
|
166
|
+
## CI
|
|
167
|
+
|
|
168
|
+
Use non-interactive mode for automation. A missing prompt response is never treated as approval:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
stackparity scan --non-interactive --policy default --require-complete \
|
|
172
|
+
--format sarif --out stackparity.sarif
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
| Exit code | Meaning |
|
|
176
|
+
|---|---|
|
|
177
|
+
| `0` | Scan completed and the policy gate passed. |
|
|
178
|
+
| `1` | Policy gate failed, validation failed, or there was nothing approved to publish. |
|
|
179
|
+
| `2` | Usage, configuration, or execution error; or incomplete coverage with `--require-complete`. |
|
|
180
|
+
| `130` | Interrupted. |
|
|
181
|
+
|
|
182
|
+
## Dashboard
|
|
183
|
+
|
|
184
|
+
Open the dashboard for a saved scan:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
stackparity dashboard
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
The dashboard binds to `127.0.0.1` and uses the same scan and approval records as the CLI. Keep the application data directory private; it may contain findings, reports, and source excerpts. Do not expose the dashboard to an untrusted network.
|
|
191
|
+
|
|
192
|
+
## Documentation
|
|
193
|
+
|
|
194
|
+
- [CLI reference](docs/public/cli-reference.md)
|
|
195
|
+
- [Configuration](docs/public/configuration.md)
|
|
196
|
+
- [Architecture](docs/public/architecture.md)
|
|
197
|
+
- [Supported ecosystems](docs/public/support-matrix.md)
|
|
198
|
+
- [Remediation and pull requests](docs/public/remediation-and-prs.md)
|
|
199
|
+
- [Security model and responsible AI](docs/public/security-and-ai.md)
|
|
200
|
+
- [Non-CVE detection](docs/public/non-cve-detection.md)
|
|
201
|
+
- [Scanners and plugins](docs/public/plugins.md)
|
|
202
|
+
- [API and data contracts](docs/public/api-contracts.md)
|
|
203
|
+
|
|
204
|
+
For vulnerability reporting instructions, see [SECURITY.md](SECURITY.md).
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# StackParity
|
|
2
|
+
|
|
3
|
+
StackParity is a local-first software supply-chain security tool. It inventories dependencies, correlates known vulnerabilities, detects selected non-CVE risks, and helps you review and validate remediations before applying them or opening a pull request.
|
|
4
|
+
|
|
5
|
+
Scans are read-only. Remediations require explicit approval, and pull requests are never merged automatically.
|
|
6
|
+
|
|
7
|
+
## Capabilities
|
|
8
|
+
|
|
9
|
+
- Generates and validates CycloneDX software bills of materials (SBOMs).
|
|
10
|
+
- Builds dependency graphs and identifies known vulnerabilities using OSV; deep scans can also consult NVD, CISA KEV, and package registries.
|
|
11
|
+
- Detects selected non-CVE risks, including suspicious dependency changes, source-code patterns, and infrastructure or CI configuration issues.
|
|
12
|
+
- Reports analysis coverage and limitations, so skipped or incomplete checks are not presented as clean results.
|
|
13
|
+
- Proposes dependency and source/configuration changes with evidence, compatibility notes, and reviewable diffs.
|
|
14
|
+
- Validates approved changes in a temporary Git worktree. Writing changes to your checkout and publishing a pull request each require explicit authorization.
|
|
15
|
+
- Provides a CLI and an optional dashboard that use the same scan and remediation records.
|
|
16
|
+
|
|
17
|
+
Coverage varies by ecosystem and input files. Check the [support matrix](docs/public/support-matrix.md) before relying on a particular analysis.
|
|
18
|
+
|
|
19
|
+
## Requirements
|
|
20
|
+
|
|
21
|
+
- Python 3.11 or later.
|
|
22
|
+
- Git for cloning repositories and applying fixes through a temporary worktree. A plain folder can be scanned without Git.
|
|
23
|
+
- Node.js and npm are only needed to build the dashboard from source.
|
|
24
|
+
- Optional: Docker to run project tests during remediation validation.
|
|
25
|
+
- Optional: GitHub CLI (`gh`) to publish pull requests.
|
|
26
|
+
- Optional scanners and integrations, such as Syft, Trivy, or Semgrep, can extend analysis; they are not required for the built-in scan workflow.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
When a StackParity release is available from your configured Python package index, install it with an isolated tool installer:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pipx install stackparity
|
|
34
|
+
# or
|
|
35
|
+
uv tool install stackparity
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The installer resolves the Python dependencies declared in the wheel, including the dashboard server. The wheel also contains the compiled frontend.
|
|
39
|
+
|
|
40
|
+
In a new PowerShell window, verify that the command is on PATH and reports the installed version:
|
|
41
|
+
|
|
42
|
+
```powershell
|
|
43
|
+
where.exe stackparity
|
|
44
|
+
stackparity --version
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`where.exe` lists the executable path. PowerShell uses `where` as an alias for `Where-Object`. On macOS and Linux, use `command -v stackparity`. If PowerShell cannot find a pipx install, run `pipx ensurepath` and open a new terminal.
|
|
48
|
+
|
|
49
|
+
For development from a source checkout:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
python -m venv .venv
|
|
53
|
+
# Windows PowerShell:
|
|
54
|
+
.\.venv\Scripts\Activate.ps1
|
|
55
|
+
# macOS/Linux:
|
|
56
|
+
# source .venv/bin/activate
|
|
57
|
+
|
|
58
|
+
python -m pip install --upgrade pip
|
|
59
|
+
npm --prefix frontend ci
|
|
60
|
+
npm --prefix frontend run build
|
|
61
|
+
python -m pip install ".[dev]"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The npm commands build the browser dashboard assets before packaging the source checkout. Published packages bundle those assets and the dashboard server. For development and test conventions, see [Contributing](CONTRIBUTING.md).
|
|
65
|
+
|
|
66
|
+
## Quick start
|
|
67
|
+
|
|
68
|
+
Run the guided workflow from any terminal:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
stackparity run "/path/to/project"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
StackParity scans the directory, presents fix candidates, and validates approved changes in a temporary Git worktree. Confirm the final diff to write the fixes to your checkout. After the summary, answer **Yes** to view the saved results at a localhost URL, or **No** to exit. Local application requires a Git repository with at least one commit. Omit the path to scan the current directory.
|
|
75
|
+
|
|
76
|
+
Run individual steps from the repository you want to inspect:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
stackparity doctor
|
|
80
|
+
stackparity scan
|
|
81
|
+
stackparity findings --severity critical,high
|
|
82
|
+
stackparity inspect VULN-001
|
|
83
|
+
stackparity fix --interactive
|
|
84
|
+
stackparity fix --apply
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
`fix --interactive` records your decisions. `fix --apply` validates approved changes in an isolated worktree; it does not modify your checkout. To apply validated changes to your checkout, use:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
stackparity fix --apply --to-working-tree
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Opening a pull request is a separate, explicitly authorized operation:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
stackparity pr
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
StackParity uses your Git configuration and GitHub CLI authentication for publishing. It displays the proposed PR and asks before pushing and opening it. It never merges.
|
|
100
|
+
|
|
101
|
+
For command-specific options, see the [CLI reference](docs/public/cli-reference.md).
|
|
102
|
+
|
|
103
|
+
## Scanning modes and data
|
|
104
|
+
|
|
105
|
+
- `stackparity scan --deep` enables additional advisory and registry lookups and always performs a fresh scan.
|
|
106
|
+
- `stackparity scan --offline` disables network access. Vulnerability sources that were not queried are reported as **not assessed**, not as having no vulnerabilities.
|
|
107
|
+
- `stackparity scan --no-ai` disables optional LLM reasoning; AI is off by default. `--ai` requires a configured provider key.
|
|
108
|
+
- Scan results, reports, SBOMs, and temporary workspaces are stored under `~/.stackparity` by default. Set `STACKPARITY_HOME` to use another application directory.
|
|
109
|
+
|
|
110
|
+
Online checks may send package names and versions to the selected advisory or registry services. Enabling AI may send relevant finding context to the configured model provider. Review the [security model and AI notes](docs/public/security-and-ai.md) before enabling network services or AI for sensitive repositories.
|
|
111
|
+
|
|
112
|
+
## CI
|
|
113
|
+
|
|
114
|
+
Use non-interactive mode for automation. A missing prompt response is never treated as approval:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
stackparity scan --non-interactive --policy default --require-complete \
|
|
118
|
+
--format sarif --out stackparity.sarif
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
| Exit code | Meaning |
|
|
122
|
+
|---|---|
|
|
123
|
+
| `0` | Scan completed and the policy gate passed. |
|
|
124
|
+
| `1` | Policy gate failed, validation failed, or there was nothing approved to publish. |
|
|
125
|
+
| `2` | Usage, configuration, or execution error; or incomplete coverage with `--require-complete`. |
|
|
126
|
+
| `130` | Interrupted. |
|
|
127
|
+
|
|
128
|
+
## Dashboard
|
|
129
|
+
|
|
130
|
+
Open the dashboard for a saved scan:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
stackparity dashboard
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The dashboard binds to `127.0.0.1` and uses the same scan and approval records as the CLI. Keep the application data directory private; it may contain findings, reports, and source excerpts. Do not expose the dashboard to an untrusted network.
|
|
137
|
+
|
|
138
|
+
## Documentation
|
|
139
|
+
|
|
140
|
+
- [CLI reference](docs/public/cli-reference.md)
|
|
141
|
+
- [Configuration](docs/public/configuration.md)
|
|
142
|
+
- [Architecture](docs/public/architecture.md)
|
|
143
|
+
- [Supported ecosystems](docs/public/support-matrix.md)
|
|
144
|
+
- [Remediation and pull requests](docs/public/remediation-and-prs.md)
|
|
145
|
+
- [Security model and responsible AI](docs/public/security-and-ai.md)
|
|
146
|
+
- [Non-CVE detection](docs/public/non-cve-detection.md)
|
|
147
|
+
- [Scanners and plugins](docs/public/plugins.md)
|
|
148
|
+
- [API and data contracts](docs/public/api-contracts.md)
|
|
149
|
+
|
|
150
|
+
For vulnerability reporting instructions, see [SECURITY.md](SECURITY.md).
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
The StackParity maintainers welcome reports of security vulnerabilities in the project. Please report suspected vulnerabilities privately so they can be investigated and, where appropriate, fixed before public disclosure.
|
|
4
|
+
|
|
5
|
+
## Supported versions
|
|
6
|
+
|
|
7
|
+
Security fixes are developed for the latest release. Older releases may not receive backported fixes; upgrade to the latest available release before reporting an issue when practical.
|
|
8
|
+
|
|
9
|
+
## Reporting a vulnerability
|
|
10
|
+
|
|
11
|
+
If GitHub private vulnerability reporting is enabled for this repository, use **Security → Report a vulnerability** to submit a private report. Do not disclose vulnerability details in a public issue, pull request, discussion, or commit.
|
|
12
|
+
|
|
13
|
+
If private reporting is unavailable, contact the repository maintainers through a private channel listed on the repository's GitHub profile. You can first ask for a private reporting channel without sharing exploit details.
|
|
14
|
+
|
|
15
|
+
Please include, where possible:
|
|
16
|
+
|
|
17
|
+
- The affected StackParity version, operating system, and Python version.
|
|
18
|
+
- The relevant command, configuration, or feature.
|
|
19
|
+
- A concise description of the security impact and conditions required to reproduce it.
|
|
20
|
+
- Minimal reproduction steps or a proof of concept that does not access another person's data or systems.
|
|
21
|
+
- Any relevant logs with secrets, personal information, and private repository content removed.
|
|
22
|
+
|
|
23
|
+
We will acknowledge reports as soon as practical, investigate their impact, and coordinate remediation and disclosure with the reporter. Please allow maintainers a reasonable opportunity to address a confirmed issue before making it public.
|
|
24
|
+
|
|
25
|
+
## Security considerations
|
|
26
|
+
|
|
27
|
+
StackParity scans repositories and scanner output as untrusted input. A scan is intended to analyze files and metadata; it does not run code from the scanned project. Optional scanners and installed plugins are separate executable components and run with the permissions of the StackParity process. Install only tools and plugins you trust.
|
|
28
|
+
|
|
29
|
+
Network access depends on the selected scan mode and integrations. Online advisory and registry checks may disclose package names and versions to those services. Optional AI analysis is disabled by default; enabling it can send relevant finding context to the configured model provider. Review the provider's data-handling terms before using AI with sensitive repositories. Use `--offline --no-ai` when you need to avoid those network integrations.
|
|
30
|
+
|
|
31
|
+
Remediation validation does not run project tests unless you explicitly request `--run-tests`. When requested, tests run in a Docker container with network access isolated by default. Applying validated changes to your checkout and publishing a pull request are separate actions that require explicit authorization; StackParity does not merge pull requests.
|
|
32
|
+
|
|
33
|
+
The optional dashboard binds to `127.0.0.1`. Do not expose it to an untrusted network. Treat the application home (by default `~/.stackparity`) and generated reports as sensitive: they can contain scan results and source excerpts. Protect them with appropriate local access controls, and do not include databases, credentials, or private source in public bug reports.
|
|
34
|
+
|
|
35
|
+
StackParity is an analysis aid, not a guarantee that a repository is free of vulnerabilities. Results depend on supported ecosystems, available data sources, and scan coverage. Review reported limitations and validate findings before making security decisions.
|