hottub.patents
US 12,224,987 B2#3612784 Most CitedActiveUnited States (USPTO)Utility

Machine learning based web application firewall

0Forward Citations (#3612784 Global)
0.0/yrCitation Velocity (#3612784 Global)
0.00Citation PageRank (#3612784 Global)
14Prior Art Cited
21Claims (3 Indep. · 18 Dep.)
5Drawings / Sheets

Abstract

A machine learning (ML) based web application firewall (WAF) is described. Transformation(s) are applied to raw data including normalizing and generating a signature over the normalized data. The signature and the normalized data are vectorized to create a first and second vector of integers respectively. The first and second vector of integers are input into an ML model, which outputs a score that indicates a probability of the raw data being of a type that is malicious. A traffic processing rule is enforced that instructs a WAF to block traffic when the score is above a threshold that indicates the raw data is of the type that is malicious.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.

Claims (21 — 3 Independent, 18 Dependent)

  1. Claim 1Independent Claim

    A method for a machine learning (ML) based web application firewall (WAF), comprising: receiving raw data; performing one or more transformations on the received raw data including: normalizing the received raw data, and generating a signature over the normalized data; vectorizing the generated signature to create a first vector of integers; vectorizing the normalized data to create a second vector of integers; inputting the first vector of integers and the second vector of integers into a machine learning model; processing, at the machine learning model, the first vector of integers and the second vector of integers, wherein the machine learning model uses a multiple stage process including: a first stage that operates on the first vector of integers to identify a result, and a second stage that operates on the result of the first stage and the second vector of integers and conditions attention on the second vector of integers on the result of the first stage; wherein the machine learning model outputs a score that indicates a probability of the raw data being of a type that is malicious; and enforcing a traffic processing rule for the received raw data that instructs the WAF to block traffic when the score is above a threshold that indicates the raw data is of the type that is malicious.

  2. Claim 2Depends on #1

    The method of claim 1, wherein the raw data is a Hypertext Transfer Protocol (HTTP) request.

  3. Claim 3Depends on #2

    The method of claim 2, further comprising: extracting a plurality of parts of the HTTP request; and wherein the one or more transformations are performed on each of the extracted plurality of parts of the HTTP request.

  4. Claim 4Depends on #3

    The method of claim 3, wherein the plurality of parts of the HTTP request include at least two of: RequestURI; Referer-Path; User-Agent; Content-Type; and Body.

  5. Claim 5Depends on #1

    The method of claim 1, wherein generating the signature over the normalized data includes replacing each contiguous sequence of non-special characters with a placeholder token.

  6. Claim 6Depends on #1

    The method of claim 1, wherein the score is indicative of the raw data being of a type that is related to an SQL injection (SQLi) attack, a cross site scripting (XSS) attack, a remote code execution (RCE) attack.

  7. Claim 7Depends on #1

    The method of claim 1, wherein each integer in the second vector of integers represents a token in a finite vocabulary.

  8. Claim 8Independent Claim

    A non-transitory machine-readable storage medium that provides instructions that, if executed by a processor, will cause operations to be performed comprising: receiving raw data; performing one or more transformations on the received raw data including: normalizing the received raw data, and generating a signature over the normalized data; vectorizing the generated signature to create a first vector of integers; vectorizing the normalized data to create a second vector of integers; inputting the first vector of integers and the second vector of integers into a machine learning model; processing, at the machine learning model, the first vector of integers and the second vector of integers, wherein the machine learning model uses a multiple stage process including: a first stage that operates on the first vector of integers to identify a result, and a second stage that operates on the result of the first stage and the second vector of integers and conditions attention on the second vector of integers on the result of the first stage; wherein the machine learning model outputs a score that indicates a probability of the raw data being of a type that is malicious; and enforcing a traffic processing rule for the received raw data that instructs a web application firewall (WAF) to block traffic when the score is above a threshold that indicates the raw data is of the type that is malicious.

  9. Claim 9Depends on #8

    The non-transitory machine-readable storage medium of claim 8, wherein the raw data is a Hypertext Transfer Protocol (HTTP) request.

  10. Claim 10Depends on #9

    The non-transitory machine-readable storage medium of claim 9, wherein the operations further comprise: extracting a plurality of parts of the HTTP request; and wherein the one or more transformations are performed on each of the extracted plurality of parts of the HTTP request.

  11. Claim 11Depends on #10

    The non-transitory machine-readable storage medium of claim 10, wherein the plurality of parts of the HTTP request include at least two of: RequestURI; Referer-Path; User-Agent; Content-Type; and Body.

  12. Claim 12Depends on #8

    The non-transitory machine-readable storage medium of claim 8, wherein generating the signature over the normalized data includes replacing each contiguous sequence of non-special characters with a placeholder token.

  13. Claim 13Depends on #8

    The non-transitory machine-readable storage medium of claim 8, wherein the score is indicative of the raw data being of a type that is related to an SQL injection (SQLi) attack, a cross site scripting (XSS) attack, a remote code execution (RCE) attack.

  14. Claim 14Depends on #8

    The non-transitory machine-readable storage medium of claim 8, wherein each integer in the second vector of integers represents a token in a finite vocabulary.

  15. Claim 15Independent Claim

    An apparatus, comprising: a processor; and non-transitory machine-readable storage medium that provides instructions that, if executed by the processor, will cause the apparatus to perform operations including: receiving raw data; performing one or more transformations on the received raw data including: normalizing the received raw data, and generating a signature over the normalized data; vectorizing the generated signature to create a first vector of integers; vectorizing the normalized data to create a second vector of integers; inputting the first vector of integers and the second vector of integers into a machine learning model; processing, at the machine learning model, the first vector of integers and the second vector of integers, wherein the machine learning model uses a multiple stage process including: a first stage that operates on the first vector of integers to identify a result, and a second stage that operates on the result of the first stage and the second vector of integers and conditions attention on the second vector of integers on the result of the first stage; wherein the machine learning model outputs a score that indicates a probability of the raw data being of a type that is malicious; and enforcing a traffic processing rule for the received raw data that instructs a web application firewall (WAF) to block traffic when the score is above a threshold that indicates the raw data is of the type that is malicious.

  16. Claim 16Depends on #15

    The apparatus of claim 15, wherein the raw data is a Hypertext Transfer Protocol (HTTP) request.

  17. Claim 17Depends on #16

    The apparatus of claim 16, wherein the operations further comprise: extracting a plurality of parts of the HTTP request; and wherein the one or more transformations are performed on each of the extracted plurality of parts of the HTTP request.

  18. Claim 18Depends on #17

    The apparatus of claim 17, wherein the plurality of parts of the HTTP request include at least two of: RequestURI; Referer-Path; User-Agent; Content-Type; and Body.

  19. Claim 19Depends on #15

    The apparatus of claim 15, wherein generating the signature over the normalized data includes replacing each contiguous sequence of non-special characters with a placeholder token.

  20. Claim 20Depends on #15

    The apparatus of claim 15, wherein the score is indicative of the raw data being of a type that is related to an SQL injection (SQLi) attack, a cross site scripting (XSS) attack, a remote code execution (RCE) attack.

  21. Claim 21Depends on #15

    The apparatus of claim 15, wherein each integer in the second vector of integers represents a token in a finite vocabulary.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of application Ser. No. 18/161,719, filed Jan. 30, 2023, which is hereby incorporated by reference. FIELD Embodiments of the invention relate to the field of web application firewalls; and more specifically, to a machine learning based web application firewall. BACKGROUND A web application firewall (WAF) is a network security solution that analyzes an HTTP request and determines whether the request should be dropped or processed. Conventionally, the WAF can analyze the request to determine whether it contains any data that can cause damage to a destination server system and/or was generated by an entity with malicious intent. A WAF typically protects applications from attacks such as cross-site-scripting (XSS), file inclusion, and SQL injection (SQLi), among others. These attacks can result in the loss of sensitive user data and damage to critical software infrastructure, leading to monetary loss and reputation risk, along with direct harm to customers. Most WAFs are rule based which means they block traffic based on a set of predefined signatures. A WAF is normally deployed as a reverse proxy in front of the application, and can be hosted both as a virtual appliance, physical device, or as part of a native cloud platform. Due to its position and intended function, WAFs must have full access to payload data and therefore normally must perform encryption and decryption functions. Conventionally, there are two security models for analyzing traffic that are commonly used. A positive security model rejects everything that is not an “ allowed list ” or “ approved list. ” In the context of a WAF, only requests known a-priori to be safe are permitted to pass while all other traffic is blocked. A fuzzier version of this approach is to learn from historical “ known good ” requests to identify acceptable HTTP traffic and reject everything else. A negative security model allows everything except those t

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 (14)

PatentTitleYearCitations

Non-Patent Literature (10)

  • I
  • Ş
  • iker, Batuhan, and ibrahim So
  • Ǧ
  • ukpinar.
  • “
  • Machine learning based web application firewall.
  • ”
  • 2021 2nd International Informatics and Software Engineering Conference (IISEC). IEEE, 2021. (Year: 2021).
  • Ito, Michiaki, and Hitoshi Iyatomi.