Machine learning detection of database injection attacks
Abstract
Techniques and solutions are described for detecting malicious database activity, such as SQL injection attempts. A first machine learning classifier can be trained by comparing processed and unprocessed user input, where a difference between the two can indicate suspicious or malicious activity. The trained classifier can be used to analyze user input before query execution. A second machine learning classifier is trained with a data set that includes call stack information for an application requesting execution of a dynamic query and query statistics associated with processing of the query at the database. The query of the application can be correlated with a corresponding database query by hashing the application query and the database query and comparing the hash values, where matching hash value indicate a common query. The trained classifier can monitor execution of future queries to identify queries having anomalous patterns, which may indicate malicious or suspicious activity.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, implemented in a computing system comprising one or more processors and one or more memories coupled to the one or more processors, the one or more memories comprising computer-executable instructions for causing the computing system to perform operations comprising: receiving user input for a first dynamic query, the user input comprising one or more characters; escaping the user input to provide escaped user input, the escaping comprising adding at least one character to the one or more characters to indicate that at least one character of the one or more characters corresponds to
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- “Avoid string concatenation to create queries,” retrieved from https://stackoverflow.com/questions/28473476/avoid-string-concatenation-to-create-queries, on or before Sep. 2018, 1 page.
- “Coding Dynamic SQL Statements,” retrieved from https://docs.oracle.com/cd/A97630_01/appdev.920/a96590/adg09dyn.htm, on or before Sep. 2018, 15 pages.
- “Enhancement to sql views—basic SQL parameter escaping,” retrieved from https://osgeo-org.atlassian.net/browse/GEOS-5792, on or before Sep. 2018, 2 pages.
- “How to escape user-supplied parameters with a SQL query?” retrieved from https://stackoverflow.com/questions/4954002/how-to-escape-user-supplied-parameters-with-a-sql-query, on or before Sep. 2018, 1 page.
- “Mysql_escape_string,” retrieved from http://php.net/manual/en/function.mysql-escape-string.php, on or before Sep. 2018, 4 pages.