[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B77E4QGY19J55YDAEWB44S":3,"skill-same:01M7B77E4QGY19J55YDAEWB44S":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M7B77E4QGY19J55YDAEWB44S","implementing-devsecops-security-scanning",null,"Integrates SAST, DAST, and SCA into CI\u002FCD pipelines using Semgrep for SAST, Trivy for SCA and container scanning, OWASP ZAP for DAST, and Gitleaks for secrets detection. Use when setting up automated security scanning in CI\u002FCD, shifting security left, meeting compliance mandates (SOC 2, PCI-DSS, ISO 27001), or gating deployments on critical vulnerabilities.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-devsecops-security-scanning\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-devsecops-security-scanning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: implementing-devsecops-security-scanning\ndescription: 'Integrates SAST, DAST, and SCA into CI\u002FCD pipelines using Semgrep for\n  SAST, Trivy for SCA and container scanning, OWASP ZAP for DAST, and Gitleaks for\n  secrets detection. Use when setting up automated security scanning in CI\u002FCD, shifting\n  security left, meeting compliance mandates (SOC 2, PCI-DSS, ISO 27001), or gating\n  deployments on critical vulnerabilities.\n\n  '\ndomain: cybersecurity\nsubdomain: application-security\ntags:\n- devsecops\n- SAST\n- DAST\n- SCA\n- semgrep\n- trivy\n- owasp-zap\n- gitleaks\n- CI-CD\n- shift-left\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- PR.PS-04\n- ID.RA-01\n- PR.DS-10\nmitre_attack:\n- T1078\n- T1190\n- T1059\n- T1610\n- T1611\n---\n\n# Implementing DevSecOps Security Scanning\n\n## When to Use\n\n- Setting up automated security scanning in a new or existing CI\u002FCD pipeline\n- Shifting security left by catching vulnerabilities before code reaches production\n- Meeting compliance requirements (SOC 2, PCI-DSS, ISO 27001) that mandate automated security testing\n- Integrating SAST, DAST, and SCA together to achieve comprehensive application security coverage\n- Establishing security gates that block deployments containing critical or high-severity vulnerabilities\n\n**Do not use** as a replacement for manual penetration testing. Automated scanning catches common vulnerability patterns but cannot replace human-driven security assessments for business logic flaws and complex attack chains.\n\n## Prerequisites\n\n- CI\u002FCD platform: GitHub Actions, GitLab CI, Jenkins, or Azure DevOps\n- Container runtime (Docker) for running scanning tools\n- A staging environment URL for DAST scanning (DAST cannot test static code)\n- Repository access with permissions to modify CI\u002FCD workflow files\n- Tool-specific requirements:\n  - Semgrep: free for open-source rulesets (`p\u002Fsecurity-audit`, `p\u002Fowasp-top-ten`)\n  - Trivy: free, no account required\n  - OWASP ZAP: free, Docker image available\n  - Gitleaks: free, no account required\n\n## Workflow\n\n### Step 1: Add Secrets Detection with Gitleaks\n\nSecrets detection runs first because leaked credentials are the highest-priority finding. Add to `.github\u002Fworkflows\u002Fsecurity.yml`:\n\n```yaml\nname: DevSecOps Security Pipeline\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\njobs:\n  secrets-scan:\n    name: Secrets Detection (Gitleaks)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0  # Full history for scanning all commits\n\n      - name: Run Gitleaks\n        uses: gitleaks\u002Fgitleaks-action@v2\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nConfigure `.gitleaks.toml` in the repository root for custom rules and allowlists:\n\n```toml\n[extend]\nuseDefault = true\n\n[allowlist]\ndescription = \"Global allowlist\"\npaths = [\n  '''\\.gitleaks\\.toml''',\n  '''test\u002Ffixtures\u002F.*''',\n  '''docs\u002Fexamples\u002F.*'''\n]\n\n[[rules]]\nid = \"custom-internal-api-key\"\ndescription = \"Internal API key pattern\"\nregex = '''INTERNAL_KEY_[A-Za-z0-9]{32}'''\ntags = [\"internal\", \"api-key\"]\n```\n\n### Step 2: Add SAST Scanning with Semgrep\n\nSemgrep performs static code analysis to find security vulnerabilities, bugs, and code patterns:\n\n```yaml\n  sast-scan:\n    name: SAST (Semgrep)\n    runs-on: ubuntu-latest\n    container:\n      image: semgrep\u002Fsemgrep\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run Semgrep SAST scan\n        run: |\n          semgrep scan \\\n            --config p\u002Fsecurity-audit \\\n            --config p\u002Fowasp-top-ten \\\n            --config p\u002Fsecrets \\\n            --severity ERROR \\\n            --error \\\n            --json \\\n            --output semgrep-results.json \\\n            .\n\n      - name: Upload SAST results\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: semgrep-results\n          path: semgrep-results.json\n```\n\nFor custom rules, create `.semgrep\u002Fcustom-rules.yml`:\n\n```yaml\nrules:\n  - id: no-exec-user-input\n    patterns:\n      - pattern: exec($INPUT)\n      - pattern-not: exec(\"...\")\n    message: >\n      User input passed to exec(). This is a command injection vulnerability.\n    severity: ERROR\n    languages: [python]\n    metadata:\n      cwe: \"CWE-78: OS Command Injection\"\n      owasp: \"A03:2021 - Injection\"\n\n  - id: no-raw-sql-queries\n    patterns:\n      - pattern: cursor.execute(f\"...\")\n      - pattern: cursor.execute(\"...\" + ...)\n    message: >\n      SQL query built with string concatenation or f-strings. Use parameterized queries.\n    severity: ERROR\n    languages: [python]\n    metadata:\n      cwe: \"CWE-89: SQL Injection\"\n      owasp: \"A03:2021 - Injection\"\n```\n\n### Step 3: Add SCA Scanning with Trivy\n\nTrivy scans dependencies, container images, IaC files, and generates SBOM:\n\n```yaml\n  sca-scan:\n    name: SCA & Container Scan (Trivy)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run Trivy filesystem scan (dependencies)\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          scan-type: 'fs'\n          scan-ref: '.'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-fs-results.json'\n\n      - name: Run Trivy IaC scan (Terraform, CloudFormation)\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          scan-type: 'config'\n          scan-ref: '.'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-iac-results.json'\n\n      - name: Upload SCA results\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: trivy-results\n          path: trivy-*.json\n\n  container-scan:\n    name: Container Image Scan (Trivy)\n    runs-on: ubuntu-latest\n    needs: [sast-scan]  # Build image only after SAST passes\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Build Docker image\n        run: docker build -t app:${{ github.sha }} .\n\n      - name: Scan container image\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          image-ref: 'app:${{ github.sha }}'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-image-results.json'\n\n      - name: Generate SBOM\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          image-ref: 'app:${{ github.sha }}'\n          format: 'cyclonedx'\n          output: 'sbom.json'\n\n      - name: Upload SBOM\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: sbom\n          path: sbom.json\n```\n\n### Step 4: Add DAST Scanning with OWASP ZAP\n\nDAST runs against a deployed staging environment. It is slower than SAST\u002FSCA and should run asynchronously or on a schedule:\n\n```yaml\n  dast-scan:\n    name: DAST (OWASP ZAP)\n    runs-on: ubuntu-latest\n    needs: [deploy-staging]  # Must run after app is deployed to staging\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run ZAP Baseline Scan (fast, suitable for CI)\n        uses: zaproxy\u002Faction-baseline@v0.14.0\n        with:\n          target: ${{ vars.STAGING_URL }}\n          rules_file_name: '.zap\u002Frules.tsv'\n          cmd_options: '-a -j'\n\n      # For nightly full scans, use action-full-scan instead:\n      # - name: Run ZAP Full Scan (comprehensive, 30-60 min)\n      #   uses: zaproxy\u002Faction-full-scan@v0.12.0\n      #   with:\n      #     target: ${{ vars.STAGING_URL }}\n```\n\nCreate `.zap\u002Frules.tsv` to configure alert thresholds:\n\n```tsv\n10010\tIGNORE\t(Cookie No HttpOnly Flag - acceptable for non-sensitive cookies)\n10011\tIGNORE\t(Cookie Without Secure Flag - staging uses HTTP)\n90033\tWARN\t(Loosely Scoped Cookie)\n10038\tFAIL\t(Content Security Policy Header Not Set)\n40012\tFAIL\t(Cross Site Scripting - Reflected)\n40014\tFAIL\t(Cross Site Scripting - Persistent)\n40018\tFAIL\t(SQL Injection)\n90019\tFAIL\t(Server Side Code Injection)\n90020\tFAIL\t(Remote OS Command Injection)\n```\n\n### Step 5: Aggregate Results and Enforce Security Gates\n\nCreate a summary job that aggregates all scan results and enforces pass\u002Ffail gates:\n\n```yaml\n  security-gate:\n    name: Security Gate\n    runs-on: ubuntu-latest\n    needs: [secrets-scan, sast-scan, sca-scan, container-scan]\n    if: always()\n    steps:\n      - name: Check scan results\n        run: |\n          echo \"Checking security scan results...\"\n\n          # Fail the pipeline if any upstream job failed\n          if [[ \"${{ needs.secrets-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Secrets detected in repository\"\n            exit 1\n          fi\n\n          if [[ \"${{ needs.sast-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: SAST found critical\u002Fhigh vulnerabilities\"\n            exit 1\n          fi\n\n          if [[ \"${{ needs.sca-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: SCA found critical\u002Fhigh vulnerable dependencies\"\n            exit 1\n          fi\n\n          if [[ \"${{ needs.container-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Container image has critical\u002Fhigh vulnerabilities\"\n            exit 1\n          fi\n\n          echo \"All security gates passed\"\n```\n\n### Step 6: Configure Branch Protection Rules\n\nEnforce the security pipeline as a required status check:\n\n```\nGitHub Repository > Settings > Branches > Branch Protection Rules\n\nBranch name pattern: main\n  Require status checks to pass before merging: Enabled\n    Required status checks:\n      - Secrets Detection (Gitleaks)\n      - SAST (Semgrep)\n      - SCA & Container Scan (Trivy)\n      - Security Gate\n  Require branches to be up to date before merging: Enabled\n```\n\n### Step 7: Set Up Developer Feedback Loop\n\nConfigure pre-commit hooks so developers catch issues before pushing:\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: https:\u002F\u002Fgithub.com\u002Fgitleaks\u002Fgitleaks\n    rev: v8.22.1\n    hooks:\n      - id: gitleaks\n\n  - repo: https:\u002F\u002Fgithub.com\u002Fsemgrep\u002Fsemgrep\n    rev: v1.102.0\n    hooks:\n      - id: semgrep\n        args: ['--config', 'p\u002Fsecurity-audit', '--config', 'p\u002Fowasp-top-ten', '--error']\n```\n\nInstall and activate pre-commit:\n\n```bash\npip install pre-commit\npre-commit install\npre-commit run --all-files  # Test against existing codebase\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SAST (Static Application Security Testing)** | Analyzes source code without executing it to find security vulnerabilities; runs fast, catches issues early, but cannot find runtime flaws |\n| **DAST (Dynamic Application Security Testing)** | Tests a running application by sending requests and analyzing responses; finds runtime issues but requires a deployed environment |\n| **SCA (Software Composition Analysis)** | Scans project dependencies against vulnerability databases (NVD, GitHub Advisory) to find known-vulnerable libraries |\n| **SBOM (Software Bill of Materials)** | Machine-readable inventory of all components and dependencies in an application, used for vulnerability tracking and compliance |\n| **Shift Left** | Security practice of moving security testing earlier in the SDLC, from post-deployment to pre-commit and CI stages |\n| **Security Gate** | A CI\u002FCD pipeline checkpoint that blocks deployment if security scan results exceed defined severity thresholds |\n| **Pre-commit Hook** | Local Git hook that runs security checks before code is committed, providing the fastest developer feedback loop |\n\n## Verification\n\n- [ ] Gitleaks blocks commits and PRs containing hardcoded secrets (test with a dummy API key)\n- [ ] Semgrep scan runs on every PR and reports findings as annotations or comments\n- [ ] Trivy filesystem scan detects a known-vulnerable dependency (test by adding a vulnerable package)\n- [ ] Trivy container scan runs successfully against the built Docker image\n- [ ] SBOM is generated and stored as a build artifact in CycloneDX or SPDX format\n- [ ] OWASP ZAP baseline scan runs against the staging URL without crashing\n- [ ] Security gate job blocks merges to main when any scan finds critical\u002Fhigh severity issues\n- [ ] Branch protection rules enforce required status checks before merge\n- [ ] Pre-commit hooks catch secrets and SAST findings locally before push\n- [ ] Developer documentation explains how to interpret scan results and fix common findings\n","# Implementing DevSecOps Security Scanning\n\n## When to Use\n\n- Setting up automated security scanning in a new or existing CI\u002FCD pipeline\n- Shifting security left by catching vulnerabilities before code reaches production\n- Meeting compliance requirements (SOC 2, PCI-DSS, ISO 27001) that mandate automated security testing\n- Integrating SAST, DAST, and SCA together to achieve comprehensive application security coverage\n- Establishing security gates that block deployments containing critical or high-severity vulnerabilities\n\n**Do not use** as a replacement for manual penetration testing. Automated scanning catches common vulnerability patterns but cannot replace human-driven security assessments for business logic flaws and complex attack chains.\n\n## Prerequisites\n\n- CI\u002FCD platform: GitHub Actions, GitLab CI, Jenkins, or Azure DevOps\n- Container runtime (Docker) for running scanning tools\n- A staging environment URL for DAST scanning (DAST cannot test static code)\n- Repository access with permissions to modify CI\u002FCD workflow files\n- Tool-specific requirements:\n  - Semgrep: free for open-source rulesets (`p\u002Fsecurity-audit`, `p\u002Fowasp-top-ten`)\n  - Trivy: free, no account required\n  - OWASP ZAP: free, Docker image available\n  - Gitleaks: free, no account required\n\n## Workflow\n\n### Step 1: Add Secrets Detection with Gitleaks\n\nSecrets detection runs first because leaked credentials are the highest-priority finding. Add to `.github\u002Fworkflows\u002Fsecurity.yml`:\n\n```yaml\nname: DevSecOps Security Pipeline\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\njobs:\n  secrets-scan:\n    name: Secrets Detection (Gitleaks)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0  # Full history for scanning all commits\n\n      - name: Run Gitleaks\n        uses: gitleaks\u002Fgitleaks-action@v2\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nConfigure `.gitleaks.toml` in the repository root for custom rules and allowlists:\n\n```toml\n[extend]\nuseDefault = true\n\n[allowlist]\ndescription = \"Global allowlist\"\npaths = [\n  '''\\.gitleaks\\.toml''',\n  '''test\u002Ffixtures\u002F.*''',\n  '''docs\u002Fexamples\u002F.*'''\n]\n\n[[rules]]\nid = \"custom-internal-api-key\"\ndescription = \"Internal API key pattern\"\nregex = '''INTERNAL_KEY_[A-Za-z0-9]{32}'''\ntags = [\"internal\", \"api-key\"]\n```\n\n### Step 2: Add SAST Scanning with Semgrep\n\nSemgrep performs static code analysis to find security vulnerabilities, bugs, and code patterns:\n\n```yaml\n  sast-scan:\n    name: SAST (Semgrep)\n    runs-on: ubuntu-latest\n    container:\n      image: semgrep\u002Fsemgrep\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run Semgrep SAST scan\n        run: |\n          semgrep scan \\\n            --config p\u002Fsecurity-audit \\\n            --config p\u002Fowasp-top-ten \\\n            --config p\u002Fsecrets \\\n            --severity ERROR \\\n            --error \\\n            --json \\\n            --output semgrep-results.json \\\n            .\n\n      - name: Upload SAST results\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: semgrep-results\n          path: semgrep-results.json\n```\n\nFor custom rules, create `.semgrep\u002Fcustom-rules.yml`:\n\n```yaml\nrules:\n  - id: no-exec-user-input\n    patterns:\n      - pattern: exec($INPUT)\n      - pattern-not: exec(\"...\")\n    message: >\n      User input passed to exec(). This is a command injection vulnerability.\n    severity: ERROR\n    languages: [python]\n    metadata:\n      cwe: \"CWE-78: OS Command Injection\"\n      owasp: \"A03:2021 - Injection\"\n\n  - id: no-raw-sql-queries\n    patterns:\n      - pattern: cursor.execute(f\"...\")\n      - pattern: cursor.execute(\"...\" + ...)\n    message: >\n      SQL query built with string concatenation or f-strings. Use parameterized queries.\n    severity: ERROR\n    languages: [python]\n    metadata:\n      cwe: \"CWE-89: SQL Injection\"\n      owasp: \"A03:2021 - Injection\"\n```\n\n### Step 3: Add SCA Scanning with Trivy\n\nTrivy scans dependencies, container images, IaC files, and generates SBOM:\n\n```yaml\n  sca-scan:\n    name: SCA & Container Scan (Trivy)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run Trivy filesystem scan (dependencies)\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          scan-type: 'fs'\n          scan-ref: '.'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-fs-results.json'\n\n      - name: Run Trivy IaC scan (Terraform, CloudFormation)\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          scan-type: 'config'\n          scan-ref: '.'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-iac-results.json'\n\n      - name: Upload SCA results\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: trivy-results\n          path: trivy-*.json\n\n  container-scan:\n    name: Container Image Scan (Trivy)\n    runs-on: ubuntu-latest\n    needs: [sast-scan]  # Build image only after SAST passes\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Build Docker image\n        run: docker build -t app:${{ github.sha }} .\n\n      - name: Scan container image\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          image-ref: 'app:${{ github.sha }}'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-image-results.json'\n\n      - name: Generate SBOM\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          image-ref: 'app:${{ github.sha }}'\n          format: 'cyclonedx'\n          output: 'sbom.json'\n\n      - name: Upload SBOM\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: sbom\n          path: sbom.json\n```\n\n### Step 4: Add DAST Scanning with OWASP ZAP\n\nDAST runs against a deployed staging environment. It is slower than SAST\u002FSCA and should run asynchronously or on a schedule:\n\n```yaml\n  dast-scan:\n    name: DAST (OWASP ZAP)\n    runs-on: ubuntu-latest\n    needs: [deploy-staging]  # Must run after app is deployed to staging\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run ZAP Baseline Scan (fast, suitable for CI)\n        uses: zaproxy\u002Faction-baseline@v0.14.0\n        with:\n          target: ${{ vars.STAGING_URL }}\n          rules_file_name: '.zap\u002Frules.tsv'\n          cmd_options: '-a -j'\n\n      # For nightly full scans, use action-full-scan instead:\n      # - name: Run ZAP Full Scan (comprehensive, 30-60 min)\n      #   uses: zaproxy\u002Faction-full-scan@v0.12.0\n      #   with:\n      #     target: ${{ vars.STAGING_URL }}\n```\n\nCreate `.zap\u002Frules.tsv` to configure alert thresholds:\n\n```tsv\n10010\tIGNORE\t(Cookie No HttpOnly Flag - acceptable for non-sensitive cookies)\n10011\tIGNORE\t(Cookie Without Secure Flag - staging uses HTTP)\n90033\tWARN\t(Loosely Scoped Cookie)\n10038\tFAIL\t(Content Security Policy Header Not Set)\n40012\tFAIL\t(Cross Site Scripting - Reflected)\n40014\tFAIL\t(Cross Site Scripting - Persistent)\n40018\tFAIL\t(SQL Injection)\n90019\tFAIL\t(Server Side Code Injection)\n90020\tFAIL\t(Remote OS Command Injection)\n```\n\n### Step 5: Aggregate Results and Enforce Security Gates\n\nCreate a summary job that aggregates all scan results and enforces pass\u002Ffail gates:\n\n```yaml\n  security-gate:\n    name: Security Gate\n    runs-on: ubuntu-latest\n    needs: [secrets-scan, sast-scan, sca-scan, container-scan]\n    if: always()\n    steps:\n      - name: Check scan results\n        run: |\n          echo \"Checking security scan results...\"\n\n          # Fail the pipeline if any upstream job failed\n          if [[ \"${{ needs.secrets-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Secrets detected in repository\"\n            exit 1\n          fi\n\n          if [[ \"${{ needs.sast-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: SAST found critical\u002Fhigh vulnerabilities\"\n            exit 1\n          fi\n\n          if [[ \"${{ needs.sca-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: SCA found critical\u002Fhigh vulnerable dependencies\"\n            exit 1\n          fi\n\n          if [[ \"${{ needs.container-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Container image has critical\u002Fhigh vulnerabilities\"\n            exit 1\n          fi\n\n          echo \"All security gates passed\"\n```\n\n### Step 6: Configure Branch Protection Rules\n\nEnforce the security pipeline as a required status check:\n\n```\nGitHub Repository > Settings > Branches > Branch Protection Rules\n\nBranch name pattern: main\n  Require status checks to pass before merging: Enabled\n    Required status checks:\n      - Secrets Detection (Gitleaks)\n      - SAST (Semgrep)\n      - SCA & Container Scan (Trivy)\n      - Security Gate\n  Require branches to be up to date before merging: Enabled\n```\n\n### Step 7: Set Up Developer Feedback Loop\n\nConfigure pre-commit hooks so developers catch issues before pushing:\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: https:\u002F\u002Fgithub.com\u002Fgitleaks\u002Fgitleaks\n    rev: v8.22.1\n    hooks:\n      - id: gitleaks\n\n  - repo: https:\u002F\u002Fgithub.com\u002Fsemgrep\u002Fsemgrep\n    rev: v1.102.0\n    hooks:\n      - id: semgrep\n        args: ['--config', 'p\u002Fsecurity-audit', '--config', 'p\u002Fowasp-top-ten', '--error']\n```\n\nInstall and activate pre-commit:\n\n```bash\npip install pre-commit\npre-commit install\npre-commit run --all-files  # Test against existing codebase\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SAST (Static Application Security Testing)** | Analyzes source code without executing it to find security vulnerabilities; runs fast, catches issues early, but cannot find runtime flaws |\n| **DAST (Dynamic Application Security Testing)** | Tests a running application by sending requests and analyzing responses; finds runtime issues but requires a deployed environment |\n| **SCA (Software Composition Analysis)** | Scans project dependencies against vulnerability databases (NVD, GitHub Advisory) to find known-vulnerable libraries |\n| **SBOM (Software Bill of Materials)** | Machine-readable inventory of all components and dependencies in an application, used for vulnerability tracking and compliance |\n| **Shift Left** | Security practice of moving security testing earlier in the SDLC, from post-deployment to pre-commit and CI stages |\n| **Security Gate** | A CI\u002FCD pipeline checkpoint that blocks deployment if security scan results exceed defined severity thresholds |\n| **Pre-commit Hook** | Local Git hook that runs security checks before code is committed, providing the fastest developer feedback loop |\n\n## Verification\n\n- [ ] Gitleaks blocks commits and PRs containing hardcoded secrets (test with a dummy API key)\n- [ ] Semgrep scan runs on every PR and reports findings as annotations or comments\n- [ ] Trivy filesystem scan detects a known-vulnerable dependency (test by adding a vulnerable package)\n- [ ] Trivy container scan runs successfully against the built Docker image\n- [ ] SBOM is generated and stored as a build artifact in CycloneDX or SPDX format\n- [ ] OWASP ZAP baseline scan runs against the staging URL without crashing\n- [ ] Security gate job blocks merges to main when any scan finds critical\u002Fhigh severity issues\n- [ ] Branch protection rules enforce required status checks before merge\n- [ ] Pre-commit hooks catch secrets and SAST findings locally before push\n- [ ] Developer documentation explains how to interpret scan results and fix common findings\n",{"name":5,"tags":24,"author":35,"domain":36,"license":14,"version":37,"nist_csf":38,"subdomain":43,"description":44,"mitre_attack":45},[25,26,27,28,29,30,31,32,33,34],"devsecops","SAST","DAST","SCA","semgrep","trivy","owasp-zap","gitleaks","CI-CD","shift-left","mahipal","cybersecurity","1.0.0",[39,40,41,42],"PR.PS-01","PR.PS-04","ID.RA-01","PR.DS-10","application-security","Integrates SAST, DAST, and SCA into CI\u002FCD pipelines using Semgrep for SAST, Trivy for SCA and container scanning, OWASP ZAP for DAST, and Gitleaks for secrets detection. Use when setting up automated security scanning in CI\u002FCD, shifting security left, meeting compliance mandates (SOC 2, PCI-DSS, ISO 27001), or gating deployments on critical vulnerabilities.\n",[46,47,48,49,50],"T1078","T1190","T1059","T1610","T1611","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-devsecops-security-scanning","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill implementing-devsecops-security-scanning",{"tool":63,"command":64},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill implementing-devsecops-security-scanning",{"tool":66,"command":67},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill implementing-devsecops-security-scanning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-devsecops-security-scanning\u002FSKILL.md",true,[71,75,81],{"path":72,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-reference.md","REFERENCE","参考文档",2039,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-devsecops-security-scanning\u002Freferences\u002Fapi-reference.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fagent.py","SCRIPT","脚本",6930,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-devsecops-security-scanning\u002Fscripts\u002Fagent.py",[88,96,103,110,117,124],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]