Semgrep brand markSemgrep Product: Semgrep
AI helpersSemgrepRoseram case study

Semgrep: Filtering Code Security Alerts with Claude

How Semgrep uses AI models to triage code vulnerabilities

Semgrep teamFounder or team
SemgrepCompany or product
20% alert reduction with 92% user agreementSemgrep reported that Claude in Amazon Bedrock marked twenty percent of security findings as safe to ignore, with a ninety-two percent user agree rate.
Jump to a section

Semgrep uses Claude in Amazon Bedrock to filter code security alerts. Semgrep reported that twenty percent of findings are marked safe to ignore, with a ninety-two percent user agree rate.

How Semgrep uses Claude to filter code alerts

Semgrep makes security tools for software teams. The company scans code to find bugs. Many scans make too many alerts. These false alarms slow teams down. Engineers waste time on harmless code.

Semgrep uses Claude in Amazon Bedrock to help. The tool reads scan findings. It separates real bugs from fake alarms. Semgrep reported this cuts alert volume by twenty percent right away. The alert drop can reach forty percent over time.

Staff Engineer Bence Nagy tested harmless placeholder passwords. Old tools flagged every placeholder. The AI model saw that test text was safe. This showed AI could spot false alarms.

How prompt chains triage alerts and tag components

Semgrep links code rules with AI prompt chains. The system checks past fixes and code paths. It reads dataflow traces across the code. Claude checks if a bug is truly dangerous.

The system tags code files to show risk. Files for payments get higher rank. Low-risk files get lower alert levels. This triage helps engineers fix key code first.

Semgrep tests models across one thousand customers. Semgrep reported that Claude beat GPT-4o on internal tests. Claude was sixteen percent better at finding false alarms. It was seventeen percent better at tagging parts.

Deciding when to use AI security labels

Semgrep tests AI models for its users. Marketer Chushi Li says buyers trust these tests. The team picks the best model for each task.

Co-founder Drew Dennison chose Amazon Bedrock for private setups. Many customers have strict data rules. Bedrock keeps code inside private cloud setups. This protects customer code during scans.

A team trying this could inspect dropped alerts on sensitive files. High user agreement does not prove zero errors. For a similar project, check dropped items often. Human reviews help keep code safe.

Where automated security triage can fail

AI models can make errors on code. Semgrep found that extra thinking time caused issues. Claude became too cautious with extra thinking tokens. It grew too conservative in its checks.

A model can also misjudge complex code context. For instance, an AI might miss an unsafe data path. It might treat an outside input as harmless. Such errors could hide real bugs from engineers.

Code fixes can also break existing features. Semgrep asks Claude to show checks after each fix. This helps developers protect working code. Without careful checks, quick fixes could harm software.

A practical way to test alert filtering

A team trying this could test alert filters first. Put known flaws into a test code set. Mix real bugs with harmless test inputs. Run the scan across the whole project.

Track how many false alarms the AI drops. Compare AI labels against known test answers. Measure review time saved by developers. Check whether the filter drops any real flaws.

A team could have security staff review the results. Do not rely on automated labels on payment systems alone. Run small tests before a broad rollout. Routine audits help spot mistakes early.

Sources

Applying the Semgrep case

Use these questions to assess a similar task in your own team.

ActionRequired EvidenceWhen to Stop or Adjust
Drop an alertIndependent review confirms finding is safeFilter drops real code vulnerabilities
Classify file riskData flow confirms component handles low-risk tasksCritical auth or payment files are marked low risk
Apply suggested fixAutomated test suite passes without breaking featuresFix changes program logic or causes build failures

YOUR OWN TEST PLAN

Try a small test

A suggested plan inspired by this case. Try it with your own data and track each step below.

0 of 3 steps checked

Questions this case answers

Does high user agreement mean an alert filter is bug-free?

No. Agreement scores show user opinions. Teams must still audit dropped alerts against verified security flaws.

Why does Semgrep access Claude through Amazon Bedrock?

Amazon Bedrock lets customers run model queries inside private cloud networks to meet strict data privacy rules.

Tools in this story

Want to learn more about these tools? Open a guide below where a link is shown.

Quick recap

Semgrep is a cybersecurity company that builds code analysis tools for developers. The company integrated Claude through Amazon Bedrock to triage security alerts, filter false alarms, and suggest remediation steps.

Semgrep reported a twenty percent reduction in alerts with a ninety-two percent user agreement rate. Model benchmarking showed improvements over GPT-4o in false positive detection and component tagging across customer codebases.

What to learn from this story

  • Semgrep uses Claude in Amazon Bedrock to label false positive alerts in code scans.
  • The vendor reported a twenty percent drop in alerts with ninety-two percent user agreement.
  • Teams should test AI security filters against known bugs before trusting dropped alerts.

Related case studies

Explore more ai helpers stories, with different products and teams.

CircleCI Chunk: check an AI fix for a failed build · Sentry: Automated Bug Fixing with Claude Managed Agents · Proaction: Custom Fleet Demos Built with Codex

Try your own AI task on Roseram

Plan your task. Build a draft. Check the work and its cost.

READER SIGNAL

What does the community think?

Votes answer “useful or not?” Reviews add the context a number cannot.
—0 reader reviews
Would you recommend evaluating Semgrep?One vote per signed-in account. Change it whenever you like.
+0 score

SHARE YOUR EXPERIENCE

Review Semgrep

Already have an account?

Recent reader reviews

Be the first to add field experience.

The most useful review describes a real job, the conditions of the test, and what another reader should verify.