jvoisin / php-malware-finder

Detect potentially malicious PHP files
GNU Lesser General Public License v3.0
1.47k stars 284 forks source link

Spip whitelist support #89

Open camlafit opened 5 years ago

camlafit commented 5 years ago

Hello

Could be nice to add spip (or gihub mirror support. I've a PR but maybe some question to be correct. I use generate_whitelist script to generate and have some questions :

Thanks a lot

jvoisin commented 5 years ago

I would prefer if you could commit a script to generate the whitelists, instead of dumping them in the repo :)

camlafit commented 5 years ago

Hello

As explained in #90 all files are generated from https://git.spip.net/_outils_/yara-spip . One yar file by version took from official SPIP source. They're reproductible rules generate from generate_whitelist.

Look complicate to provide only a script without globbing support in yara file. We must hardcode some inclusion/rule at least :

Of course no problem to improve thise PR just I don't see how.

jvoisin commented 5 years ago

I guess we should indeed use a single file per CMS, instead of one per cms per version.

As for shipping the scripts, just assume that the other files will be present in the current folder?

mdeous commented 5 years ago

About the false, I have no idea what it's for, this was actually added in #76, I guess it can be removed.

jvoisin commented 5 years ago

Yay, let's remove it then !