Static Application Security Testing (SAST)
The Hard-Coded API Key That Cost Us 6 Figures
What You'll Learn
What is SAST?
SAST vs Other Security Testing
Setting Up SAST: GitLab + SonarQube
GitLab SAST Setup
1. Enable GitLab SAST
Language
Analyzer
What It Finds
2. View Results in Merge Requests
SonarQube Setup
1. Deploy SonarQube
2. Configure Quality Gate
3. GitLab Integration
Real Vulnerability Examples
Example 1: Hard-Coded Secrets (The $47K Lesson)
Example 2: SQL Injection
Example 3: Path Traversal
Example 4: Insecure Cryptography
Managing SAST Findings
Prioritization Strategy
False Positive Management
Baseline and Track Progress
IDE Integration: Shift Further Left
SonarLint for VS Code
Performance Optimization
1. Incremental Scanning
2. Parallel Analysis
3. Caching
Real Results
Metrics (2019 β 2023)
Developer Feedback
Key Takeaways
What's Next
Last updated