Skip to content

Commit 541496e

Browse files
s-santillankhorne3
andauthored
kb: add specific findings filter (#2189)
* add specific findings * update with screenshots * Apply suggestions from review * Update docs/kb/semgrep-appsec-platform/find-specific-findings.md --------- Co-authored-by: Katie Horne <katie.horne@semgrep.com>
1 parent 441310f commit 541496e

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
slug: search-specific-findings
3+
title: Search for specific findings
4+
hide_title: true
5+
description: Learn to retrieve a rule ID and apply it to filter for findings from a specific rule across all your projects.
6+
tags:
7+
- Semgrep Supply Chain
8+
- Semgrep Code
9+
---
10+
11+
# Search for specific findings by rule or CVE
12+
13+
Semgrep offers a range of filters that allow you to narrow down your search for specific findings. In some cases, you may want to search by rule ID for Semgrep Code findings or CVE for Supply Chain findings.
14+
15+
This guide walks you through finding the specific rule ID in Semgrep, then applying it as a filter. You can then combine this filter with other filters, such as **Projects** or **Status**.
16+
17+
This method can be used for Semgrep Code and Supply Chain.
18+
19+
## Retrieve the Rule ID
20+
21+
1. Sign in to [<i class="fas fa-external-link fa-xs"></i> Semgrep AppSec Platform](https://semgrep.dev/login).
22+
1. Navigate to either the **Code** or **Supply Chain** page depending on which type of finding you're looking for.
23+
1. For Semgrep Code findings, the Rule ID is the heading of each group of findings. Copy this value.
24+
![Rule ID and Rule filter placement.](/img/code-ruleID.png)
25+
1. For Semgrep Supply Chain findings, the **CVE** or **MAL** ID is shown on the upper-right heading of each group of findings. Copy this value. Add a dash between the prefix, such as MAL or CVE, and the numerical value.
26+
![Rule ID and Rules filter placement.](/img/sca-ruleid.png)
27+
1. Enter the value you copied in the **Rule** filter for Semgrep Code or **Rules** filter for Semgrep Supply Chain. This narrows down the findings to that specific rule or CVE.
28+
1. You can continue adding values to the rules filter. The rules filter includes findings from **any** of the values indicated.
29+
30+
From there, you can apply any other filters as necessary.

static/img/code-ruleID.png

344 KB
Loading

static/img/sca-ruleid.png

417 KB
Loading

0 commit comments

Comments
 (0)