---
title: Scan PID
slug: homologacao-atmosphere/scan-pid
description: Learn how to perform a YARA rule scan on a specific PID with this comprehensive document. Discover the necessary parameter and how to execute the scan using the YARA module. Includes an example and the output of the scan execution. Boost your cybersecurit
createdAt: 2022-08-01T17:42:26.000Z
---

## Resumo

- Executa o scan de regras YARA em um PID.

## Parâmetros

| **Parâmetro** | **Requerido** | **Tipo** | **Escolhas \| Valor Padrão** | **Comentários**      |
| ------------- | ------------- | -------- | ---------------------------- | -------------------- |
| pid           | Sim           | int      |                              | PID a ser escaneado. |

Utiliza parâmetros do módulo [](https://docs.simonops.com/homologacao-atmosphere/shell)[YARA](/yara).

## Exemplos

```yaml
- name: Executa o scan em um arquivo específico.
  yara_scan_pid:
    pid: 3551
    rules:
        hexExample: |
          /* This will match any file containing "hello" anywhere. */
          rule AsciiExample {
            strings:$ascii_string = "hello"
            condition:$ascii_string
          }$ascii_string
        }
    register: result
```

## Valores retornados

| **Chave**        | **Tipo** | **Retornado quando** | **Descrição**     |
| ---------------- | -------- | -------------------- | ----------------- |
| scan\_detection  | string   | Sempre               | Saída da execução |

