Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

tag files with malicious probability #39

Open
shaddai opened this issue Dec 1, 2016 · 1 comment
Open

tag files with malicious probability #39

shaddai opened this issue Dec 1, 2016 · 1 comment
Assignees
Milestone

Comments

@shaddai
Copy link
Contributor

shaddai commented Dec 1, 2016

When pmf shows multiple files in its output, it can be hard for a human to sort files and find real malwares.
Yara can tag files, we should use this functionality to help in detecting real webshells/web malwares.

@shaddai shaddai self-assigned this Dec 1, 2016
@jvoisin jvoisin added this to the 0.4 milestone Dec 9, 2016
@jvoisin
Copy link
Owner

jvoisin commented Dec 12, 2016

Currently, there is this hackish function:

needle_in_haystack() {                                                           
                                                                                 
  needle=$(mktemp)                                                               
  egrep '(PasswordProtection|Websites|TooShort|NonPrintableChars)' $1 > $needle  
  if [ ! "$(wc -l $needle | awk '{print $1}')" = "0" ]; then                     
      echo "================================================="                   
      echo "You should take a look at the files listed below:"                   
      cat $needle                                                                
  fi;                                                                            
  rm $needle                                                                     
}

In my opinion, we should use yara tags to mark false-positive-free rules, and provide a --critical-only option instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants