local-appsec-lab 0.2.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.
- local_appsec_lab-0.2.0/.editorconfig +9 -0
- local_appsec_lab-0.2.0/.gitattributes +1 -0
- local_appsec_lab-0.2.0/.github/ISSUE_TEMPLATE/bug_report.yml +10 -0
- local_appsec_lab-0.2.0/.github/PULL_REQUEST_TEMPLATE.md +5 -0
- local_appsec_lab-0.2.0/.github/workflows/container.yml +28 -0
- local_appsec_lab-0.2.0/.github/workflows/lint.yml +14 -0
- local_appsec_lab-0.2.0/.github/workflows/platform-capabilities.yml +49 -0
- local_appsec_lab-0.2.0/.github/workflows/publish-pypi.yml +72 -0
- local_appsec_lab-0.2.0/.github/workflows/security.yml +25 -0
- local_appsec_lab-0.2.0/.github/workflows/test.yml +35 -0
- local_appsec_lab-0.2.0/.github/workflows/windows-docker.yml +30 -0
- local_appsec_lab-0.2.0/.gitignore +11 -0
- local_appsec_lab-0.2.0/CHANGELOG.md +29 -0
- local_appsec_lab-0.2.0/CODE_OF_CONDUCT.md +7 -0
- local_appsec_lab-0.2.0/CONTRIBUTING.md +46 -0
- local_appsec_lab-0.2.0/LICENSE +202 -0
- local_appsec_lab-0.2.0/MANIFEST.in +19 -0
- local_appsec_lab-0.2.0/Makefile +12 -0
- local_appsec_lab-0.2.0/NOTICE +6 -0
- local_appsec_lab-0.2.0/PKG-INFO +162 -0
- local_appsec_lab-0.2.0/README.md +128 -0
- local_appsec_lab-0.2.0/SECURITY.md +17 -0
- local_appsec_lab-0.2.0/THIRD_PARTY_NOTICES.md +19 -0
- local_appsec_lab-0.2.0/adapters/claude-code/README.md +5 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-ai_security.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-api.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-authentication.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-authorization.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-business_logic.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-coordinator.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-data_flow.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-frontend.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-infrastructure.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-remediation.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-sensitive_data.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-supply_chain.md +7 -0
- local_appsec_lab-0.2.0/adapters/claude-code/agents/lab-verifier.md +7 -0
- local_appsec_lab-0.2.0/adapters/codex/README.md +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-ai_security.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-api.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-authentication.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-authorization.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-business_logic.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-coordinator.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-data_flow.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-frontend.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-infrastructure.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-remediation.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-sensitive_data.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-supply_chain.toml +5 -0
- local_appsec_lab-0.2.0/adapters/codex/agents/lab-verifier.toml +5 -0
- local_appsec_lab-0.2.0/adapters/cursor/README.md +5 -0
- local_appsec_lab-0.2.0/adapters/gemini-cli/README.md +5 -0
- local_appsec_lab-0.2.0/adapters/generic/README.md +5 -0
- local_appsec_lab-0.2.0/benchmarks/evaluator.py +54 -0
- local_appsec_lab-0.2.0/benchmarks/expected-results/latest.json +114 -0
- local_appsec_lab-0.2.0/benchmarks/manifest.json +34 -0
- local_appsec_lab-0.2.0/docs/advanced-usage.md +150 -0
- local_appsec_lab-0.2.0/docs/architecture.md +34 -0
- local_appsec_lab-0.2.0/docs/configuration.md +114 -0
- local_appsec_lab-0.2.0/docs/faq.md +48 -0
- local_appsec_lab-0.2.0/docs/installation.md +151 -0
- local_appsec_lab-0.2.0/docs/integrations.md +44 -0
- local_appsec_lab-0.2.0/docs/releasing.md +37 -0
- local_appsec_lab-0.2.0/docs/report-format.md +27 -0
- local_appsec_lab-0.2.0/docs/requirements-status.md +29 -0
- local_appsec_lab-0.2.0/docs/security-model.md +72 -0
- local_appsec_lab-0.2.0/docs/supported-frameworks.md +12 -0
- local_appsec_lab-0.2.0/docs/troubleshooting.md +37 -0
- local_appsec_lab-0.2.0/docs/usage.md +146 -0
- local_appsec_lab-0.2.0/docs/validation-0.1.md +178 -0
- local_appsec_lab-0.2.0/docs/validation.md +112 -0
- local_appsec_lab-0.2.0/examples/command-examples/local.sh +6 -0
- local_appsec_lab-0.2.0/examples/compatibility-results.json +350 -0
- local_appsec_lab-0.2.0/examples/configuration/active-synthetic.yaml +42 -0
- local_appsec_lab-0.2.0/examples/configuration/docker-synthetic.yaml +44 -0
- local_appsec_lab-0.2.0/examples/configuration/model.yaml +10 -0
- local_appsec_lab-0.2.0/examples/configuration/source-only.yaml +2 -0
- local_appsec_lab-0.2.0/examples/container-test-results.xml +2 -0
- local_appsec_lab-0.2.0/examples/extended-validation.json +207 -0
- local_appsec_lab-0.2.0/examples/publication-validation.json +163 -0
- local_appsec_lab-0.2.0/examples/sample-reports/0.2-compose/report.html +103 -0
- local_appsec_lab-0.2.0/examples/sample-reports/0.2-compose/report.json +799 -0
- local_appsec_lab-0.2.0/examples/sample-reports/0.2-compose/report.md +216 -0
- local_appsec_lab-0.2.0/examples/sample-reports/0.2-compose/report.sarif +441 -0
- local_appsec_lab-0.2.0/examples/sample-reports/README.md +17 -0
- local_appsec_lab-0.2.0/examples/sample-reports/javascript-api/report.html +115 -0
- local_appsec_lab-0.2.0/examples/sample-reports/javascript-api/report.json +1153 -0
- local_appsec_lab-0.2.0/examples/sample-reports/javascript-api/report.md +249 -0
- local_appsec_lab-0.2.0/examples/sample-reports/javascript-api/report.sarif +777 -0
- local_appsec_lab-0.2.0/examples/sample-reports/python-api/report.html +92 -0
- local_appsec_lab-0.2.0/examples/sample-reports/python-api/report.json +959 -0
- local_appsec_lab-0.2.0/examples/sample-reports/python-api/report.md +197 -0
- local_appsec_lab-0.2.0/examples/sample-reports/python-api/report.sarif +613 -0
- local_appsec_lab-0.2.0/examples/test-results.xml +2 -0
- local_appsec_lab-0.2.0/examples/validation-summary.json +76 -0
- local_appsec_lab-0.2.0/examples/verification-results.json +7 -0
- local_appsec_lab-0.2.0/install.py +13 -0
- local_appsec_lab-0.2.0/installers/install.ps1 +3 -0
- local_appsec_lab-0.2.0/installers/install.py +4 -0
- local_appsec_lab-0.2.0/installers/install.sh +3 -0
- local_appsec_lab-0.2.0/installers/uninstall.py +6 -0
- local_appsec_lab-0.2.0/pyproject.toml +51 -0
- local_appsec_lab-0.2.0/requirements-dev.lock +29 -0
- local_appsec_lab-0.2.0/schemas/check.schema.json +55 -0
- local_appsec_lab-0.2.0/schemas/config.schema.json +931 -0
- local_appsec_lab-0.2.0/schemas/finding.schema.json +236 -0
- local_appsec_lab-0.2.0/schemas/report.schema.json +425 -0
- local_appsec_lab-0.2.0/schemas/run.schema.json +425 -0
- local_appsec_lab-0.2.0/schemas/sarif-2.1.0.schema.json +2915 -0
- local_appsec_lab-0.2.0/schemas/scope.schema.json +111 -0
- local_appsec_lab-0.2.0/schemas/test.schema.json +114 -0
- local_appsec_lab-0.2.0/scripts/sync_resources.py +75 -0
- local_appsec_lab-0.2.0/scripts/validate_distribution.py +69 -0
- local_appsec_lab-0.2.0/setup.cfg +4 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/SKILL.md +76 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/README.md +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-ai_security.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-api.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-authentication.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-authorization.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-business_logic.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-coordinator.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-data_flow.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-frontend.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-infrastructure.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-remediation.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-sensitive_data.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-supply_chain.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/claude-code/agents/lab-verifier.md +7 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/README.md +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-ai_security.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-api.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-authentication.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-authorization.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-business_logic.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-coordinator.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-data_flow.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-frontend.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-infrastructure.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-remediation.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-sensitive_data.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-supply_chain.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/codex/agents/lab-verifier.toml +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/cursor/README.md +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/gemini-cli/README.md +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/adapters/generic/README.md +5 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/check.schema.json +55 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/config.schema.json +931 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/finding.schema.json +236 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/report.schema.json +425 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/run.schema.json +425 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/sarif-2.1.0.schema.json +2915 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/scope.schema.json +111 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/schemas/test.schema.json +114 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/assets/templates/scenario.yaml +9 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/agent-roles.md +37 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/architecture.md +11 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/authorization.md +11 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/evidence-verification.md +16 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/framework-support.md +18 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/methodology.md +9 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/reporting.md +10 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/runtime-management.md +41 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/test-catalog.md +23 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/references/troubleshooting.md +17 -0
- local_appsec_lab-0.2.0/skill/local-appsec-lab/scripts/appsec_lab.py +16 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/__init__.py +4 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/__main__.py +3 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/agents/__init__.py +345 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/agents/knowledge.py +107 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/agents/native.py +725 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/authorization/__init__.py +116 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/cli.py +394 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/configuration/__init__.py +350 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/browser-seccomp.json +832 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/semgrep.yaml +44 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/SKILL.md +76 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/README.md +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-ai_security.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-api.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-authentication.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-authorization.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-business_logic.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-coordinator.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-data_flow.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-frontend.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-infrastructure.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-remediation.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-sensitive_data.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-supply_chain.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/claude-code/agents/lab-verifier.md +7 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/README.md +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-ai_security.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-api.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-authentication.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-authorization.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-business_logic.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-coordinator.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-data_flow.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-frontend.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-infrastructure.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-remediation.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-sensitive_data.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-supply_chain.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/codex/agents/lab-verifier.toml +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/cursor/README.md +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/gemini-cli/README.md +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/adapters/generic/README.md +5 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/check.schema.json +55 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/config.schema.json +931 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/finding.schema.json +236 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/report.schema.json +425 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/run.schema.json +425 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/sarif-2.1.0.schema.json +2915 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/scope.schema.json +111 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/schemas/test.schema.json +114 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/assets/templates/scenario.yaml +9 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/agent-roles.md +37 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/architecture.md +11 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/authorization.md +11 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/evidence-verification.md +16 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/framework-support.md +18 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/methodology.md +9 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/reporting.md +10 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/runtime-management.md +41 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/test-catalog.md +23 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/references/troubleshooting.md +17 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/skill/scripts/appsec_lab.py +16 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/data/test-catalog.json +769 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/discovery/__init__.py +302 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/discovery/source_links.py +46 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/dynamic_tests/__init__.py +296 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/dynamic_tests/adaptive.py +63 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/dynamic_tests/browser.py +248 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/dynamic_tests/catalog.py +173 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/dynamic_tests/fuzz.py +117 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/dynamic_tests/workflows.py +136 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/engine.py +905 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/errors.py +30 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/findings/__init__.py +97 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/install.py +201 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/integrations/__init__.py +428 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/integrations/provision.py +199 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/intelligence/__init__.py +148 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/intelligence/cache.py +113 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/intelligence/cache_key.py +56 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/intelligence/dataflow.py +302 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/intelligence/severity.py +21 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/isolation/__init__.py +354 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/models.py +114 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/network/__init__.py +249 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/remediation/__init__.py +90 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/remediation/patches.py +266 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/reporting/__init__.py +286 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/runtime/__init__.py +522 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/runtime/bridge.py +115 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/runtime/browser_worker.py +142 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/runtime/compose.py +545 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/runtime/leases.py +90 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/runtime/limits_exec.py +16 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/runtime/setup.py +393 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/scanners/__init__.py +390 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/scheduling/__init__.py +108 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/utilities/__init__.py +1 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/utilities/files.py +222 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/utilities/process_budget.py +47 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/utilities/redaction.py +39 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/utilities/tls.py +11 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/utilities/windows_files.py +206 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/utilities/yaml.py +16 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab/verification/__init__.py +129 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab.egg-info/PKG-INFO +162 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab.egg-info/SOURCES.txt +328 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab.egg-info/dependency_links.txt +1 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab.egg-info/entry_points.txt +2 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab.egg-info/requires.txt +14 -0
- local_appsec_lab-0.2.0/src/local_appsec_lab.egg-info/top_level.txt +1 -0
- local_appsec_lab-0.2.0/tests/authorization/test_approval.py +47 -0
- local_appsec_lab-0.2.0/tests/compatibility/browser.Dockerfile +6 -0
- local_appsec_lab-0.2.0/tests/compatibility/runtime.Dockerfile +5 -0
- local_appsec_lab-0.2.0/tests/compatibility/test_browser_assessment.py +46 -0
- local_appsec_lab-0.2.0/tests/compatibility/test_bubblewrap.py +30 -0
- local_appsec_lab-0.2.0/tests/compatibility/test_compose_assessment.py +60 -0
- local_appsec_lab-0.2.0/tests/compatibility/test_docker_assessment.py +119 -0
- local_appsec_lab-0.2.0/tests/conftest.py +52 -0
- local_appsec_lab-0.2.0/tests/end_to_end/test_live_assessment.py +116 -0
- local_appsec_lab-0.2.0/tests/fixtures/database-api/appsec-lab.yaml +26 -0
- local_appsec_lab-0.2.0/tests/fixtures/database-api/compose.yaml +9 -0
- local_appsec_lab-0.2.0/tests/fixtures/database-api/seed.sql +2 -0
- local_appsec_lab-0.2.0/tests/fixtures/database-api/server.py +38 -0
- local_appsec_lab-0.2.0/tests/fixtures/frontend/appsec-lab.yaml +14 -0
- local_appsec_lab-0.2.0/tests/fixtures/frontend/openapi.json +1 -0
- local_appsec_lab-0.2.0/tests/fixtures/frontend/package.json +7 -0
- local_appsec_lab-0.2.0/tests/fixtures/frontend/server.js +31 -0
- local_appsec_lab-0.2.0/tests/fixtures/javascript-api/README.md +2 -0
- local_appsec_lab-0.2.0/tests/fixtures/javascript-api/appsec-lab.yaml +42 -0
- local_appsec_lab-0.2.0/tests/fixtures/javascript-api/openapi.json +81 -0
- local_appsec_lab-0.2.0/tests/fixtures/javascript-api/package.json +8 -0
- local_appsec_lab-0.2.0/tests/fixtures/javascript-api/server.js +31 -0
- local_appsec_lab-0.2.0/tests/fixtures/malicious-instructions/README.md +2 -0
- local_appsec_lab-0.2.0/tests/fixtures/malicious-instructions/package.json +1 -0
- local_appsec_lab-0.2.0/tests/fixtures/multi-service/Dockerfile +5 -0
- local_appsec_lab-0.2.0/tests/fixtures/multi-service/README.md +2 -0
- local_appsec_lab-0.2.0/tests/fixtures/multi-service/compose.yaml +45 -0
- local_appsec_lab-0.2.0/tests/fixtures/multi-service/seed.sql +2 -0
- local_appsec_lab-0.2.0/tests/fixtures/multi-service/server.py +15 -0
- local_appsec_lab-0.2.0/tests/fixtures/negative-controls/safe.py +9 -0
- local_appsec_lab-0.2.0/tests/fixtures/network-boundary/README.md +2 -0
- local_appsec_lab-0.2.0/tests/fixtures/python-api/app.py +59 -0
- local_appsec_lab-0.2.0/tests/fixtures/python-api/appsec-lab.yaml +42 -0
- local_appsec_lab-0.2.0/tests/fixtures/python-api/requirements.txt +1 -0
- local_appsec_lab-0.2.0/tests/fixtures/stateful-api/server.py +57 -0
- local_appsec_lab-0.2.0/tests/fixtures/unsupported/Main.kt +1 -0
- local_appsec_lab-0.2.0/tests/fixtures/unsupported/unsafe.py +5 -0
- local_appsec_lab-0.2.0/tests/installation/test_installer.py +61 -0
- local_appsec_lab-0.2.0/tests/integration/test_dataflow.py +25 -0
- local_appsec_lab-0.2.0/tests/integration/test_fix_and_severity.py +53 -0
- local_appsec_lab-0.2.0/tests/integration/test_intelligence.py +75 -0
- local_appsec_lab-0.2.0/tests/integration/test_scheduler_and_ai.py +164 -0
- local_appsec_lab-0.2.0/tests/integration/test_setup_contract.py +46 -0
- local_appsec_lab-0.2.0/tests/integration/test_shared_knowledge.py +21 -0
- local_appsec_lab-0.2.0/tests/integration/test_workflows.py +128 -0
- local_appsec_lab-0.2.0/tests/isolation/test_runtime_boundaries.py +164 -0
- local_appsec_lab-0.2.0/tests/regression/test_cli.py +66 -0
- local_appsec_lab-0.2.0/tests/security/test_extended_boundaries.py +167 -0
- local_appsec_lab-0.2.0/tests/security/test_hardening_regressions.py +302 -0
- local_appsec_lab-0.2.0/tests/security/test_scope.py +142 -0
- local_appsec_lab-0.2.0/tests/unit/test_config_and_discovery.py +100 -0
- local_appsec_lab-0.2.0/tests/unit/test_findings_and_reports.py +151 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report a reproducible non-sensitive defect
|
|
3
|
+
body:
|
|
4
|
+
- type: textarea
|
|
5
|
+
id: reproduce
|
|
6
|
+
attributes:
|
|
7
|
+
label: Reproduction using synthetic data
|
|
8
|
+
description: Include version/platform and sanitized commands. Never include credentials or private findings.
|
|
9
|
+
validations:
|
|
10
|
+
required: true
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Linux container assessments
|
|
2
|
+
on: [push, pull_request, workflow_dispatch]
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
jobs:
|
|
6
|
+
runtime:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
timeout-minutes: 25
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
- uses: actions/setup-python@v5
|
|
12
|
+
with:
|
|
13
|
+
python-version: '3.13'
|
|
14
|
+
- run: python -m pip install '.[dev]'
|
|
15
|
+
- run: sudo apt-get update && sudo apt-get install -y bubblewrap
|
|
16
|
+
- run: docker build -t local-appsec-lab-test:0.1.0 -f tests/compatibility/runtime.Dockerfile tests/compatibility
|
|
17
|
+
- run: docker build -t local-appsec-lab-browser:0.2.0 -f tests/compatibility/browser.Dockerfile tests/compatibility
|
|
18
|
+
- run: docker pull postgres:17-alpine
|
|
19
|
+
- run: python -m pytest tests/compatibility tests/integration/test_workflows.py -q --junitxml=container-results.xml
|
|
20
|
+
env:
|
|
21
|
+
APPSEC_TEST_IMAGE: local-appsec-lab-test:0.1.0
|
|
22
|
+
APPSEC_TEST_COMPOSE: '1'
|
|
23
|
+
APPSEC_TEST_BROWSER_IMAGE: local-appsec-lab-browser:0.2.0
|
|
24
|
+
- uses: actions/upload-artifact@v4
|
|
25
|
+
if: always()
|
|
26
|
+
with:
|
|
27
|
+
name: linux-container-results
|
|
28
|
+
path: container-results.xml
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
jobs:
|
|
6
|
+
lint:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
- uses: actions/setup-python@v5
|
|
11
|
+
with:
|
|
12
|
+
python-version: '3.13'
|
|
13
|
+
- run: python -m pip install '.[dev]'
|
|
14
|
+
- run: make lint
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Platform capabilities
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
pull_request:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
jobs:
|
|
9
|
+
linux-bubblewrap:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
timeout-minutes: 10
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- uses: actions/setup-python@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: '3.13'
|
|
17
|
+
- run: python -m pip install '.[dev]'
|
|
18
|
+
- run: sudo apt-get update && sudo apt-get install -y bubblewrap
|
|
19
|
+
- name: Unprivileged namespace capability
|
|
20
|
+
run: APPSEC_TEST_BWRAP=1 python -m pytest tests/compatibility/test_bubblewrap.py -q -rs --junitxml=bwrap-unprivileged.xml
|
|
21
|
+
- name: Disposable trusted root controller, sandbox child without capabilities
|
|
22
|
+
run: sudo env APPSEC_TEST_BWRAP=1 "$(command -v python)" -m pytest tests/compatibility/test_bubblewrap.py -q -rs --basetemp=/tmp/appsec-bwrap-owned-tests --junitxml=bwrap-controller.xml
|
|
23
|
+
- uses: actions/upload-artifact@v4
|
|
24
|
+
if: always()
|
|
25
|
+
with:
|
|
26
|
+
name: bubblewrap-capabilities
|
|
27
|
+
path: bwrap-*.xml
|
|
28
|
+
windows-engine:
|
|
29
|
+
runs-on: windows-latest
|
|
30
|
+
timeout-minutes: 8
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v4
|
|
33
|
+
- uses: actions/setup-python@v5
|
|
34
|
+
with:
|
|
35
|
+
python-version: '3.13'
|
|
36
|
+
- name: Record Docker Linux-engine prerequisite, without changing host configuration
|
|
37
|
+
shell: pwsh
|
|
38
|
+
run: |
|
|
39
|
+
$result = @{ platform = 'Windows'; execution_verified = $false; prerequisite = 'local Docker Linux engine'; status = 'unavailable' }
|
|
40
|
+
if (Get-Command docker -ErrorAction SilentlyContinue) {
|
|
41
|
+
$engine = docker info --format '{{.OSType}}' 2>$null
|
|
42
|
+
if ($LASTEXITCODE -eq 0) { $result.engine = "$engine"; $result.status = 'capability_only' }
|
|
43
|
+
}
|
|
44
|
+
$result | ConvertTo-Json | Set-Content windows-engine-capability.json
|
|
45
|
+
Get-Content windows-engine-capability.json
|
|
46
|
+
- uses: actions/upload-artifact@v4
|
|
47
|
+
with:
|
|
48
|
+
name: windows-engine-capability
|
|
49
|
+
path: windows-engine-capability.json
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
inputs:
|
|
5
|
+
publish:
|
|
6
|
+
description: Publish the validated distributions to production PyPI
|
|
7
|
+
required: true
|
|
8
|
+
default: false
|
|
9
|
+
type: boolean
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
concurrency:
|
|
13
|
+
group: pypi-release
|
|
14
|
+
cancel-in-progress: false
|
|
15
|
+
jobs:
|
|
16
|
+
build:
|
|
17
|
+
if: github.repository == 'aviqentech/local-appsec-lab' && github.ref == 'refs/heads/main'
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
timeout-minutes: 12
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.13'
|
|
25
|
+
- name: Install release tooling
|
|
26
|
+
run: python -m pip install '.[dev]' build twine
|
|
27
|
+
- name: Check source and bundled resources
|
|
28
|
+
run: make lint
|
|
29
|
+
- name: Run source and installer tests
|
|
30
|
+
run: python -m pytest -q
|
|
31
|
+
- name: Build and validate exact distributions
|
|
32
|
+
run: |
|
|
33
|
+
python -m build
|
|
34
|
+
python -m twine check --strict dist/*
|
|
35
|
+
python scripts/validate_distribution.py
|
|
36
|
+
- name: Install the wheel outside the checkout
|
|
37
|
+
shell: bash
|
|
38
|
+
run: |
|
|
39
|
+
python -m venv "$RUNNER_TEMP/pypi-smoke"
|
|
40
|
+
"$RUNNER_TEMP/pypi-smoke/bin/python" -m pip install dist/*.whl
|
|
41
|
+
mkdir -p "$RUNNER_TEMP/pypi-fixture"
|
|
42
|
+
cd "$RUNNER_TEMP/pypi-fixture"
|
|
43
|
+
"$RUNNER_TEMP/pypi-smoke/bin/appsec-lab" --version
|
|
44
|
+
"$RUNNER_TEMP/pypi-smoke/bin/appsec-lab" inspect
|
|
45
|
+
"$RUNNER_TEMP/pypi-smoke/bin/python" -m local_appsec_lab.install --project "$RUNNER_TEMP/pypi-fixture" --target all
|
|
46
|
+
"$RUNNER_TEMP/pypi-smoke/bin/python" -m local_appsec_lab.install --project "$RUNNER_TEMP/pypi-fixture" --target all --operation doctor
|
|
47
|
+
"$RUNNER_TEMP/pypi-smoke/bin/python" -m local_appsec_lab.install --project "$RUNNER_TEMP/pypi-fixture" --target all --operation uninstall
|
|
48
|
+
- uses: actions/upload-artifact@v4
|
|
49
|
+
with:
|
|
50
|
+
name: pypi-distributions
|
|
51
|
+
path: |
|
|
52
|
+
dist/*.whl
|
|
53
|
+
dist/*.tar.gz
|
|
54
|
+
if-no-files-found: error
|
|
55
|
+
publish:
|
|
56
|
+
if: inputs.publish
|
|
57
|
+
needs: build
|
|
58
|
+
runs-on: ubuntu-latest
|
|
59
|
+
timeout-minutes: 8
|
|
60
|
+
environment:
|
|
61
|
+
name: pypi
|
|
62
|
+
url: https://pypi.org/project/local-appsec-lab/
|
|
63
|
+
permissions:
|
|
64
|
+
id-token: write
|
|
65
|
+
steps:
|
|
66
|
+
- uses: actions/download-artifact@v4
|
|
67
|
+
with:
|
|
68
|
+
name: pypi-distributions
|
|
69
|
+
path: dist/
|
|
70
|
+
- name: Publish with PyPI trusted identity
|
|
71
|
+
# Official pypa/gh-action-pypi-publish release/v1, pinned for auditability.
|
|
72
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Source assessment
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
jobs:
|
|
6
|
+
review:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
- uses: actions/setup-python@v5
|
|
11
|
+
with:
|
|
12
|
+
python-version: '3.13'
|
|
13
|
+
- run: python -m pip install .
|
|
14
|
+
- name: Source-only assessment (partial coverage accepted)
|
|
15
|
+
shell: bash
|
|
16
|
+
run: |
|
|
17
|
+
set +e
|
|
18
|
+
appsec-lab scan --mode review
|
|
19
|
+
code=$?
|
|
20
|
+
test "$code" -eq 0 -o "$code" -eq 2
|
|
21
|
+
- uses: actions/upload-artifact@v4
|
|
22
|
+
if: always()
|
|
23
|
+
with:
|
|
24
|
+
name: source-assessment
|
|
25
|
+
path: .appsec-lab/reports/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
on: [push, pull_request, workflow_dispatch]
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
timeout-minutes: 12
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
12
|
+
python: ['3.11', '3.13']
|
|
13
|
+
runs-on: ${{ matrix.os }}
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python }}
|
|
19
|
+
- uses: actions/setup-node@v4
|
|
20
|
+
with:
|
|
21
|
+
node-version: '22'
|
|
22
|
+
- run: python -m pip install '.[dev]'
|
|
23
|
+
- name: PowerShell installer entry point
|
|
24
|
+
if: runner.os == 'Windows'
|
|
25
|
+
shell: pwsh
|
|
26
|
+
run: ./installers/install.ps1 --help
|
|
27
|
+
- name: Preload Linux runtime image
|
|
28
|
+
if: runner.os == 'Linux'
|
|
29
|
+
run: docker pull python:3.13-slim
|
|
30
|
+
- run: python -m pytest -q --junitxml=test-results.xml
|
|
31
|
+
- uses: actions/upload-artifact@v4
|
|
32
|
+
if: always()
|
|
33
|
+
with:
|
|
34
|
+
name: results-${{ matrix.os }}-${{ matrix.python }}
|
|
35
|
+
path: test-results.xml
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Native Windows Linux-container assessments
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
permissions:
|
|
5
|
+
contents: read
|
|
6
|
+
jobs:
|
|
7
|
+
windows-docker:
|
|
8
|
+
# Attach a disposable Windows machine with Docker Desktop Linux containers.
|
|
9
|
+
# Never put model credentials or production data on this runner.
|
|
10
|
+
runs-on: [self-hosted, Windows, appsec-linux-containers]
|
|
11
|
+
timeout-minutes: 20
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- uses: actions/setup-python@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: '3.13'
|
|
17
|
+
- shell: pwsh
|
|
18
|
+
run: |
|
|
19
|
+
if ((docker info --format '{{.OSType}}') -ne 'linux') { throw 'Linux-container engine required' }
|
|
20
|
+
python -m pip install '.[dev]'
|
|
21
|
+
docker build -t local-appsec-lab-test:0.1.0 -f tests/compatibility/runtime.Dockerfile tests/compatibility
|
|
22
|
+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
23
|
+
$env:APPSEC_TEST_IMAGE = 'local-appsec-lab-test:0.1.0'
|
|
24
|
+
python -m pytest tests/compatibility/test_docker_assessment.py tests/integration/test_workflows.py -q --junitxml=windows-docker-results.xml
|
|
25
|
+
exit $LASTEXITCODE
|
|
26
|
+
- uses: actions/upload-artifact@v4
|
|
27
|
+
if: always()
|
|
28
|
+
with:
|
|
29
|
+
name: native-windows-docker-results
|
|
30
|
+
path: windows-docker-results.xml
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.0 — 2026-10-27
|
|
4
|
+
|
|
5
|
+
Added real native specialist/verifier/remediation orchestration, shared knowledge,
|
|
6
|
+
bounded adaptive proposals, Python interprocedural provenance, sealed persistent
|
|
7
|
+
analysis caching, live OSV and offline scanner-data refresh, and tested offline
|
|
8
|
+
Semgrep/OSV/Trivy isolation on macOS and Docker. Added locked Python/npm setup,
|
|
9
|
+
constrained multi-service Compose with disposable databases/seeds/migrations,
|
|
10
|
+
sandboxed Chromium, stateful synthetic workflows, scalar-schema fuzzing, explicit
|
|
11
|
+
CVSS v4 vectors and separately authorized patch preparation/apply/rollback.
|
|
12
|
+
|
|
13
|
+
Hardened source traversal, Windows private artifact permissions, observer IPC,
|
|
14
|
+
macOS process metadata access, bounded subprocess input/output, startup config
|
|
15
|
+
inheritance, output-directory exclusions and crash recovery leases. Expanded real
|
|
16
|
+
integration and negative-control tests, schemas, skill guidance and installation docs.
|
|
17
|
+
Gemini authentication, native Windows Docker and provider/platform prerequisites
|
|
18
|
+
remain explicitly distinguished from successful tests.
|
|
19
|
+
|
|
20
|
+
## 0.1.0 — 2026-10-27
|
|
21
|
+
|
|
22
|
+
Initial experimental engine, portable skill, explicit approvals, bounded runtime,
|
|
23
|
+
source candidates, synthetic dynamic verification, local reports, installer and
|
|
24
|
+
fixture test suite. Incomplete requirements and platform limits are documented.
|
|
25
|
+
|
|
26
|
+
Publication preparation: AVIQEN repository metadata, account-neutral historical
|
|
27
|
+
validation artifacts, expanded cross-platform installation/usage/configuration and
|
|
28
|
+
maintenance documentation, explicit Docker demo setup, and a private reporting
|
|
29
|
+
policy. Historical private CI is distinguished from new publication-repository CI.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Code of conduct
|
|
2
|
+
|
|
3
|
+
Treat participants with respect. Harassment, discrimination, threats, doxxing and publication of another person's secrets or security evidence are unacceptable. Critique technical claims with evidence, accept corrections and keep disagreements focused on the work.
|
|
4
|
+
|
|
5
|
+
Maintainers may remove harmful content, limit participation or ban repeat offenders, with a concise explanation where safe. For a private conduct report, request a confidential contact from the maintainers without posting identifying details in public. Use [SECURITY.md](SECURITY.md) for vulnerabilities rather than conduct concerns.
|
|
6
|
+
|
|
7
|
+
Maintainers should protect reporter privacy, avoid retaliation and consider context before choosing proportionate action. Appeals should be reviewed by a maintainer who did not make the original decision whenever possible. No response SLA is promised.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions use Apache-2.0; no separate contributor agreement is required. Use synthetic fixtures and discuss concrete behavior, evidence and coverage limits. Follow the [code of conduct](CODE_OF_CONDUCT.md). Use [private reporting](SECURITY.md) for vulnerabilities in the tool and public issues only for non-sensitive defects.
|
|
4
|
+
|
|
5
|
+
## Development setup
|
|
6
|
+
|
|
7
|
+
Use Python 3.11+ and Node for JavaScript runtime fixtures. From a trusted checkout:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
python3 -m venv .venv
|
|
11
|
+
. .venv/bin/activate
|
|
12
|
+
python -m pip install -e '.[dev]'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
On Windows, create the venv with `py -3 -m venv .venv` and use `.\.venv\Scripts\python.exe` in place of `python`. GNU Make is optional; the commands below work directly through Python.
|
|
16
|
+
|
|
17
|
+
## Checks
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
python scripts/sync_resources.py --check
|
|
21
|
+
python -m ruff check src tests installers benchmarks scripts install.py
|
|
22
|
+
python -m ruff format --check src tests installers benchmarks scripts install.py
|
|
23
|
+
python -m pytest -q
|
|
24
|
+
python -m build
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
On macOS/Linux, `make check` runs resource checks, lint/format and pytest. `requirements-dev.lock` records the validated Python 3.13 environment; it is a snapshot rather than a universal OS/Python lock. Use `.[dev]` for supported dependency ranges.
|
|
28
|
+
|
|
29
|
+
The suite skips platform-specific/runtime cases when prerequisites are absent. A green suite with skips is not runtime evidence. To exercise the real container fixtures, explicitly provision the test image:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
docker build -t local-appsec-lab-test:0.1.0 -f tests/compatibility/runtime.Dockerfile tests/compatibility
|
|
33
|
+
APPSEC_TEST_IMAGE=local-appsec-lab-test:0.1.0 python -m pytest tests/compatibility -q
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
On PowerShell set `$env:APPSEC_TEST_IMAGE = 'local-appsec-lab-test:0.1.0'` before the pytest command. Native Windows Docker execution is still unverified. `APPSEC_TEST_BWRAP=1` explicitly selects the experimental native Linux probe; restricted runners may skip it with a documented denial. Never weaken host isolation just to make a test pass.
|
|
37
|
+
|
|
38
|
+
## Changes and pull requests
|
|
39
|
+
|
|
40
|
+
Add a synthetic vulnerable fixture and a secure negative control for a new security rule. Use meaningful regressions for changed authorization, cleanup, scope, budgets or trust boundaries. Keep source results as candidates until their evidence proves the claimed behavior. Never target a public service or use real credentials/customer data.
|
|
41
|
+
|
|
42
|
+
Update relevant docs and the changelog. Changes to schemas, adapters or skill sources must be synchronized with `python scripts/sync_resources.py`, followed by `--check`. Describe the trigger, resulting behavior, validation and any changed scope/isolation/coverage in the PR. Security-sensitive changes need independent review before release.
|
|
43
|
+
|
|
44
|
+
## Publication
|
|
45
|
+
|
|
46
|
+
Follow [the release process](docs/releasing.md). Builds, private assessment histories, virtual environments, credentials and local machine metadata do not belong in a public release. Do not claim a platform, agent host, scanner or model provider was tested unless its actual integration ran and the evidence records skipped work.
|
|
@@ -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,19 @@
|
|
|
1
|
+
include README.md LICENSE NOTICE THIRD_PARTY_NOTICES.md CHANGELOG.md CONTRIBUTING.md CODE_OF_CONDUCT.md SECURITY.md Makefile requirements-dev.lock .editorconfig .gitattributes .gitignore install.py
|
|
2
|
+
graft skill
|
|
3
|
+
graft adapters
|
|
4
|
+
graft installers
|
|
5
|
+
graft schemas
|
|
6
|
+
graft docs
|
|
7
|
+
graft examples
|
|
8
|
+
graft benchmarks
|
|
9
|
+
graft tests
|
|
10
|
+
graft .github
|
|
11
|
+
prune tests/fixtures/javascript-api/.appsec-lab
|
|
12
|
+
prune tests/fixtures/python-api/.appsec-lab
|
|
13
|
+
prune tests/fixtures/frontend/.appsec-lab
|
|
14
|
+
prune tests/fixtures/unsupported/.appsec-lab
|
|
15
|
+
prune tests/fixtures/negative-controls/.appsec-lab
|
|
16
|
+
prune tests/fixtures/malicious-instructions/.appsec-lab
|
|
17
|
+
prune tests/fixtures/multi-service/.appsec-lab
|
|
18
|
+
global-exclude *.py[cod] .DS_Store
|
|
19
|
+
graft scripts
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.PHONY: test lint check build benchmark
|
|
2
|
+
test:
|
|
3
|
+
python -m pytest -q
|
|
4
|
+
lint:
|
|
5
|
+
python scripts/sync_resources.py --check
|
|
6
|
+
ruff check src tests installers benchmarks scripts install.py
|
|
7
|
+
ruff format --check src tests installers benchmarks scripts install.py
|
|
8
|
+
check: lint test
|
|
9
|
+
build:
|
|
10
|
+
python -m build
|
|
11
|
+
benchmark:
|
|
12
|
+
python benchmarks/evaluator.py
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Local AppSec Lab
|
|
2
|
+
Copyright 2026 Local AppSec Lab contributors
|
|
3
|
+
|
|
4
|
+
Dependencies retain their own licenses. No proprietary scanner source is bundled.
|
|
5
|
+
The bundled SARIF JSON schema, if present, comes from SchemaStore (Apache-2.0).
|
|
6
|
+
See THIRD_PARTY_NOTICES.md for source and attribution.
|