@synapta/skills 0.1.1 → 0.2.0
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.
- package/dist/index.js +11 -4
- package/package.json +3 -4
- package/skills/ATTRIBUTION.md +80 -0
- package/skills/accessibility-audit/SKILL.md +325 -0
- package/skills/accessibility-audit/reference/wcag-checklist.md +103 -0
- package/skills/apns-notifier/SKILL.md +86 -0
- package/skills/approval-policy-enforcer/SKILL.md +66 -0
- package/skills/apps-sdk-builder/LICENSE.txt +201 -0
- package/skills/apps-sdk-builder/SKILL.md +328 -0
- package/skills/apps-sdk-builder/agents/openai.yaml +13 -0
- package/skills/apps-sdk-builder/references/app-archetypes.md +132 -0
- package/skills/apps-sdk-builder/references/apps-sdk-docs-workflow.md +135 -0
- package/skills/apps-sdk-builder/references/interactive-state-sync-patterns.md +113 -0
- package/skills/apps-sdk-builder/references/repo-contract-and-validation.md +93 -0
- package/skills/apps-sdk-builder/references/search-fetch-standard.md +67 -0
- package/skills/apps-sdk-builder/references/upstream-example-workflow.md +79 -0
- package/skills/apps-sdk-builder/references/window-openai-patterns.md +79 -0
- package/skills/apps-sdk-builder/scripts/scaffold_node_ext_apps.mjs +606 -0
- package/skills/architecture-selector/SKILL.md +64 -0
- package/skills/backlog-planner/SKILL.md +68 -0
- package/skills/carplay-entitlement-checker/SKILL.md +82 -0
- package/skills/concept-deepener/SKILL.md +86 -0
- package/skills/concept-discovery/SKILL.md +517 -0
- package/skills/concept-discovery/assets/sample-analysis.json +81 -0
- package/skills/concept-discovery/expected_outputs/sample-enum-dictionary.md +25 -0
- package/skills/concept-discovery/expected_outputs/sample-page-user-list.md +83 -0
- package/skills/concept-discovery/expected_outputs/sample-prd-readme.md +43 -0
- package/skills/concept-discovery/references/framework-patterns.md +228 -0
- package/skills/concept-discovery/references/prd-quality-checklist.md +65 -0
- package/skills/concept-discovery/scripts/codebase_analyzer.py +732 -0
- package/skills/concept-discovery/scripts/prd_scaffolder.py +435 -0
- package/skills/dast-zap/SKILL.md +453 -0
- package/skills/dast-zap/assets/.gitkeep +9 -0
- package/skills/dast-zap/assets/github_action.yml +207 -0
- package/skills/dast-zap/assets/gitlab_ci.yml +226 -0
- package/skills/dast-zap/assets/zap_automation.yaml +196 -0
- package/skills/dast-zap/assets/zap_context.xml +192 -0
- package/skills/dast-zap/references/EXAMPLE.md +40 -0
- package/skills/dast-zap/references/api_testing_guide.md +475 -0
- package/skills/dast-zap/references/authentication_guide.md +431 -0
- package/skills/dast-zap/references/false_positive_handling.md +427 -0
- package/skills/dast-zap/references/owasp_mapping.md +255 -0
- package/skills/dep-sbom-scan/SKILL.md +466 -0
- package/skills/deploy-cloudflare/SKILL.md +930 -0
- package/skills/deploy-docker/SKILL.md +55 -0
- package/skills/deploy-fly/SKILL.md +228 -0
- package/skills/deploy-k8s/SKILL.md +108 -0
- package/skills/deploy-k8s/assets/logo.png +0 -0
- package/skills/deploy-k8s/docs/README.md +29 -0
- package/skills/deploy-k8s/docs/SUMMARY.md +56 -0
- package/skills/deploy-k8s/docs/advanced/token-efficiency.md +61 -0
- package/skills/deploy-k8s/docs/architecture/multi-tenancy.md +96 -0
- package/skills/deploy-k8s/docs/architecture/storage-and-state.md +102 -0
- package/skills/deploy-k8s/docs/architecture/workload-patterns.md +87 -0
- package/skills/deploy-k8s/docs/book.json +16 -0
- package/skills/deploy-k8s/docs/community/changelog.md +34 -0
- package/skills/deploy-k8s/docs/community/contributing.md +67 -0
- package/skills/deploy-k8s/docs/core-concepts/failure-modes.md +153 -0
- package/skills/deploy-k8s/docs/core-concepts/philosophy.md +83 -0
- package/skills/deploy-k8s/docs/core-concepts/workflow.md +124 -0
- package/skills/deploy-k8s/docs/examples/bad-patterns.md +47 -0
- package/skills/deploy-k8s/docs/examples/do-dont-checklist.md +37 -0
- package/skills/deploy-k8s/docs/examples/good-patterns.md +49 -0
- package/skills/deploy-k8s/docs/failure-modes/api-drift.md +104 -0
- package/skills/deploy-k8s/docs/failure-modes/fragile-rollouts.md +99 -0
- package/skills/deploy-k8s/docs/failure-modes/insecure-workload-defaults.md +80 -0
- package/skills/deploy-k8s/docs/failure-modes/network-exposure.md +98 -0
- package/skills/deploy-k8s/docs/failure-modes/privilege-sprawl.md +91 -0
- package/skills/deploy-k8s/docs/failure-modes/resource-starvation.md +85 -0
- package/skills/deploy-k8s/docs/getting-started/installation.md +152 -0
- package/skills/deploy-k8s/docs/getting-started/quick-start.md +115 -0
- package/skills/deploy-k8s/docs/guides/helm-patterns.md +71 -0
- package/skills/deploy-k8s/docs/guides/kustomize-patterns.md +65 -0
- package/skills/deploy-k8s/docs/guides/observability.md +67 -0
- package/skills/deploy-k8s/docs/guides/security-hardening.md +59 -0
- package/skills/deploy-k8s/docs/guides/validation-and-policy.md +66 -0
- package/skills/deploy-k8s/docs/integrations/mcp-integration.md +52 -0
- package/skills/deploy-k8s/docs/package-lock.json +2892 -0
- package/skills/deploy-k8s/docs/package.json +13 -0
- package/skills/deploy-k8s/references/api-drift.md +298 -0
- package/skills/deploy-k8s/references/conditional/aks-patterns.md +70 -0
- package/skills/deploy-k8s/references/conditional/eks-patterns.md +79 -0
- package/skills/deploy-k8s/references/conditional/gitops-controllers.md +71 -0
- package/skills/deploy-k8s/references/conditional/gke-patterns.md +74 -0
- package/skills/deploy-k8s/references/conditional/observability-stacks.md +80 -0
- package/skills/deploy-k8s/references/conditional/openshift-patterns.md +67 -0
- package/skills/deploy-k8s/references/daemonset-operator-patterns.md +155 -0
- package/skills/deploy-k8s/references/deployment-patterns.md +146 -0
- package/skills/deploy-k8s/references/do-dont-patterns.md +87 -0
- package/skills/deploy-k8s/references/examples-bad.md +282 -0
- package/skills/deploy-k8s/references/examples-good.md +440 -0
- package/skills/deploy-k8s/references/fragile-rollouts.md +303 -0
- package/skills/deploy-k8s/references/helm-patterns.md +203 -0
- package/skills/deploy-k8s/references/insecure-workload-defaults.md +300 -0
- package/skills/deploy-k8s/references/job-patterns.md +120 -0
- package/skills/deploy-k8s/references/kustomize-patterns.md +239 -0
- package/skills/deploy-k8s/references/multi-tenancy.md +343 -0
- package/skills/deploy-k8s/references/network-exposure.md +481 -0
- package/skills/deploy-k8s/references/observability.md +302 -0
- package/skills/deploy-k8s/references/privilege-sprawl.md +273 -0
- package/skills/deploy-k8s/references/resource-starvation.md +374 -0
- package/skills/deploy-k8s/references/security-hardening.md +209 -0
- package/skills/deploy-k8s/references/stateful-patterns.md +130 -0
- package/skills/deploy-k8s/references/storage-and-state.md +330 -0
- package/skills/deploy-k8s/references/validation-and-policy.md +242 -0
- package/skills/deploy-railway/SKILL.md +235 -0
- package/skills/deploy-railway/references/analyze-db-mongo.md +84 -0
- package/skills/deploy-railway/references/analyze-db-mysql.md +254 -0
- package/skills/deploy-railway/references/analyze-db-postgres.md +479 -0
- package/skills/deploy-railway/references/analyze-db-redis.md +208 -0
- package/skills/deploy-railway/references/analyze-db.md +344 -0
- package/skills/deploy-railway/references/configure.md +309 -0
- package/skills/deploy-railway/references/deploy.md +195 -0
- package/skills/deploy-railway/references/operate.md +214 -0
- package/skills/deploy-railway/references/request.md +248 -0
- package/skills/deploy-railway/references/setup.md +312 -0
- package/skills/deploy-railway/scripts/analyze-mongo.py +1549 -0
- package/skills/deploy-railway/scripts/analyze-mysql.py +1195 -0
- package/skills/deploy-railway/scripts/analyze-postgres.py +3058 -0
- package/skills/deploy-railway/scripts/analyze-redis.py +1090 -0
- package/skills/deploy-railway/scripts/dal.py +671 -0
- package/skills/deploy-railway/scripts/enable-pg-stats.py +170 -0
- package/skills/deploy-railway/scripts/pg-extensions.py +370 -0
- package/skills/deploy-railway/scripts/railway-api.sh +52 -0
- package/skills/deploy-ssh/SKILL.md +91 -0
- package/skills/deploy-vercel/SKILL.md +304 -0
- package/skills/deploy-vercel/resources/deploy-codex.sh +301 -0
- package/skills/deploy-vercel/resources/deploy.sh +301 -0
- package/skills/docs-runbooks/SKILL.md +399 -0
- package/skills/drive-status-renderer/SKILL.md +62 -0
- package/skills/iac-scan/SKILL.md +680 -0
- package/skills/iac-scan/assets/.gitkeep +9 -0
- package/skills/iac-scan/assets/checkov_config.yaml +94 -0
- package/skills/iac-scan/assets/github_actions.yml +199 -0
- package/skills/iac-scan/assets/gitlab_ci.yml +218 -0
- package/skills/iac-scan/assets/pre_commit_config.yaml +92 -0
- package/skills/iac-scan/references/EXAMPLE.md +40 -0
- package/skills/iac-scan/references/compliance_mapping.md +237 -0
- package/skills/iac-scan/references/custom_policies.md +460 -0
- package/skills/iac-scan/references/suppression_guide.md +431 -0
- package/skills/incident-briefing/SKILL.md +66 -0
- package/skills/incident-triage/SKILL.md +481 -0
- package/{LICENSE → skills/mcp-builder/LICENSE.txt} +15 -14
- package/skills/mcp-builder/SKILL.md +244 -0
- package/skills/mcp-builder/reference/evaluation.md +602 -0
- package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/skills/mcp-builder/scripts/connections.py +151 -0
- package/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/mobile-pairing/SKILL.md +52 -0
- package/skills/ops-sre/SKILL.md +297 -0
- package/skills/playwright-qa/LICENSE.txt +201 -0
- package/skills/playwright-qa/NOTICE.txt +14 -0
- package/skills/playwright-qa/SKILL.md +156 -0
- package/skills/playwright-qa/agents/openai.yaml +6 -0
- package/skills/playwright-qa/assets/playwright-small.svg +3 -0
- package/skills/playwright-qa/assets/playwright.png +0 -0
- package/skills/playwright-qa/references/cli.md +116 -0
- package/skills/playwright-qa/references/workflows.md +95 -0
- package/skills/playwright-qa/scripts/playwright_cli.sh +25 -0
- package/skills/release-publish/SKILL.md +85 -0
- package/skills/repo-bootstrap/SKILL.md +92 -0
- package/skills/repo-bootstrap/assets/example-workflows/validate-agents.yml +89 -0
- package/skills/repo-bootstrap/assets/root-thin.md +141 -0
- package/skills/repo-bootstrap/assets/root-verbose.md +149 -0
- package/skills/repo-bootstrap/assets/scoped/backend-go.md +107 -0
- package/skills/repo-bootstrap/assets/scoped/backend-php.md +94 -0
- package/skills/repo-bootstrap/assets/scoped/backend-python.md +84 -0
- package/skills/repo-bootstrap/assets/scoped/backend-typescript.md +89 -0
- package/skills/repo-bootstrap/assets/scoped/claude-code-skill.md +101 -0
- package/skills/repo-bootstrap/assets/scoped/cli.md +83 -0
- package/skills/repo-bootstrap/assets/scoped/concourse.md +196 -0
- package/skills/repo-bootstrap/assets/scoped/ddev.md +68 -0
- package/skills/repo-bootstrap/assets/scoped/docker.md +160 -0
- package/skills/repo-bootstrap/assets/scoped/documentation.md +98 -0
- package/skills/repo-bootstrap/assets/scoped/examples.md +96 -0
- package/skills/repo-bootstrap/assets/scoped/frontend-typescript.md +88 -0
- package/skills/repo-bootstrap/assets/scoped/github-actions.md +174 -0
- package/skills/repo-bootstrap/assets/scoped/gitlab-ci.md +174 -0
- package/skills/repo-bootstrap/assets/scoped/oro-bundle.md +209 -0
- package/skills/repo-bootstrap/assets/scoped/oro-project.md +170 -0
- package/skills/repo-bootstrap/assets/scoped/python-modern.md +170 -0
- package/skills/repo-bootstrap/assets/scoped/resources.md +96 -0
- package/skills/repo-bootstrap/assets/scoped/skill-repo.md +139 -0
- package/skills/repo-bootstrap/assets/scoped/symfony.md +168 -0
- package/skills/repo-bootstrap/assets/scoped/testing.md +87 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-docs.md +103 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-extension.md +133 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-project.md +137 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-testing.md +80 -0
- package/skills/repo-bootstrap/checkpoints.yaml +279 -0
- package/skills/repo-bootstrap/evals/evals.json +385 -0
- package/skills/repo-bootstrap/references/ai-contribution-guidelines.md +63 -0
- package/skills/repo-bootstrap/references/ai-tool-compatibility.md +223 -0
- package/skills/repo-bootstrap/references/directory-coverage.md +82 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/scripts-AGENTS.md +389 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/.env.example +13 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/package.json +33 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/pnpm-lock.yaml +3 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/config.ts +28 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/controllers/userController.ts +74 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/index.ts +26 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/errorHandler.ts +45 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/requestLogger.ts +18 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/health.ts +18 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/users.ts +13 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/errors.ts +40 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/logger.ts +14 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/tsconfig.json +24 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/.env.example +19 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/AGENTS.md +92 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/pyproject.toml +88 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/AGENTS.md +85 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/__init__.py +3 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/config.py +49 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/main.py +66 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/__init__.py +13 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/item.py +43 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/user.py +40 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/__init__.py +5 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/health.py +20 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/items.py +61 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/users.py +55 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/__init__.py +6 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/item_service.py +77 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/user_service.py +69 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/uv.lock +4 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/AGENTS.md +86 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/package.json +20 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/src/App.tsx +5 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/cmd/api/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/go.mod +2 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/AGENTS.md +89 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/go.mod +2 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/AGENTS.md +90 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/package.json +17 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/App.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Button.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Footer.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Header.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Sidebar.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package-lock.json +0 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package.json +12 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-AGENTS.md +371 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-web-AGENTS.md +448 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/composer.json +8 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/package.json +15 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/pnpm-lock.yaml +0 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/src/Controller.php +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/AGENTS.md +92 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/package.json +26 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/App.tsx +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Button.tsx +10 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Footer.tsx +9 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Header.tsx +9 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/main.tsx +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/tsconfig.json +13 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/AGENTS.md +75 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/package.json +7 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/package.json +11 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/src/index.ts +11 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-lock.yaml +42 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-workspace.yaml +2 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/examples-AGENTS.md +45 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/Classes-AGENTS.md +392 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/composer.json +8 -0
- package/skills/repo-bootstrap/references/feedback-memory-schema.md +135 -0
- package/skills/repo-bootstrap/references/git-hooks-setup.md +79 -0
- package/skills/repo-bootstrap/references/output-structure.md +124 -0
- package/skills/repo-bootstrap/references/scripts-guide.md +175 -0
- package/skills/repo-bootstrap/references/verification-guide.md +137 -0
- package/skills/repo-bootstrap/scripts/analyze-git-history.sh +315 -0
- package/skills/repo-bootstrap/scripts/check-freshness.sh +230 -0
- package/skills/repo-bootstrap/scripts/detect-golden-samples.sh +161 -0
- package/skills/repo-bootstrap/scripts/detect-heuristics.sh +93 -0
- package/skills/repo-bootstrap/scripts/detect-project.sh +486 -0
- package/skills/repo-bootstrap/scripts/detect-scopes.sh +330 -0
- package/skills/repo-bootstrap/scripts/detect-utilities.sh +133 -0
- package/skills/repo-bootstrap/scripts/extract-adrs.sh +194 -0
- package/skills/repo-bootstrap/scripts/extract-agent-configs.sh +331 -0
- package/skills/repo-bootstrap/scripts/extract-architecture-rules.sh +522 -0
- package/skills/repo-bootstrap/scripts/extract-ci-commands.sh +385 -0
- package/skills/repo-bootstrap/scripts/extract-ci-rules.sh +384 -0
- package/skills/repo-bootstrap/scripts/extract-commands.sh +358 -0
- package/skills/repo-bootstrap/scripts/extract-documentation.sh +308 -0
- package/skills/repo-bootstrap/scripts/extract-github-rulesets.sh +96 -0
- package/skills/repo-bootstrap/scripts/extract-github-settings.sh +88 -0
- package/skills/repo-bootstrap/scripts/extract-ide-settings.sh +228 -0
- package/skills/repo-bootstrap/scripts/extract-platform-files.sh +290 -0
- package/skills/repo-bootstrap/scripts/extract-quality-configs.sh +442 -0
- package/skills/repo-bootstrap/scripts/generate-agents.sh +2424 -0
- package/skills/repo-bootstrap/scripts/generate-file-map.sh +153 -0
- package/skills/repo-bootstrap/scripts/lib/config-root.sh +211 -0
- package/skills/repo-bootstrap/scripts/lib/summary.sh +244 -0
- package/skills/repo-bootstrap/scripts/lib/template.sh +397 -0
- package/skills/repo-bootstrap/scripts/validate-structure.sh +324 -0
- package/skills/repo-bootstrap/scripts/verify-commands.sh +615 -0
- package/skills/repo-bootstrap/scripts/verify-content.sh +302 -0
- package/skills/schema-api-contracts/SKILL.md +56 -0
- package/skills/secret-hygiene/SKILL.md +511 -0
- package/skills/secret-hygiene/assets/.gitkeep +9 -0
- package/skills/secret-hygiene/assets/config-balanced.toml +81 -0
- package/skills/secret-hygiene/assets/config-custom.toml +178 -0
- package/skills/secret-hygiene/assets/config-strict.toml +48 -0
- package/skills/secret-hygiene/assets/github-action.yml +181 -0
- package/skills/secret-hygiene/assets/gitlab-ci.yml +257 -0
- package/skills/secret-hygiene/assets/precommit-config.yaml +70 -0
- package/skills/secret-hygiene/references/EXAMPLE.md +40 -0
- package/skills/secret-hygiene/references/compliance_mapping.md +538 -0
- package/skills/secret-hygiene/references/detection_rules.md +276 -0
- package/skills/secret-hygiene/references/false_positives.md +598 -0
- package/skills/secret-hygiene/references/remediation_guide.md +530 -0
- package/skills/stack-selector/SKILL.md +56 -0
- package/skills/telegram-control/SKILL.md +110 -0
- package/skills/telegram-control/references/architecture.md +184 -0
- package/skills/telegram-control/references/convex.md +173 -0
- package/skills/telegram-control/references/error_handling.md +212 -0
- package/skills/telegram-control/references/initial_setup.md +165 -0
- package/skills/telegram-control/references/telegram_api.md +156 -0
- package/skills/telegram-control/scripts/cancel_message.ts +53 -0
- package/skills/telegram-control/scripts/list_scheduled.ts +103 -0
- package/skills/telegram-control/scripts/logger.ts +121 -0
- package/skills/telegram-control/scripts/proxy-util.ts +11 -0
- package/skills/telegram-control/scripts/schedule_message.ts +216 -0
- package/skills/telegram-control/scripts/send_message.ts +115 -0
- package/skills/telegram-control/scripts/setup.ts +185 -0
- package/skills/telegram-control/scripts/types.ts +75 -0
- package/skills/telegram-control/scripts/view_history.ts +74 -0
- package/skills/test-strategy/SKILL.md +352 -0
- package/skills/threat-model/SKILL.md +303 -0
- package/skills/threat-model/examples/example-output.md +196 -0
- package/skills/threat-model/template.md +96 -0
- package/skills/ts-lint/SKILL.md +80 -0
- package/skills/ui-flow/SKILL.md +668 -0
- package/skills/voice-command-router/SKILL.md +51 -0
- package/skills/widget-live-activity-sync/SKILL.md +66 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# GitLab CI/CD Pipeline for OWASP ZAP Security Scanning
|
|
2
|
+
# Add this to your .gitlab-ci.yml file
|
|
3
|
+
|
|
4
|
+
stages:
|
|
5
|
+
- security
|
|
6
|
+
- report
|
|
7
|
+
|
|
8
|
+
variables:
|
|
9
|
+
ZAP_IMAGE: "zaproxy/zap-stable:latest"
|
|
10
|
+
STAGING_URL: "https://staging.example.com"
|
|
11
|
+
REPORTS_DIR: "security-reports"
|
|
12
|
+
|
|
13
|
+
# Baseline scan for all merge requests
|
|
14
|
+
zap_baseline_scan:
|
|
15
|
+
stage: security
|
|
16
|
+
image: docker:latest
|
|
17
|
+
services:
|
|
18
|
+
- docker:dind
|
|
19
|
+
script:
|
|
20
|
+
- mkdir -p $REPORTS_DIR
|
|
21
|
+
- |
|
|
22
|
+
docker run --rm \
|
|
23
|
+
-v $(pwd)/$REPORTS_DIR:/zap/wrk/:rw \
|
|
24
|
+
$ZAP_IMAGE \
|
|
25
|
+
zap-baseline.py \
|
|
26
|
+
-t $STAGING_URL \
|
|
27
|
+
-r /zap/wrk/baseline-report.html \
|
|
28
|
+
-J /zap/wrk/baseline-report.json \
|
|
29
|
+
-w /zap/wrk/baseline-report.md \
|
|
30
|
+
|| true
|
|
31
|
+
- echo "Baseline scan completed"
|
|
32
|
+
artifacts:
|
|
33
|
+
when: always
|
|
34
|
+
paths:
|
|
35
|
+
- $REPORTS_DIR/
|
|
36
|
+
reports:
|
|
37
|
+
junit: $REPORTS_DIR/baseline-report.xml
|
|
38
|
+
expire_in: 1 week
|
|
39
|
+
only:
|
|
40
|
+
- merge_requests
|
|
41
|
+
- develop
|
|
42
|
+
- main
|
|
43
|
+
tags:
|
|
44
|
+
- docker
|
|
45
|
+
|
|
46
|
+
# Full active scan (manual trigger for staging)
|
|
47
|
+
zap_full_scan:
|
|
48
|
+
stage: security
|
|
49
|
+
image: docker:latest
|
|
50
|
+
services:
|
|
51
|
+
- docker:dind
|
|
52
|
+
script:
|
|
53
|
+
- mkdir -p $REPORTS_DIR
|
|
54
|
+
- |
|
|
55
|
+
docker run --rm \
|
|
56
|
+
-v $(pwd)/$REPORTS_DIR:/zap/wrk/:rw \
|
|
57
|
+
-v $(pwd)/.zap:/zap/config/:ro \
|
|
58
|
+
$ZAP_IMAGE \
|
|
59
|
+
zap-full-scan.py \
|
|
60
|
+
-t $STAGING_URL \
|
|
61
|
+
-c /zap/config/rules.tsv \
|
|
62
|
+
-r /zap/wrk/full-scan-report.html \
|
|
63
|
+
-J /zap/wrk/full-scan-report.json \
|
|
64
|
+
-x /zap/wrk/full-scan-report.xml \
|
|
65
|
+
|| true
|
|
66
|
+
# Check for high-risk findings
|
|
67
|
+
- |
|
|
68
|
+
if command -v jq &> /dev/null; then
|
|
69
|
+
HIGH_COUNT=$(jq '[.site[].alerts[] | select(.risk == "High")] | length' $REPORTS_DIR/full-scan-report.json)
|
|
70
|
+
echo "High risk findings: $HIGH_COUNT"
|
|
71
|
+
if [ "$HIGH_COUNT" -gt 0 ]; then
|
|
72
|
+
echo "❌ Security scan failed: $HIGH_COUNT high-risk vulnerabilities"
|
|
73
|
+
exit 1
|
|
74
|
+
fi
|
|
75
|
+
fi
|
|
76
|
+
artifacts:
|
|
77
|
+
when: always
|
|
78
|
+
paths:
|
|
79
|
+
- $REPORTS_DIR/
|
|
80
|
+
expire_in: 4 weeks
|
|
81
|
+
only:
|
|
82
|
+
- develop
|
|
83
|
+
when: manual
|
|
84
|
+
allow_failure: false
|
|
85
|
+
tags:
|
|
86
|
+
- docker
|
|
87
|
+
|
|
88
|
+
# API security scan
|
|
89
|
+
zap_api_scan:
|
|
90
|
+
stage: security
|
|
91
|
+
image: docker:latest
|
|
92
|
+
services:
|
|
93
|
+
- docker:dind
|
|
94
|
+
script:
|
|
95
|
+
- mkdir -p $REPORTS_DIR
|
|
96
|
+
- |
|
|
97
|
+
if [ -f "openapi.yaml" ]; then
|
|
98
|
+
docker run --rm \
|
|
99
|
+
-v $(pwd)/$REPORTS_DIR:/zap/wrk/:rw \
|
|
100
|
+
-v $(pwd):/zap/specs/:ro \
|
|
101
|
+
$ZAP_IMAGE \
|
|
102
|
+
zap-api-scan.py \
|
|
103
|
+
-t $STAGING_URL \
|
|
104
|
+
-f openapi \
|
|
105
|
+
-d /zap/specs/openapi.yaml \
|
|
106
|
+
-r /zap/wrk/api-scan-report.html \
|
|
107
|
+
-J /zap/wrk/api-scan-report.json \
|
|
108
|
+
|| true
|
|
109
|
+
else
|
|
110
|
+
echo "OpenAPI specification not found, skipping API scan"
|
|
111
|
+
fi
|
|
112
|
+
artifacts:
|
|
113
|
+
when: always
|
|
114
|
+
paths:
|
|
115
|
+
- $REPORTS_DIR/
|
|
116
|
+
expire_in: 1 week
|
|
117
|
+
only:
|
|
118
|
+
- merge_requests
|
|
119
|
+
- develop
|
|
120
|
+
allow_failure: true
|
|
121
|
+
tags:
|
|
122
|
+
- docker
|
|
123
|
+
|
|
124
|
+
# Authenticated scan (requires test credentials)
|
|
125
|
+
zap_authenticated_scan:
|
|
126
|
+
stage: security
|
|
127
|
+
image: python:3.11-slim
|
|
128
|
+
before_script:
|
|
129
|
+
- apt-get update && apt-get install -y docker.io
|
|
130
|
+
script:
|
|
131
|
+
- mkdir -p $REPORTS_DIR
|
|
132
|
+
- |
|
|
133
|
+
python3 scripts/zap_auth_scanner.py \
|
|
134
|
+
--target $STAGING_URL \
|
|
135
|
+
--auth-type form \
|
|
136
|
+
--login-url $STAGING_URL/login \
|
|
137
|
+
--username $TEST_USERNAME \
|
|
138
|
+
--password-env TEST_PASSWORD \
|
|
139
|
+
--output $REPORTS_DIR/authenticated-scan-report.html
|
|
140
|
+
artifacts:
|
|
141
|
+
when: always
|
|
142
|
+
paths:
|
|
143
|
+
- $REPORTS_DIR/
|
|
144
|
+
expire_in: 4 weeks
|
|
145
|
+
only:
|
|
146
|
+
- develop
|
|
147
|
+
when: manual
|
|
148
|
+
tags:
|
|
149
|
+
- docker
|
|
150
|
+
|
|
151
|
+
# Security gate - check thresholds
|
|
152
|
+
security_gate:
|
|
153
|
+
stage: report
|
|
154
|
+
image: alpine:latest
|
|
155
|
+
before_script:
|
|
156
|
+
- apk add --no-cache jq
|
|
157
|
+
script:
|
|
158
|
+
- |
|
|
159
|
+
if [ -f "$REPORTS_DIR/baseline-report.json" ]; then
|
|
160
|
+
HIGH_COUNT=$(jq '[.site[].alerts[] | select(.risk == "High")] | length' $REPORTS_DIR/baseline-report.json)
|
|
161
|
+
MEDIUM_COUNT=$(jq '[.site[].alerts[] | select(.risk == "Medium")] | length' $REPORTS_DIR/baseline-report.json)
|
|
162
|
+
|
|
163
|
+
echo "==================================="
|
|
164
|
+
echo "Security Scan Results"
|
|
165
|
+
echo "==================================="
|
|
166
|
+
echo "High risk findings: $HIGH_COUNT"
|
|
167
|
+
echo "Medium risk findings: $MEDIUM_COUNT"
|
|
168
|
+
echo "==================================="
|
|
169
|
+
|
|
170
|
+
# Fail on high-risk findings
|
|
171
|
+
if [ "$HIGH_COUNT" -gt 0 ]; then
|
|
172
|
+
echo "❌ Build failed: High-risk vulnerabilities detected"
|
|
173
|
+
exit 1
|
|
174
|
+
fi
|
|
175
|
+
|
|
176
|
+
# Warn on medium-risk findings above threshold
|
|
177
|
+
if [ "$MEDIUM_COUNT" -gt 10 ]; then
|
|
178
|
+
echo "⚠️ Warning: $MEDIUM_COUNT medium-risk findings (threshold: 10)"
|
|
179
|
+
fi
|
|
180
|
+
|
|
181
|
+
echo "✅ Security gate passed"
|
|
182
|
+
else
|
|
183
|
+
echo "No scan report found, skipping security gate"
|
|
184
|
+
fi
|
|
185
|
+
dependencies:
|
|
186
|
+
- zap_baseline_scan
|
|
187
|
+
only:
|
|
188
|
+
- merge_requests
|
|
189
|
+
- develop
|
|
190
|
+
- main
|
|
191
|
+
|
|
192
|
+
# Generate consolidated report
|
|
193
|
+
generate_report:
|
|
194
|
+
stage: report
|
|
195
|
+
image: alpine:latest
|
|
196
|
+
before_script:
|
|
197
|
+
- apk add --no-cache jq curl
|
|
198
|
+
script:
|
|
199
|
+
- |
|
|
200
|
+
echo "# Security Scan Report" > $REPORTS_DIR/summary.md
|
|
201
|
+
echo "" >> $REPORTS_DIR/summary.md
|
|
202
|
+
echo "**Scan Date:** $(date)" >> $REPORTS_DIR/summary.md
|
|
203
|
+
echo "**Target:** $STAGING_URL" >> $REPORTS_DIR/summary.md
|
|
204
|
+
echo "" >> $REPORTS_DIR/summary.md
|
|
205
|
+
echo "## Findings Summary" >> $REPORTS_DIR/summary.md
|
|
206
|
+
echo "" >> $REPORTS_DIR/summary.md
|
|
207
|
+
|
|
208
|
+
if [ -f "$REPORTS_DIR/baseline-report.json" ]; then
|
|
209
|
+
echo "| Risk Level | Count |" >> $REPORTS_DIR/summary.md
|
|
210
|
+
echo "|------------|-------|" >> $REPORTS_DIR/summary.md
|
|
211
|
+
jq -r '.site[].alerts[] | .risk' $REPORTS_DIR/baseline-report.json | \
|
|
212
|
+
sort | uniq -c | awk '{print "| " $2 " | " $1 " |"}' >> $REPORTS_DIR/summary.md
|
|
213
|
+
fi
|
|
214
|
+
|
|
215
|
+
cat $REPORTS_DIR/summary.md
|
|
216
|
+
artifacts:
|
|
217
|
+
when: always
|
|
218
|
+
paths:
|
|
219
|
+
- $REPORTS_DIR/summary.md
|
|
220
|
+
expire_in: 4 weeks
|
|
221
|
+
dependencies:
|
|
222
|
+
- zap_baseline_scan
|
|
223
|
+
only:
|
|
224
|
+
- merge_requests
|
|
225
|
+
- develop
|
|
226
|
+
- main
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# OWASP ZAP Automation Framework Configuration
|
|
2
|
+
# Complete automation workflow for web application security testing
|
|
3
|
+
|
|
4
|
+
env:
|
|
5
|
+
contexts:
|
|
6
|
+
- name: WebApp-Security-Scan
|
|
7
|
+
urls:
|
|
8
|
+
- ${TARGET_URL}
|
|
9
|
+
includePaths:
|
|
10
|
+
- ${TARGET_URL}.*
|
|
11
|
+
excludePaths:
|
|
12
|
+
- .*logout.*
|
|
13
|
+
- .*signout.*
|
|
14
|
+
- .*\\.css
|
|
15
|
+
- .*\\.js
|
|
16
|
+
- .*\\.png
|
|
17
|
+
- .*\\.jpg
|
|
18
|
+
- .*\\.gif
|
|
19
|
+
- .*\\.svg
|
|
20
|
+
authentication:
|
|
21
|
+
method: form
|
|
22
|
+
parameters:
|
|
23
|
+
loginUrl: ${LOGIN_URL}
|
|
24
|
+
loginRequestData: username={%username%}&password={%password%}
|
|
25
|
+
verification:
|
|
26
|
+
method: response
|
|
27
|
+
loggedInRegex: "\\QWelcome\\E"
|
|
28
|
+
loggedOutRegex: "\\QLogin\\E"
|
|
29
|
+
sessionManagement:
|
|
30
|
+
method: cookie
|
|
31
|
+
parameters:
|
|
32
|
+
sessionCookieName: JSESSIONID
|
|
33
|
+
users:
|
|
34
|
+
- name: test-user
|
|
35
|
+
credentials:
|
|
36
|
+
username: ${TEST_USERNAME}
|
|
37
|
+
password: ${TEST_PASSWORD}
|
|
38
|
+
|
|
39
|
+
parameters:
|
|
40
|
+
failOnError: true
|
|
41
|
+
failOnWarning: false
|
|
42
|
+
progressToStdout: true
|
|
43
|
+
|
|
44
|
+
vars:
|
|
45
|
+
target_url: ${TARGET_URL}
|
|
46
|
+
api_key: ${ZAP_API_KEY}
|
|
47
|
+
|
|
48
|
+
jobs:
|
|
49
|
+
# Environment setup
|
|
50
|
+
- type: environment
|
|
51
|
+
parameters:
|
|
52
|
+
deleteGlobalAlerts: true
|
|
53
|
+
updateAddOns: true
|
|
54
|
+
|
|
55
|
+
# Import OpenAPI specification (if available)
|
|
56
|
+
- type: openapi
|
|
57
|
+
parameters:
|
|
58
|
+
apiFile: ${OPENAPI_SPEC_FILE}
|
|
59
|
+
apiUrl: ${TARGET_URL}
|
|
60
|
+
targetUrl: ${TARGET_URL}
|
|
61
|
+
context: WebApp-Security-Scan
|
|
62
|
+
optional: true
|
|
63
|
+
|
|
64
|
+
# Spider crawling
|
|
65
|
+
- type: spider
|
|
66
|
+
parameters:
|
|
67
|
+
context: WebApp-Security-Scan
|
|
68
|
+
user: test-user
|
|
69
|
+
maxDuration: 10
|
|
70
|
+
maxDepth: 5
|
|
71
|
+
maxChildren: 10
|
|
72
|
+
acceptCookies: true
|
|
73
|
+
handleODataParametersVisited: true
|
|
74
|
+
parseComments: true
|
|
75
|
+
parseRobotsTxt: true
|
|
76
|
+
parseSitemapXml: true
|
|
77
|
+
parseSVNEntries: true
|
|
78
|
+
parseGit: true
|
|
79
|
+
postForm: true
|
|
80
|
+
processForm: true
|
|
81
|
+
requestWaitTime: 200
|
|
82
|
+
|
|
83
|
+
# AJAX Spider for JavaScript-heavy applications
|
|
84
|
+
- type: spiderAjax
|
|
85
|
+
parameters:
|
|
86
|
+
context: WebApp-Security-Scan
|
|
87
|
+
user: test-user
|
|
88
|
+
maxDuration: 10
|
|
89
|
+
maxCrawlDepth: 5
|
|
90
|
+
numberOfBrowsers: 2
|
|
91
|
+
browserId: firefox-headless
|
|
92
|
+
clickDefaultElems: true
|
|
93
|
+
clickElemsOnce: true
|
|
94
|
+
eventWait: 1000
|
|
95
|
+
reloadWait: 1000
|
|
96
|
+
optional: true
|
|
97
|
+
|
|
98
|
+
# Wait for passive scanning to complete
|
|
99
|
+
- type: passiveScan-wait
|
|
100
|
+
parameters:
|
|
101
|
+
maxDuration: 5
|
|
102
|
+
|
|
103
|
+
# Configure passive scan rules
|
|
104
|
+
- type: passiveScan-config
|
|
105
|
+
parameters:
|
|
106
|
+
maxAlertsPerRule: 10
|
|
107
|
+
scanOnlyInScope: true
|
|
108
|
+
enableTags: true
|
|
109
|
+
disableRules:
|
|
110
|
+
- 10096 # Timestamp Disclosure (informational)
|
|
111
|
+
|
|
112
|
+
# Active scanning
|
|
113
|
+
- type: activeScan
|
|
114
|
+
parameters:
|
|
115
|
+
context: WebApp-Security-Scan
|
|
116
|
+
user: test-user
|
|
117
|
+
policy: Default Policy
|
|
118
|
+
maxRuleDurationInMins: 5
|
|
119
|
+
maxScanDurationInMins: 30
|
|
120
|
+
addQueryParam: false
|
|
121
|
+
defaultPolicy: Default Policy
|
|
122
|
+
delayInMs: 0
|
|
123
|
+
handleAntiCSRFTokens: true
|
|
124
|
+
injectPluginIdInHeader: false
|
|
125
|
+
scanHeadersAllRequests: false
|
|
126
|
+
threadPerHost: 2
|
|
127
|
+
|
|
128
|
+
# Wait for active scanning to complete
|
|
129
|
+
- type: activeScan-wait
|
|
130
|
+
|
|
131
|
+
# Generate reports
|
|
132
|
+
- type: report
|
|
133
|
+
parameters:
|
|
134
|
+
template: traditional-html
|
|
135
|
+
reportDir: ${REPORT_DIR}
|
|
136
|
+
reportFile: security-report.html
|
|
137
|
+
reportTitle: Web Application Security Assessment
|
|
138
|
+
reportDescription: Automated DAST scan using OWASP ZAP
|
|
139
|
+
displayReport: false
|
|
140
|
+
|
|
141
|
+
- type: report
|
|
142
|
+
parameters:
|
|
143
|
+
template: traditional-json
|
|
144
|
+
reportDir: ${REPORT_DIR}
|
|
145
|
+
reportFile: security-report.json
|
|
146
|
+
reportTitle: Web Application Security Assessment
|
|
147
|
+
|
|
148
|
+
- type: report
|
|
149
|
+
parameters:
|
|
150
|
+
template: traditional-xml
|
|
151
|
+
reportDir: ${REPORT_DIR}
|
|
152
|
+
reportFile: security-report.xml
|
|
153
|
+
reportTitle: Web Application Security Assessment
|
|
154
|
+
|
|
155
|
+
- type: report
|
|
156
|
+
parameters:
|
|
157
|
+
template: sarif-json
|
|
158
|
+
reportDir: ${REPORT_DIR}
|
|
159
|
+
reportFile: security-report.sarif
|
|
160
|
+
reportTitle: Web Application Security Assessment (SARIF)
|
|
161
|
+
optional: true
|
|
162
|
+
|
|
163
|
+
# Alert filters (false positive suppression)
|
|
164
|
+
alertFilters:
|
|
165
|
+
- ruleId: 10021
|
|
166
|
+
newRisk: Info
|
|
167
|
+
url: ".*\\.css|.*\\.js|.*cdn\\..*"
|
|
168
|
+
context: WebApp-Security-Scan
|
|
169
|
+
|
|
170
|
+
- ruleId: 10096
|
|
171
|
+
newRisk: Info
|
|
172
|
+
url: ".*api\\..*"
|
|
173
|
+
parameter: "created_at|updated_at|timestamp"
|
|
174
|
+
context: WebApp-Security-Scan
|
|
175
|
+
|
|
176
|
+
# Scan policies
|
|
177
|
+
policies:
|
|
178
|
+
- name: Default Policy
|
|
179
|
+
defaultStrength: Medium
|
|
180
|
+
defaultThreshold: Medium
|
|
181
|
+
rules:
|
|
182
|
+
- id: 40018 # SQL Injection
|
|
183
|
+
strength: High
|
|
184
|
+
threshold: Low
|
|
185
|
+
- id: 40012 # Cross-Site Scripting (Reflected)
|
|
186
|
+
strength: High
|
|
187
|
+
threshold: Low
|
|
188
|
+
- id: 40014 # Cross-Site Scripting (Persistent)
|
|
189
|
+
strength: High
|
|
190
|
+
threshold: Low
|
|
191
|
+
- id: 90019 # Server-Side Code Injection
|
|
192
|
+
strength: High
|
|
193
|
+
threshold: Low
|
|
194
|
+
- id: 90020 # Remote OS Command Injection
|
|
195
|
+
strength: High
|
|
196
|
+
threshold: Low
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
OWASP ZAP Authentication Context Template
|
|
4
|
+
Configure this file for form-based, HTTP, or script-based authentication
|
|
5
|
+
-->
|
|
6
|
+
<configuration>
|
|
7
|
+
<context>
|
|
8
|
+
<!-- Context Name -->
|
|
9
|
+
<name>WebApp-Auth-Context</name>
|
|
10
|
+
<desc>Authentication context for web application security testing</desc>
|
|
11
|
+
|
|
12
|
+
<!-- Enable context -->
|
|
13
|
+
<inscope>true</inscope>
|
|
14
|
+
|
|
15
|
+
<!-- URL Scope Definition -->
|
|
16
|
+
<!-- Include all URLs under target domain -->
|
|
17
|
+
<incregexes>https://app\.example\.com/.*</incregexes>
|
|
18
|
+
|
|
19
|
+
<!-- Exclude logout and static content -->
|
|
20
|
+
<excregexes>https://app\.example\.com/logout</excregexes>
|
|
21
|
+
<excregexes>https://app\.example\.com/signout</excregexes>
|
|
22
|
+
<excregexes>https://app\.example\.com/static/.*</excregexes>
|
|
23
|
+
<excregexes>.*\.css</excregexes>
|
|
24
|
+
<excregexes>.*\.js</excregexes>
|
|
25
|
+
<excregexes>.*\.png|.*\.jpg|.*\.gif</excregexes>
|
|
26
|
+
|
|
27
|
+
<!-- Technology Detection -->
|
|
28
|
+
<tech>
|
|
29
|
+
<include>Language</include>
|
|
30
|
+
<include>Language.JavaScript</include>
|
|
31
|
+
<include>OS</include>
|
|
32
|
+
<include>OS.Linux</include>
|
|
33
|
+
<include>WS</include>
|
|
34
|
+
</tech>
|
|
35
|
+
|
|
36
|
+
<!-- Authentication Configuration -->
|
|
37
|
+
<authentication>
|
|
38
|
+
<!--
|
|
39
|
+
Authentication Types:
|
|
40
|
+
- formBasedAuthentication: Traditional login forms
|
|
41
|
+
- httpAuthentication: HTTP Basic/Digest/NTLM
|
|
42
|
+
- scriptBasedAuthentication: Custom authentication via script
|
|
43
|
+
-->
|
|
44
|
+
<type>formBasedAuthentication</type>
|
|
45
|
+
|
|
46
|
+
<!-- Form-Based Authentication -->
|
|
47
|
+
<form>
|
|
48
|
+
<!-- Login URL -->
|
|
49
|
+
<loginurl>https://app.example.com/login</loginurl>
|
|
50
|
+
|
|
51
|
+
<!-- Login Request Body (POST parameters) -->
|
|
52
|
+
<!-- Use {%username%} and {%password%} as placeholders -->
|
|
53
|
+
<loginbody>username={%username%}&password={%password%}&csrf_token={%csrf_token%}</loginbody>
|
|
54
|
+
|
|
55
|
+
<!-- Login Page URL (where login form is displayed) -->
|
|
56
|
+
<loginpageurl>https://app.example.com/login</loginpageurl>
|
|
57
|
+
</form>
|
|
58
|
+
|
|
59
|
+
<!-- HTTP Authentication (uncomment if using) -->
|
|
60
|
+
<!--
|
|
61
|
+
<http>
|
|
62
|
+
<realm>Protected Area</realm>
|
|
63
|
+
<hostname>app.example.com</hostname>
|
|
64
|
+
<port>443</port>
|
|
65
|
+
</http>
|
|
66
|
+
-->
|
|
67
|
+
|
|
68
|
+
<!-- Logged-In Indicator (regex pattern that appears when logged in) -->
|
|
69
|
+
<!-- This helps ZAP determine if authentication succeeded -->
|
|
70
|
+
<loggedin>\QWelcome,\E</loggedin>
|
|
71
|
+
<!-- Alternative patterns:
|
|
72
|
+
<loggedin>\QLogout\E</loggedin>
|
|
73
|
+
<loggedin>\Qdashboard\E</loggedin>
|
|
74
|
+
<loggedin>class="user-menu"</loggedin>
|
|
75
|
+
-->
|
|
76
|
+
|
|
77
|
+
<!-- Logged-Out Indicator (regex pattern that appears when logged out) -->
|
|
78
|
+
<loggedout>\QYou are not logged in\E</loggedout>
|
|
79
|
+
<!-- Alternative patterns:
|
|
80
|
+
<loggedout>\QLogin\E</loggedout>
|
|
81
|
+
<loggedout>\QSign In\E</loggedout>
|
|
82
|
+
-->
|
|
83
|
+
|
|
84
|
+
<!-- Poll URL for verification (optional) -->
|
|
85
|
+
<pollurl>https://app.example.com/api/session/verify</pollurl>
|
|
86
|
+
<polldata></polldata>
|
|
87
|
+
<pollfreq>60</pollfreq>
|
|
88
|
+
</authentication>
|
|
89
|
+
|
|
90
|
+
<!-- Session Management -->
|
|
91
|
+
<sessionManagement>
|
|
92
|
+
<!--
|
|
93
|
+
Session Management Types:
|
|
94
|
+
- cookieBasedSessionManagement: Session via cookies (most common)
|
|
95
|
+
- httpAuthSessionManagement: HTTP authentication
|
|
96
|
+
- scriptBasedSessionManagement: Custom session handling
|
|
97
|
+
-->
|
|
98
|
+
<type>cookieBasedSessionManagement</type>
|
|
99
|
+
|
|
100
|
+
<!-- Session cookies to monitor -->
|
|
101
|
+
<sessioncookies>
|
|
102
|
+
<cookie>JSESSIONID</cookie>
|
|
103
|
+
<cookie>PHPSESSID</cookie>
|
|
104
|
+
<cookie>sessionid</cookie>
|
|
105
|
+
<cookie>session_token</cookie>
|
|
106
|
+
</sessioncookies>
|
|
107
|
+
</sessionManagement>
|
|
108
|
+
|
|
109
|
+
<!-- Test Users -->
|
|
110
|
+
<users>
|
|
111
|
+
<!-- User 1: Standard test user -->
|
|
112
|
+
<user>
|
|
113
|
+
<name>testuser</name>
|
|
114
|
+
<enabled>true</enabled>
|
|
115
|
+
<credentials>
|
|
116
|
+
<credential>
|
|
117
|
+
<name>username</name>
|
|
118
|
+
<value>testuser</value>
|
|
119
|
+
</credential>
|
|
120
|
+
<credential>
|
|
121
|
+
<name>password</name>
|
|
122
|
+
<value>TestPassword123!</value>
|
|
123
|
+
</credential>
|
|
124
|
+
<!-- CSRF token (if needed) -->
|
|
125
|
+
<!--
|
|
126
|
+
<credential>
|
|
127
|
+
<name>csrf_token</name>
|
|
128
|
+
<value></value>
|
|
129
|
+
</credential>
|
|
130
|
+
-->
|
|
131
|
+
</credentials>
|
|
132
|
+
</user>
|
|
133
|
+
|
|
134
|
+
<!-- User 2: Admin user (if testing authorization) -->
|
|
135
|
+
<user>
|
|
136
|
+
<name>adminuser</name>
|
|
137
|
+
<enabled>false</enabled>
|
|
138
|
+
<credentials>
|
|
139
|
+
<credential>
|
|
140
|
+
<name>username</name>
|
|
141
|
+
<value>adminuser</value>
|
|
142
|
+
</credential>
|
|
143
|
+
<credential>
|
|
144
|
+
<name>password</name>
|
|
145
|
+
<value>AdminPassword123!</value>
|
|
146
|
+
</credential>
|
|
147
|
+
</credentials>
|
|
148
|
+
</user>
|
|
149
|
+
</users>
|
|
150
|
+
|
|
151
|
+
<!-- Forced User Mode (for authorization testing) -->
|
|
152
|
+
<!--
|
|
153
|
+
Enables testing if authenticated user can access resources
|
|
154
|
+
they shouldn't have access to
|
|
155
|
+
-->
|
|
156
|
+
<forcedUserMode>false</forcedUserMode>
|
|
157
|
+
|
|
158
|
+
<!-- Data Driven Nodes -->
|
|
159
|
+
<!--
|
|
160
|
+
For testing parameters with different values
|
|
161
|
+
-->
|
|
162
|
+
<datadrivennodes>
|
|
163
|
+
<node>
|
|
164
|
+
<name>user_id</name>
|
|
165
|
+
<url>https://app.example.com/api/users/{user_id}</url>
|
|
166
|
+
</node>
|
|
167
|
+
</datadrivennodes>
|
|
168
|
+
</context>
|
|
169
|
+
|
|
170
|
+
<!-- Global Exclude URLs (applied to all contexts) -->
|
|
171
|
+
<globalexcludeurl>
|
|
172
|
+
<regex>https://.*\.googleapis\.com/.*</regex>
|
|
173
|
+
<regex>https://.*\.google-analytics\.com/.*</regex>
|
|
174
|
+
<regex>https://.*\.googletagmanager\.com/.*</regex>
|
|
175
|
+
<regex>https://cdn\..*</regex>
|
|
176
|
+
</globalexcludeurl>
|
|
177
|
+
|
|
178
|
+
<!-- Anti-CSRF Token Configuration -->
|
|
179
|
+
<anticsrf>
|
|
180
|
+
<!-- Enable anti-CSRF token handling -->
|
|
181
|
+
<enabled>true</enabled>
|
|
182
|
+
|
|
183
|
+
<!-- Token names to automatically detect and handle -->
|
|
184
|
+
<tokennames>
|
|
185
|
+
<tokenname>csrf_token</tokenname>
|
|
186
|
+
<tokenname>csrftoken</tokenname>
|
|
187
|
+
<tokenname>_csrf</tokenname>
|
|
188
|
+
<tokenname>authenticity_token</tokenname>
|
|
189
|
+
<tokenname>__RequestVerificationToken</tokenname>
|
|
190
|
+
</tokennames>
|
|
191
|
+
</anticsrf>
|
|
192
|
+
</configuration>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Reference Document Template
|
|
2
|
+
|
|
3
|
+
This file contains detailed reference material that Claude should load only when needed.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Section 1](#section-1)
|
|
8
|
+
- [Section 2](#section-2)
|
|
9
|
+
- [Security Standards](#security-standards)
|
|
10
|
+
|
|
11
|
+
## Section 1
|
|
12
|
+
|
|
13
|
+
Detailed information, schemas, or examples that are too large for SKILL.md.
|
|
14
|
+
|
|
15
|
+
## Section 2
|
|
16
|
+
|
|
17
|
+
Additional reference material.
|
|
18
|
+
|
|
19
|
+
## Security Standards
|
|
20
|
+
|
|
21
|
+
### OWASP Top 10
|
|
22
|
+
|
|
23
|
+
Reference relevant OWASP categories:
|
|
24
|
+
- A01: Broken Access Control
|
|
25
|
+
- A02: Cryptographic Failures
|
|
26
|
+
- etc.
|
|
27
|
+
|
|
28
|
+
### CWE Mappings
|
|
29
|
+
|
|
30
|
+
Map to relevant Common Weakness Enumeration categories:
|
|
31
|
+
- CWE-79: Cross-site Scripting
|
|
32
|
+
- CWE-89: SQL Injection
|
|
33
|
+
- etc.
|
|
34
|
+
|
|
35
|
+
### MITRE ATT&CK
|
|
36
|
+
|
|
37
|
+
Reference relevant tactics and techniques if applicable:
|
|
38
|
+
- TA0001: Initial Access
|
|
39
|
+
- T1190: Exploit Public-Facing Application
|
|
40
|
+
- etc.
|