wallarm / wallnet

Open-source code to support BSides 2019's talk: Bye-Bye False Positives: Using AI to Improve Detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WallNet

(Released a part of the BsideS Talk 2019: https://www.youtube.com/watch?v=C4yJR35tAhg. OSS project is not maintained)

WallNet is an bidirectional recurrent neuralnetwork with attention mechanism and pooling layers and pipeline for Structured Query Language injections (SQLi) detection. To illustrate the application of this methodology, we will review in detail the implementa-tion of AI-based false-positive detection for a SQL injection. WallNet developed on TensorFlow 1.11 and Python3.6.

This implementation is an baseline for Malicious Intent Detection Challenge

Build

Firstly install dependences:

apt install -y swig
apt install -y python3, python3-dev, python3-pip
pip3 install -r requirements.txt

Now you have to build project.

./build.sh

Using

Preparing dataset

python3 data_loader.py --dataset_info_file=./data/train.csv --dataset_file=./data/train.msgp
python3 data_loader.py --dataset_info_file=./data/test.csv --dataset_file=./data/test.msgp --test

For more information use help: python3 data_loader.py --help

Train

python3 train.py 

About

Open-source code to support BSides 2019's talk: Bye-Bye False Positives: Using AI to Improve Detection

License:MIT License


Languages

Language:Python 78.0%Language:C++ 20.6%Language:Shell 0.8%Language:SWIG 0.6%