发明名称 DETECTING VULNERABILITY TO RESOURCE EXHAUSTION
摘要 In an aspect of managing resource exhaustion, a method includes receiving a program code that is configured for generating a random number. The generating is identified as vulnerable to a resource exhaustion. The method also includes identifying a statement in the program code at which a value of a variable associated with the generating of the random number is affected, inserting a hooking code in the statement for monitoring the variable at the statement, and running the program code in a plurality of iterations. A consumption level of the resource is varied in the plurality of iterations. The method further includes monitoring a plurality of values of the variable in the plurality of iterations. The method also includes executing a regression analysis on the plurality of values and returning a root cause of the vulnerability.
申请公布号 US2015096032(A1) 申请公布日期 2015.04.02
申请号 US201314040819 申请日期 2013.09.30
申请人 International Business Machines Corporation 发明人 Hay Roee;Saltzman Roi;Tripp Omer
分类号 G06F21/57 主分类号 G06F21/57
代理机构 代理人
主权项 1. A computer-implemented method for managing resource exhaustion, the method comprising: receiving a program code that is configured for generating a random number, the generating being identified as vulnerable to a resource exhaustion; identifying a statement in the program code at which a value of a variable associated with the generating of the random number is affected; inserting a hooking code in the statement, the hooking code configured for monitoring the variable at the statement; running the program code in a plurality of iterations, wherein a consumption level of the resource is varied in the plurality of iterations; monitoring, by the hooking code, a plurality of values of the variable in the plurality of iterations, as a result of the running; executing a regression analysis on the plurality of values, the regression analysis resulting in an entropy number; comparing the entropy number to an expected level of entropy; and returning an identification of the statement as a result of identifying the entropy number as being not within the expected level of entropy, thereby returning a root cause of the vulnerability.
地址 Armonk NY US