{
    "url": "https://delaparra-services.nl/skills/sast-configuration",
    "locale": "en",
    "title": "SAST Configuration | DeLaParra Services",
    "description": "Configure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.",
    "alternates": {
        "en": "https://delaparra-services.nl/skills/sast-configuration",
        "nl": "https://delaparra-services.nl/nl/skills/sast-configuration"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/skills/sast-configuration.csv",
        "md": "https://delaparra-services.nl/skills/sast-configuration.md",
        "json": "https://delaparra-services.nl/skills/sast-configuration.json",
        "zip": "https://delaparra-services.nl/skills/sast-configuration.zip",
        "pdf": "https://delaparra-services.nl/skills/sast-configuration.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/skills/sast-configuration.csv",
            "encodingFormat": "text/csv",
            "name": "sast-configuration.csv"
        },
        {
            "url": "https://delaparra-services.nl/skills/sast-configuration.json",
            "encodingFormat": "application/json",
            "name": "sast-configuration.json"
        },
        {
            "url": "https://delaparra-services.nl/skills/sast-configuration.md",
            "encodingFormat": "text/markdown",
            "name": "sast-configuration.md"
        },
        {
            "url": "https://delaparra-services.nl/skills/sast-configuration.pdf",
            "encodingFormat": "application/pdf",
            "name": "sast-configuration.pdf"
        },
        {
            "url": "https://delaparra-services.nl/skills/sast-configuration.zip",
            "encodingFormat": "application/zip",
            "name": "sast-configuration.zip"
        },
        {
            "url": "https://delaparra-services.nl/skills/sast-configuration/download",
            "encodingFormat": "application/zip",
            "name": "sast-configuration-files.zip"
        }
    ],
    "markdown": "# SAST Configuration\n\n \n\nConfigure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.\n\n \n\n**Licence** MIT\n\n \n\n**Source** wshobson/agents\n\n [Download zip](<https://delaparra-services.nl/skills/sast-configuration/download>)   \n\n# SAST Configuration\n\n \n\nStatic Application Security Testing (SAST) tool setup, configuration, and custom rule creation for comprehensive security scanning across multiple programming languages.\n\n \n\n## Overview\n\n \n\nThis skill provides comprehensive guidance for setting up and configuring SAST tools including Semgrep, SonarQube, and CodeQL. Use this skill when you need to:\n\n \n\n- Set up SAST scanning in CI/CD pipelines \n- Create custom security rules for your codebase \n- Configure quality gates and compliance policies \n- Optimize scan performance and reduce false positives \n- Integrate multiple SAST tools for defense-in-depth\n\n \n\n## Core Capabilities\n\n \n\n### 1. Semgrep Configuration\n\n \n\n- Custom rule creation with pattern matching \n- Language-specific security rules (Python, JavaScript, Go, Java, etc.) \n- CI/CD integration (GitHub Actions, GitLab CI, Jenkins) \n- False positive tuning and rule optimization \n- Organizational policy enforcement\n\n \n\n### 2. SonarQube Setup\n\n \n\n- Quality gate configuration \n- Security hotspot analysis \n- Code coverage and technical debt tracking \n- Custom quality profiles for languages \n- Enterprise integration with LDAP/SAML\n\n \n\n### 3. CodeQL Analysis\n\n \n\n- GitHub Advanced Security integration \n- Custom query development \n- Vulnerability variant analysis \n- Security research workflows \n- SARIF result processing\n\n \n\n## Quick Start\n\n \n\n### Initial Assessment\n\n \n\n1. Identify primary programming languages in your codebase \n1. Determine compliance requirements (PCI-DSS, SOC 2, etc.) \n1. Choose SAST tool based on language support and integration needs \n1. Review baseline scan to understand current security posture\n\n \n\n### Basic Setup\n\n \n\n```\n# Semgrep quick start\npip install semgrep\nsemgrep --config=auto --error\n\n# SonarQube with Docker\ndocker run -d --name sonarqube -p 9000:9000 sonarqube:10.8-community\n\n# CodeQL CLI setup\ngh extension install github/gh-codeql\ncodeql database create mydb --language=python\n```\n\n \n\n## Integration Patterns\n\n \n\n### CI/CD Pipeline Integration\n\n \n\n```\n# GitHub Actions example\n- name: Run Semgrep\n  uses: returntocorp/semgrep-action@v1\n  with:\n    config: >-\n      p/security-audit\n      p/owasp-top-ten\n```\n\n \n\n### Pre-commit Hook\n\n \n\n```\n# .pre-commit-config.yaml\n- repo: https://github.com/returntocorp/semgrep\n  rev: v1.45.0\n  hooks:\n    - id: semgrep\n      args: ['--config=auto', '--error']\n```\n\n \n\n## Best Practices\n\n \n\n1. **Start with Baseline**\n\n \n\n- Run initial scan to establish security baseline \n- Prioritize critical and high severity findings \n- Create remediation roadmap \n1. **Incremental Adoption**\n\n \n\n- Begin with security-focused rules \n- Gradually add code quality rules \n- Implement blocking only for critical issues \n1. **False Positive Management**\n\n \n\n- Document legitimate suppressions \n- Create allow lists for known safe patterns \n- Regularly review suppressed findings \n1. **Performance Optimization**\n\n \n\n- Exclude test files and generated code \n- Use incremental scanning for large codebases \n- Cache scan results in CI/CD \n1. **Team Enablement**\n\n \n\n- Provide security training for developers \n- Create internal documentation for common patterns \n- Establish security champions program\n\n \n\n## Common Use Cases\n\n \n\n### New Project Setup\n\n \n\n```\n# Semgrep: install, then run an auto-config scan that exits non-zero on findings\npip install semgrep\nsemgrep --config=auto --error\n\n# SonarQube: start a community server for local evaluation, then analyze with sonar-scanner.\n# SONAR_ES_BOOTSTRAP_CHECKS_DISABLE skips the Elasticsearch host checks for a local try-out;\n# a real deployment needs vm.max_map_count>=524288 and fs.file-max>=131072 on the host instead.\ndocker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:10.8-community\n```\n\n \n\n### Custom Rule Development\n\n \n\n```\nrules:\n  - id: hardcoded-jwt-secret\n    pattern: jwt.encode($DATA, \"...\", ...)\n    message: JWT secret should not be hardcoded\n    severity: ERROR\n```\n\n \n\n### Compliance Scanning\n\n \n\n```\n# PCI-DSS focused scan\nsemgrep --config p/pci-dss --json -o pci-scan-results.json\n```\n\n \n\n## Troubleshooting\n\n \n\n### High False Positive Rate\n\n \n\n- Review and tune rule sensitivity \n- Add path filters to exclude test files \n- Use nostmt metadata for noisy patterns \n- Create organization-specific rule exceptions\n\n \n\n### Performance Issues\n\n \n\n- Enable incremental scanning \n- Parallelize scans across modules \n- Optimize rule patterns for efficiency \n- Cache dependencies and scan results\n\n \n\n### Integration Failures\n\n \n\n- Verify API tokens and credentials \n- Check network connectivity and proxy settings \n- Review SARIF output format compatibility \n- Validate CI/CD runner permissions\n\n \n\n## Related Skills\n\n \n\n- STRIDE Analysis Patterns \n- Threat Mitigation Mapping\n\n \n\n## Tool Comparison\n\n    Tool Best For Language Support Cost Integration     Semgrep Custom rules, fast scans 30+ languages Free/Enterprise Excellent   SonarQube Code quality + security 25+ languages Free/Commercial Good   CodeQL Deep analysis, research 10+ languages Free (OSS) GitHub native    \n\n## Next Steps\n\n \n\n1. Complete initial SAST tool setup \n1. Run baseline security scan \n1. Create custom rules for organization-specific patterns \n1. Integrate into CI/CD pipeline \n1. Establish security gate policies \n1. Train development team on findings and remediation\n\n \n\n## Files\n\n \n\n- ` LICENSE ` \n- ` SKILL.md ` \n- ` SOURCE.md `\n\n \n\n## Related terms\n\n \n\n- [Content-Security-Policy](<https://delaparra-services.nl/knowledge-hub/content-security-policy>) \n- [JWT (JSON Web Token)](<https://delaparra-services.nl/knowledge-hub/jwt-json-web-token>) \n- [OAuth (Open Authorisation)](<https://delaparra-services.nl/knowledge-hub/oauth-open-authorisation>) \n- [Permissions-Policy](<https://delaparra-services.nl/knowledge-hub/permissions-policy>) \n- [Referrer-Policy](<https://delaparra-services.nl/knowledge-hub/referrer-policy>) \n- [Strict-Transport-Security](<https://delaparra-services.nl/knowledge-hub/strict-transport-security>) \n- [Vulnerability](<https://delaparra-services.nl/knowledge-hub/vulnerability>) \n- [X-Content-Type-Options](<https://delaparra-services.nl/knowledge-hub/x-content-type-options>) \n- [X-Frame-Options](<https://delaparra-services.nl/knowledge-hub/x-frame-options>) \n- [XSS (Cross-Site Scripting)](<https://delaparra-services.nl/knowledge-hub/xss-cross-site-scripting>)\n\n \n\n[Installing an agent skill in Claude Code, Codex, Cursor and Copilot](<https://delaparra-services.nl/manuals/een-skill-installeren-in-je-ai-assistent>)\n\n[HTML version](https://delaparra-services.nl/skills/sast-configuration)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://delaparra-services.nl/skills/sast-configuration#webpage",
                "url": "https://delaparra-services.nl/skills/sast-configuration",
                "name": "SAST Configuration | DeLaParra Services",
                "description": "Configure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/skills/sast-configuration#breadcrumb"
                }
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/skills/sast-configuration#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "SAST Configuration"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "SoftwareSourceCode",
                "@id": "https://delaparra-services.nl/skills/sast-configuration#skill",
                "url": "https://delaparra-services.nl/skills/sast-configuration",
                "name": "SAST Configuration",
                "description": "Configure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.",
                "inLanguage": "en",
                "license": "https://spdx.org/licenses/MIT.html",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/skills/sast-configuration#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/skills/sast-configuration#dataset",
                "name": "SAST Configuration",
                "description": "Configure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.",
                "url": "https://delaparra-services.nl/skills/sast-configuration",
                "identifier": "https://delaparra-services.nl/skills/sast-configuration#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/skills/sast-configuration#skill"
                },
                "creditText": "wshobson/agents",
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://spdx.org/licenses/MIT.html",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "dateModified": "2026-11-28T14:00:12+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#skills",
                    "name": "Skills for AI coding assistants",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "sast-configuration.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/skills/sast-configuration.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sast-configuration.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/skills/sast-configuration.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sast-configuration.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/skills/sast-configuration.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sast-configuration.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/skills/sast-configuration.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sast-configuration.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/sast-configuration.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sast-configuration-files.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/sast-configuration/download",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    }
                ]
            }
        ]
    }
}