r/blueteamsec • • 1d ago

low level tools|techniques|knowledge (work aids) Released SecGuard v1.0.0: my first Python CLI SAST tool with AST taint analysis and SARIF output

I just released SecGuard v1.0.0, my first open-source cybersecurity CLI tool written in Python.

Core features:

* Static and AST-based taint analysis covering 15+ OWASP categories (leaked secrets, injection flaws, insecure configs, etc.)

* Optional AI-assisted triage and rollback-capable patching (`--fix`) using Groq or local Ollama

* SARIF v2.1.0 export for CI/CD integration

* Works on Linux (tested on Kali) and Windows

Repository: https://github.com/omeryigithardal53/secguard

Still early (v1.0.0), so I'm looking for honest feedback on rule accuracy, false positives, and what features would actually make a CLI SAST tool useful in your workflow.

Also, just a quick heads-up: right now the tool only outputs in Turkish, and I'll be adding English support in the next release!

6 Upvotes

8 comments sorted by

1

u/Alta_Wilkerson 1d ago

the sarif export is the part that would fit into most ci pipelines. does it include the taint flow paths or just the finding locations?

1

u/Greedy-Horse-8140 1d ago

Right now in v1.0.0, the SARIF export mainly includes the finding locations, rule info, and messages rather than full step-by-step taint flow paths.

Adding taint path traces to the SARIF output is a great idea as inter-procedural tracking matures—thanks for pointing that out!

1

u/Willing_Shoe4709 20h ago

Merhaba, öncelikle eline sağlık birkaç haftadır dikkatimi çeken ve benimde ürün çıkarmaya çalıştığım bir konu bu AI SAST olarak hem static hem de dinamik olarak izole bir ortamda IDE üzerinden kullanıma sunmak istiyorum. Sık sık bu ürünü yapan ciddi müşterileri olan ürünleri inceleyip hangi konuda farklılaştıklarını öğrenmeye çalışıyorum. Sen bu ürünü yaparken neler araştırdın? Hazır yapılar kullandın mı? Tre-sitter, semgrep, graphify gibi merak ettim doğrusu

1

u/Greedy-Horse-8140 9h ago

Teşekkür ederim dostum sanada kolaylıklar dilerim

Açıkçası bahsettiğin Tree-sitter, Semgrep veya Graphify gibi hazır tarama motorlarını ya da harici parser kütüphanelerini kullanmadım. Çekirdek yapıyı sıfırdan kendim kurguladım; Python tarafında doğrudan Python'ın kendi yerleşik ast modülüyle veri akışı ve sabit katlama analizini yazdım, diğer diller ve gizli anahtar taramaları için de kendi kural setimi oluşturdum.

Geliştirirken en çok klasik SAST araçlarındaki yanlış alarm (false positive) gürültüsünü azaltmaya, kodu dışarı çıkarmadan yerel modellerle (Ollama) analiz edebilmeye ve AI yamalarının kodu bozmasını önleyecek doğrulama + rollback yapısına odaklandım. İlerleyen sürümlerde çoklu dil desteğini ve dosya arası analiz derinliğini daha da geliştirmeyi planlıyorum. Senin projeni de merak ediyorum tekrardan kolay gelsin

1

u/DeleriousMadman 1d ago

I am working on Lazaret which is similar feature. You can find it in PyPi or NPM should anyone be interested. Working on major update to support binary analysis as well

0

u/[deleted] 1d ago

[removed] — view removed comment

1

u/Greedy-Horse-8140 1d ago

Thanks for checking it out!

Right now in v1.0.0, it handles intra-procedural variable flow and basic single-file helper calls, while multi-module or deeply chained inter-procedural taint paths still mostly fall back to direct sink checks.

Expanding full call-graph taint tracking without introducing excessive false positives is high on my list for the next release. Appreciate you taking a look!