raihan@fullstack:~$
Available · --:--
SAST Integration
Category
Thesis Project
Year
2026
Stack
9 technologies

SAST Integration

Next.js 16TypeScriptAnt DesignDrizzle ORMPostgreSQLTanStack QueryZodVitestPlaywright

Overview

SAST Integration is my thesis project — a Static Application Security Testing platform that integrates multiple security scanners (Semgrep, Gitleaks, Flawfinder) into a unified dashboard and uses fine-tuned LLMs (Qwen2.5-Coder, Llama3 via QLoRA) to verify findings and reduce false positives. The platform features multi-workspace RBAC with 24 permissions and 4 roles, SCM integration (GitHub/GitLab/Gitea), scan policies, PDF/XLSX reports, and scheduled scans.

Problem

  • Traditional SAST tools produce high false-positive rates, making it difficult for developers to focus on real vulnerabilities
  • Security teams must manually triage findings from multiple scanners, which is time-consuming and error-prone
  • Existing SAST tools do not leverage AI to verify findings, leaving developers to manually validate each alert

Goal

  • Build a platform that integrates Semgrep, Gitleaks, and Flawfinder into a unified dashboard
  • Use fine-tuned LLMs (QLoRA) to classify findings as True or False Positives
  • Implement multi-workspace RBAC with granular permissions for team collaboration
  • Provide SCM integration for automatic scanning on push/PR events

Role

I built the entire platform independently — backend, frontend, AI integration, scanner orchestration, and deployment.

Team: Achmad Raihan Fahrezi Effendy (Full-Stack Developer)

Architecture

flowchart TD A["Next.js 16 App Router"] --> B["API Routes"] A --> C["React 19 Components"] B --> D["Drizzle ORM"] B --> E["pg-boss Queue"] D --> F[("PostgreSQL")] E --> G["Scanner Workers"] G --> H["Semgrep"] G --> I["Gitleaks"] G --> J["Flawfinder"] B --> K["AI Verification"] K --> L["QLoRA Fine-tuned LLMs"] C --> M["Ant Design 6"] C --> N["TanStack Query"] O["SCM Webhooks"] --> B
LayerTechnologyPurpose
FrontendNext.js 16, React 19App Router, server components
UIAnt Design 6Component library
StateTanStack QueryServer state management
BackendNext.js API RoutesServer-side logic
ORMDrizzle ORMType-safe database access
DatabasePostgreSQLPersistent storage
Queuepg-bossBackground scan processing
AIQLoRA (Qwen2.5-Coder, Llama3)Vulnerability verification
ValidationZodSchema validation
TestingVitest, PlaywrightUnit + E2E tests

Key Features

  • Multi-Scanner Integration — Semgrep (SAST), Gitleaks (secrets), Flawfinder (C/C++) in one dashboard
  • AI Verification — QLoRA fine-tuned LLMs classify findings as True/False Positives
  • Multi-Workspace RBAC — 24 permissions, 4 roles for team collaboration
  • SCM Integration — GitHub, GitLab, Gitea webhooks for automatic scanning
  • Scan Policies — Configure which scanners run on which repositories
  • Reports — PDF and XLSX export of scan results
  • Scheduled Scans — Automated scanning on cron schedules

Technical Decisions

  • Next.js 16 with App Router for server components and API routes in one framework
  • Drizzle ORM over Prisma for lighter bundle size and SQL-like syntax
  • Ant Design for enterprise-grade components without building from scratch
  • pg-boss for background job processing without external queue infrastructure
  • QLoRA for fine-tuning LLMs on consumer hardware without full model training

Challenges

  • Integrating 3 different scanner outputs into a unified format required custom parsers for each tool
  • Fine-tuning LLMs for vulnerability classification required curating training data from real scan results
  • Designing RBAC with 24 permissions while keeping the UI intuitive required multiple iterations

Outcome

The platform successfully scans C/C++, JavaScript, and Python codebases using multiple scanners, verifies findings with AI, and presents results in a unified dashboard. The thesis documents the architecture, implementation, and evaluation of the AI verification approach.

Final Thoughts

SAST Integration is the most technically complex project I have built. It required understanding security scanners, AI fine-tuning, full-stack development, and academic research methodology. The project reinforced that the best software comes from understanding the problem deeply before writing the code.

LET'S CONNECT

© 2026 Achmad Raihan Fahrezi Effendy MALANG · --:-- WIB