Scan File
4 min
Resumo
Executa o scan de regras YARA em um arquivo.
Parâmetros
Parâmetro | Requerido | Tipo | Escolhas | Valor Padrão | Comentários |
|---|---|---|---|---|
file_path | Sim | string | | Caminho do arquivo a ser escaneado. |
file_read_timeout | | int | Default: 60 | Tempo limite para leitura de arquivo. |
Exemplos
- name: Executa o scan em um arquivo específico.
yara_scan_file:
file_path: /Users/Teste/some_script.sh
rules:
hexExample: |
/* This will match any file containing "hello" anywhere. */
rule AsciiExample {
strings:$ascii_string = "hello"
condition:$ascii_string
}$ascii_string
}
register: resultValores retornados
Chave | Tipo | Retornado quando | Descrição |
|---|---|---|---|
scan_detection | string | Sempre | Saída da execução |