> For the complete documentation index, see [llms.txt](https://docs.stepsecurity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stepsecurity.io/developer-machines/malicious-files/suppression-rules.md).

# Suppression Rules

The **Suppression Rules** page lets you suppress malicious file findings that are expected in your environment, on every device or on selected devices, both for findings that exist now and for files found on later scans.

To open it, select **Malicious Files** > **Suppression Rules** in the **Developer Machines** section of the left navigation.

Use a suppression rule when the same expected file keeps getting flagged, for example internal build tooling or a test fixture that intentionally contains malicious indicators. To suppress a single finding instead, use **Suppress** on the [Findings](https://docs.stepsecurity.io/developer-machines/malicious-files/findings.md) page.

### Suppression rules list

<figure><img src="https://754495266-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJRZY4cfEeY3I7DXTOCp%2Fuploads%2F4ZSGSOF9P8V5yJ7iXDOM%2FScreenshot%202026-11-03%20at%2022.50.45.png?alt=media&amp;token=a5468a11-2e4b-4e4d-951f-48927dac506a" alt=""><figcaption></figcaption></figure>

For each rule, StepSecurity shows:

* **Rule name:** the rule's name, with its description underneath
* **Conditions:** the conditions a finding must match to be suppressed, for example `Detection rule: binding-gyp-command-exec`
* **Scope:** the devices the rule applies to, for example `All devices` or `1 device`
* **Created by:** who created the rule
* **Last updated:** when the rule was last changed

### Viewing, editing and deleting a rule

Select **View details** on a row to open the rule. The details page shows the rule name, scope, each condition, who created the rule and when.

To change or remove a rule, select **Edit rule** or **Delete rule**, either on the details page or from the actions menu (**⋮**) on the rule's row.

<figure><img src="https://754495266-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJRZY4cfEeY3I7DXTOCp%2Fuploads%2FGA7BEEQkFdllb8swAEmp%2FScreenshot%202026-11-03%20at%2022.52.05.png?alt=media&amp;token=b68fdd24-55d1-42e6-a470-ba2731e99dda" alt=""><figcaption></figcaption></figure>

### Creating a suppression rule

* Select **Create rule**.
* Enter a **Name**, for example `Internal build tooling`, and optionally a **Description** explaining why these findings are expected.
* Choose a **Scope**:
  * **All devices:** every current and future device in your organization
  * **Specific devices:** one or more devices you select
* Add one or more **Conditions**. A finding is suppressed only when it matches every condition.
* Select **Preview matches** to check which findings the rule would suppress, then select **Create rule**.

<figure><img src="https://754495266-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJRZY4cfEeY3I7DXTOCp%2Fuploads%2FXdfvB5PsEKqh5mVRVO55%2FScreenshot%202026-11-03%20at%2022.53.26.png?alt=media&amp;token=4fc4a1d6-9536-4df7-af60-cc6be185b9c3" alt=""><figcaption></figcaption></figure>

Findings on the devices in scope that match every condition are suppressed, including files found on later scans.

#### **Creating a rule from a finding**

You can also start a rule from a specific finding. On the [Findings](https://docs.stepsecurity.io/developer-machines/malicious-files/findings.md) page, open the finding's actions menu (**⋮**) and select **Create suppression rule**. The form opens with the finding's **Detection rule** and **File path** already added as conditions. The scope defaults to **All devices**; select **Only this finding's device** to limit the rule to that one device. Adjust the conditions if needed, enter a name, and select **Create rule**.

<figure><img src="https://754495266-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJRZY4cfEeY3I7DXTOCp%2Fuploads%2FTJulFqwlytTBM8xPUdig%2FScreenshot%202026-11-03%20at%2022.53.26.png?alt=media&amp;token=c9fbc10a-d401-48b7-8671-d03e5bb34d1f" alt=""><figcaption></figcaption></figure>

### Conditions

| Condition          | Matches                                                                     | Example                          |
| ------------------ | --------------------------------------------------------------------------- | -------------------------------- |
| **File path**      | The full path of the flagged file on the device                             | `/Users/*/work/internal-tools/*` |
| **Detection rule** | The identifier of the detection rule that matched                           | `shai-hulud-*`                   |
| **SHA-256**        | The SHA-256 (Secure Hash Algorithm 256-bit) hash of the file, 64 characters |                                  |
| **Campaign**       | The attack campaign the detection rule is associated with                   | `Shai-Hulud`                     |
| **Confidence**     | The detection confidence: `high`, `medium` or `low`                         |                                  |

Use `*` as a wildcard in condition values.

{% hint style="warning" %}
A suppression rule scoped to **All devices** also applies to devices enrolled in the future. Keep conditions as specific as possible, for example by combining a file path with a SHA-256 hash, so the rule cannot hide a malicious file that happens to share a path or rule name with an expected one.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stepsecurity.io/developer-machines/malicious-files/suppression-rules.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
