Method and system for data flow monitoring to identify application security vulnerabilities and to detect and prevent attacks
Abstract
A technology to identify processing paths of untrusted input data received by applications that are vulnerable to attacks and to further detect and prevent actual attacks that try to exploit those vulnerabilities is disclosed. Application code is augmented at run-time with sensor code which detects the entry of input-data into the application and further traces the propagation, manipulation and, sanitization of this input-data until its usage in a data sink. The so generated data-flow traces reveal data-flow paths that lack required sanitization measures to neutralize potentially harmful input-data. Such data-flow paths are reported as vulnerabilities. Further, input-data that reaches data-sink interfaces is scanned by data-sink sensors to identify harmful input data. On identification of harmful input data, an attack is reported, and countermeasures are applied to prevent the identified attack.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 67 · Forward citations: 0.
Claims (14 — 2 Independent, 12 Dependent)
- Claim 1Independent Claim
A computer-implemented method for identifying a security vulnerability in an application executing across processes on a host computing device in a distributed computing environment, comprising: reporting, by a source sensor, input data received by a frontend portion of the application to a first agent, where the input data is received from a source external to the host computing device, the source sensor is instrumented in a request handling method of the frontend portion of the application, and the frontend portion of the application and the first agent are executed on a first process; reporting, by a sanitization sensor, sanitization of the input data to the first agent, where the reporting of the sanitization is in response to execution of a data sanitization method within the frontend portion of the application and the sanitization sensor is instrumented in the data sanitization method; reporting, by a first communication sensor, usage of the input data to the first agent by an outgoing communication method, where the first communication sensor is instrumented in the outgoing communication method; reporting, by the first agent, first observation data to a monitoring server, where first observation data includes an indicator of the sanitization of the input data and usage of the input data by the outgoing communication method, and the monitoring server is located remote from the host computing device; reporting, by a second communication sensor, receipt of the input data by a backend portion of the application to a second agent, where the backend portion of the application and the second agent are executed on a second process which differs from the first process; reporting, by a sink sensor, a sink call made by the backend portion of the application to the second agent, where the reporting of the sink call is in response to execution of the sink call and the execution of the sink call uses at least a portion of the input data reported by the second communication sensor; and determining, by the second agent, whether parameter values for the sink call were sanitized and identifying a security vulnerability in the backend portion of the application in response to a determination that at least a portion of one parameter value for the sink call was not sanitized.
- Claim 2Depends on #1
The method of claim 1 further comprises reporting, by the second agent, the security vulnerability to the monitoring server; and ignoring, by the monitoring server, the security vulnerability based on the indicator of the sanitization of the input data received from the first agent.
- Claim 3Depends on #1
The method of claim 1 further comprises linking, by the monitoring server, the second observation data to the first observation data using correlation data, where the first observation data further includes the correlation data and the second observation data further includes the correlation data.
- Claim 4Depends on #3
The method of claim 3 further comprises adding, by the first communication sensor, the correlation data to messages sent by the outgoing communication method.
- Claim 5Depends on #4
The method of claim 4 further comprises extracting, by the second communication sensor, the correlation data from the messages and reporting the correlation data to the second agent.
- Claim 6Depends on #1
The method of claim 1 further comprises determining, by the second agent, a path taken by the input data from the request handling method to the sink call; removing, by the second agent, non-static data from the path to create static path data; computing, by the second agent, a hash value from the static path data; and storing, by the second agent, the hash value in a data store accessible to the second agent.
- Claim 7Depends on #6
The method of claim 6 further comprises identifying, by the second agent, a second security vulnerability; computing, by the second agent, a second hash value for the second security vulnerability; and comparing, by the second agent, the second hash value to the hash value stored in the data store.
- Claim 8Depends on #7
The method of claim 7 further comprises reporting, by the second agent, only the second hash value to the monitoring server in response to a match between the second hash value to the hash value stored in the data store; and reporting, by the second agent, the second security vulnerability to the monitoring server in response to a mismatch between the second hash value to the hash value stored in the data store, where the reporting of the second security vulnerability includes an indicator for the sink call and at least a portion of one parameter value for the sink call was not sanitized.
- Claim 9Depends on #1
The method of claim 1 further comprises reporting, by the second agent, second observation data to the monitoring server, where the second observation data includes receipt of the input data and an indicator of the sink call using the received input data; and determining, by the monitoring server, whether parameter values for the sink call were sanitized and identifying a security vulnerability in the application in response to a determination that at least a portion of one parameter value for the sink call was not sanitized.
- Claim 10Depends on #1
The method of claim 1 further comprises receiving, by the first agent, bytecode for the application; and instrumenting, by the first agent, the bytecode with at least one of the source sensor, the sanitization sensor and the first communication sensor.
- Claim 11Depends on #1
The method of claim 1 wherein the request handling method extracts data from an incoming HTTP request.
- Claim 12Depends on #1
The method of claim 1 further comprises receiving, by the second agent, bytecode for the application and instrumenting, by the second agent the bytecode with at least one of the second communication sensor and the sink sensor.
- Claim 13Independent Claim
A computer-implemented system for identifying a security vulnerability in an application executing across processes on a host computing device in a distributed computing environment, comprising: a source sensor instrumented in a request handling method of a frontend portion of the application and configured to report input data received by the frontend portion of the application to a first agent, where the input data is received from a source external to the host computing device, and the frontend portion of the application and the first agent are executed on a first process; a sanitization sensor instrumented in a data sanitization method within the frontend portion of the application and configured to report sanitization of the input data to the first agent; a first communication sensor is instrumented in an outgoing communication method and configured to report usage of the input data by the outgoing communication method to the first agent; wherein the first agent is implemented by computer program instructions executed by a processor of the host computing device and reports first observation data to a monitoring server, where first observation data includes an indicator of the sanitization of the input data and usage of the input data by the outgoing communication method, and the monitoring server is located remote from the host computing device; a second communication sensor configured to report receipt of the input data by a backend portion of the application to a second agent, where the backend portion of the application and the second agent are executed on a second process which differs from the first process; and a sink sensor configured to report a sink call made by the backend portion of the application to the second agent, where the reporting of the sink call is in response to execution of the sink call and the execution of the sink call uses at least a portion of the input data reported by the second communication sensor; wherein the second agent determines whether parameter values for the sink call were sanitized and identifies a security vulnerability in the backend portion of the application in response to a determination that at least a portion of one parameter value for the sink call was not sanitized.
- Claim 14Depends on #13
The computer-implemented system of claim 13 wherein the second agent reports the security vulnerability to the monitoring server; and the monitoring server ignores the security vulnerability based on the indicator of the sanitization of the input data received from the first agent.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of U.S. patent application Ser. No. 18/539,660, filed on Dec. 14, 2023; which is a continuation of U.S. Pat. No. 11,886,599, filed on Sep. 22, 2021; which claims the benefit of U.S. Provisional Application No. 63/084,759, filed on Sep. 29, 2020. The entire disclosure of the above applications are incorporated herein by reference. FIELD The invention generally relates to the field of automatic detection and remediation of application security vulnerabilities and more specific to the usage of instrumentation of application code to trace the flow of data from entry points, via manipulation and sanitization operations to the usage of the data to perform security relevant operations. BACKGROUND Current communication technologies like the Internet and web-based application interfaces are enabling new ways of businesses in previously unknown volumes, as they eradicate location, time, and ability related limitations to access and interact with customers. All types of activities, ranging from plain shopping over management of financial assets to accessing and managing health related data may be performed via web-based applications literally from everywhere and at every time. Although this development is highly appreciated by both application customers and vendors because it increases both convenience for customers and business volume for vendors, it also causes additional risks. As already stated, web-applications provide widely accessible interfaces that may be addressed nearly from everywhere, every time. In addition, to provide convenient customer interaction, those applications typically also store large amounts of customer related data. Parts of this data may be sensitive, like data describing political or religious orientations of users, their financial or health situation. In summary, data that could be used against those users by criminal actors. The combination of relatively easy access and s
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 (67)
Non-Patent Literature (10)
- Haldar V et al.:
- “
- Dynamic Taint Propagation for Java
- ”
- , Computer Security Applications Conference, 21st Annual Tuscon, AZ, USA Dec. 5-9, 2005, Piscataway, NJ, USA, IEEE, Dec. 5, 2005 (Dec. 5, 2005), pp. 303-311, XP010869948, DOI: 10.1109/CSAC.2005.21. ISBN: 978-7695-2461-0.
- Anton/'IN Steinhauser et al.:
- “
- DjangoChecker: Applying Extended Taint Tracking and Server Side Parsing for Detection of Context-Sensitive XSS Flaws
- ”
- , ARXIV.org, Cornell University Library, 201 Olin Library, Cornell University, Ithaca, NY 14853, May 14, 2020 (May 14, 2020), XP081673755, DOI: 10.1002/SPE.2649.