Detection and scope
IDORs and other business logic flaws
A business logic flaw is any weakness in an application’s design or workflow that makes its legitimate features vulnerable to malicious use. Semgrep’s AI-powered detection focuses on authorization flow gaps that fall outside standard vulnerability categories:- IDOR and ownership gaps: accessing another user’s resource when ownership or tenant checks are missing, misplaced, or only client-side.
- Order and sequence mistakes: state changes or token resets happening after sensitive reads/writes, or actions allowed in the wrong state.
- Workflow abuse, or OWASP logic manipulation: skipping required steps, like shipping before checkout or refunds without a completed purchase.
Determinism of AI-powered detection findings
AI-powered detection findings are inherently non-deterministic. Because AI scans rely on probabilistic reasoning, repeated scans may not always produce identical results. However, Semgrep’s scanning engine helps make them more reliable. As with any automated security finding, you must review scan results carefully.Setup, billing, and integrations
SCM support and AI providers
AI-powered detection builds on Semgrep’s existing integration framework, such as GitHub, GitLab, and Bitbucket. AI-powered detection uses the providers your organization enables in its AI provider settings, except Cloudflare Workers AI. This includes providers that use your own key or account. To use Amazon Bedrock with your own AWS account, connect it with IAM role assumption. If your Microsoft Foundry resource has more than one deployment, AI-powered detection needs a deployment of both a fast model and a quality model. Scans on your own providers still consume AI credits. See AI credits with your own providers.Credits required for AI actions
See Usage and billing for information about credits required for AI actions.Data privacy and finding severity
The data privacy policy is similar to that described in Data privacy and legal considerations, with a few exceptions. Currently, all AI findings are assigned the same severity, which is high, and don’t have other attributes like confidence.Known bugs and limitations
Here are some known issues: Scan limitations:- Only full scans are supported.
- The Dashboard counts AI findings with Semgrep Code findings. On the Reporting page, use the Finding type filter to view AI-powered scan findings and Rule-based scan findings separately.
- Custom rules are not supported for AI-powered detection.