Skip to content

Strelka yara errors #4580

Locked Answered by weslambert
EchoGangster asked this question in General
Discussion options

You must be logged in to vote

Sounds like there is a bad YARA rule somewhere. There is an open issue to help with this here: #3419. In the meantime, I would check any custom rules you added (if any), and you can follow the process (quick script -- no guarantees 😄 ) below to validate against the rules directory:

yum install -y python3-yara

Create validate_yara.py:

#!/usr/bin/python3
import argparse
import yara
from pathlib import Path

parser = argparse.ArgumentParser()
parser.add_argument('--path', '-p', help='Path to YARA rules')
args = parser.parse_args()
rules_dir = args.path

def validate_yar(rules_dir):
  # Check all subdirs for YARA rules
  paths = Path(rules_dir).glob('**/*.yar*')
  for path in paths:
    path_…

Replies: 1 comment

Comment options

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