summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien "shaddai" Reveret2016-07-29 10:22:21 +0200
committerJulien "shaddai" Reveret2016-07-29 10:22:21 +0200
commit6cf51485a3a10d00092fe0718efe5415d0788913 (patch)
treec4947ca221b7b9d65b07868932ed779943932e5a
parent1003fba0b664382211cd7d3a9a71c0ce72f744fe (diff)
adding custom.yar for user own webapp(s)
-rw-r--r--php-malware-finder/whitelist.yar1
-rw-r--r--php-malware-finder/whitelists/custom.yar15
2 files changed, 16 insertions, 0 deletions
diff --git a/php-malware-finder/whitelist.yar b/php-malware-finder/whitelist.yar
index 2d1ea10..b957660 100644
--- a/php-malware-finder/whitelist.yar
+++ b/php-malware-finder/whitelist.yar
@@ -10,6 +10,7 @@ include "whitelists/symfony.yar"
10include "whitelists/phpmyadmin.yar" 10include "whitelists/phpmyadmin.yar"
11include "whitelists/magento2.yar" 11include "whitelists/magento2.yar"
12include "whitelists/prestashop.yar" 12include "whitelists/prestashop.yar"
13include "whitelists/custom.yar"
13 14
14 15
15private rule Magento : ECommerce 16private rule Magento : ECommerce
diff --git a/php-malware-finder/whitelists/custom.yar b/php-malware-finder/whitelists/custom.yar
new file mode 100644
index 0000000..5f1dedb
--- /dev/null
+++ b/php-malware-finder/whitelists/custom.yar
@@ -0,0 +1,15 @@
1/* Add your own rules here */
2import "hash"
3
4/* remove me if you add rules
5private rule Custom : Blog
6{
7 meta:
8 generated = "2016-07-28T09:50:53.795037"
9
10 condition:
11 /* my own webapp 0.42 */
12 hash.sha1(0, filesize) == "deadbeaf"
13}
14
15remove me if you add rules */