Cybersecurity · head to head
AWS WAF vs Semgrep

AWS WAF
Cybersecurity
Managed web application firewall for CloudFront, load balancers and APIs on AWS
- From
- $5/month
- Free plan
- No

Semgrep
Cybersecurity
Open-source static analysis tool for finding security bugs and enforcing code standards.
- From
- Free
- Free plan
- Yes
The short version
- Semgrep has a free plan, then $30/mo; AWS WAF starts at $5/mo.
- Only AWS WAF lists web ACLs and rules; only Semgrep lists static code scanning.
- Where AWS WAF falls short: it only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it.
- Where Semgrep falls short: free tier caps out at 10 contributors and 10 repositories.
How do AWS WAF and Semgrep differ?
AWS WAF and Semgrep differ on starting price ($5/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS WAF and Semgrep actually diverge.
Not yet recorded: category for AWS WAF, founded for AWS WAF.
Which features does each one have?
They share no listed features; 6 appear only for AWS WAF and 6 only for Semgrep. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in AWS WAF
- Web ACLs and rules
- Managed rule groups
- Bot Control
- Fraud Control
- Rate-based rules
- Logging
Only in Semgrep
- Static code scanning
- Supply chain scanning
- Secrets detection
- Cross-file analysis
- AI-powered triage and remediation
- CI/CD integration
What is each one used for?
AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront; Semgrep for scanning code for security vulnerabilities in CI/CD. The jobs each tool is most often brought in to do.
AWS WAF
- Blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancernot Semgrep
- Rate limiting login and API endpoints that sit behind CloudFrontnot Semgrep
- Adding bot detection to a retail site already hosted on AWSnot Semgrep
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot Semgrep
Semgrep
- Scanning code for security vulnerabilities in CI/CDnot AWS WAF
- Detecting vulnerable open-source dependenciesnot AWS WAF
- Finding hardcoded secrets before code shipsnot AWS WAF
- Enforcing custom code standards with rule setsnot AWS WAF
- Prioritizing findings with AI-assisted triagenot AWS WAF
Where do AWS WAF and Semgrep fall short?
Semgrep's most cited limit: free tier caps out at 10 contributors and 10 repositories. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS WAF
- It only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it
- Charges come from several meters at once (web ACL, rules, rule groups, requests, logging, and per-feature fees), so predicting a bill needs a worksheet rather than a single price
- Account Takeover Prevention and Fraud Control start at $1,000 per million requests, so protecting a busy login endpoint can cost more than the web ACL itself
- Managed rules ship in count-first workflows and generate false positives on unusual payloads, so someone has to review logs and tune exclusions
- Request body inspection is capped by default, and inspecting beyond the limit or using more than the default capacity units carries extra per-request charges
Semgrep
- Free tier caps out at 10 contributors and 10 repositories
- Secrets scanning is priced as a separate module ($15/contributor) from Code and Supply Chain
- Self-managed repositories and custom CI/CD require the Enterprise tier
- AI credits are limited per tier and additional usage requires upgrading
How much do AWS WAF and Semgrep cost?
AWS WAF starts at $5/mo; Semgrep has a free plan, with paid plans from $30/mo. Plan by plan below, from each vendor's own pricing page.
AWS WAF
$5/month- Pay-as-you-go$5/mo
- $5.00 per web ACL per month
- $1.00 per rule and $1.00 per rule group per month
- $0.60 per million requests
- Bot Control$10/mo
- $10.00 per web ACL per month subscription
- Common: $1.00 per million requests, first 10 million free
- Targeted: $10.00 per million requests, first million free
- Account Takeover and Fraud Control$10/mo
- $10.00 per web ACL per month per rule group
- $1,000 per million requests for the first 2 million, falling to $50 per million at the highest tier
Semgrep
Free- FreeFree
- Up to 10 contributors
- Code and Supply Chain scanning
- 60 AI credits total
- Teams$30/mo
- Code, Supply Chain, or Secrets scanning per contributor
- Pro rules
- AI-powered triage and remediation
- EnterpriseOn request
- On-prem support
- Custom CI/CD
- 50 AI credits per developer/month
Which should you pick?
Choose Semgrep if
- You need static code scanning.
- You want to start without paying.
- You work on Web, API, Linux, macOS, Windows.
- You also want supply chain scanning.
Questions people ask
- Is AWS WAF or Semgrep better?
- It depends on the job. AWS WAF fits blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancer; Semgrep fits scanning code for security vulnerabilities in CI/CD. AWS WAF starts at $5/month and Semgrep at Free.
- Which is cheaper, AWS WAF or Semgrep?
- Semgrep has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for Semgrep.
- Does AWS WAF or Semgrep run on more platforms?
- AWS WAF runs on Web. Semgrep runs on Web, API, Linux, macOS, Windows.
- Can I use Semgrep for free?
- Yes. Semgrep has a free tier, so you can try it without paying. AWS WAF starts at $5/month.
- What is AWS WAF best used for?
- AWS WAF is most often used for blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer, rate limiting login and api endpoints that sit behind cloudfront, adding bot detection to a retail site already hosted on aws, applying one set of waf rules across many accounts through aws firewall manager. Of those, blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer and rate limiting login and api endpoints that sit behind cloudfront are not what Semgrep is typically brought in for.
- What can AWS WAF do that Semgrep cannot?
- AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Semgrep covers Static code scanning, Supply chain scanning, Secrets detection, Cross-file analysis.
Answered from the vendors’ own pages
AWS WAF: How much does AWS WAF cost per month?
On pay-as-you-go pricing it is $5.00 per web ACL and $1.00 per rule per month, plus $0.60 per million requests, per the AWS pricing page. Bot Control, fraud rules, CAPTCHA and logging are billed on top.
Semgrep: What does Semgrep cost?
The Free edition covers up to 10 contributors; Teams starts at $30/contributor/month for Code scanning (Supply Chain also $30, Secrets $15); Enterprise is custom-priced.
SourceAWS WAF: Does AWS WAF work outside AWS?
No. It protects supported AWS resources such as CloudFront, Application Load Balancer and API Gateway. Origins elsewhere can be covered if they sit behind CloudFront.
Semgrep: Is there a free plan, and what are its limits?
Yes, the Free edition supports up to 10 contributors and 10 repositories with Code and Supply Chain scanning plus 60 AI credits total.
SourceAWS WAF: Is AWS WAF included with Shield Advanced?
Shield Advanced includes WAF usage for protected resources, up to 50 billion requests per month and 1,500 capacity units per web ACL, per the Shield pricing page.
Semgrep: How is usage metered?
Pricing is per contributor, defined as someone who made at least one commit to a scanned private repository in the past 90 days.
SourceSemgrep: Is there special pricing for startups?
Yes, Semgrep offers special startup pricing upon request for early-stage companies.
SourceRelated pages
Other head to heads
- AWS WAF vs Imperva
- AWS WAF vs FortiWeb
- AWS WAF vs Sucuri
- AWS WAF vs Wordfence
- AWS WAF vs Sophos Firewall
- AWS WAF vs Clerk
- AWS WAF vs Transcend
- AWS WAF vs Hanwha Vision
- AWS WAF vs Apiiro
- AWS WAF vs Baffle
- AWS WAF vs Cisco Secure Firewall
- AWS WAF vs Exabeam
- AWS WAF vs FortiMail
- AWS WAF vs FortiAnalyzer
- AWS WAF vs FortiNAC
- AWS WAF vs FortiSASE
- AWS WAF vs FortiSIEM
- AWS WAF vs FortiSOAR
- AWS WAF vs Snyk
- AWS WAF vs Veracode
- AWS WAF vs Checkmarx One
- AWS WAF vs Arnica
- AWS WAF vs Aikido
- AWS WAF vs Socket
- AWS WAF vs Cycode
- AWS WAF vs Trivy
- AWS WAF vs Grype
- AWS WAF vs Bitwarden
- AWS WAF vs Infisical
- AWS WAF vs Swimlane
- AWS WAF vs Thoropass
- AWS WAF vs Transmit Security
- AWS WAF vs Abnormal AI
- AWS WAF vs Addigy
- Semgrep vs Imperva
- Semgrep vs FortiWeb
- Semgrep vs Sucuri
- Semgrep vs Wordfence
- Semgrep vs Sophos Firewall
- Semgrep vs Clerk
- Semgrep vs Transcend
- Semgrep vs Hanwha Vision
- Semgrep vs Apiiro
- Semgrep vs Baffle
- Semgrep vs Cisco Secure Firewall
- Semgrep vs Exabeam
- Semgrep vs FortiMail
- Semgrep vs FortiAnalyzer
- Semgrep vs FortiNAC
- Semgrep vs FortiSASE
- Semgrep vs FortiSIEM
- Semgrep vs FortiSOAR
- Semgrep vs Snyk
- Semgrep vs Veracode
- Semgrep vs Checkmarx One
- Semgrep vs Arnica
- Semgrep vs Aikido
- Semgrep vs Socket
- Semgrep vs Cycode
- Semgrep vs Trivy
- Semgrep vs Grype
- Semgrep vs Bitwarden
- Semgrep vs Infisical
- Semgrep vs Swimlane
- Semgrep vs Thoropass
- Semgrep vs Transmit Security
- Semgrep vs Abnormal AI
- Semgrep vs Addigy
