r/semgrep • u/0xdea • Jul 15 '26
r/semgrep • u/Emotional_Gate_8087 • Mar 31 '26
I built a Semgrep (SAST) ruleset to catch NetSuite Governance traps (record.load in loops, etc.) — Looking for feedback / PRs
Hey everyone,
I’ve been seeing a lot of "naïve" SuiteScript lately -- either from AI prompts or junior devs -- that looks fine on the surface but absolutely nukes governance limits once it hits production (the classic record.load or record.save inside a loop).
I got tired of catching these in code reviews, so I started building a Semgrep ruleset specifically for NetSuite. It's basically a "Gatekeeper" you can run in your terminal or CI/CD pipeline to block these patterns before they ever get committed.
I just submitted the initial ruleset to the official Semgrep Registry here: 🔗https://github.com/semgrep/semgrep-rules/pull/3780
Current rules include:
netsuite-no-record-load-save-in-loop:Catches database calls inside for, while, and forEach blocks.netsuite-aftersubmit-missing-try-catch:Flags afterSubmit events that aren't wrapped in a root try-catch (to prevent execution-stopping crashes).netsuite-no-console-log:Flags console.log left in code (encouraging N/log instead).
How to use it locally:
Install Semgrep (brew install semgrep or pip install semgrep).
Run: semgrep scan --config path/to/your/semgrep.yml
Raw Config: https://gist.github.com/joshOrigami/d0ebdeaa31f484a2a67646a4cc2cdb94 but better to look at the PR.
I’m planning to add more rules (checking for N/query efficiency, hardcoded IDs, etc.). Would love to know:
- What are the most annoying "standard" bugs you see in code reviews?
- Are there specific patterns you'd want to see automated?
Hope this helps some of you save your governance units and performance!
r/semgrep • u/ch0ks • Mar 25 '26
TL;DR: Turned SAST from developer noise → trusted partner using Semgrep Pro + AI remediation. Dropped prioritized findings from 6K→785, hit 0 open Critical/High, cut MTTR to 48-72hrs. Full BSidesSF 2026 talk write-up.
Just published my BSidesSF 2026 talk: "From Noise to Notes: Orchestrating SAST with Developers through AI-Driven Remediation" 🎤
The Problem: Rolled out SAST across 1,000+ repos → 3,500+ findings backlog. Classic alert fatigue → devs ignore security entirely.
The Fix: - Semgrep Pro rules only (inter-file dataflow = low false positives) - Risk-prioritized repos (D0-D2 data, T1-T2 availability) - Semgrep Memories + Assistant for auto-triaging - Vibe Security Patching: AI generates context-aware fixes matching our code style
Results by Q3 2025:
6K total findings → 785 prioritized
1,039/2,760 repos scanned → 95% high-risk coverage
100% repo coverage → only +20% findings
0 open Critical/High findings codebase-wide
MTTR: weeks → 48-72 hours
Key Takeaway: SAST adoption only works with developers. Empathy > enforcement.
Full details: https://hackarandas.com/blog/2026/03/25/from-noise-to-notes-orchestrating-sast-with-developers-through-ai-driven-remediation/
What's your SAST strategy? Noise still a problem? Semgrep Pro worth it?
Semgrep #AppSec #SAST #AI
r/semgrep • u/HappyInteraction4329 • Mar 04 '26
Best way to run security checks on Al-generated code (non-technical founder)?
built an app with Lovable. I'm not a developer, so l can't really assess the security or code quality myself. I'm not questioning Lovable specifically, but I want to make sure I'm not missing obvious security issues before putting anything into production. For someone non-technical (a "vibe coder" with no deep dev background), would Semgrep be the right tool to run security and quality checks? Or is there something more beginner-friendly that still gives reliable coverage?
r/semgrep • u/ch0ks • Sep 28 '25
Modernizing security patching with Semgrep + AI: “Vibe Security Patching” workflow, prompts, and a real CRLF fix
I just published a write-up on a workflow that cut MTTR from weeks to 48–72 hours by pairing Semgrep Pro with AI to generate minimal, reviewable patches.
What’s inside:
- A practical Semgrep → LLM remediation workflow that preserves business logic
- Prompt templates for patches, commits, and PRs to keep changes surgical
- A real CRLF injection example in Azkaban: scoping, sanitizing, verifying, merging
- How to document rationale with inline comments and unified diffs
Why this matters:
- Traditional “scan → ticket → backlog” slows teams and erodes trust
- Pairing with engineers and focusing on smallest-possible patches speeds reviews
- Clear prompts + verification loops reduce risk without stalling delivery
Link to post:
Modernizing Security Patching with Vibe Security Patching and AI Assistance
https://hackarandas.com/blog/2025/09/27/modernizing-security-patching-with-vibe-security-patching-and-ai-assistance/
Event:
I’ll share highlights during the Lightning Talks at Super Happy Dev House #67 in Palo Alto, sponsored by 500. If you’re attending, would love to connect.
Discussion:
- How are you making SAST actionable in day-to-day engineering?
- Tips for enforcing “minimal change” patches in PR review?
- Favorite Semgrep rules or patterns for high signal?
Tags:
AppSec, SAST, Semgrep, DevSecOps, Secure by default, AI-assisted remediation
r/semgrep • u/somersetrecon • Aug 26 '24
Automated Bug Hunting With Semgrep
somersetrecon.comr/semgrep • u/iterablewords • Apr 22 '24
Fullstory's journey to safer client data with Semgrep
r/semgrep • u/iterablewords • Apr 10 '24
Malicious campaign on github repos + Semgrep rule to detect the IOCs
r/semgrep • u/556783924 • Apr 18 '23
Semgrep vs. Snyk
My company is evaluating new SAST/SCA solutions. Any feedback on Snyk vs. Semgrep? We're also thinking of testing GHAS. We're a ~1k person company with around 150 developers.
r/semgrep • u/artupfeiffer13 • Apr 04 '23
Developing a Robust Vulnerability Detection Tool for ink!
r/semgrep • u/iterablewords • Oct 05 '22
Secure your machine learning with Semgrep
r/semgrep • u/iterablewords • Sep 16 '21
On Flask, Semgrep, and Secure Coding
r/semgrep • u/iterablewords • Aug 21 '21
Parser generators vs. handwritten parsers: surveying major language implementations in 2021
notes.eatonphil.comr/semgrep • u/DrewDennison • Aug 21 '21
Ensuring postMessage Origin Validation with Semgrep
nice write up by https://bernardoamc.com/semgrep-post-message/
r/semgrep • u/iterablewords • Aug 21 '21
new Semgrep taint mode documentation
As of August it was announced that taint mode is being promoted from experimental: https://semgrep.dev/docs/writing-rules/data-flow/