-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request : be able to select specific file extensions in yara #1312
Comments
Hello, I would suggest that this is done outside of YARA. To do this you could:
Cheers, |
Hello Tom, my team is performing incident response. We need to limit process creation (which would occur if we run yara after performing some file filtering). In adition, we are commonly scanning directories with millions of files. I've already implemened the needed feature. I think it may be usefull for other people too. Thanks, Emmanuel |
Hi, OK, but if you use "--scan-list" as I suggest, it does not create millions of processes, it creates one process. Cheers, |
Hello Tom, this only address part of the issue : filelist must be created first (we want to avoid writing any file to disk) and we ended up to scan directories twice. Cheers, Emmanuel |
I face the same problem. Currently I have to create, filter and prove a filelist to skip only a few but rather small or irrelevant files (like txt, zip and so on). How can we bring this feature request forward? |
Perhaps a solution to allow --scan-list to read from stdin rather than a file? I'm concerned that building a scan-list file could require generating a sizeable file when listing directories or files from large disks, but allowing --scan-list to read from stdin rather than a file opens many scenarios to read piped input from 'find' or 'dir' or higher-level scripts. |
For what it's worth, I have a local workaround using 'mkfifo' to create a circular buffer file that is then the input for --scan-list.
|
there are scenarios where only specific file extensions needs to be scanned.
So, I've added an option (--exts) in order to specify which file extensions should be scanned in my custom yara build :
yara64.exe -C webshells.bin . --exts=.asp/.aspx/.dll/.jsp/.php
I would like to know if this is something that is planned in the feature list. If needed, I can share the code I'm currently using (I'm new to github).
Thanks!
Emmanuel
The text was updated successfully, but these errors were encountered: