_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

SAST nástroje — statická analýza kódu

01. 08. 2019 1 min read intermediate

SAST analyzuje zdrojový kód a hledá bezpečnostní chyby ještě před nasazením. SQL injection, XSS, hardcoded secrets — vše odchytíte v CI/CD.

Semgrep — rychlý a flexibilní

Instalace a spuštění

pip install semgrep semgrep –config auto . semgrep –config p/owasp-top-ten .

Custom pravidlo

rules: - id: sql-injection patterns: - pattern: cursor.execute(f”… {$VAR} …”) message: “Possible SQL injection” severity: ERROR

SonarQube

Docker

docker run -d –name sonar -p 9000:9000 sonarqube:lts

Scanner

sonar-scanner -Dsonar.projectKey=myapp -Dsonar.sources=src

CI/CD integrace

GitHub Actions

  • name: Semgrep uses: semgrep/semgrep-action@v1 with: config: p/ci

Key Takeaway

Semgrep pro rychlé skenování, SonarQube pro komplexní quality gates. Integrujte do CI/CD — blokujte merge při nálezech.

securitysastdevsecopsci/cd
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.