FiddleZAP: flag malicious traffic based on predefined regular expressions

flag malicious traffic

FiddleZAP

FiddleZAP is a simplified version of EKFiddle for OWASP ZAP.

With ZAP as your web proxy, you are able to flag malicious traffic based on predefined regular expressions.

Example: Alert, highlighting, and tagging when a regex matches on a string within the HTML source code of a compromised website

flag malicious traffic

 

flag malicious traffic

Features

Regexes (rules) to detect malicious traffic

Rules for FiddleZAP can look for URI patterns and source code patterns (session body).

  • A community_rules.txt file is provided with some examples.
  • The user_rules.txt is your own rules file.

Rules are automatically loaded and used to scan incoming traffic (if Passive Rules script is enabled). If you want to run rules on previously captured traffic, you need to run the standalone script.

 

Color coding and tagging of matching web sessions

(This feature requires the neonmarker add-on)

 

Detailed alerts

Installation

  • Download and install ZAP: https://www.zaproxy.org/download/
  • Download or clone the FiddleZAP directory into your Documents folder.
    git clone https://github.com/malwareinfosec/FiddleZAP.git

It should have the following structure:

 

 

There are 2 scripts (standalone, passive rules). The former is used to run manually on the currently loaded session (web traffic), the latter automatically runs while recording traffic.

Use

Stand Alone

First, install the standalone script:

  • Click on the Load script icon:

 

  • Select the following parameters:flag malicious traffic

 

  • It now shows under standalone:

 

Passive Rules

Next, install the passive rules script:

  • Click on the Load script icon:

 

  • Select the following parameters:flag malicious traffic

 

The FiddleZAP script should now show up under Passive Rules. If it is not enabled, right-click on it and select Enable script.

flag malicious traffic

Copyright (C) 2021 malwareinfosec

Source: https://github.com/malwareinfosec/