ventra 0.0.0.post26__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.
- ventra-0.0.0.post26/.env +3 -0
- ventra-0.0.0.post26/.github/ISSUE_TEMPLATE/bug_report.md +24 -0
- ventra-0.0.0.post26/.github/ISSUE_TEMPLATE/collector_request.md +24 -0
- ventra-0.0.0.post26/.github/PULL_REQUEST_TEMPLATE.md +24 -0
- ventra-0.0.0.post26/.github/workflows/ci.yml +80 -0
- ventra-0.0.0.post26/.github/workflows/publish.yml +71 -0
- ventra-0.0.0.post26/.gitignore +44 -0
- ventra-0.0.0.post26/CHANGELOG.md +24 -0
- ventra-0.0.0.post26/CODE_OF_CONDUCT.md +10 -0
- ventra-0.0.0.post26/CONTRIBUTING.md +78 -0
- ventra-0.0.0.post26/LICENSE +202 -0
- ventra-0.0.0.post26/Makefile +66 -0
- ventra-0.0.0.post26/PKG-INFO +181 -0
- ventra-0.0.0.post26/README.md +145 -0
- ventra-0.0.0.post26/RELEASING.md +79 -0
- ventra-0.0.0.post26/ROADMAP.md +22 -0
- ventra-0.0.0.post26/SECURITY.md +43 -0
- ventra-0.0.0.post26/bin/aws_cloudshell.sh +34 -0
- ventra-0.0.0.post26/bin/install-cloudshell.sh +143 -0
- ventra-0.0.0.post26/bin/verify_signature.sh +17 -0
- ventra-0.0.0.post26/collector/__init__.py +23 -0
- ventra-0.0.0.post26/collector/__main__.py +48 -0
- ventra-0.0.0.post26/collector/aws/__init__.py +5 -0
- ventra-0.0.0.post26/collector/aws/client_factory.py +183 -0
- ventra-0.0.0.post26/collector/aws/common/__init__.py +1 -0
- ventra-0.0.0.post26/collector/aws/common/cw_logs.py +70 -0
- ventra-0.0.0.post26/collector/aws/common/s3_logs.py +130 -0
- ventra-0.0.0.post26/collector/aws/control_plane/cloudtrail.py +641 -0
- ventra-0.0.0.post26/collector/aws/control_plane/cloudtrail_s3.py +338 -0
- ventra-0.0.0.post26/collector/aws/control_plane/cloudtrail_validation.py +215 -0
- ventra-0.0.0.post26/collector/aws/control_plane/config.py +96 -0
- ventra-0.0.0.post26/collector/aws/control_plane/log_posture.py +344 -0
- ventra-0.0.0.post26/collector/aws/detections/detective.py +102 -0
- ventra-0.0.0.post26/collector/aws/detections/guardduty.py +116 -0
- ventra-0.0.0.post26/collector/aws/detections/inspector2.py +106 -0
- ventra-0.0.0.post26/collector/aws/detections/macie.py +103 -0
- ventra-0.0.0.post26/collector/aws/detections/securityhub.py +101 -0
- ventra-0.0.0.post26/collector/aws/identity/account.py +71 -0
- ventra-0.0.0.post26/collector/aws/identity/iam.py +386 -0
- ventra-0.0.0.post26/collector/aws/identity/kms.py +74 -0
- ventra-0.0.0.post26/collector/aws/identity/secrets.py +56 -0
- ventra-0.0.0.post26/collector/aws/network/cloudfront.py +205 -0
- ventra-0.0.0.post26/collector/aws/network/elb_alb.py +232 -0
- ventra-0.0.0.post26/collector/aws/network/route53_resolver.py +246 -0
- ventra-0.0.0.post26/collector/aws/network/vpc_flow.py +176 -0
- ventra-0.0.0.post26/collector/aws/network/waf.py +144 -0
- ventra-0.0.0.post26/collector/aws/registry.py +73 -0
- ventra-0.0.0.post26/collector/aws/runner/runner.py +232 -0
- ventra-0.0.0.post26/collector/aws/workloads/ec2.py +217 -0
- ventra-0.0.0.post26/collector/aws/workloads/eks_audit.py +179 -0
- ventra-0.0.0.post26/collector/aws/workloads/lambda_.py +75 -0
- ventra-0.0.0.post26/collector/aws/workloads/s3.py +112 -0
- ventra-0.0.0.post26/collector/aws/workloads/s3_access.py +197 -0
- ventra-0.0.0.post26/collector/azure/__init__.py +17 -0
- ventra-0.0.0.post26/collector/cli.py +664 -0
- ventra-0.0.0.post26/collector/devgui.py +353 -0
- ventra-0.0.0.post26/collector/gcp/__init__.py +17 -0
- ventra-0.0.0.post26/collector/lib/__init__.py +1 -0
- ventra-0.0.0.post26/collector/lib/base.py +168 -0
- ventra-0.0.0.post26/collector/lib/chain_of_custody/__init__.py +6 -0
- ventra-0.0.0.post26/collector/lib/chain_of_custody/hashing.py +21 -0
- ventra-0.0.0.post26/collector/lib/chain_of_custody/signing.py +67 -0
- ventra-0.0.0.post26/collector/lib/ingest.py +60 -0
- ventra-0.0.0.post26/collector/lib/models.py +233 -0
- ventra-0.0.0.post26/collector/lib/packaging/__init__.py +5 -0
- ventra-0.0.0.post26/collector/lib/packaging/packager.py +77 -0
- ventra-0.0.0.post26/collector/lib/transport/__init__.py +5 -0
- ventra-0.0.0.post26/collector/lib/transport/base.py +90 -0
- ventra-0.0.0.post26/collector/tools/__init__.py +1 -0
- ventra-0.0.0.post26/collector/tools/verify_readonly.py +66 -0
- ventra-0.0.0.post26/console/README.md +52 -0
- ventra-0.0.0.post26/console/backend/README.md +45 -0
- ventra-0.0.0.post26/console/backend/app/__init__.py +8 -0
- ventra-0.0.0.post26/console/backend/app/config.py +26 -0
- ventra-0.0.0.post26/console/backend/app/main.py +315 -0
- ventra-0.0.0.post26/console/backend/app/rbac/__init__.py +54 -0
- ventra-0.0.0.post26/console/backend/app/store.py +631 -0
- ventra-0.0.0.post26/console/backend/pyproject.toml +33 -0
- ventra-0.0.0.post26/console/frontend/.eslintrc.json +3 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/cloudtrail/page.tsx +271 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/collection/page.tsx +186 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/identity/page.tsx +108 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/layout.tsx +76 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/network/page.tsx +144 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/overview/page.tsx +183 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/page.tsx +5 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/report/page.tsx +117 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/resources/page.tsx +89 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/search/page.tsx +190 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/settings/page.tsx +121 -0
- ventra-0.0.0.post26/console/frontend/app/cases/[caseId]/timeline/page.tsx +134 -0
- ventra-0.0.0.post26/console/frontend/app/cases/page.tsx +263 -0
- ventra-0.0.0.post26/console/frontend/app/globals.css +906 -0
- ventra-0.0.0.post26/console/frontend/app/layout.tsx +19 -0
- ventra-0.0.0.post26/console/frontend/app/page.tsx +6 -0
- ventra-0.0.0.post26/console/frontend/app/providers.tsx +74 -0
- ventra-0.0.0.post26/console/frontend/components/badges.tsx +55 -0
- ventra-0.0.0.post26/console/frontend/components/case-context.tsx +21 -0
- ventra-0.0.0.post26/console/frontend/components/charts.tsx +142 -0
- ventra-0.0.0.post26/console/frontend/components/cloud-provider-icon.tsx +96 -0
- ventra-0.0.0.post26/console/frontend/components/cloudtrail-collection-summary.tsx +442 -0
- ventra-0.0.0.post26/console/frontend/components/cloudtrail-drawer.tsx +83 -0
- ventra-0.0.0.post26/console/frontend/components/cloudtrail-table.tsx +205 -0
- ventra-0.0.0.post26/console/frontend/components/cloudtrail-toolbar.tsx +240 -0
- ventra-0.0.0.post26/console/frontend/components/context-drawer.tsx +171 -0
- ventra-0.0.0.post26/console/frontend/components/events-table.tsx +258 -0
- ventra-0.0.0.post26/console/frontend/components/filter-rail.tsx +179 -0
- ventra-0.0.0.post26/console/frontend/components/findings-table.tsx +215 -0
- ventra-0.0.0.post26/console/frontend/components/findings-toolbar.tsx +90 -0
- ventra-0.0.0.post26/console/frontend/components/graph.tsx +114 -0
- ventra-0.0.0.post26/console/frontend/components/iam-policy-drawer.tsx +145 -0
- ventra-0.0.0.post26/console/frontend/components/identity-principal.tsx +63 -0
- ventra-0.0.0.post26/console/frontend/components/identity-roles-table.tsx +76 -0
- ventra-0.0.0.post26/console/frontend/components/identity-users-table.tsx +119 -0
- ventra-0.0.0.post26/console/frontend/components/import-dialog.tsx +222 -0
- ventra-0.0.0.post26/console/frontend/components/layout/back-to-cases.tsx +16 -0
- ventra-0.0.0.post26/console/frontend/components/layout/command-palette.tsx +185 -0
- ventra-0.0.0.post26/console/frontend/components/layout/sidebar.tsx +185 -0
- ventra-0.0.0.post26/console/frontend/components/layout/topbar.tsx +75 -0
- ventra-0.0.0.post26/console/frontend/components/multiselect.tsx +245 -0
- ventra-0.0.0.post26/console/frontend/components/panel-collectors.tsx +58 -0
- ventra-0.0.0.post26/console/frontend/components/panel.tsx +52 -0
- ventra-0.0.0.post26/console/frontend/components/pivot.tsx +128 -0
- ventra-0.0.0.post26/console/frontend/components/resource-inventory-table.tsx +185 -0
- ventra-0.0.0.post26/console/frontend/components/stat.tsx +43 -0
- ventra-0.0.0.post26/console/frontend/components/timeline-chart.tsx +177 -0
- ventra-0.0.0.post26/console/frontend/components/ui.tsx +214 -0
- ventra-0.0.0.post26/console/frontend/lib/api.ts +112 -0
- ventra-0.0.0.post26/console/frontend/lib/catalog.ts +110 -0
- ventra-0.0.0.post26/console/frontend/lib/cloudtrail-columns.ts +73 -0
- ventra-0.0.0.post26/console/frontend/lib/cloudtrail-json.ts +126 -0
- ventra-0.0.0.post26/console/frontend/lib/collection-coverage.ts +188 -0
- ventra-0.0.0.post26/console/frontend/lib/finding-origin.ts +64 -0
- ventra-0.0.0.post26/console/frontend/lib/format.ts +71 -0
- ventra-0.0.0.post26/console/frontend/lib/iam-policies.ts +134 -0
- ventra-0.0.0.post26/console/frontend/lib/panel-collectors.ts +90 -0
- ventra-0.0.0.post26/console/frontend/lib/resizable-columns.ts +82 -0
- ventra-0.0.0.post26/console/frontend/lib/resource-inventory-detail.ts +267 -0
- ventra-0.0.0.post26/console/frontend/lib/routes.ts +2 -0
- ventra-0.0.0.post26/console/frontend/lib/severity.ts +112 -0
- ventra-0.0.0.post26/console/frontend/lib/types.ts +252 -0
- ventra-0.0.0.post26/console/frontend/lib/useFilters.ts +88 -0
- ventra-0.0.0.post26/console/frontend/lib/usePins.ts +68 -0
- ventra-0.0.0.post26/console/frontend/lib/utils.ts +7 -0
- ventra-0.0.0.post26/console/frontend/next-env.d.ts +5 -0
- ventra-0.0.0.post26/console/frontend/next.config.js +14 -0
- ventra-0.0.0.post26/console/frontend/package-lock.json +6297 -0
- ventra-0.0.0.post26/console/frontend/package.json +34 -0
- ventra-0.0.0.post26/console/frontend/postcss.config.js +6 -0
- ventra-0.0.0.post26/console/frontend/public/logos/aws.png +0 -0
- ventra-0.0.0.post26/console/frontend/public/logos/azure.png +0 -0
- ventra-0.0.0.post26/console/frontend/public/logos/gcp.png +0 -0
- ventra-0.0.0.post26/console/frontend/tailwind.config.ts +73 -0
- ventra-0.0.0.post26/console/frontend/tsconfig.json +23 -0
- ventra-0.0.0.post26/console/frontend/tsconfig.tsbuildinfo +1 -0
- ventra-0.0.0.post26/deploy/terraform/README.md +35 -0
- ventra-0.0.0.post26/deploy/terraform/main.tf +187 -0
- ventra-0.0.0.post26/docs/architecture.md +61 -0
- ventra-0.0.0.post26/docs/evidence-package-format.md +129 -0
- ventra-0.0.0.post26/docs/iam-policies/README.md +33 -0
- ventra-0.0.0.post26/docs/iam-policies/aws-collector-readonly.json +189 -0
- ventra-0.0.0.post26/docs/keys/README.md +16 -0
- ventra-0.0.0.post26/docs/runbooks/analyst.md +73 -0
- ventra-0.0.0.post26/docs/runbooks/data-custodian.md +40 -0
- ventra-0.0.0.post26/docs/runbooks/operator.md +82 -0
- ventra-0.0.0.post26/docs/threat-coverage.md +36 -0
- ventra-0.0.0.post26/icons/Icons8 (1).zip +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-144-2.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-144-3.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-144.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-192.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-240.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-36.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-48-2.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-48-3.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-48.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-480.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-72.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-96-2.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-96-3.png +0 -0
- ventra-0.0.0.post26/icons/extracted/aws/icons8-aws-96.png +0 -0
- ventra-0.0.0.post26/icons/extracted/azure/icons8-azure-100.png +0 -0
- ventra-0.0.0.post26/icons/extracted/azure/icons8-azure-50.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-144-2.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-144-3.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-144.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-192.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-240.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-36.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-48-2.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-48-3.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-48.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-480.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-72.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-96-2.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-96-3.png +0 -0
- ventra-0.0.0.post26/icons/extracted/gcp/icons8-google-cloud-96.png +0 -0
- ventra-0.0.0.post26/icons/icons8-aws-color.zip +0 -0
- ventra-0.0.0.post26/icons/icons8-google-cloud-color.zip +0 -0
- ventra-0.0.0.post26/ingester/README.md +42 -0
- ventra-0.0.0.post26/ingester/pipelines/README.md +25 -0
- ventra-0.0.0.post26/ingester/pipelines/logstash/cloudtrail.conf +55 -0
- ventra-0.0.0.post26/ingester/pipelines/ocsf/README.md +27 -0
- ventra-0.0.0.post26/ingester/pyproject.toml +34 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/__init__.py +5 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/cli.py +92 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/enrichment/__init__.py +10 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/enrichment/enrich.py +101 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/loaders/__init__.py +5 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/loaders/casestore.py +158 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/__init__.py +12 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/base.py +103 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/inventory.py +58 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/sources/__init__.py +8 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/sources/access_logs.py +265 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/sources/cloudtrail.py +221 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/sources/dns_logs.py +54 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/sources/eks_audit.py +90 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/sources/findings.py +255 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/normalizer/sources/network.py +98 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/package.py +123 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/pipeline.py +180 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/verify/__init__.py +5 -0
- ventra-0.0.0.post26/ingester/ventra_ingester/verify/integrity.py +129 -0
- ventra-0.0.0.post26/obsidian/.obsidian/app.json +4 -0
- ventra-0.0.0.post26/obsidian/.obsidian/appearance.json +1 -0
- ventra-0.0.0.post26/obsidian/.obsidian/core-plugins.json +33 -0
- ventra-0.0.0.post26/obsidian/.obsidian/workspace.json +273 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/AWS IR Cheat Sheet (Erblind).png +0 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/All AWS Artifacts.canvas +13 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/Application Logs.md +9 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/Container Workloads Logs.md +19 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/Control Plane And Cloud Native Logs.md +20 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/Database Logs.md +9 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/EC2 & EBS Logs.md +22 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/Network And Edge Logs.md +9 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/AWS/Specific AWS Artifacts (Erblind).png +0 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/Azure/Azure Artifacts.canvas +6 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/Azure/Azure IR Cheat Sheet (Erblind).png +0 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/GCP/GCP Artifacts.canvas +6 -0
- ventra-0.0.0.post26/obsidian/Artifacts Cheat Sheet/GCP/GCP IR Cheat Sheet (Erblind).png +0 -0
- ventra-0.0.0.post26/obsidian/Collectors/AWS Collectors.md +202 -0
- ventra-0.0.0.post26/obsidian/Collectors/Azure Collectors.md +0 -0
- ventra-0.0.0.post26/obsidian/Collectors/GCP Collectors.md +0 -0
- ventra-0.0.0.post26/obsidian/Collectors/Kubernetes Collectors.md +0 -0
- ventra-0.0.0.post26/obsidian/Questions the tool should ask before collecting.md +7 -0
- ventra-0.0.0.post26/obsidian/To Do.md +14 -0
- ventra-0.0.0.post26/obsidian/Tool Testers.md +39 -0
- ventra-0.0.0.post26/pyproject.toml +76 -0
- ventra-0.0.0.post26/schemas/manifest.schema.json +175 -0
- ventra-0.0.0.post26/schemas/package.schema.json +49 -0
- ventra-0.0.0.post26/schemas/unified-event.schema.json +130 -0
- ventra-0.0.0.post26/scripts/clean-pycache.sh +12 -0
- ventra-0.0.0.post26/scripts/dev-local.sh +61 -0
- ventra-0.0.0.post26/scripts/ensure-no-pycache.sh +19 -0
- ventra-0.0.0.post26/scripts/install-git-hooks.sh +27 -0
- ventra-0.0.0.post26/scripts/live-test/README.md +86 -0
- ventra-0.0.0.post26/scripts/live-test/run-test.sh +125 -0
- ventra-0.0.0.post26/scripts/live-test/teardown.sh +64 -0
- ventra-0.0.0.post26/scripts/live-test/terraform/config.tf +74 -0
- ventra-0.0.0.post26/scripts/live-test/terraform/main.tf +325 -0
- ventra-0.0.0.post26/scripts/live-test/terraform/outputs.tf +44 -0
- ventra-0.0.0.post26/scripts/live-test/terraform/pii_sample.csv +6 -0
- ventra-0.0.0.post26/scripts/live-test/terraform/variables.tf +35 -0
- ventra-0.0.0.post26/setup.cfg +4 -0
- ventra-0.0.0.post26/tests/collector/test_cli.py +46 -0
- ventra-0.0.0.post26/tests/collector/test_cloudtrail_management.py +165 -0
- ventra-0.0.0.post26/tests/collector/test_cloudtrail_s3.py +225 -0
- ventra-0.0.0.post26/tests/collector/test_cloudtrail_validation.py +118 -0
- ventra-0.0.0.post26/tests/collector/test_end_to_end.py +97 -0
- ventra-0.0.0.post26/tests/collector/test_iam.py +155 -0
- ventra-0.0.0.post26/tests/collector/test_log_collectors.py +226 -0
- ventra-0.0.0.post26/tests/collector/test_readonly.py +37 -0
- ventra-0.0.0.post26/tests/console/test_store.py +160 -0
- ventra-0.0.0.post26/tests/fixtures/README.md +31 -0
- ventra-0.0.0.post26/tests/fixtures/case-CASE-2026-0042-123456789012-20260611T002004Z.tar.zst +0 -0
- ventra-0.0.0.post26/tests/fixtures/case-CASE-2026-0042-123456789012-20260611T002004Z.tar.zst.sha256 +1 -0
- ventra-0.0.0.post26/tests/fixtures/case-CASE-2026-0042-123456789012-20260611T034208Z.tar.zst +0 -0
- ventra-0.0.0.post26/tests/fixtures/case-CASE-2026-0042-123456789012-20260611T034208Z.tar.zst.sha256 +1 -0
- ventra-0.0.0.post26/tests/fixtures/case-CASE-2026-0042-123456789012-20260611T143849Z.tar.gz.sha256 +1 -0
- ventra-0.0.0.post26/tests/fixtures/generate_demo_case.py +650 -0
- ventra-0.0.0.post26/tests/ingester/test_access_log_normalizers.py +193 -0
- ventra-0.0.0.post26/tests/ingester/test_findings.py +61 -0
- ventra-0.0.0.post26/tests/ingester/test_pipeline.py +132 -0
- ventra-0.0.0.post26/ventra.egg-info/PKG-INFO +181 -0
- ventra-0.0.0.post26/ventra.egg-info/SOURCES.txt +288 -0
- ventra-0.0.0.post26/ventra.egg-info/dependency_links.txt +1 -0
- ventra-0.0.0.post26/ventra.egg-info/entry_points.txt +3 -0
- ventra-0.0.0.post26/ventra.egg-info/requires.txt +26 -0
- ventra-0.0.0.post26/ventra.egg-info/top_level.txt +1 -0
ventra-0.0.0.post26/.env
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Something isn't working
|
|
4
|
+
labels: bug
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
**Component:** collector / ingester / console
|
|
8
|
+
|
|
9
|
+
**What happened**
|
|
10
|
+
A clear description of the bug.
|
|
11
|
+
|
|
12
|
+
**To reproduce**
|
|
13
|
+
Steps, command line, and (sanitized) inputs.
|
|
14
|
+
|
|
15
|
+
**Expected**
|
|
16
|
+
What you expected instead.
|
|
17
|
+
|
|
18
|
+
**Environment**
|
|
19
|
+
- Ventra version:
|
|
20
|
+
- OS / runtime:
|
|
21
|
+
- Cloud (if collector): AWS / Azure / GCP
|
|
22
|
+
|
|
23
|
+
**Logs**
|
|
24
|
+
Relevant output (scrub any account IDs, ARNs, IPs, or customer data).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: New collector / source request
|
|
3
|
+
about: Propose a new artifact source for the collector + ingester
|
|
4
|
+
labels: enhancement, collector
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
**Cloud & service**
|
|
8
|
+
e.g. AWS Transit Gateway Flow Logs.
|
|
9
|
+
|
|
10
|
+
**What it tells an investigator**
|
|
11
|
+
Which of the four questions does it answer — who authenticated, what they did, what changed,
|
|
12
|
+
or data exfil? Map to an ATT&CK Cloud technique if you can.
|
|
13
|
+
|
|
14
|
+
**Read-only API actions required**
|
|
15
|
+
List the `Describe*` / `Get*` / `List*` calls. Reminder: the collector is read-only — no
|
|
16
|
+
mutating actions.
|
|
17
|
+
|
|
18
|
+
**Tier**
|
|
19
|
+
- [ ] Tier 1 (baseline, always collected)
|
|
20
|
+
- [ ] Tier 2 (strongly recommended)
|
|
21
|
+
- [ ] Tier 3 (conditional / on-demand)
|
|
22
|
+
|
|
23
|
+
**Sample record (sanitized)**
|
|
24
|
+
A scrubbed example of the source's output, to design the parser/normalizer.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Thanks for contributing to Ventra. Keep PRs focused. -->
|
|
2
|
+
|
|
3
|
+
## What & why
|
|
4
|
+
|
|
5
|
+
<!-- What does this change and why? Link any issue. -->
|
|
6
|
+
|
|
7
|
+
## Type
|
|
8
|
+
|
|
9
|
+
- [ ] Collector (acquisition)
|
|
10
|
+
- [ ] Ingester (parse / normalize / load)
|
|
11
|
+
- [ ] Console (backend / frontend)
|
|
12
|
+
- [ ] Docs / CI / infra
|
|
13
|
+
|
|
14
|
+
## Forensic-soundness checklist
|
|
15
|
+
|
|
16
|
+
- [ ] **No mutating cloud calls** added to the collector (the `readonly-guard` CI check passes).
|
|
17
|
+
- [ ] Integrity guarantees unchanged, or change reviewed by a second maintainer.
|
|
18
|
+
- [ ] No telemetry / outbound calls added to the console.
|
|
19
|
+
- [ ] No real customer data committed — fixtures are synthetic/sanitized.
|
|
20
|
+
|
|
21
|
+
## Tests
|
|
22
|
+
|
|
23
|
+
- [ ] Added/updated tests (parser round-trip, collector moto test, or console e2e).
|
|
24
|
+
- [ ] `pytest`, `ruff`, and the frontend `build` all pass locally.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
readonly-guard:
|
|
13
|
+
# The collector must never call a mutating cloud API. This gate fails the build if it does.
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0 # setuptools-scm needs history + tags to build ventra
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.11"
|
|
22
|
+
- name: Install collector
|
|
23
|
+
run: pip install .
|
|
24
|
+
- name: Guard — registered collectors are read-only
|
|
25
|
+
run: python -m collector.tools.verify_readonly --collectors
|
|
26
|
+
- name: Guard — published IAM policy is read-only
|
|
27
|
+
run: python -m collector.tools.verify_readonly docs/iam-policies/aws-collector-readonly.json
|
|
28
|
+
|
|
29
|
+
python:
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v4
|
|
33
|
+
with:
|
|
34
|
+
fetch-depth: 0 # setuptools-scm needs history + tags to build ventra
|
|
35
|
+
- uses: actions/setup-python@v5
|
|
36
|
+
with:
|
|
37
|
+
python-version: "3.11"
|
|
38
|
+
- name: Install
|
|
39
|
+
run: |
|
|
40
|
+
pip install .[dev] ./ingester[dev] ./console/backend
|
|
41
|
+
pip install ruff
|
|
42
|
+
- name: Lint
|
|
43
|
+
run: ruff check collector ingester console/backend
|
|
44
|
+
- name: Schema validation
|
|
45
|
+
run: |
|
|
46
|
+
python - <<'PY'
|
|
47
|
+
import json, pathlib
|
|
48
|
+
for p in pathlib.Path("schemas").glob("*.json"):
|
|
49
|
+
json.loads(p.read_text()) # must parse
|
|
50
|
+
print("ok", p.name)
|
|
51
|
+
PY
|
|
52
|
+
- name: Tests
|
|
53
|
+
run: python -m pytest tests/ -q
|
|
54
|
+
|
|
55
|
+
frontend:
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
defaults:
|
|
58
|
+
run:
|
|
59
|
+
working-directory: console/frontend
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@v4
|
|
62
|
+
- uses: actions/setup-node@v4
|
|
63
|
+
with:
|
|
64
|
+
node-version: "20"
|
|
65
|
+
- run: npm install --no-audit --no-fund
|
|
66
|
+
- name: Typecheck
|
|
67
|
+
run: npm run typecheck
|
|
68
|
+
- name: Build
|
|
69
|
+
run: npm run build
|
|
70
|
+
|
|
71
|
+
secret-scan:
|
|
72
|
+
runs-on: ubuntu-latest
|
|
73
|
+
steps:
|
|
74
|
+
- uses: actions/checkout@v4
|
|
75
|
+
with:
|
|
76
|
+
fetch-depth: 0
|
|
77
|
+
- name: gitleaks
|
|
78
|
+
uses: gitleaks/gitleaks-action@v2
|
|
79
|
+
env:
|
|
80
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Publish Ventra to PyPI. Continuous delivery: every push to main publishes a new version, so
|
|
2
|
+
# in CloudShell `pipx install ventra` (fresh) and `pipx upgrade ventra` (existing) always fetch
|
|
3
|
+
# your latest pushed code — no tagging needed for day-to-day testing.
|
|
4
|
+
#
|
|
5
|
+
# * push to main → 0.1.1.postN published to PyPI (after tests pass)
|
|
6
|
+
# * push a tag `vX.Y.Z` → clean X.Y.Z published + a GitHub Release (milestone)
|
|
7
|
+
#
|
|
8
|
+
# Both are normal versions that `pip`/`pipx` upgrade to by default. Tags are optional and just
|
|
9
|
+
# give a tidy version number + release notes for a milestone (e.g. v1.0.0).
|
|
10
|
+
#
|
|
11
|
+
# PyPI trusted publisher (pypi.org → ventra → Publishing):
|
|
12
|
+
# Owner: Haggag-22 Repository: Ventra Workflow: publish.yml Environment: (any)
|
|
13
|
+
name: Publish
|
|
14
|
+
|
|
15
|
+
on:
|
|
16
|
+
push:
|
|
17
|
+
branches: ["main"]
|
|
18
|
+
tags: ["v*"]
|
|
19
|
+
workflow_dispatch: {}
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
test:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0 # full history + tags so setuptools-scm can resolve the version
|
|
31
|
+
- uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: "3.11"
|
|
34
|
+
- name: Install
|
|
35
|
+
run: pip install .[dev] ./ingester[dev] ./console/backend
|
|
36
|
+
- name: Read-only guard
|
|
37
|
+
run: |
|
|
38
|
+
python -m collector.tools.verify_readonly --collectors
|
|
39
|
+
python -m collector.tools.verify_readonly docs/iam-policies/aws-collector-readonly.json
|
|
40
|
+
- name: Tests
|
|
41
|
+
run: python -m pytest tests/ -q
|
|
42
|
+
|
|
43
|
+
publish:
|
|
44
|
+
needs: test
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
# No `environment:` — the PyPI trusted publisher is set to "(any)" environment, so pinning
|
|
47
|
+
# one here would only add a GitHub Environment dependency (and a possible approval gate).
|
|
48
|
+
permissions:
|
|
49
|
+
id-token: write # PyPI trusted publishing (OIDC)
|
|
50
|
+
contents: write # create the GitHub Release
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@v4
|
|
53
|
+
with:
|
|
54
|
+
fetch-depth: 0
|
|
55
|
+
- uses: actions/setup-python@v5
|
|
56
|
+
with:
|
|
57
|
+
python-version: "3.11"
|
|
58
|
+
- name: Build ventra
|
|
59
|
+
run: |
|
|
60
|
+
pip install build
|
|
61
|
+
python -m build
|
|
62
|
+
- name: Publish to PyPI
|
|
63
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
64
|
+
with:
|
|
65
|
+
skip-existing: true
|
|
66
|
+
- name: Create GitHub Release
|
|
67
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
68
|
+
uses: softprops/action-gh-release@v2
|
|
69
|
+
with:
|
|
70
|
+
generate_release_notes: true
|
|
71
|
+
files: dist/*
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
.mypy_cache/
|
|
11
|
+
.ruff_cache/
|
|
12
|
+
.pytest_cache/
|
|
13
|
+
.coverage
|
|
14
|
+
htmlcov/
|
|
15
|
+
|
|
16
|
+
# Node / Next.js
|
|
17
|
+
node_modules/
|
|
18
|
+
.next/
|
|
19
|
+
out/
|
|
20
|
+
.turbo/
|
|
21
|
+
npm-debug.log*
|
|
22
|
+
yarn-error.log*
|
|
23
|
+
|
|
24
|
+
# Ventra runtime data — never commit real evidence (root store only)
|
|
25
|
+
/cases/
|
|
26
|
+
*.tar.zst
|
|
27
|
+
*.tar.gz
|
|
28
|
+
!tests/fixtures/**/*.tar.zst
|
|
29
|
+
ventra-evidence/
|
|
30
|
+
*.duckdb
|
|
31
|
+
*.parquet
|
|
32
|
+
!tests/fixtures/**/*.parquet
|
|
33
|
+
|
|
34
|
+
# Keys & secrets
|
|
35
|
+
*.pem
|
|
36
|
+
*.key
|
|
37
|
+
!docs/keys/*.pub
|
|
38
|
+
|
|
39
|
+
# OS / editor
|
|
40
|
+
.DS_Store
|
|
41
|
+
.claude/
|
|
42
|
+
.idea/
|
|
43
|
+
.vscode/
|
|
44
|
+
*.swp
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Ventra are documented here. Format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning is
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- Project foundation: README, license (Apache-2.0), security policy, contributing guide.
|
|
11
|
+
- **Evidence Package Format (EPF) v1** specification and JSON Schemas (manifest, package,
|
|
12
|
+
unified event).
|
|
13
|
+
- **AWS collector** with Tier 1 baseline modules: account context, CloudTrail, VPC Flow
|
|
14
|
+
Logs config, GuardDuty, WAF, IAM snapshot, STS activity.
|
|
15
|
+
- Read-only IAM policy for the AWS collector.
|
|
16
|
+
- Packaging pipeline: tar + zstd, per-source SHA-256, manifest, detached signature.
|
|
17
|
+
- **Ingester**: signature/hash verification, source parsers, normalizer to the unified
|
|
18
|
+
event schema, DuckDB/Parquet loader.
|
|
19
|
+
- **Analyst console**: FastAPI backend + Next.js frontend with Cases, Overview, Timeline,
|
|
20
|
+
CloudTrail Analyzer, Identity, Network, Resources, Findings, Search, Report, and Settings.
|
|
21
|
+
- Demo case fixtures and an end-to-end collect → ingest → render path.
|
|
22
|
+
- Terraform reference forensics environment for the analyst workstation.
|
|
23
|
+
|
|
24
|
+
[Unreleased]: https://github.com/Haggag-22/Ventra/commits/main
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
This project adopts the [Contributor Covenant v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).
|
|
4
|
+
|
|
5
|
+
In short: be respectful, assume good faith, and keep discussion focused on the work.
|
|
6
|
+
Harassment, discrimination, and personal attacks are not tolerated. Maintainers may remove
|
|
7
|
+
contributions and contributors that violate these standards.
|
|
8
|
+
|
|
9
|
+
Report concerns privately to `conduct@ventra-ir.example` (replace before public release).
|
|
10
|
+
Reports are handled confidentially.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Contributing to Ventra
|
|
2
|
+
|
|
3
|
+
Thanks for helping build forensically-sound cloud IR tooling. This guide covers the
|
|
4
|
+
ground rules that keep Ventra trustworthy.
|
|
5
|
+
|
|
6
|
+
## Non-negotiables
|
|
7
|
+
|
|
8
|
+
These are not style preferences — they are correctness requirements for an evidence tool:
|
|
9
|
+
|
|
10
|
+
1. **The collector is read-only.** A PR that adds any mutating AWS/Azure/GCP API call to the
|
|
11
|
+
collector will be rejected. The CI `readonly-guard` check scans for disallowed verbs
|
|
12
|
+
(`Create*`, `Put*`, `Delete*`, `Update*`, `Modify*`, `Terminate*`, `Run*`, `Start*`,
|
|
13
|
+
`Stop*`, `Attach*`, `Associate*`, etc.). If you believe an exception is warranted, open
|
|
14
|
+
an issue first.
|
|
15
|
+
2. **Never weaken integrity.** Hashing on acquisition, manifest signing, and ingest-time
|
|
16
|
+
verification are load-bearing. Changes here require a second maintainer review.
|
|
17
|
+
3. **No telemetry, no outbound calls** in the console by default. No CDN fonts, no analytics,
|
|
18
|
+
no map tiles fetched at runtime. Ship assets locally.
|
|
19
|
+
4. **Fixtures only.** Never commit real customer data. All test data must be synthetic or
|
|
20
|
+
thoroughly sanitized — see `tests/fixtures/README.md`.
|
|
21
|
+
|
|
22
|
+
## Project layout
|
|
23
|
+
|
|
24
|
+
- `collector/` — Python, `boto3`. Cloud providers (`aws/`, `azure/`, `gcp/`) each hold
|
|
25
|
+
their collector modules. Shared code lives in `lib/`. Every registered collector runs
|
|
26
|
+
on each invocation — no profiles or presets.
|
|
27
|
+
- `bin/` — CloudShell bootstrap scripts (not part of the pip package).
|
|
28
|
+
- `ingester/` — Python. `parsers/` (source-specific) → `normalizer/` (unified schema) →
|
|
29
|
+
`loaders/`. Parsers must be pure and independently versioned.
|
|
30
|
+
- `console/backend/` — FastAPI over the case store. Thin; all RBAC enforced server-side.
|
|
31
|
+
- `console/frontend/` — Next.js + Tailwind + shadcn-style components. One module per panel.
|
|
32
|
+
|
|
33
|
+
## Development setup
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Python tooling (collector + ingester + backend)
|
|
37
|
+
python -m venv .venv && source .venv/bin/activate
|
|
38
|
+
pip install -e ".[dev]" -e "ingester[dev]" -e "console/backend[dev]"
|
|
39
|
+
pre-commit install
|
|
40
|
+
|
|
41
|
+
# Frontend
|
|
42
|
+
cd console/frontend && npm install && npm run dev
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Standards
|
|
46
|
+
|
|
47
|
+
- **Python**: `ruff` (lint + format), `mypy` (typed), `pytest`. Target 3.11+.
|
|
48
|
+
- **TypeScript**: `eslint`, `prettier`, strict mode. No `any` without justification.
|
|
49
|
+
- **Commits**: Conventional Commits (`feat:`, `fix:`, `docs:`, `parser:` …).
|
|
50
|
+
- **Tests**: every parser ships with a fixture + a round-trip test. Every collector ships
|
|
51
|
+
with a mocked-boto3 test. The console ships with an e2e against the demo case.
|
|
52
|
+
|
|
53
|
+
## Adding a new collector
|
|
54
|
+
|
|
55
|
+
1. Add a module under `collector/aws/<group>/`.
|
|
56
|
+
2. Register it in `collector/aws/registry.py` (it will run automatically on every collection).
|
|
57
|
+
3. Add a fixture and a `moto`-mocked test under `tests/collector/`.
|
|
58
|
+
4. Document the artifact in `docs/evidence-package-format.md` and the IAM actions it needs
|
|
59
|
+
in `docs/iam-policies/`.
|
|
60
|
+
|
|
61
|
+
## Adding a new parser / source to the console
|
|
62
|
+
|
|
63
|
+
1. Add a parser under `ingester/ventra_ingester/parsers/`.
|
|
64
|
+
2. Map it to the unified schema in `normalizer/`.
|
|
65
|
+
3. Add a fixture + round-trip test.
|
|
66
|
+
4. If it introduces a new event category, update the console's category palette.
|
|
67
|
+
|
|
68
|
+
## Pull requests
|
|
69
|
+
|
|
70
|
+
Use the PR template. CI must be green: lint, type-check, unit, integration, e2e, schema
|
|
71
|
+
validation, secret-scan, and `readonly-guard`. Keep PRs focused.
|
|
72
|
+
|
|
73
|
+
## Versioning & releases
|
|
74
|
+
|
|
75
|
+
The version is derived from git by setuptools-scm — never hand-edit a version string. Every
|
|
76
|
+
push to `main` is published to PyPI as a `0.1.1.postN` version (continuous delivery), and a
|
|
77
|
+
`v*` tag publishes a clean `X.Y.Z` plus a GitHub Release for a milestone. See
|
|
78
|
+
[RELEASING.md](RELEASING.md).
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Ventra developer convenience targets.
|
|
2
|
+
export PYTHONDONTWRITEBYTECODE := 1
|
|
3
|
+
|
|
4
|
+
.PHONY: help install dev-setup demo ingest backend frontend dev gui test lint readonly-guard clean clean-pycache ensure-no-pycache install-hooks
|
|
5
|
+
|
|
6
|
+
help:
|
|
7
|
+
@echo "Ventra targets:"
|
|
8
|
+
@echo " make install Install collector + ingester + backend (editable)"
|
|
9
|
+
@echo " make gui Same as: ventra gui (auto-setup + hot reload, no Docker)"
|
|
10
|
+
@echo " make demo Generate a synthetic evidence package into tests/fixtures/"
|
|
11
|
+
@echo " make ingest Ingest the demo package into ./cases"
|
|
12
|
+
@echo " make backend Run the console backend (uvicorn :8000, reload)"
|
|
13
|
+
@echo " make frontend Run the console frontend (next dev :8080)"
|
|
14
|
+
@echo " make test Run the Python test suite"
|
|
15
|
+
@echo " make lint ruff + frontend typecheck"
|
|
16
|
+
@echo " make readonly-guard Verify the collector is read-only"
|
|
17
|
+
@echo " make clean-pycache Remove all __pycache__ folders locally"
|
|
18
|
+
|
|
19
|
+
install:
|
|
20
|
+
pip install -e .[dev] -e ./ingester[dev] -e ./console/backend
|
|
21
|
+
|
|
22
|
+
dev-setup: install clean-pycache ensure-no-pycache install-hooks
|
|
23
|
+
mkdir -p cases .ventra-uploads
|
|
24
|
+
cd console/frontend && npm install
|
|
25
|
+
|
|
26
|
+
gui: clean-pycache
|
|
27
|
+
ventra gui
|
|
28
|
+
|
|
29
|
+
# Alias of `gui`, kept for muscle memory.
|
|
30
|
+
dev: gui
|
|
31
|
+
|
|
32
|
+
demo:
|
|
33
|
+
python tests/fixtures/generate_demo_case.py --out tests/fixtures/
|
|
34
|
+
|
|
35
|
+
ingest:
|
|
36
|
+
ventra-ingest tests/fixtures/case-*.tar.zst --case-store ./cases
|
|
37
|
+
|
|
38
|
+
backend: clean-pycache
|
|
39
|
+
VENTRA_CASE_STORE=./cases VENTRA_UPLOAD_DIR=./.ventra-uploads \
|
|
40
|
+
uvicorn app.main:app --reload --host 127.0.0.1 --port 8000
|
|
41
|
+
|
|
42
|
+
frontend:
|
|
43
|
+
cd console/frontend && npm run dev
|
|
44
|
+
|
|
45
|
+
test: clean-pycache
|
|
46
|
+
pytest tests/ -q
|
|
47
|
+
|
|
48
|
+
lint:
|
|
49
|
+
ruff check collector ingester console/backend
|
|
50
|
+
cd console/frontend && npm run typecheck
|
|
51
|
+
|
|
52
|
+
readonly-guard:
|
|
53
|
+
python -m collector.tools.verify_readonly --collectors
|
|
54
|
+
python -m collector.tools.verify_readonly docs/iam-policies/aws-collector-readonly.json
|
|
55
|
+
|
|
56
|
+
clean-pycache:
|
|
57
|
+
@./scripts/clean-pycache.sh
|
|
58
|
+
|
|
59
|
+
ensure-no-pycache:
|
|
60
|
+
@chmod +x scripts/ensure-no-pycache.sh && ./scripts/ensure-no-pycache.sh
|
|
61
|
+
|
|
62
|
+
install-hooks:
|
|
63
|
+
@./scripts/install-git-hooks.sh
|
|
64
|
+
|
|
65
|
+
clean: clean-pycache
|
|
66
|
+
rm -rf cases .ventra-uploads tests/fixtures/case-*.tar.* tests/fixtures/case-*.sha256
|