IV1T3 / django-middleware-fileuploadvalidation

A Django middleware to validate user file uploads and detect malicious content.
Apache License 2.0
10 stars 2 forks source link

Keyword-Search-Based Analysis: Shebangs #20

Closed wichmannpas closed 2 years ago

wichmannpas commented 3 years ago

Besides PHP code (#17), the keyword-search-based analysis that is (to be) performed in a first step should also look for other possibly nasty stuff, such as Shebangs at the beginning of a file.

IV1T3 commented 2 years ago

Would recommend to implement this custom analysis with YARA rules.