TWI789075B - Electronic device and method for detecting abnormal execution of application program - Google Patents

Electronic device and method for detecting abnormal execution of application program Download PDF

Info

Publication number
TWI789075B
TWI789075B TW110139663A TW110139663A TWI789075B TW I789075 B TWI789075 B TW I789075B TW 110139663 A TW110139663 A TW 110139663A TW 110139663 A TW110139663 A TW 110139663A TW I789075 B TWI789075 B TW I789075B
Authority
TW
Taiwan
Prior art keywords
execution
execution times
threshold
application program
application
Prior art date
Application number
TW110139663A
Other languages
Chinese (zh)
Other versions
TW202318198A (en
Inventor
廖哲慶
華荐治
施君熹
Original Assignee
中華電信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW110139663A priority Critical patent/TWI789075B/en
Application granted granted Critical
Publication of TWI789075B publication Critical patent/TWI789075B/en
Publication of TW202318198A publication Critical patent/TW202318198A/en

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

An electronic device and a method for detecting abnormal execution of an application program are provided. The method includes: receiving an execution record of the application program executed by a client-electronic-device, wherein the execution record includes a plurality of application program execution times respectively corresponding to a plurality of execution time points; using the plurality of application program execution times to calculate an execution count threshold value, and using the plurality of application program execution times to determine whether to adopt the execution count threshold value; in response to deciding to adopt the execution count threshold value, using the plurality of application program execution times and the execution count threshold value to determine an execution status of the application at the plurality of execution time points; and in response to determining the execution status is an abnormal state, issuing an exception notification corresponding to the application.

Description

偵測應用程式的異常執行的電子裝置及方法Electronic device and method for detecting abnormal execution of application programs

本發明是有關於一種偵測應用程式的異常執行的電子裝置及方法。The invention relates to an electronic device and method for detecting abnormal execution of application programs.

偵測應用程式的異常使用行為通常相當耗時且需要大量人力。此外,應用程式的管理人員即使取得了應用程式的執行記錄,仍缺乏有效率的方式來判定應用程式是否執行異常。基此,需要提出一種改良的偵測應用程式的異常執行的電子裝置及方法。Detecting abnormal usage behavior of applications is usually time-consuming and labor-intensive. In addition, even if the administrator of the application program obtains the execution record of the application program, there is still no efficient way to determine whether the application program is running abnormally. Therefore, it is necessary to provide an improved electronic device and method for detecting abnormal execution of application programs.

本發明提供一種偵測應用程式的異常執行的電子裝置及方法,可提高管理人員偵測應用程式的異常執行的效率。The invention provides an electronic device and method for detecting abnormal execution of application programs, which can improve the efficiency of managers in detecting abnormal execution of application programs.

本發明的偵測應用程式的異常執行的電子裝置包括儲存媒體、收發器以及處理器。儲存媒體儲存多個模組。處理器耦接儲存媒體以及收發器,並且存取和執行多個模組,其中多個模組包括執行記錄接收模組、執行次數門檻值計算與決定模組、執行狀態判定模組以及執行狀態回報模組。執行記錄接收模組通過收發器接收用戶端電子裝置執行的應用程式的執行記錄,其中執行記錄包括分別對應於多個執行時間點的多個應用程式執行次數。執行次數門檻值計算與決定模組利用多個應用程式執行次數計算執行次數門檻值,並且利用多個應用程式執行次數決定是否採用執行次數門檻值。執行狀態判定模組響應於執行次數門檻值計算與決定模組決定採用執行次數門檻值而利用多個應用程式執行次數以及執行次數門檻值判定應用程式在多個執行時間點的執行狀態。執行狀態回報模組響應於執行狀態判定模組判定執行狀態為異常狀態而通過收發器發出對應於應用程式的異常通知。The electronic device for detecting abnormal execution of application programs of the present invention includes a storage medium, a transceiver and a processor. The storage medium stores multiple modules. The processor is coupled to the storage medium and the transceiver, and accesses and executes multiple modules, wherein the multiple modules include an execution record receiving module, an execution times threshold calculation and determination module, an execution status determination module, and an execution status Report mods. The execution record receiving module receives the execution record of the application program executed by the user terminal electronic device through the transceiver, wherein the execution record includes multiple execution times of the application program respectively corresponding to multiple execution time points. The execution times threshold calculation and determination module uses the execution times of multiple applications to calculate the execution times threshold, and uses the execution times of multiple applications to determine whether to adopt the execution times threshold. The execution state judgment module determines the execution state of the application program at multiple execution time points by using multiple application program execution times and execution number thresholds in response to the execution count threshold calculation and determination module deciding to adopt the execution count threshold. The execution status report module sends an exception notification corresponding to the application program through the transceiver in response to the execution status judging module determining that the execution status is an abnormal state.

本發明的偵測應用程式的異常執行的方法包括:接收用戶端電子裝置執行的應用程式的執行記錄,其中執行記錄包括分別對應於多個執行時間點的多個應用程式執行次數;利用多個應用程式執行次數計算執行次數門檻值,並且利用多個應用程式執行次數決定是否採用執行次數門檻值;響應於決定採用執行次數門檻值而利用多個應用程式執行次數以及執行次數門檻值判定應用程式在多個執行時間點的執行狀態;以及響應於判定執行狀態為異常狀態而發出對應於應用程式的異常通知。The method for detecting the abnormal execution of the application program of the present invention includes: receiving the execution record of the application program executed by the electronic device at the client end, wherein the execution record includes multiple execution times of the application program respectively corresponding to multiple execution time points; Calculating the threshold value of the number of execution times of the application program, and using the execution times of multiple applications to determine whether to use the threshold value of the number of execution times; in response to determining the threshold value of the number of execution times, using the number of execution times of multiple applications and the threshold value of the number of execution times to determine the application program execution status at multiple execution time points; and sending an exception notification corresponding to the application program in response to determining that the execution status is an abnormal state.

基於上述,本發明的偵測應用程式的異常執行的電子裝置及方法可利用應用程式在(不同)執行時間點的應用程式執行次數,以及管理人員所設定的執行次數門檻值計算調整值來計算執行次數門檻值。除此之外,還可判斷是否採用所計算出的執行次數門檻值(例如,利用應用程式執行次數中的最大值與最小值來輔助判斷)。基此,可利用較符合管理人員需求且較恰當的執行次數門檻值來判定應用程式的執行狀態,從而提高了管理人員偵測應用程式的異常執行的效率。Based on the above, the electronic device and method for detecting abnormal execution of an application program of the present invention can be calculated by using the number of execution times of the application program at (different) execution time points and the threshold value calculation adjustment value of the number of execution times set by the administrator Execution times threshold. In addition, it may also be determined whether to adopt the calculated execution times threshold (for example, using the maximum and minimum values of the application program execution times to assist the judgment). Based on this, the execution status of the application program can be judged by using a more appropriate threshold value of execution times that is more in line with the requirements of the administrator, thereby improving the efficiency of the administrator in detecting abnormal execution of the application program.

圖1是根據本發明的一實施例繪示的一種偵測應用程式的異常執行的電子裝置100的示意圖。電子裝置100可包括儲存媒體110、收發器120以及處理器130。在一實施例中,電子裝置100還可包括輸入輸出裝置140。FIG. 1 is a schematic diagram of an electronic device 100 for detecting abnormal execution of an application program according to an embodiment of the present invention. The electronic device 100 may include a storage medium 110 , a transceiver 120 and a processor 130 . In an embodiment, the electronic device 100 may further include an input and output device 140 .

儲存媒體110例如是任何型態的固定式或可移動式的隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟(hard disk drive,HDD)、固態硬碟(solid state drive,SSD)或類似元件或上述元件的組合,而用於儲存可由處理器130執行的多個模組或各種應用程式。在本實施例中,儲存媒體110可儲存包括執行記錄接收模組111、執行次數門檻值計算與決定模組112、執行狀態判定模組113以及執行狀態回報模組114等多個模組。此些模組的功能將於後續說明。The storage medium 110 is, for example, any type of fixed or removable random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), flash memory (flash memory) , hard disk drive (hard disk drive, HDD), solid state drive (solid state drive, SSD) or similar components or a combination of the above components, and are used to store multiple modules or various application programs executable by the processor 130 . In this embodiment, the storage medium 110 can store a plurality of modules including an execution record receiving module 111 , an execution times threshold calculation and determination module 112 , an execution status determination module 113 , and an execution status reporting module 114 . The functions of these modules will be explained later.

收發器120以無線或有線的方式傳送及接收訊號。The transceiver 120 transmits and receives signals in a wireless or wired manner.

處理器130例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(micro control unit,MCU)、微處理器(microprocessor)、數位信號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(application specific integrated circuit,ASIC)、圖形處理器(graphics processing unit,GPU)、影像訊號處理器(image signal processor,ISP)、影像處理單元(image processing unit,IPU)、算數邏輯單元(arithmetic logic unit,ALU)、複雜可程式邏輯裝置(complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(field programmable gate array,FPGA)或其他類似元件或上述元件的組合。處理器130可耦接至儲存媒體110、收發器120以及輸入輸出裝置140,並且存取和執行儲存於儲存媒體110中的多個模組和各種應用程式。The processor 130 is, for example, a central processing unit (central processing unit, CPU), or other programmable general purpose or special purpose micro control unit (micro control unit, MCU), microprocessor (microprocessor), digital signal processing Digital signal processor (DSP), programmable controller, application specific integrated circuit (ASIC), graphics processing unit (graphics processing unit, GPU), image signal processor (image signal processor, ISP) ), image processing unit (image processing unit, IPU), arithmetic logic unit (arithmetic logic unit, ALU), complex programmable logic device (complex programmable logic device, CPLD), field programmable logic gate array (field programmable gate array , FPGA) or other similar components or combinations of the above components. The processor 130 can be coupled to the storage medium 110 , the transceiver 120 and the input/output device 140 , and access and execute multiple modules and various application programs stored in the storage medium 110 .

輸入輸出裝置140耦接至處理器130並用以傳遞訊號。例如,處理器130可經由輸入輸出裝置140接收輸入訊號或者傳送輸出訊號。例如,輸入輸出裝置140可包括滑鼠、鍵盤、螢幕、觸控面板、及/或揚聲器等各式輸入/輸出裝置。The I/O device 140 is coupled to the processor 130 and used for transmitting signals. For example, the processor 130 can receive input signals or transmit output signals through the input and output device 140 . For example, the input/output device 140 may include various input/output devices such as a mouse, a keyboard, a screen, a touch panel, and/or a speaker.

在本實施例中,執行記錄接收模組111可通過收發器120接收用戶端電子裝置執行的應用程式的執行記錄,其中執行記錄可包括分別對應於多個執行時間點的多個應用程式執行次數。本實施例中的應用程式例如是由用戶端電子裝置所執行的軟體或執行序。In this embodiment, the execution record receiving module 111 can receive the execution record of the application program executed by the client electronic device through the transceiver 120, wherein the execution record can include multiple execution times of the application program respectively corresponding to multiple execution time points . The application program in this embodiment is, for example, software or an execution program executed by the user terminal electronic device.

接著,執行次數門檻值計算與決定模組112可利用多個應用程式執行次數計算執行次數門檻值。以下將進一步說明。Next, the execution times threshold calculation and determination module 112 can calculate the execution times threshold by using the execution times of a plurality of application programs. This will be further explained below.

在一實施例中,多個執行時間點可包括多個當前執行時間點,且多個應用程式執行次數可包括分別對應於多個當前執行時間點的多個當前應用程式執行次數。In an embodiment, the plurality of execution time points may include a plurality of current execution time points, and the plurality of application execution times may include a plurality of current application execution times respectively corresponding to the plurality of current execution time points.

表1是分別對應於多個當前執行時間點(即,時間點1、…直到時間點4)的多個當前應用程式執行次數的一個實例(在表1的例子中,在時間點2時應用程式P並未被執行)。 表1 執行時間點 應用程式P的執行次數 時間點1 1次 時間點3 5次 時間點4 2次 Table 1 is an example of multiple current application program execution times respectively corresponding to multiple current execution time points (that is, time point 1, ... until time point 4) (in the example of Table 1, the application at time point 2 Program P is not executed). Table 1 execution time Execution times of application P time point 1 1 time time point 3 5 times time point 4 2 times

執行次數門檻值計算與決定模組112可利用多個當前應用程式執行次數計算執行次數門檻值。舉例來說,執行次數門檻值計算與決定模組112可將表1中各當前應用程式執行次數中的最大值做為執行次數門檻值,然而本發明不限於此。The execution times threshold calculation and determination module 112 can calculate the execution times threshold by using a plurality of current application execution times. For example, the execution count threshold calculation and determination module 112 may use the maximum value among the execution counts of each current application program in Table 1 as the execution count threshold, but the present invention is not limited thereto.

在一實施例中,執行次數門檻值可包括執行次數上限門檻值以及執行次數下限門檻值。In an embodiment, the execution times threshold may include an execution times upper threshold and an execution times lower threshold.

在一實施例中,為了讓執行次數門檻值更符合電子裝置100的管理人員的需求,電子裝置100的管理人員可通過輸入輸出裝置140輸入執行次數門檻值計算調整值C1及C2(換言之,執行次數門檻值計算與決定模組112可通過輸入輸出裝置140接收執行次數門檻值計算調整值C1及C2)。接著,執行次數門檻值計算與決定模組112可利用多個當前應用程式執行次數以及執行次數門檻值計算調整值C1及C2。例如,執行次數門檻值計算與決定模組112可根據下列公式1以及公式2計算執行次數門檻值。 THRESHOLD(UPPER-BOUND) = MEAN( COUNT(S) ) + C1 * STD( COUNT(S) ) … (公式1) THRESHOLD(LOWER-BOUND) = MEAN( COUNT(S) ) + C2 * STD( COUNT(S) ) … (公式2) 其中S為當前執行時間點(即表1中的時間點1、…直到時間點4),COUNT(1)為時間點1的應用程式執行次數、…直到COUNT(4)為時間點4的應用程式執行次數,MEAN(COUNT(S))為COUNT(1)、…直到COUNT(4)的平均值,C1及C2為執行次數門檻值計算調整值,STD(COUNT(S))為COUNT(1)…直到COUNT(4)的標準差,THRESHOLD(UPPER-BOUND)為執行次數上限門檻值,THRESHOLD(LOWER-BOUND)為執行次數下限門檻值。 In one embodiment, in order to make the threshold value of the number of executions more in line with the needs of the management personnel of the electronic device 100, the management personnel of the electronic device 100 can input the adjustment values C1 and C2 for calculating the threshold value of the number of executions through the input and output device 140 (in other words, execute The times threshold calculation and determination module 112 can receive the execution times threshold calculation adjustment values C1 and C2 through the input and output device 140 . Next, the execution times threshold calculation and determination module 112 can use a plurality of current application execution times and the execution times thresholds to calculate the adjustment values C1 and C2. For example, the execution times threshold calculation and determination module 112 can calculate the execution times threshold according to the following formula 1 and formula 2. THRESHOLD(UPPER-BOUND) = MEAN( COUNT(S) ) + C1 * STD( COUNT(S) ) … (Formula 1) THRESHOLD(LOWER-BOUND) = MEAN( COUNT(S) ) + C2 * STD( COUNT(S) ) … (Formula 2) Where S is the current execution time point (that is, time point 1, ... until time point 4 in Table 1), COUNT(1) is the number of application execution times at time point 1, ... until COUNT(4) is the application at time point 4 The number of program execution times, MEAN(COUNT(S)) is the average value of COUNT(1), ... until COUNT(4), C1 and C2 are the adjustment values for calculating the threshold value of execution times, STD(COUNT(S)) is COUNT(1 )... until the standard deviation of COUNT(4), THRESHOLD (UPPER-BOUND) is the upper threshold of execution times, and THRESHOLD (LOWER-BOUND) is the lower threshold of execution times.

執行次數門檻值計算與決定模組112可利用表1以及公式1得到MEAN( COUNT(S) )為2.66以及 STD( COUNT(S) )為2.08,且假設執行次數門檻值計算與決定模組112通過輸入輸出裝置140接收的執行次數門檻值計算調整值C1為1,執行次數門檻值計算與決定模組112可利用公式1計算出執行次數上限門檻值為4.74次。The execution times threshold calculation and decision module 112 can use Table 1 and formula 1 to obtain MEAN( COUNT(S) ) as 2.66 and STD( COUNT(S) ) as 2.08, and assume that the execution times threshold calculation and decision module 112 The execution times threshold calculation adjustment value C1 received by the input and output device 140 is 1, and the execution times threshold calculation and determination module 112 can use Formula 1 to calculate the execution times upper threshold value as 4.74 times.

此外,假設執行次數門檻值計算與決定模組112通過輸入輸出裝置140接收的執行次數門檻值計算調整值C2為0.5,執行次數門檻值計算與決定模組112可利用公式2以及上述的MEAN( COUNT(S) )與STD( COUNT(S) )計算出執行次數下限門檻值為3.70次。In addition, assuming that the execution count threshold calculation and determination module 112 receives the execution count threshold calculation adjustment value C2 through the input and output device 140 as 0.5, the execution count threshold calculation and determination module 112 can use formula 2 and the above-mentioned MEAN( COUNT(S) ) and STD( COUNT(S) ) calculate the lower threshold of execution times to be 3.70 times.

在一實施例中,多個執行時間點更可包括多個歷史執行時間點,且多個應用程式執行次數更包括分別對應於多個歷史執行時間點的多個歷史應用程式執行次數。In an embodiment, the plurality of execution time points may further include a plurality of historical execution time points, and the plurality of application program execution times may further include a plurality of historical application program execution times respectively corresponding to the plurality of historical execution time points.

表2是分別對應於多個歷史執行時間點(在此假設歷史執行時間點為時間點1、…直到時間點4)的多個歷史應用程式執行次數,以及分別對應於多個當前執行時間點(在此假設當前執行時間點為時間點5、…時間點9)的多個當前應用程式執行次數的一個實例(在表2的例子中,在時間點2及時間點8時應用程式P並未被執行)。換言之,執行記錄接收模組111可先獲得時間點1、…直到時間點4的應用程式P的執行次數,然後獲得時間點5、…直到時間點9的應用程式P的執行次數,以得到表2所示的執行記錄。 表2 執行時間點 應用程式P的執行次數 時間點1 1次 時間點3 5次 時間點4 2次 時間點5 1次 時間點6 1次 時間點7 3次 時間點9 1次 Table 2 is the execution times of multiple historical application programs corresponding to multiple historical execution time points (here, it is assumed that the historical execution time points are time point 1, ... until time point 4), and respectively corresponding to multiple current execution time points (It is assumed here that the current execution time point is time point 5, ... time point 9) an example of multiple current application program execution times (in the example in Table 2, at time point 2 and time point 8, the application program P and not implemented). In other words, the execution record receiving module 111 can first obtain the execution times of the application program P from the time point 1, ... until the time point 4, and then obtain the execution times of the application program P from the time point 5, ... until the time point 9, so as to obtain the table 2 shows the execution record. Table 2 execution time Execution times of application P time point 1 1 time time point 3 5 times time point 4 2 times time point 5 1 time time point 6 1 time time point 7 3 times time point 9 1 time

執行次數門檻值計算與決定模組112可利用多個當前應用程式執行次數、執行次數門檻值計算調整值以及多個歷史應用程式執行次數計算執行次數門檻值。例如,執行次數門檻值計算與決定模組112可利用下列公式3以及公式4計算執行次數門檻值。 THRESHOLD(UPPER-BOUND) = MEAN( COUNT(U) ) + C1 * STD( COUNT(U) ) … (公式3) THRESHOLD(LOWER-BOUND) = MEAN( COUNT(U) ) + C2 * STD( COUNT(U) ) … (公式4) 其中U 為歷史執行時間點(即表2中的時間點1、…直到時間點4)及當前執行時間點(即表2中的時間點5、…時間點9), COUNT(1)為時間點1的應用程式執行次數、…直到COUNT(9)為時間點9的應用程式執行次數,MEAN(COUNT(U))為COUNT(1)、COUNT(2)、…直到COUNT(9)的平均值,C1及C2為執行次數門檻值計算調整值,STD(COUNT(U))為COUNT(1)、COUNT(2)、…直到COUNT(9)的標準差,THRESHOLD(UPPER-BOUND)為執行次數上限門檻值,THRESHOLD(LOWER-BOUND)為執行次數下限門檻值。 The execution count threshold calculation and determination module 112 can use multiple current application execution counts, the execution count threshold calculation adjustment value, and multiple historical application execution counts to calculate the execution count threshold. For example, the execution count threshold calculation and determination module 112 can use the following formula 3 and formula 4 to calculate the execution count threshold. THRESHOLD(UPPER-BOUND) = MEAN( COUNT(U) ) + C1 * STD( COUNT(U) ) … (Formula 3) THRESHOLD(LOWER-BOUND) = MEAN( COUNT(U) ) + C2 * STD( COUNT(U) ) … (Formula 4) Where U is the historical execution time point (i.e. time point 1, ... until time point 4 in Table 2) and the current execution time point (i.e. time point 5, ... time point 9 in Table 2), COUNT(1) is the time The number of application execution times at point 1, ... until COUNT(9) is the number of application execution times at time point 9, MEAN(COUNT(U)) is the average of COUNT(1), COUNT(2), ... until COUNT(9) value, C1 and C2 are the adjustment values for calculating the execution times threshold, STD(COUNT(U)) is the standard deviation from COUNT(1), COUNT(2), ... until COUNT(9), THRESHOLD(UPPER-BOUND) is the execution The upper limit threshold of the number of times, THRESHOLD (LOWER-BOUND) is the lower limit threshold of the number of executions.

執行次數門檻值計算與決定模組112可利用表2以及公式3得到MEAN( COUNT(U) )為2.0以及 STD( COUNT(U) )為1.52,且假設執行次數門檻值計算與決定模組112通過輸入輸出裝置140接收的執行次數門檻值計算調整值C1為1,執行次數門檻值計算與決定模組112可利用公式3計算出執行次數上限門檻值為3.52次。The execution times threshold calculation and decision module 112 can use Table 2 and formula 3 to obtain MEAN( COUNT(U) ) as 2.0 and STD( COUNT(U) ) as 1.52, and assume that the execution times threshold calculation and decision module 112 The execution times threshold calculation adjustment value C1 received by the input and output device 140 is 1, and the execution times threshold calculation and determination module 112 can calculate the execution times upper limit threshold value as 3.52 times using Formula 3.

此外,假設執行次數門檻值計算與決定模組112通過輸入輸出裝置140接收的執行次數門檻值計算調整值C2為0.5,執行次數門檻值計算與決定模組112可利用公式4以及上述的MEAN( COUNT(U) )與STD( COUNT(U) )計算出執行次數下限門檻值為2.76次。In addition, assuming that the execution count threshold calculation and determination module 112 receives the execution count threshold calculation adjustment value C2 through the input and output device 140 as 0.5, the execution count threshold calculation and determination module 112 can use formula 4 and the above-mentioned MEAN( COUNT(U) ) and STD( COUNT(U) ) calculate the execution times lower limit threshold value is 2.76 times.

在計算完執行次數門檻值之後,執行次數門檻值計算與決定模組112可利用多個應用程式執行次數決定是否採用執行次數門檻值。After the execution times threshold is calculated, the execution times threshold calculation and determination module 112 can use the execution times of a plurality of application programs to determine whether to adopt the execution times threshold.

在一實施例中,執行次數門檻值計算與決定模組112可判斷執行次數上限門檻值是否小於多個應用程式執行次數中的最大值。響應於所述執行次數上限門檻值小於所述多個應用程式執行次數中的最大值,執行次數門檻值計算與決定模組112可決定採用執行次數上限門檻值。在決定採用執行次數上限門檻值之後,執行次數門檻值計算與決定模組112可儲存執行次數上限門檻值於儲存媒體110。In one embodiment, the execution count threshold calculation and determination module 112 can determine whether the execution count upper limit threshold is smaller than the maximum value among the execution counts of multiple application programs. In response to the execution times upper threshold being smaller than the maximum number of execution times of the plurality of application programs, the execution times threshold calculation and determination module 112 may determine to adopt the execution times upper threshold. After determining to adopt the upper threshold value of execution times, the execution times threshold calculation and determination module 112 may store the upper threshold value of execution times in the storage medium 110 .

此外,執行次數門檻值計算與決定模組112可判斷執行次數下限門檻值是否大於多個應用程式執行次數中的最小值。響應於執行次數下限門檻值大於多個應用程式執行次數中的最小值,執行次數門檻值計算與決定模組112可決定採用執行次數下限門檻值。在決定採用執行次數下限門檻值之後,執行次數門檻值計算與決定模組112可儲存執行次數下限門檻值於儲存媒體110。In addition, the execution times threshold calculation and determination module 112 can determine whether the execution times lower limit threshold is greater than the minimum value among the execution times of multiple application programs. In response to the execution times lower limit threshold being greater than the minimum value among the execution times of multiple application programs, the execution times threshold calculation and determination module 112 may determine to adopt the execution times lower limit threshold. After determining to adopt the execution times lower limit threshold, the execution times threshold calculation and determination module 112 may store the execution times lower limit threshold in the storage medium 110 .

舉例來說,在前述表2(及公式3與公式4)的實施例中,由於利用公式3計算出的執行次數上限門檻值3.52次小於表2中各應用程式執行次數中的最大值(5次),執行次數門檻值計算與決定模組112可決定採用此執行次數上限門檻值。For example, in the above-mentioned embodiment of Table 2 (and Formula 3 and Formula 4), since the upper threshold value of the number of execution times calculated by using Formula 3 is 3.52 times, it is smaller than the maximum value (5 times), the execution times threshold calculation and determination module 112 may decide to adopt this execution times upper limit threshold.

此外,由於利用公式4計算出的執行次數下限門檻值2.76次大於表2中各應用程式執行次數中的最小值(1次),執行次數門檻值計算與決定模組112可決定採用此執行次數下限門檻值。In addition, since the execution times threshold value 2.76 times calculated by formula 4 is greater than the minimum value (1 time) among the execution times of each application program in Table 2, the execution times threshold calculation and determination module 112 can decide to adopt this execution times Lower threshold value.

另一方面,若執行次數上限門檻值大於多個應用程式執行次數中的最大值,執行次數門檻值計算與決定模組112可決定不採用此執行次數上限門檻值。On the other hand, if the execution times upper limit threshold is greater than the maximum execution times of multiple application programs, the execution times threshold calculation and determination module 112 may decide not to use the execution times upper limit threshold.

此外,若執行次數下限門檻值小於多個應用程式執行次數中的最小值,執行次數門檻值計算與決定模組112可決定不採用此執行次數下限門檻值。In addition, if the execution times lower limit threshold is smaller than the minimum value among the execution times of multiple application programs, the execution times threshold calculation and determination module 112 may decide not to use the execution times lower limit threshold.

換言之,在前述表2實施例中,若執行次數門檻值計算與決定模組112決定不採用執行次數上限門檻值,或者決定不採用執行次數下限門檻值,執行次數門檻值計算與決定模組112可將利用表2以及公式3、4所計算出的執行次數上限門檻值與執行次數下限門檻值刪除。待執行記錄接收模組111後續接收到(後續時間點的)應用程式執行次數之後,執行次數門檻值計算與決定模組112可利用前述實施例中所說明的方式,再次計算執行次數上限門檻值及執行次數下限門檻值。例如,執行次數門檻值計算與決定模組112可將後續接收到的時間點10、…直到時間點12做為當前時間點,且將表2所示的時間點1、…直到時間點9做為歷史時間點,並利用分別對應於時間點10、…直到時間點12的當前應用程式執行次數,以及表2所示分別對應於時間點1、…直到時間點9的歷史應用程式執行次數,來計算執行次數上限門檻值及執行次數下限門檻值。In other words, in the above-mentioned embodiment of Table 2, if the execution times threshold calculation and decision module 112 decides not to use the execution times upper limit threshold, or decides not to use the execution times lower limit threshold, the execution times threshold calculation and decision module 112 The upper threshold value of execution times and the lower threshold value of execution times calculated by using Table 2 and formulas 3 and 4 can be deleted. After the pending execution record receiving module 111 subsequently receives the number of executions of the application program (at a subsequent point in time), the execution times threshold calculation and determination module 112 can use the method described in the previous embodiment to calculate the upper limit threshold value of the execution times again And the lower limit threshold of execution times. For example, the calculation and determination module 112 of the threshold value of execution times can take the subsequent received time point 10, ... until time point 12 as the current time point, and use the time point 1, ... until time point 9 shown in Table 2 as is the historical time point, and using the current application program execution times corresponding to time point 10, ... until time point 12, and the historical application program execution times corresponding to time point 1, ... until time point 9 shown in Table 2, To calculate the upper limit threshold value of execution times and the lower limit threshold value of execution times.

響應於執行次數門檻值計算與決定模組112決定採用執行次數門檻值,執行狀態判定模組113可利用多個應用程式執行次數以及執行次數門檻值判定應用程式在多個執行時間點的執行狀態。舉例來說,若特定應用程式P在特定執行時間點的應用程式執行次數大於執行次數下限門檻值,執行狀態判定模組113可判定應用程式P在此特定執行時間點的執行狀態為異常狀態。In response to the execution times threshold calculation and determination module 112 deciding to use the execution times threshold, the execution state determination module 113 can use multiple application program execution times and execution frequency thresholds to determine the execution status of the application program at multiple execution time points . For example, if the application execution times of the specific application P at the specific execution time point is greater than the lower limit threshold value of the execution times, the execution state determining module 113 may determine that the execution state of the application program P at the specific execution time point is abnormal.

響應於執行狀態判定模組113判定執行狀態為異常狀態,執行狀態回報模組114可通過收發器120發出對應於應用程式的異常通知(例如,預警或告警)。舉例來說,若應用程式P在特定執行時間點的應用程式執行次數大於執行次數下限門檻值,執行狀態回報模組114可通過收發器120發出預警。若特定應用程式P在特定執行時間點的應用程式執行次數大於執行次數上限門檻值,執行狀態回報模組114可通過收發器120發出告警。In response to the execution status judging module 113 determining that the execution status is an abnormal status, the execution status reporting module 114 can issue an abnormal notification (eg, warning or alarm) corresponding to the application through the transceiver 120 . For example, if the number of execution times of the application program P at a specific execution time point is greater than the lower threshold of execution times, the execution status reporting module 114 can issue an early warning through the transceiver 120 . If the application execution times of the specific application P at a specific execution time point are greater than the upper threshold of execution times, the execution status reporting module 114 can send an alarm through the transceiver 120 .

圖2是根據本發明的一實施例繪示的一種偵測應用程式的異常執行的方法的流程圖,其中所述方法可由電子裝置100實施。在步驟S201中,接收用戶端電子裝置執行的應用程式的執行記錄,其中執行記錄包括分別對應於多個執行時間點的多個應用程式執行次數。在步驟S202中,利用多個應用程式執行次數計算執行次數門檻值,並且利用多個應用程式執行次數決定是否採用執行次數門檻值。在步驟S203中,響應於決定採用執行次數門檻值而利用多個應用程式執行次數以及執行次數門檻值判定應用程式在多個執行時間點的執行狀態。在步驟S204中,響應於判定執行狀態為異常狀態而發出對應於應用程式的異常通知。FIG. 2 is a flowchart illustrating a method for detecting abnormal execution of an application program according to an embodiment of the present invention, wherein the method can be implemented by the electronic device 100 . In step S201, an execution record of an application program executed by the user terminal electronic device is received, wherein the execution record includes a plurality of execution times of the application program respectively corresponding to a plurality of execution time points. In step S202, a threshold value of execution times is calculated by using a plurality of execution times of application programs, and whether to adopt the threshold value of execution times is determined by using a plurality of execution times of application programs. In step S203 , in response to determining to use the execution times threshold, a plurality of application program execution times and execution times thresholds are used to determine the execution status of the application program at multiple execution time points. In step S204, an exception notification corresponding to the application is issued in response to determining that the execution state is an abnormal state.

綜上所述,本發明的偵測應用程式的異常執行的電子裝置及方法可利用應用程式在(不同)執行時間點的應用程式執行次數,以及管理人員所設定的執行次數門檻值計算調整值來計算執行次數門檻值。除此之外,還可判斷是否採用所計算出的執行次數門檻值(例如,利用應用程式執行次數中的最大值與最小值來輔助判斷)。基此,可利用較符合管理人員需求且較恰當的執行次數門檻值來判定應用程式的執行狀態,從而提高了管理人員偵測應用程式的異常執行的效率。In summary, the electronic device and method for detecting abnormal execution of an application program of the present invention can use the number of execution times of the application program at (different) execution time points and the threshold value of the number of execution times set by the administrator to calculate the adjustment value To calculate the threshold of execution times. In addition, it may also be determined whether to adopt the calculated execution times threshold (for example, using the maximum and minimum values of the application program execution times to assist the judgment). Based on this, the execution status of the application program can be judged by using a more appropriate threshold value of execution times that is more in line with the requirements of the administrator, thereby improving the efficiency of the administrator in detecting abnormal execution of the application program.

100:偵測應用程式的異常執行的電子裝置 110:儲存媒體 111:執行記錄接收模組 112:執行次數門檻值計算與決定模組 113:執行狀態判定模組 114:執行狀態回報模組 120:收發器 130:處理器 140:輸入輸出裝置 S201~S204:步驟100: Electronic device for detecting abnormal execution of application programs 110: storage media 111: Execution record receiving module 112: Execution times threshold calculation and decision module 113: Execution status judgment module 114: Execution status report module 120: Transceiver 130: Processor 140: Input and output device S201~S204: steps

圖1是根據本發明的一實施例繪示的一種偵測應用程式的異常執行的電子裝置的示意圖。 圖2是根據本發明的一實施例繪示的一種偵測應用程式的異常執行的方法的流程圖。 FIG. 1 is a schematic diagram of an electronic device for detecting abnormal execution of an application program according to an embodiment of the present invention. FIG. 2 is a flowchart illustrating a method for detecting abnormal execution of an application program according to an embodiment of the present invention.

S201~S204:步驟 S201~S204: steps

Claims (10)

一種偵測應用程式的異常執行的電子裝置,包括: 儲存媒體,儲存多個模組; 收發器;以及 處理器,耦接所述儲存媒體以及所述收發器,並且存取和執行所述多個模組,其中所述多個模組包括: 執行記錄接收模組,通過所述收發器接收用戶端電子裝置執行的所述應用程式的執行記錄,其中所述執行記錄包括分別對應於多個執行時間點的多個應用程式執行次數; 執行次數門檻值計算與決定模組,利用所述多個應用程式執行次數計算執行次數門檻值,並且利用所述多個應用程式執行次數決定是否採用所述執行次數門檻值; 執行狀態判定模組,響應於所述執行次數門檻值計算與決定模組決定採用所述執行次數門檻值而利用所述多個應用程式執行次數以及所述執行次數門檻值判定所述應用程式在所述多個執行時間點的執行狀態;以及 執行狀態回報模組,響應於所述執行狀態判定模組判定所述執行狀態為異常狀態而通過所述收發器發出對應於所述應用程式的異常通知。 An electronic device for detecting abnormal execution of an application program, comprising: Storage media, storing multiple modules; transceivers; and A processor, coupled to the storage medium and the transceiver, and accessing and executing the multiple modules, wherein the multiple modules include: The execution record receiving module receives, through the transceiver, the execution record of the application program executed by the electronic device at the user end, wherein the execution record includes a plurality of execution times of the application program respectively corresponding to a plurality of execution time points; The execution times threshold calculation and determination module uses the execution times of the multiple applications to calculate the execution times threshold, and uses the execution times of the multiple applications to determine whether to adopt the execution times threshold; The execution state determination module, in response to the execution times threshold calculation and determination module deciding to adopt the execution times threshold, and using the execution times of the multiple applications and the execution times threshold to determine whether the application is in Execution status at the plurality of execution time points; and The execution status report module sends an exception notification corresponding to the application program through the transceiver in response to the execution status judging module determining that the execution status is an abnormal status. 如請求項1所述的偵測應用程式的異常執行的電子裝置,其中所述多個執行時間點包括多個當前執行時間點,且所述多個應用程式執行次數包括分別對應於所述多個當前執行時間點的多個當前應用程式執行次數,其中 所述執行次數門檻值計算與決定模組利用所述多個當前應用程式執行次數計算所述執行次數門檻值。 The electronic device for detecting abnormal execution of an application program as described in claim 1, wherein the multiple execution time points include multiple current execution time points, and the multiple application program execution times include corresponding to the multiple Multiple current application execution times at the current execution time point, where The execution times threshold calculation and determination module calculates the execution times threshold by using the execution times of the plurality of current application programs. 如請求項2所述的偵測應用程式的異常執行的電子裝置,更包括耦接所述處理器的輸入輸出裝置,其中 所述執行次數門檻值計算與決定模組通過所述輸入輸出裝置接收執行次數門檻值計算調整值; 所述執行次數門檻值計算與決定模組利用所述多個當前應用程式執行次數以及所述執行次數門檻值計算調整值計算所述執行次數門檻值。 The electronic device for detecting abnormal execution of an application program as described in claim 2 further includes an input and output device coupled to the processor, wherein The execution times threshold calculation and determination module receives an execution times threshold calculation adjustment value through the input and output device; The execution times threshold calculation and determination module calculates the execution times threshold by using the plurality of current application execution times and the execution times threshold calculation adjustment value. 如請求項3所述的偵測應用程式的異常執行的電子裝置,其中所述多個執行時間點更包括多個歷史執行時間點,且所述多個應用程式執行次數更包括分別對應於所述多個歷史執行時間點的多個歷史應用程式執行次數,其中 所述執行次數門檻值計算與決定模組利用所述多個當前應用程式執行次數、所述執行次數門檻值計算調整值以及所述多個歷史應用程式執行次數計算所述執行次數門檻值。 The electronic device for detecting abnormal execution of application programs as described in claim 3, wherein the multiple execution time points further include multiple historical execution time points, and the multiple execution times of application programs further include corresponding to the Multiple historical application execution times at multiple historical execution time points, where The execution times threshold calculation and determination module calculates the execution times threshold by using the plurality of current application execution times, the execution times threshold calculation adjustment value and the plurality of historical application execution times. 如請求項1所述的偵測應用程式的異常執行的電子裝置,其中所述執行次數門檻值包括執行次數上限門檻值以及執行次數下限門檻值,其中: 響應於所述執行次數上限門檻值小於所述多個應用程式執行次數中的最大值,所述執行次數門檻值計算與決定模組決定採用所述執行次數上限門檻值; 響應於所述執行次數下限門檻值大於所述多個應用程式執行次數中的最小值,所述執行次數門檻值計算與決定模組決定採用所述執行次數下限門檻值。 The electronic device for detecting abnormal execution of an application program as described in claim 1, wherein the execution times threshold includes an execution times upper threshold and an execution times lower threshold, wherein: In response to the execution times upper threshold being smaller than the maximum number of execution times of the plurality of application programs, the execution times threshold calculation and determination module decides to adopt the execution times upper threshold; In response to the execution times lower limit threshold being greater than the minimum value among the multiple application program execution times, the execution times threshold calculation and decision module decides to adopt the execution times lower limit threshold. 一種偵測應用程式的異常執行的方法,包括: 接收用戶端電子裝置執行的所述應用程式的執行記錄,其中所述執行記錄包括分別對應於多個執行時間點的多個應用程式執行次數; 利用所述多個應用程式執行次數計算執行次數門檻值,並且利用所述多個應用程式執行次數決定是否採用所述執行次數門檻值; 響應於決定採用所述執行次數門檻值而利用所述多個應用程式執行次數以及所述執行次數門檻值判定所述應用程式在所述多個執行時間點的執行狀態;以及 響應於判定所述執行狀態為異常狀態而發出對應於所述應用程式的異常通知。 A method for detecting abnormal execution of an application program, comprising: receiving an execution record of the application program executed by the client electronic device, wherein the execution record includes a plurality of execution times of the application program respectively corresponding to a plurality of execution time points; Using the execution times of the multiple applications to calculate the threshold of execution times, and using the execution times of the multiple applications to determine whether to adopt the threshold of execution times; Determining the execution status of the application program at the plurality of execution time points by using the execution times of the plurality of application programs and the threshold value of the execution times in response to determining to adopt the threshold value of execution times; and An exception notification corresponding to the application is issued in response to determining that the execution state is an abnormal state. 如請求項6所述的偵測應用程式的異常執行的方法,其中所述多個執行時間點包括多個當前執行時間點,且所述多個應用程式執行次數包括分別對應於所述多個當前執行時間點的多個當前應用程式執行次數,其中利用所述多個應用程式執行次數計算所述執行次數門檻值的步驟包括: 利用所述多個當前應用程式執行次數計算所述執行次數門檻值。 The method for detecting abnormal execution of an application program as described in claim 6, wherein the plurality of execution time points include a plurality of current execution time points, and the plurality of execution times of the application program include corresponding to the plurality of Execution times of multiple current application programs at the current execution time point, wherein the step of calculating the threshold value of execution times by using the multiple execution times of application programs includes: The threshold value of execution times is calculated by using the plurality of execution times of current application programs. 如請求項7所述的偵測應用程式的異常執行的方法,其中利用所述多個應用程式執行次數計算所述執行次數門檻值的步驟更包括: 接收執行次數門檻值計算調整值; 利用所述多個當前應用程式執行次數以及所述執行次數門檻值計算調整值計算所述執行次數門檻值。 The method for detecting abnormal execution of an application program as described in claim 7, wherein the step of calculating the threshold value of the number of execution times by using the execution times of the plurality of application programs further includes: Receive the adjustment value of the execution times threshold calculation; The execution times threshold is calculated by using the plurality of current application execution times and the execution times threshold calculation adjustment value. 如請求項8所述的偵測應用程式的異常執行的方法,其中所述多個執行時間點更包括多個歷史執行時間點,且所述多個應用程式執行次數更包括分別對應於所述多個歷史執行時間點的多個歷史應用程式執行次數,其中利用所述多個應用程式執行次數計算所述執行次數門檻值的步驟更包括: 利用所述多個當前應用程式執行次數、所述執行次數門檻值計算調整值以及所述多個歷史應用程式執行次數計算所述執行次數門檻值。 The method for detecting abnormal execution of an application program as described in claim 8, wherein the plurality of execution time points further include a plurality of historical execution time points, and the plurality of execution times of the application program further include corresponding to the Multiple historical application program execution times at multiple historical execution time points, wherein the step of using the multiple application program execution times to calculate the threshold value of the execution times further includes: The execution times threshold is calculated by using the plurality of current application execution times, the execution times threshold calculation adjustment value, and the plurality of historical application execution times. 如請求項6所述的偵測應用程式的異常執行的方法,其中所述執行次數門檻值包括執行次數上限門檻值以及執行次數下限門檻值,其中利用所述多個應用程式執行次數決定是否採用所述執行次數門檻值的步驟包括: 響應於所述執行次數上限門檻值小於所述多個應用程式執行次數中的最大值,所述執行次數門檻值計算與決定模組決定採用所述執行次數上限門檻; 響應於所述執行次數下限門檻值大於所述多個應用程式執行次數中的最小值,所述執行次數門檻值計算與決定模組決定採用所述執行次數下限門檻值。 The method for detecting abnormal execution of an application program as described in claim 6, wherein the execution times threshold value includes an execution times upper limit threshold value and an execution times lower limit threshold value, wherein the plurality of application program execution times are used to determine whether to use The step of performing the threshold value of times includes: In response to the execution times upper limit threshold being smaller than the maximum value among the plurality of application program execution times, the execution times threshold calculation and determination module decides to adopt the execution times upper limit threshold; In response to the execution times lower limit threshold being greater than the minimum value among the multiple application program execution times, the execution times threshold calculation and decision module decides to adopt the execution times lower limit threshold.
TW110139663A 2021-10-26 2021-10-26 Electronic device and method for detecting abnormal execution of application program TWI789075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110139663A TWI789075B (en) 2021-10-26 2021-10-26 Electronic device and method for detecting abnormal execution of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110139663A TWI789075B (en) 2021-10-26 2021-10-26 Electronic device and method for detecting abnormal execution of application program

Publications (2)

Publication Number Publication Date
TWI789075B true TWI789075B (en) 2023-01-01
TW202318198A TW202318198A (en) 2023-05-01

Family

ID=86669937

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110139663A TWI789075B (en) 2021-10-26 2021-10-26 Electronic device and method for detecting abnormal execution of application program

Country Status (1)

Country Link
TW (1) TWI789075B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105408868A (en) * 2013-07-23 2016-03-16 高通股份有限公司 Robust hardware/software error recovery system
TW201624280A (en) * 2010-12-27 2016-07-01 微軟技術授權有限責任公司 Predicting, diagnosing, and recovering from application failures based on resource access patterns
TW201730766A (en) * 2016-01-19 2017-09-01 Alibaba Group Services Ltd Method and apparatus for abnormal access detection
US20200014401A1 (en) * 2016-06-17 2020-01-09 Huawei Technologies Co., Ltd. Apparatus and methods for error detection coding
CN111104283A (en) * 2019-11-29 2020-05-05 浪潮电子信息产业股份有限公司 Fault detection method, device, equipment and medium of distributed storage system
CN112988501A (en) * 2019-12-17 2021-06-18 深信服科技股份有限公司 Alarm information generation method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201624280A (en) * 2010-12-27 2016-07-01 微軟技術授權有限責任公司 Predicting, diagnosing, and recovering from application failures based on resource access patterns
CN105408868A (en) * 2013-07-23 2016-03-16 高通股份有限公司 Robust hardware/software error recovery system
TW201730766A (en) * 2016-01-19 2017-09-01 Alibaba Group Services Ltd Method and apparatus for abnormal access detection
US20200014401A1 (en) * 2016-06-17 2020-01-09 Huawei Technologies Co., Ltd. Apparatus and methods for error detection coding
CN111104283A (en) * 2019-11-29 2020-05-05 浪潮电子信息产业股份有限公司 Fault detection method, device, equipment and medium of distributed storage system
CN112988501A (en) * 2019-12-17 2021-06-18 深信服科技股份有限公司 Alarm information generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
TW202318198A (en) 2023-05-01

Similar Documents

Publication Publication Date Title
WO2015032318A1 (en) Exceptional account determination method and device
JP5318139B2 (en) Control device and program
US11356386B2 (en) Method and apparatus for setting link priority
US20160124831A1 (en) Health reporting from non-volatile block storage device to processing device
WO2020102928A1 (en) Wireless signal transmission method, wireless signal transmission device and terminal device
JP2019525619A5 (en)
TWI789075B (en) Electronic device and method for detecting abnormal execution of application program
US20150128276A1 (en) Method and apparatus for a centrally managed network virus detection and outbreak protection
TW202040361A (en) Server and method for controlling error event log recording
WO2020211698A1 (en) Smart apparatus monitoring method employing data center monitoring system, device, and apparatus
WO2020211251A1 (en) Monitoring method and apparatus for operating system
JPWO2014020908A1 (en) System state determination support device and system state determination support method
WO2019000675A1 (en) Data processing method and electronic device
JP2022097617A5 (en)
WO2016054902A1 (en) Central processing unit clock management method, apparatus and storage medium
TWI537721B (en) Baseboard management control system and method
CN108494604B (en) Network management method and device
CN111193760B (en) Information sending method, device and storage medium
CN108833214B (en) Industrial control network detection method, device and system
JP6349983B2 (en) Abnormality detection method, abnormality detection program, and abnormality detection device
US20150163113A1 (en) Communication control apparatus
TWI630478B (en) Method and device for monitoring a temperature of an electronic element
JP6819610B2 (en) Diagnostic equipment, diagnostic methods, and diagnostic programs
US7908546B2 (en) Methods and apparatus for detection of performance conditions in processing system
CN111079139A (en) Process early warning method and device, computer equipment and computer readable storage medium