# README

SQL Detector

The sqld service type implements SQL injection attack detection. Regular expressions and a GRU recurrent neural network are used to detect SQL injection attacks.

The available service settings are as follows:

NameTypeDescription
filestringAn optional file name for custom neural network weights

The available input for the request are as follows:

NameTypeDescription
payloadJSON objectA payload to do SQL injection attack detection on

The available response outputs are as follows:

NameTypeDescription
attacknumberThe probability that the payload is a SQL injection attack
attackValuesJSON objectThe SQL injection attack probability for each string in the payload

A sample service definition is:

{
  "name": "SQLSecurity",
  "description": "Look for sql injection attacks",
  "ref": "github.com/project-flogo/microgateway/activity/sqld"
}

An example step that invokes the above SQLSecurity service using payload is:

{
  "service": "SQLSecurity",
  "input": {
    "payload": "=$.payload"
  }
}

Utilizing the response values can be seen in a response handler:

{
  "if": "$.SQLSecurity.outputs.attack > 80",
  "error": true,
  "output": {
    "code": 403,
    "data": {
      "error": "hack attack!",
      "attackValues": "=$.SQLSecurity.outputs.attackValues"
    }
  }
}

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author

# Structs

Activity is a SQL injection attack detector.
No description provided by the author
No description provided by the author
No description provided by the author