Skip to content

Test model with sqlmap #1

@mostafa

Description

@mostafa

Test the model to see how accurately it detects SQL injection attacks run by sqlmap.

Test No. 1

Tested the v1 model with sqlmap against the sql-idp-app, which resulted in ~81% detection. Also, sqlmap detects that a WAF is blocking the requests. To improve the results, I added libinjection-go, but I didn't test it after that.

flowchart TB
    sqlmap -->|"send malicious data to the app"| App["SQL IDP App"]
    App <--> GatewayD
    GatewayD <-->|connected| PostgreSQL
    GatewayD -->|"Is it an injection?"| Plugin["gatewayd-plugin-sql-idp"]
    Plugin <-->|"tokenize and sequence the query"| API
    Plugin -->|"Yes/No + prediction score"| GatewayD
    Plugin <-->|"Detect SQL injection"| ML["ML Model"]
    App <-. "connected to PostgreSQL via GatewayD" .-> PostgreSQL
Loading

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions