Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
As stated in the background art, currently, allowing generally for the monitoring shape of any setting Service-Port in server cluster
State.However, in practical applications, hacker would generally be using the loophole for the listening state for allowing any setting Service-Port, newly
Increasing server listening port persistently to control host server, attack host server runs special services steadily in the long term, thus
Cause the safety of each server in server cluster lower.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of server protection methods, as shown in Figure 1,
The described method includes:
101, the newly-increased behavioural information of the server listening port in the host server of server cluster is obtained.
Wherein, the newly-increased behavioural information can be the newly-increased corresponding memory calling sequence of behavior.The memory calls sequence
Column can execute the system function function interface sequence called when the newly-increased behavior for server, belong to dynamic memory data.
The corresponding memory calling sequence of identical newly-increased behavior is different under different scenes.In the embodiment of the present invention, can be infused by process
Enter technology to be injected into each server processes of the server cluster default trapping module, then be hung by hook technology
The system for increasing behavior described in hook newly is called, and finally back trace technique is recycled to call the mode recalled to the system, is obtained
The corresponding memory calling sequence of the newly-increased behavior.In addition, the newly-increased behavioural information can also monitor end for newly-increased server
The port information of mouth, the port information can be the port numbers of newly-increased server listening port.
102, detect whether the newly-increased behavioural information meets default newly-increased condition.If meeting, 103 are thened follow the steps;If
It does not meet, thens follow the steps 104.
Wherein, the default newly-increased condition can call rule for the corresponding volume of behavior that actively increases newly of server listening port
Then, actively increasing behavior newly can be the behavior by keyboard or mouse action terminal device, i.e., taken by operation maintenance personnel in host
The behavior for actively increasing server listening port in business device newly passively increases Service-Port newly for actively increasing behavior newly
Behavior be the behavior for passing through program or function and increasing server listening port newly.Developer is led in design server cluster
The operation maintenance personnel actively newly-increased Service-Port for needing to monitor can often be allowed, when operation maintenance personnel is in the legal newly-increased clothes for needing to monitor
When business device port, it will usually click the newly-increased Service-Port for needing to monitor using keyboard or mouse, actively increase behavior meeting newly
Installed System Memory calling is carried out according to the calling rule being arranged inside host server, and hacker is when using loophole, it will usually make
With the passive newly-increased behavior of program perhaps function increase newly the passively newly-increased behavior of server listening port can according to virus or
The mode or calling rule of malicious application developer setting carry out Installed System Memory calling, are arranged with inside host server
Installed System Memory method of calling or calling rule do not meet.Therefore, the embodiment of the present invention can be by detecting the new line increment
For the corresponding calling rule of memory calling sequence whether meet default calling rule, safe inspection is carried out to the newly-increased behavior
It surveys, that is, detects whether the newly-increased behavior is actively to increase behavior newly, if the corresponding tune of memory calling sequence of the newly-increased behavior
Meet default calling rule with rule, it is determined that the newly-increased behavior is actively to increase behavior newly, and be determined as safety behavior.If institute
The corresponding calling rule of memory calling sequence for stating newly-increased behavior does not meet default calling rule, it is determined that the newly-increased behavior is
Passively newly-increased behavior, and it is determined as hazardous act.
Further, since host server runs special services steadily in the long term, port status tends towards stability, and few situation can be new
Increase listening port, hacker utilizes loophole in order to prevent, after server disposition, host server can be forbidden to increase service newly again
Device listening port, therefore, the default newly-increased condition can be that the server opened is monitored for newly-increased server listening port
Port, even if there is the case where newly-increased server listening port, newly-increased server listening port also should be open clothes
Business device listening port, what the server listening port opened can be collected during deployment services device.
103, it determines that the newly-increased behavior is safety behavior, and clearance processing is carried out to the newly-increased behavior.
104, it determines that the newly-increased behavior is hazardous act, and prevention processing is carried out to the newly-increased behavior.
For the embodiment of the present invention, in order to determine the accuracy of the newly-increased behavioral value, the newly-increased behavior is being determined
For hazardous act, result can also be will test and upload to cloud control centre, further be judged or handled by operation maintenance personnel.
A kind of server protection method provided in an embodiment of the present invention, with the prison for allowing any setting Service-Port at present
State is listened to compare, the embodiment of the present invention can obtain the newly-increased of in the host server of server cluster server listening port
Behavioural information.And it is able to detect whether the newly-increased behavioural information meets default newly-increased condition;If meeting, it is determined that described newly-increased
Behavior is safety behavior, and carries out clearance processing to the newly-increased behavior;If not meeting, it is determined that the newly-increased behavior is danger
Behavior, and prevention processing is carried out to the newly-increased behavior, so as to realize that the newly-increased behavior to server listening port carries out
Safety detection, and can prevent hacker from increasing server listening port newly using loophole persistently to control host server, Jin Erneng
Enough promote the safety of server.
Further, in order to better illustrate the process of above-mentioned server protection, as to above-described embodiment refinement and
Extension, the embodiment of the invention provides another server protection methods, as shown in Fig. 2, but not limited to this, institute specific as follows
Show:
201, the newly-increased behavioural information of the server listening port in the host server of server cluster is obtained.
Wherein, the newly-increased behavioural information can be the newly-increased corresponding memory calling sequence of behavior, or newly-increased clothes
The port information of business device listening port.
It is when newly-increased behavioural information memory calling sequence corresponding for newly-increased behavior for the embodiment of the present invention
The capture memory calling sequence, the step 201 can specifically include: default trapping module is injected into the server
In each server processes of cluster, the newly-increased behavior is monitored;Using default hooking function to the host server system
The power function of system application layer is linked up with, and is called with intercepting the corresponding system of the newly-increased behavior;It is returned using default stack information
The function that traces back, which calls the system, carries out the backtracking of stack information, obtains the corresponding memory calling sequence of the newly-increased behavior.
Wherein, the default trapping module can be arranged for technical staff according to process injection technique, the default extension
Hook function can be write for technical staff according to hook technology, and stack information backtracking function is preset described in the hook technology can be with
It is technical staff according to back trace technique.Different trapping modules, the trapping module can be set for different process behaviors
It can be corresponding function dynamic link library, or write different default hooking functions, different default stack information recalls letter
Number, for example, the default hooking function can be hookNtAddPort function, described pre- for the process behavior for opening file
If it can be RtlCaptureStackBackTrace function that stack information, which recalls function,.
202a, when the newly-increased behavioural information is the corresponding memory calling sequence of newly-increased behavior, detect the memory tune
Whether meet default calling rule with the corresponding calling rule of sequence.If so, thening follow the steps 203;If it is not, thening follow the steps
204。
Wherein, the default calling rule can be the calling rule for actively increasing behavior newly of Service-Port, work as host
Presence server listening port actively increases behavior newly in server, i.e., when increasing Service-Port newly by mouse or keyboard,
Some system function functions or corresponding interface sequence can be called by actively increasing behavior newly, therefore, described actively to increase behavior newly
Calling rule can be for there are particular system power functions in the memory calling sequence;The particular system power function can be with
Actively to increase the system function function or corresponding interface sequence that behavior is called newly, it is specifically as follows the relevant system of message dispatch
System power function or other actively increase the related system power function that behavior is called, the relevant system of the message dispatch newly
Power function can be include GetMessage function, TranslateMessage function, DispatchMessage function etc..
Other described related system power functions for actively increasing behavior calling newly may include: SHELL32!CDefFolderMenu::
The interface related function of InvokeCommand function, IFileOpenDialog, the interface related letter of IFileSaveDialog
Number, the interface related function of IFileSaveDialog, the interface related function of DragQueryFile etc..
It is described to detect whether the corresponding calling rule of the memory calling sequence meets default tune in concrete application scene
It with the step of rule, specifically includes: detecting in the memory calling sequence with the presence or absence of particular system power function;If it exists,
Then determine that the corresponding calling rule of the memory calling sequence meets default calling rule;If it does not exist, it is determined that the memory
The corresponding calling rule of calling sequence does not meet default calling rule.
For the embodiment of the present invention, in order to promote the accuracy rate of the newly-increased Activity recognition, the default calling rule tool
Body can in the memory calling sequence there are particular system power function, and particular system in the memory calling sequence
The calling sequence of power function meets default calling sequence, and there are particular system function letters in detecting the memory calling sequence
After number, whether the calling sequence that can also continue to detect particular system power function in the memory calling sequence meets default tune
With sequence;If not meeting, it is determined that the corresponding calling rule of the memory calling sequence does not meet default calling rule;If symbol
It closes, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule.For example, server listening port
Actively increase the calling sequence that particular system power function is called in behavior newly are as follows: GetMessage function-TranslateMessage
Function, DispatchMessage function.If by detection discovery, the corresponding memory tune of the newly-increased behavior of server listening port
Met with the calling sequence and above-mentioned default calling sequence of particular system power function in sequence, it is determined that server listening port
Newly-increased behavior be actively increase behavior, and then the determination newly-increased behavior is safety behavior.If by detection discovery, server
The calling sequence of particular system power function and above-mentioned default tune in the corresponding memory calling sequence of the newly-increased behavior of listening port
With not meeting sequentially, it is determined that the newly-increased behavior of server listening port is passively newly-increased behavior, and then described in judging to determine
Newly-increased behavior is hazardous act.
Or the default calling rule is specifically as follows in the memory calling sequence that there are particular system function letters
Number, and the stack location in the memory calling sequence where particular system power function meets default stack location, in detection institute
State in memory calling sequence that there are after particular system power function, can also continue to detect specific system in the memory calling sequence
Whether the position where system power function meets predeterminated position;If not meeting, it is determined that the corresponding tune of the memory calling sequence
Default calling rule is not met with rule;If meeting, it is determined that the corresponding calling rule of the memory calling sequence meets default
Calling rule.Wherein, the predeterminated position actively increasing newly in memory calling sequence corresponding to behavior for server listening port
Position where particular system power function.For example, predeterminated position is 0x10.If by detection discovery, the newly-increased behavior
Position in memory calling sequence where GetMessage function is 0x08, it is determined that the corresponding calling of the memory calling sequence
Rule does not meet default calling rule, determines that the newly-increased behavior of server listening port is not actively to increase behavior newly, and is black
Visitor increases behavior newly using the passive of loophole.
With step 202a step 202b arranged side by side, when the port that the newly-increased behavioural information is newly-increased server listening port
When information, detect whether the port information matches with the port information in default listening port white list.If matching, executes
Step 203;If mismatching, 204 are thened follow the steps.
Wherein, the server opened in the server cluster is preserved in the default listening port white list to monitor
Port and its corresponding port information.The port information can be port numbers, the end of the server listening port such as opened
Slogan is 8080.Specifically, if the port information of newly-increased server listening port and the port in default listening port white list
Information matches then illustrate that newly-increased server listening port is the server listening port opened, and allow for host server
Newly-increased server listening port, accordingly, it is determined that the newly-increased behavior is safety behavior.If the end of newly-increased server listening port
Port information in message breath and default listening port white list mismatches, then illustrating that newly-increased server listening port is not is
Open server listening port is not that host server allows newly-increased server listening port, accordingly, it is determined that described newly-increased
Behavior is hazardous act.
For the embodiment of the present invention, the function that default listening port white list is set also is supported, the method also includes:
During server disposition in the server cluster, the Service-Port opened and its corresponding port letter are collected
Breath;According to the server listening port and its corresponding port information opened, the default white name of listening port is constructed
It is single.
Further, in order to guarantee the integrality of the default listening port white list, the safety of server, institute are promoted
State method further include: the default listening port white list is sent to cloud control centre and is modified;Described in acquisition
The revised listening port white list of cloud control centre.It therefore, can be by institute when there is newly-increased server listening port
Newly-increased server listening port is stated to be matched with revised listening port white list.
203, it determines that the newly-increased behavioural information meets default newly-increased condition, determines that the newly-increased behavior is safety behavior,
And clearance processing is carried out to the newly-increased behavior.
It should be noted that can have newly-increased service in host server after to the newly-increased behavior clearance processing
Device listening port preferably carries out safety detection and protection to Service-Port in order to subsequent, can use newly-increased service
Device listening port updates default listening port white list.Specifically, if newly-increased server listening port is in the default monitoring
It is not present in the white list of port, the newly-increased server listening port can be added to the default listening port white list
In.
204, it determines that the newly-increased behavioural information does not meet default newly-increased condition, determines the newly-increased behavior for operation row
For, and prevention processing is carried out to the newly-increased behavior.
Another kind server protection method provided in an embodiment of the present invention, and allows any setting Service-Port at present
Listening state is compared, and the embodiment of the present invention can obtain the new of in the host server of server cluster server listening port
Increase behavioural information.And it is able to detect whether the newly-increased behavioural information meets default newly-increased condition;If meeting, it is determined that described new
Line increment is safety behavior, and carries out clearance processing to the newly-increased behavior;If not meeting, it is determined that the newly-increased behavior is danger
Dangerous behavior, and prevention processing is carried out to the newly-increased behavior, so as to realize the newly-increased behavior to server listening port into
Row safety detection, and can prevent hacker from increasing server listening port newly persistently to control host server, in turn using loophole
It is able to ascend the safety of server.
Further, as the specific implementation of Fig. 1, the embodiment of the invention provides a kind of server protection device, such as Fig. 3
Shown, described device includes: acquiring unit 31, detection unit 32, processing unit 33.
The acquiring unit 31 can be used for obtaining the server listening port in the host server of server cluster
Newly-increased behavioural information.The acquiring unit 31 is to obtain the server in the host server of server cluster in the present apparatus to monitor
The functional module of the newly-increased behavioural information of port.
The detection unit 32, can be used for detecting whether the newly-increased behavioural information meets default newly-increased condition.It is described
Detection unit 32 is the main functional modules for detecting the newly-increased behavioural information in the present apparatus and whether meeting default newly-increased condition.
The processing unit 33, if can be used for the detection unit 32 detect the newly-increased behavioural information meet it is default new
Increasing condition, it is determined that the newly-increased behavior is safety behavior, and carries out clearance processing to the newly-increased behavior.The processing unit
If 33 be to detect the newly-increased behavioural information in the present apparatus to meet default newly-increased condition, it is determined that the newly-increased behavior is security row
For, and the main functional modules of clearance processing are carried out to the newly-increased behavior.
The processing unit 33, if be also used to the detection unit 32 detect the newly-increased behavioural information do not meet it is default new
Increasing condition, it is determined that the newly-increased behavior is hazardous act, and carries out prevention processing to the newly-increased behavior.The processing unit
If 33 be to detect the newly-increased behavioural information in the present apparatus not meeting default newly-increased condition, it is determined that the newly-increased behavior is danger
Behavior, and prevent to the newly-increased behavior main functional modules of processing.
In concrete application scene, the detection unit 32 may include: first detection module 321 and the first determining module
322, as shown in Figure 4.
The first detection module 321 can be used for when the newly-increased behavioural information being the newly-increased corresponding memory tune of behavior
With sequence, detect whether the corresponding calling rule of the memory calling sequence meets default calling rule.
First determining module 322, if can be used for the first detection module 321 detects the memory calling sequence
Corresponding calling rule meets default calling rule, it is determined that the newly-increased behavioural information meets default newly-increased condition.
First determining module 322 calls sequence if can be also used for the first detection module 321 and detect the memory
It arranges corresponding calling rule and does not meet default calling rule, it is determined that the newly-increased behavioural information does not meet default newly-increased condition.
It should be noted that being advised to determine whether the corresponding calling rule of the memory calling sequence meets default call
Then, the first detection module 321 may include: detection sub-module and determining submodule.
The detection sub-module can be used for detecting in the memory calling sequence with the presence or absence of particular system function letter
Number.
The determining submodule, if can be used in the detection sub-module detection memory calling sequence, there are specific
System function function, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule.
The determining submodule is not present in the memory calling sequence if can be also used for the detection sub-module and detect
Particular system power function, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule.
Further, in order to promote the accuracy rate of the newly-increased Activity recognition, the detection sub-module can be also used for examining
Whether the calling sequence for surveying particular system power function in the memory calling sequence meets default calling sequence.
The determining submodule, if can be also used for the detection sub-module detects specific system in the memory calling sequence
The calling sequence of power function of uniting does not meet default calling sequence, it is determined that the corresponding calling rule of the memory calling sequence is not
Meet default calling rule;
The determining submodule, if specifically can be also used for the detection sub-module detects spy in the memory calling sequence
The calling sequence for determining system function function meets default calling sequence, it is determined that the corresponding calling rule of the memory calling sequence
Meet default calling rule.
The detection sub-module can be also used for the place for detecting particular system power function in the memory calling sequence
Whether position meets predeterminated position.
The determining submodule, if can be also used for the detection sub-module detects specific system in the memory calling sequence
The position of system power function does not meet predeterminated position, it is determined that the corresponding calling rule of the memory calling sequence is not met
Default calling rule.Wherein, the predeterminated position can according to actual conditions be arranged, such as the predeterminated position be 0x08
Or 0x10 etc..
The determining submodule, if being specifically also used to the detection sub-module detects specific system in the memory calling sequence
The position of system power function meets predeterminated position, it is determined that the corresponding calling rule of the memory calling sequence meets default
Calling rule.
For the embodiment of the present invention, the acquiring unit 31 includes: monitoring module 311, Hooking module 312 and backtracking module
313。
The monitoring module 311 can be used for for default trapping module being injected into each service of the server cluster
In device process, the newly-increased behavior is monitored.
The Hooking module 312 can be used for the system application layer using default hooking function to the host server
Power function linked up with, called with intercepting the corresponding system of the newly-increased behavior.
The backtracking module 313 can be used for being recalled using default stack information function and call progress stack letter to the system
Breath backtracking, obtains the corresponding memory calling sequence of the newly-increased behavior.
In concrete application scene, the detection unit 32 may include: the second detection module 323 and the second determining module
324。
Second detection module 323 can be used for when the newly-increased behavioural information being newly-increased server listening port
When port information, detect whether the port information matches with the port information in default listening port white list, it is described default
The server listening port opened in the server cluster and its corresponding port letter are preserved in listening port white list
Breath;
Second determining module 324, if can be used for second detection module 323 detects port information and default prison
The port information in the white list of port is listened to match, it is determined that the newly-increased behavioural information meets default newly-increased condition;
Second determining module 324, if can be also used for the second detection module detection port information and default prison
The port information in the white list of port is listened to mismatch, it is determined that the newly-increased behavioural information does not meet default newly-increased condition.
In addition, in order to obtain default listening port white list, described device further include: collector unit 34 and construction unit
35。
The collector unit 34 can be used for during the server disposition in the server cluster, and collection is described
Open Service-Port and its corresponding port information.
The construction unit 35 can be used for according to the server listening port opened and its corresponding port letter
Breath constructs the default listening port white list.
Further, in order to guarantee the integrality of the default listening port white list, the safety of server is promoted,
Described device can also include: amending unit 36.
The amending unit 36 can be used for the default listening port white list being sent to cloud control centre
It is modified.
The acquiring unit 31 can be also used for obtaining the revised listening port white list of the cloud control centre.
It should be noted that its of each functional module involved by a kind of server protection device provided in an embodiment of the present invention
He accordingly describes, can be with reference to the corresponding description of method shown in Fig. 1, and details are not described herein.
Based on above-mentioned method as shown in Figure 1, correspondingly, the embodiment of the invention also provides a kind of computer-readable storage mediums
Matter is stored thereon with computer program, which performs the steps of the master obtained in server cluster when being executed by processor
The newly-increased behavioural information of server listening port in machine server;Detect whether the newly-increased behavioural information meets default newly-increased item
Part;If meeting, it is determined that the newly-increased behavior is safety behavior, and carries out clearance processing to the newly-increased behavior;If not meeting,
It then determines that the newly-increased behavior is hazardous act, and prevention processing is carried out to the newly-increased behavior.
Embodiment based on above-mentioned method as shown in Figure 1 and server protection device as shown in Figure 3, the embodiment of the present invention is also
A kind of entity structure diagram of computer equipment is provided, as shown in figure 5, the equipment includes: processor 41, memory 42 and deposits
The computer program that can be run on memory 42 and on a processor is stored up, wherein memory 42 and processor 41 are arranged at always
Acquisition is performed the steps of when the processor 41 executes described program on line 43 to take in the host server of server cluster
The newly-increased behavioural information of business device listening port;Detect whether the newly-increased behavioural information meets default newly-increased condition;If meeting,
It determines that the newly-increased behavior is safety behavior, and clearance processing is carried out to the newly-increased behavior;If not meeting, it is determined that described new
Line increment is hazardous act, and carries out prevention processing to the newly-increased behavior.The equipment further include: bus 43 is configured as coupling
Connect processor 41 and memory 42.
According to the technical solution of the present invention, the server listening port in the host server of server cluster can be obtained
Newly-increased behavioural information.And it is able to detect whether the newly-increased behavioural information meets default newly-increased condition;If meeting, it is determined that institute
Stating newly-increased behavior is safety behavior, and carries out clearance processing to the newly-increased behavior;If not meeting, it is determined that the newly-increased behavior
For hazardous act, and prevention processing is carried out to the newly-increased behavior, so as to realize the new line increment to server listening port
To carry out safety detection, and hacker can be prevented using the newly-increased server listening port of loophole persistently to control host server,
And then it is able to ascend the safety of server.
The embodiment of the present invention also provides the following technical solutions:
A1, a kind of server protection method, comprising:
Obtain the newly-increased behavioural information of the server listening port in the host server of server cluster;
Detect whether the newly-increased behavioural information meets default newly-increased condition;
If meeting, it is determined that the newly-increased behavior is safety behavior, and carries out clearance processing to the newly-increased behavior;
If not meeting, it is determined that the newly-increased behavior is hazardous act, and carries out prevention processing to the newly-increased behavior.
A2, method as described in a1, the newly-increased behavioural information are the newly-increased corresponding memory calling sequence of behavior, the inspection
Survey whether the newly-increased behavioural information meets default newly-increased condition, comprising:
Detect whether the corresponding calling rule of the memory calling sequence meets default calling rule;
If meeting, it is determined that the newly-increased behavioural information meets default newly-increased condition;
If not meeting, it is determined that the newly-increased behavioural information does not meet default newly-increased condition.
A3, as described in A2 method, it is default whether the corresponding calling rule of the detection memory calling sequence meets
Calling rule, comprising:
It detects in the memory calling sequence with the presence or absence of particular system power function;
If it exists, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule;
If it does not exist, it is determined that the corresponding calling rule of the memory calling sequence does not meet default calling rule.
A4, the method as described in A3, the corresponding calling rule of the determination memory calling sequence meet default calling
Before rule, the method also includes:
Whether the calling sequence for detecting particular system power function in the memory calling sequence meets default calling sequence;
If not meeting, it is determined that the corresponding calling rule of the memory calling sequence does not meet default calling rule;
The corresponding calling rule of the determination memory calling sequence meets default calling rule, comprising:
If meeting, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule.
A5, the method as described in A3, the corresponding calling rule of the determination memory calling sequence meet default calling
Before rule, the method also includes:
Whether the position for detecting particular system power function in the memory calling sequence meets predeterminated position;
If not meeting, it is determined that the corresponding calling rule of the memory calling sequence does not meet default calling rule;
The corresponding calling rule of the determination memory calling sequence meets default calling rule, comprising:
If meeting, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule.
The described in any item methods of A6, such as A1-A5, the acquisition increase service newly in the host server of server cluster
The newly-increased behavioural information of device listening port, comprising:
Default trapping module is injected into each server processes of the server cluster, the new line increment is monitored
For;
It is linked up with using power function of the default hooking function to the system application layer of the host server, to intercept
The corresponding system of the newly-increased behavior is called;
The system is called using default stack information backtracking function and carries out the backtracking of stack information, obtains the newly-increased behavior pair
The memory calling sequence answered.
A7, method as described in a1, the newly-increased behavioural information is the port information of newly-increased server listening port, described
Detect whether the newly-increased behavioural information meets default newly-increased condition, comprising:
Detect whether the port information matches with the port information in default listening port white list, the default monitoring
The server listening port and its corresponding port information opened in the server cluster is preserved in the white list of port;
If meeting, it is determined that the newly-increased behavioural information meets default newly-increased condition;
If not meeting, it is determined that the newly-increased behavioural information does not meet default newly-increased condition.
Whether A8, the method as described in A7, the detection port information are believed with the port in default port white list
Before breath matching, the method also includes:
During the server disposition in the server cluster, the Service-Port opened and its correspondence are collected
Port information;
According to the server listening port and its corresponding port information opened, the default listening port is constructed
White list.
A9, the method as described in A8, the server listening port opened according to and its corresponding port letter
Breath, after constructing the default listening port white list, the method also includes:
The default listening port white list is sent to cloud control centre to be modified;
Obtain the revised listening port white list of the cloud control centre.
B10, a kind of server protection device, comprising:
Acquiring unit, the newly-increased behavior for obtaining the server listening port in the host server of server cluster are believed
Breath;
Detection unit, for detecting whether the newly-increased behavioural information meets default newly-increased condition;
Processing unit, if detecting the newly-increased behavioural information for the detection unit meets default newly-increased condition, really
The fixed newly-increased behavior is safety behavior, and carries out clearance processing to the newly-increased behavior;
The processing unit does not meet default newly-increased item if being also used to the detection unit and detecting the newly-increased behavioural information
Part, it is determined that the newly-increased behavior is hazardous act, and carries out prevention processing to the newly-increased behavior.
B11, the device as described in B10, the detection unit include:
First detection module, for being the newly-increased corresponding memory calling sequence of behavior, detection when the newly-increased behavioural information
Whether the corresponding calling rule of the memory calling sequence meets default calling rule;
First determining module, if detecting the corresponding calling rule of the memory calling sequence for the first detection module
Meet default calling rule, it is determined that the newly-increased behavioural information meets default newly-increased condition;
First determining module, if being also used to the first detection module detects the corresponding tune of the memory calling sequence
Default calling rule is not met with rule, it is determined that the newly-increased behavioural information does not meet default newly-increased condition.
B12, device as described in b11, the first detection module include:
Detection sub-module, for detecting in the memory calling sequence with the presence or absence of particular system power function;
Determine submodule, there are particular system functions if detecting in the memory calling sequence for the detection sub-module
Function, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule;
The determining submodule, if being also used in the detection sub-module detection memory calling sequence, there is no specific
System function function, it is determined that the corresponding calling rule of the memory calling sequence meets default calling rule.
B13, as described in B12 device,
The detection sub-module is also used to detect the calling sequence of particular system power function in the memory calling sequence
Whether default calling sequence is met;
The determining submodule, if being also used to the detection sub-module detects particular system function in the memory calling sequence
Can the calling sequence of function do not meet default calling sequence, it is determined that the corresponding calling rule of the memory calling sequence is not met
Default calling rule;
The determining submodule, if being specifically also used to the detection sub-module detects specific system in the memory calling sequence
The calling sequence of power function of uniting meets default calling sequence, it is determined that the corresponding calling rule of the memory calling sequence meets
Default calling rule.
B14, as described in B12 device,
The detection sub-module is also used to detect the position of particular system power function in the memory calling sequence
Whether predeterminated position is met;
The determining submodule, if being also used to the detection sub-module detects particular system function in the memory calling sequence
Can the position of function do not meet predeterminated position, it is determined that the corresponding calling rule of the memory calling sequence does not meet default
Calling rule;
The determining submodule, if being specifically also used to the detection sub-module detects specific system in the memory calling sequence
The position of system power function meets predeterminated position, it is determined that the corresponding calling rule of the memory calling sequence meets default
Calling rule.
The described in any item devices of B15, such as B10-B14, the acquiring unit include:
Monitoring module is supervised for default trapping module to be injected into each server processes of the server cluster
Control the newly-increased behavior;
Hooking module, for using default hooking function to the power function of the system application layer of the host server into
Row hook is called with intercepting the corresponding system of the newly-increased behavior;
Backtracking module is carried out the backtracking of stack information for being called using default stack information backtracking function to the system, obtained
The corresponding memory calling sequence of the newly-increased behavior.
B16, the device as described in B10, the detection unit include:
Second detection module, for when the newly-increased behavioural information is the port information of newly-increased server listening port,
Detect whether the port information matches with the port information in default listening port white list, the default white name of listening port
The server listening port and its corresponding port information opened in the server cluster is preserved in list;
Second determining module, if in second detection module detection port information and default listening port white list
Port information matching, it is determined that the newly-increased behavioural information meets default newly-increased condition;
Second determining module, if being also used to, second detection module detects port information and default listening port is white
Port information in list mismatches, it is determined that the newly-increased behavioural information does not meet default newly-increased condition.
B17, the device as described in B16, described device further include:
Collector unit, for during the server disposition in the server cluster, collecting the service opened
Device port and its corresponding port information;
Construction unit, for constructing institute according to the server listening port and its corresponding port information opened
State default listening port white list.
B18, the device as described in B16, described device further include: amending unit,
The amending unit is repaired for the default listening port white list to be sent to cloud control centre
Just;
The acquiring unit is also used to obtain the revised listening port white list of the cloud control centre.
C19, a kind of computer readable storage medium, are stored thereon with computer program, and the computer program is processed
The step of method as described in any one of A1 to A9 is realized when device executes.
D20, a kind of computer equipment, including memory, processor and storage can transport on a memory and on a processor
Capable computer program, the processor realize the step such as any one of A1 to A9 the method when executing the computer program
Suddenly.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment
" first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) are some in server protection device according to an embodiment of the present invention to realize
Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein
Partly or completely device or device program (for example, computer program and computer program product).Such realization is originally
The program of invention can store on a computer-readable medium, or may be in the form of one or more signals.In this way
Signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.