A kind of computer system with the isolation of safe class subregion
Present invention relates in general to Computer Systems Organization and network security, relate in particular to and prevent illegal live body invasion and the computer system that damages or steal.
The unsafe factor of infosystem is a lot, (ginseng: Yan Wei etc. translate, " network security specialty reference manual " China Machine Press).Common unsafe factor has: the fault of infosystem (hardware and software) itself, comprise the reliability of system itself and the destruction that natural and man-made calamities cause, and the method that overcomes the unsafe factor of this class mainly is fault-tolerant and security personnel; Be decrypted in the transmission course, information is stolen secret information, and forges, alter ..., the solution of the unsafe factor of this class is mainly by encrypting; Personation, the method that overcomes the unsafe factor of this class mainly be by law and authentication technique (password, digital signature, fingerprint ...); The outer obstruction of inlet (rubbish blast), the solution of the unsafe factor of this class are mainly by law, and the inlet in network management and the system management is handled; Destructive maximum is illegal live body invasion, comprises other illegal invasion live bodies of virus (Viruse) and saboteur (Cracker), for example, Trojan Horse (Trojanhouse), or the like destruction and theft.Here, live body is meant one section executable program.
Computer virus, the destructive activity of saboteur's etc. illegal invasion live body are very rampant, and be greatly destructive.Be known by everybody.For example, by 1996, virus on the books just had 4988 kinds.Up to the present, had more than 40000 kinds.Nineteen ninety-five, the computer system of U.S. Department of Defense is subjected to 250,000 attacks from the internet.(ginseng: " computer virus informal discussion ", electronics prospect and decision-making, pp.39-41, in February, 1997 number.The safety problem " of " Internet.Electronics prospect and decision-making, pp.8-9, in February, 1997 number.)
At present, prevent whether virus and saboteur from waiting the measure of the destruction of other illegal invasion live bodies and theft to be based on discriminating is viral software measure, for example use anti-viral software, the software of the tamper-proof person's invasion on the fire wall (computing machine at system entry place), or the like.The " network security specialty reference manual " that translates referring to Yan Wei etc. by China Machine Press, Yang Ji open translate by publishing house of Tsing-Hua University published in 2000<hacker exposes completely:: network security secret and solution, Chen Yongjian etc. translate by the Electronic Industry Press published in 2000<challenge hacker--the final solution of network security and Dai Zongkun etc. translate by China Machine Press published in 2000<fire wall and internet security.Though these software level improve constantly, still can not effect a radical cure virus and saboteur.
The computer system that the object of the present invention is to provide a kind of anti-illegal-inbreak live body to destroy and steal, thereby the destruction and the thefts of radical cure virus and other saboteur's live bodies.
In order to realize above-mentioned purpose, the invention provides a kind of computer system, comprising:
At least one storage inside parts is used for storage instruction/data;
Described system is characterised in that:
Described at least one storage inside parts, be divided into a plurality of memory blocks, each memory block, be used to store many group instruction/datas, every group of corresponding security code of instruction/data, the security code of respectively organizing the instruction/data correspondence in the same memory region is identical, and security code has bit at least, security code is represented safe class, and safe class has two grades at least: high safety grade and minimum safe grade.
The feature of described system also comprises:
The memory unit partitioning device is used for each security code of distinguishing of memory unit subregion and regulation; It comprises partition address save set and partition address setting device.If take fixed partition, this partition address save set and partition address setting device can be empty.
The security code generation device is used for judging automatically by the address of instruction/data which memory block this instruction/data belongs to, and produces the security code of this instruction/data according to the security code in this district;
First adds a sign indicating number save set, is used to preserve the security code of the instruction of current operation;
Second adds a sign indicating number save set, be used to preserve be read the security code of instruction;
First interrupts generation device, be used for except special bring back to revolution move and interrupt shifting various unconditional transfer and the safe class of the instruction that is turned to of various conditional branch instructions be higher than this transfer instruction safe class the time produce and interrupt, and when the safe class of this instruction was lower than the safe class P of certain regulation, the instruction secure grade that is turned to also produced interruption when being not equal to the safe class of this transfer instruction;
The 3rd adds a sign indicating number save set, is used to preserve several security code that is operated that current memory unit internally reads;
Second interrupts generation device, be used for interrupting when being operated of instruction produces when several safe classes is higher than the safe class of this instruction, and when the safe class of this instruction is lower than the safe class P of certain regulation, is operated and also produces interruption when several safe classes is not equal to the safe class of this instruction;
According to above-mentioned requirement, the feature of described system also comprises:
Safe class P device specifies is used for the safe class P of regulation computer system.It comprises safe class P memory storage and safe class P setting device.When not stipulating safe class P, P equals the minimum safe grade; If adopt fixing P, the P device specifies can be empty.
Restriction output code memory storage is arranged in described storage inside parts, is used to store a plurality of restriction output codes, and wherein each restriction output code is represented the restriction output level of one group of instruction/data;
Instruction/data cannot be from having the output port output of the " output port restriction output level " that is lower than this restriction output level, and the restriction output code comprises two restriction output levels at least;
Restriction output code applicator is used for giving one group of instruction/data the restriction output code, and the restriction output level of not giving the instruction/data of restriction output code is the maximum limit output level;
Limit the output code save set, be used to preserve the restriction output code of one group of instruction/data exporting;
Output port restriction output code save set, the restriction output code grade that is used to preserve each output port;
Output port restriction output code is given device, is used for " output port restriction output code " is composed to certain output port, and output port restriction output code is represented the output port restriction output level of this port; Having the program/data that are higher than this output port restriction output level cannot be from this port output, the grade of output port restriction output code comprises two grades at least, and not having the grade of the output port restriction output code of the output port that assignment crosses is the maximum limit output level;
The 3rd interrupts generation device, is used for producing and interrupting when the output port that the instruction/data requirement cannot be exported from it is exported;
And wherein
The described the 3rd adds the sign indicating number save set also is used for storage restriction output code;
The present invention not only can be used in various computer systems, various server computers, various subscriber computers (comprising personal computer), the household electrical appliances information handling system that information processing capability is arranged of various energy network access, can also be used on any computing machine on the network node, for example, fire wall, or the like.The present invention is to the safety of the big infosystem of the important department of the high safety requirements of various subscriber computers, various server computer, various in-company computer system, various needs, significant and social benefit.
The safety practice that computer system of the present invention realized certainly combines with the safety practice that operating system and other software systems are realized.
In conjunction with the accompanying drawings, by the description of following by way of example to best mode for carrying out the invention, above-mentioned and other purposes of the present invention, feature and advantage will be more obvious.
Fig. 1 is the structural representation of the embodiment of computer system of the present invention;
Describe each embodiment of the present invention in detail below in conjunction with accompanying drawing.
Fig. 1 is the structural representation of an embodiment of computer system of the present invention.As shown in Figure 1, computer system 100 of the present invention contains cpu 110 and at least one storage inside parts 120, and some other parts.In order to constitute a complete computer system, except the parts shown in the figure, also need some prior art parts.Because these prior art parts and the annexation between them are known for those of ordinary skills, so do not illustrate in the drawings.
Storage inside parts 120 contain many group storage unit (not shown), and every group of storage unit is used to store one group of instruction/data.
In example shown in Figure 1, the pairing program of each security code/data set size is a unit, a word length.Security code length is r binary digit, r 〉=1.Internal storage unit is divided into N district, N=2
r
Cpu 110, except comprising the arithmetic unit that has usually, arithmetic control unit, various registers, or the like beyond the (not shown), comprise that also first to fourth adds sign indicating number save set 111,112 and 113, the first and interrupt generation devices 115 and second and interrupt generation device 116, distinguish address save set 114 and security code generation device 117 and special operational device 118, output port restriction output code save set 119 and the 3rd interruption generation device 119 '.
First adds the security code that sign indicating number save set 111 is used to preserve the instruction of current operation.
Second add sign indicating number save set 112 be used to preserve be read the security code of instruction.
First interrupts generation device 115, be used for except special bring back to revolution move and interrupt shifting various unconditional transfer and the safe class of the instruction that is turned to of various conditional branch instructions be higher than this transfer instruction safe class the time produce and interrupt, and when the safe class of this instruction was lower than the safe class P of certain regulation, the instruction secure grade that is turned to also produced interruption when being not equal to the safe class of this transfer instruction.
The 3rd adds sign indicating number save set 113 is used to preserve several security code that is operated that current memory unit internally 120 reads.
Second interrupts generation device 116, be used for interrupting when being operated of instruction produces when several safe classes is higher than the safe class of this instruction, and when the safe class of this instruction is lower than the safe class P of certain regulation, is operated and also produces interruption when several safe classes is not equal to the safe class of this instruction.
Distinguish address save set 114, preserve N-1 address that is used as differentiation from small to large successively, do not lose its generality, the safe class of N corresponding memory block is to be defined as from high to low.
Security code generation device 117 is used for when memory unit internally reads an instruction or reads data, it judges automatically according to the address of this instruction/data which memory block this instruction/data belongs to, and produce the security code of this instruction/data according to the security code in this district, and this security code is sent into the second or the 3rd security code save set respectively;
Output port restriction output code save set 119, the restriction output code grade that is used to preserve each output port;
The 3rd interruption generation device 119 ', be used for when the output port that the instruction/data requirement cannot be exported from it is exported, producing and interrupting; Device 119 ' can be arranged on any appropriate location within the computer system 100.
Special operational device 118 is realized by manual control, perhaps is made of one or several operational codes, and controlled by one or several manually operated switches to realize.Certain logical combination of some switch in these switches is 0 o'clock, and when safe class of instruction of perhaps moving this group operational code was lower than certain safe class Q, it equaled not computations, and produces and interrupt; This logical combination is 1 o'clock, and safe class of instruction of moving this group operational code equals or when being higher than certain safe class Q, the special operational of just stipulating.Safe class Q can require to determine in computer working.There is not the Q of regulation to equal high safety grade.
Special operational device 118 comprises following many devices.
(1) setting area sub address device is used for the content of setting area sub address save set.
(2) regulation safe class P device is used for regulation safe class P.Generally before computer working, stipulate.Do not have the situation of regulation, its P is the minimum safe grade.
(3) restriction output code applicator: be used for giving one group of instruction/data the restriction output code, the restriction output level of not giving the instruction/data of restriction output code is the highest limit safe class.
In example shown in Figure 1, we stipulate that the restriction output code of instruction/data equals the security code of this instruction/data, so this device is empty.
(4) output port restriction output code applicator: be used for " output port restriction output code " is composed to certain output port, output port restriction output code is represented the output port restriction output level of this port; Having the program/data that are higher than this output port restriction output level cannot be from this port output, the grade of output port restriction output code comprises two grades at least, and not having the grade of the output port restriction output code of the output port that assignment crosses is the maximum limit output level.
(5) regulation safe class Q device: be used for regulation safe class Q.The safe class of moving the instruction of the relevant special function code of this device must be a highest ranking.Otherwise Interrupt Process.
Distinguish address grade P, grade Q, the save set of output port restriction output code of each output port or the like can be realized with manual control switch or quickflashing (Flash) storer.
Explanation about safe class P:
(1) instruction can move/operate the instruction/data with its identical safe class.
(2) when instruction operation/handling safety grade during, produce and interrupt than its high instruction/data.
(3) when instruction operation/handling safety grade during, two kinds of processing modes are arranged than its low instruction/data:
First kind of processing mode: carry out, do not produce interruption;
Second kind of processing mode: do not carry out, and produce interruption.
Certainly, can also adopt the hybrid processing mode.
(4) two kinds of processing modes among " (3) " and hybrid processing mode, the safe class P that can introduce a regulation represents:
When the safe class of the instruction of carrying out equals or is higher than P, adopt " to carry out the processing mode of ";
When the safe class of the instruction of carrying out during, adopt " not carry out, and produce the processing mode of interrupting " less than P;
If (4-1) getting P is the minimum safe grade, then all adopt first kind of processing mode;
Being high safety grade if (4-2) get P, is to adopt first processing mode except high safety grade then, and the whole of other are to adopt second kind of processing mode;
Be safe class in the middle of certain if (4-3) get P, what then adopt is the hybrid processing mode;
(4-4) P can determine before computer system is started working.
(4-5) do not stipulate the situation of P, P is the minimum safe grade, then all adopts first kind of mode to handle.
(5) obvious, when safe class had only two grades, P was unnecessary, because no matter P equals highest ranking or the lowest class, all was to adopt first kind of processing mode.
Above-mentioned operation/working rule is realized as follows.