Skip to content

Collector condition #152

Answered by tclahr
sirbrowser asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Yes, it is! You need to run yara scanner using command collector, save the list of files in a text file (one file per line), then collect them using the file collector.

Let me give you an example:

artifacts:
  -
    description: run yara scanner and save list of files in a text file
    supported_os: [all]
    collector: command
    command: yara_scanner <parameters>
    output_file: yara_scanner.txt
  -
    description: collect all files (full path) listed in yara_scanner.txt
    supported_os: [all]
    collector: file
    path: yara_scanner.txt
    is_file_list: true

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tclahr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants