AU2002328377B2 - Method for protecting a software using a so-called detection and coercion principle against its unauthorised use - Google Patents

Method for protecting a software using a so-called detection and coercion principle against its unauthorised use Download PDF

Info

Publication number
AU2002328377B2
AU2002328377B2 AU2002328377A AU2002328377A AU2002328377B2 AU 2002328377 B2 AU2002328377 B2 AU 2002328377B2 AU 2002328377 A AU2002328377 A AU 2002328377A AU 2002328377 A AU2002328377 A AU 2002328377A AU 2002328377 B2 AU2002328377 B2 AU 2002328377B2
Authority
AU
Australia
Prior art keywords
execution
protected software
software
unit
during
Prior art date
Legal status (The legal status 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 status listed.)
Expired
Application number
AU2002328377A
Other versions
AU2002328377A1 (en
Inventor
Jean-Christophe Cuenod
Gilles Sgro
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Validy SAS
Original Assignee
Validy SAS
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 Validy SAS filed Critical Validy SAS
Publication of AU2002328377A1 publication Critical patent/AU2002328377A1/en
Application granted granted Critical
Publication of AU2002328377B2 publication Critical patent/AU2002328377B2/en
Anticipated expiration legal-status Critical
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • G06F21/123Restricting unauthorised execution of programs by using dedicated hardware, e.g. dongles, smart cards, cryptographic processors, global positioning systems [GPS] devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • G06F21/125Restricting unauthorised execution of programs by manipulating the program code, e.g. source code, compiled code, interpreted code, machine code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Remote Sensing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Storage Device Security (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)
  • Preparing Plates And Mask In Photomechanical Process (AREA)

Description

00 O Method for protecting a software using a so-called detection and coercion principle against its unauthorized use This invention concerns the technical domain of data processing systems in the general sense, and is more precisely aimed at the means of protecting software running on said data processing systems against unauthorized usage.
0 The subject of the invention aims in particular at the means of protecting software (N against unauthorized usage, using a processing and memorizing unit, such a unit being commonly materialized by a chip card or a material key on USB port.
In the technical domain above, the main problem concerns the unauthorized usage of software by users who have not paid the license rights. This illicit use of software causes an obvious loss for software editors, software distributors and/or any person integrating such software in products. To avoid such illicit copies, various solutions, in the state of technology, have been proposed to protect software.
Thus, a protection solution is known, which makes use of a hardware protection system, such as a physical component named protection key or "dongle". Such a protection key should guarantee that the software executes only in presence of the key.
Yet, it must be acknowledged that this solution is ineffective because it presents the inconvenience of being easy to bypass. An ill-intentioned person or a hacker can, with the aid of specialized tools such as disassemblers, delete the control instructions of the protection key. It becomes then possible to make illicit copies corresponding to modified versions of the software able to run without the protection. Moreover, this solution cannot be generalized to all software, inasmuch as it is difficult to connect more than two protection keys to the same system.
Thus, a need exists to provide a solution to overcome or ameliorate one or more of the aforementioned problems by proposing a process to protect a software against unauthorized usage, using an ad hoc processing and memorizing unit, inasmuch as the presence of such a unit is necessary for the software to be completely functional.
Disclosed herein is a process to protect, using at least one blank unit including at least processing means and 1340487 1 00 memorization means, a vulnerable software against its unauthorized usage, said vulnerable software being produced from a source and working on a data processing Z system. The process according to the present disclosure comprises: during a protection phase: defining: at least one software execution characteristic, liable to be monitored at least in part in a unit, 00 at least one criterion to abide by for at least one software execution characteristic, K detection means to implement in a unit and enabling to detect that at least one software execution characteristic does not abide by at least one associated criterion, and coercion means to implement in a unit and enabling to inform the data processing system and/or modify the execution of a software when at least one criterion is not abided by, constructing exploitation means enabling to transform the blank unit into a unit able to implement the detection means and the coercion means, creating a protected software: by choosing at least one software execution characteristic to monitor, among the software execution characteristics liable to be monitored, by choosing at least one criterion to abide by for at least one chosen software execution characteristic, by choosing, at least one algorithmic processing which, during the execution of the vulnerable software, uses at least one operand and enables to obtain at least one result, and for which at least one chosen software execution characteristic, is to be monitored, by choosing at least one portion of the source of the vulnerable software containing, at least one chosen algorithmic processing, by producing the source of the protected software from the source of the vulnerable software, by modifying at least one chosen portion of the source of the vulnerable software to obtain at least one modified 1340487 1 00 O portion of the source of the protected software, this modification being such that: ;Z during the execution of the protected software a first execution part is executed in the data processing system and a second execution part is executed in a unit, obtained from the blank unit after upload of information, Sthe second execution part executes at least the functionality of at least 00 one chosen algorithmic processing, 1 and during the execution of the protected software, at least one chosen execution characteristic is monitored 9Y means of the second execution part and the fact that a criterion is not abided by leads to a modification of the execution of the protected software, and by producing: a first object part of the protected software, from the source of the protected software, said first object part being such that during the execution of the protected software, appears a first execution part which is executed in the data processing system and whose at least a portion takes into account that at least one chosen software execution characteristic is monitored, D and a second object part of the protected software, containing the exploitation means implementing the detection means and the coercion means, said second object part being such "that, after upload to the blank unit and during the execution of the protected software, appears the second execution part by means of which at least one chosen software execution characteristic is monitored and by means of which the fact that a criterion is not abided by leads to a modification of the execution of the protected software, and uploading the second object part to the blank unit, with the intention of obtaining the unit, and during a usage phase during which the protected software is executed: in the presence of the unit: 1340487 1 00 and as long as all the criteria corresponding to all the monitored execution C,1 characteristics of all the modified portions of the protected software are ;abided by, enabling said portions of the protected software to work nominally and consequently enabling the protected software to work Snominally, and if at least one of the criteria corresponding to a monitored execution t characteristic of a portion of the protected software is not abided by, 00 informing the data processing system of it and/or modifying the Sfunctioning of the portion of the protected software, so that the functioning of the protected software is modified, S and in the absence of the unit, in spite of the request by a portion of the first execution part to trigger the execution in the unit, of the functionality of a chosen algorithmic processing, in not being able to fulfill said request correctly, so that at least said portion is not executed correctly and that, consequently, the protected software is not completely functional.
According to a variant embodiment, the process according to the present disclosure comprises: during the protection phase: S defining: as software execution characteristic liable to be monitored, a variable of measurement of the usage of a functionality of a software, as criterion to abide by, at least one threshold associated to each variable of measurement, and actualization means enabling to update at least one variable of measurement, constructing the exploitation means enabling the unit to also implement the actualization means, and modifying the protected software: by choosing as software execution characteristic to monitor, at least one variable of measurement of the usage of at least one functionality of a software, 1340487 1 00 0- by choosing: C1 at least one functionality of the protected software whose usage is Sliable to be monitored using a variable of measurement, at least one variable of measurement used to quantify the usage of said functionality, at least one threshold associated to a chosen variable of measurement corresponding to a limit of usage of said functionality, 0 and at least one method of update of a chosen variable of 00 M measurement depending on the usage of said functionality, and by modifying at least one chosen portion of the source of the C protected software, this modification being such that, during the execution of the protected software, the variable of measurement is actualized by means of the second execution part depending on the usage of said functionality, and at least one threshold crossing is taken into account, and during the usage phase, in the presence of the unit, and in the case where at least one threshold crossing corresponding to at least one limit of usage is detected, informing the data processing system of it and/or modifying the functioning of the portion of the protected software, so that the functioning of the protected software is modified.
According to a variant embodiment, the process according to the present disclosure comprises: during the protection phase: defining: for at least one variable of measurement, several associated thresholds, and different coercion means corresponding to each of said thresholds, and modifying the protected software: by choosing in the source of the protected software, at least one chosen variable of measurement to which must be associated several thresholds corresponding to different limits of usage of the 1340487 1 -6- 00 functionality, by choosing at least two thresholds associated to the chosen variable of (Ni measurement, and by modifying at least one chosen portion of the source of the N protected software, this modification being such that, during the execution of the protected software, the crossings of the various thresholds are taken into account differently, by means of the second execution part, 00 and during the usage phase: C* in the presence of the unit: in the case where the crossing of a first threshold is detected, enjoining the protected software not to use the corresponding functionality anymore, and in the case where the crossing of a second threshold is detected, making ineffective the corresponding functionality and/or at least one portion of the protected software.
According to a variant embodiment, the process according to the present disclosure comprises: during the protection phase: defining refilling means enabling to credit at least one software functionality monitored by a variable of measurement with at least one additional usage, constructing the exploitation means also allowing the unit to implement the refilling means, and modifying the protected software: by choosing in the source of the protected software, at least one chosen variable of measurement enabling to limit the usage of a functionality and which must be able to be credited with at least one additional usage, and by modifying at least one chosen portion, this modification being such that during a phase called of refilling, at least one additional usage 1340487 1 00 O of at least one functionality corresponding to a chosen variable of measurement can be credited, ;Z and during the phase of refilling: Sreactualizing at least one chosen variable of measurement and/or at least one ~associated threshold, so as to allow at least one additional usage of the functionality.
Cc According to a variant embodiment, the process according to the present disclosure 00 comprises: M, during the protection phase: Sdefining: as software execution characteristic liable to be monitored, a profile of software usage, and as criterion to abide by, at least one feature of software execution, Sand modifying the protected software: by choosing as software execution characteristic to monitor at least one profile of software usage, by choosing at least one feature of execution by which at least one chosen profile of usage must abide, and by modifying at least one chosen portion of the source of the protected software, this modification being such that, during the execution of the protected software, the second execution part abides by all the chosen features of execution, and during the usage phase in the presence of the unit, and in the case where it is detected that at least one feature of execution is not abided by, informing the data processing system of it and/or modifying the functioning of the portion of the protected software, so that the functioning of the protected software is modified.
According to a variant embodiment, the process according to the present disclosure comprises: during the protection phase: defining: 1340487 1 -8- 00 0- an instructions set whose instructions are liable to be executed in the unit, a set of instructions commands for said instructions set, said instructions Z commands being liable to be executed in the data processing system and to trigger in the unit the execution of the instructions, as profile of usage, the chaining of the instructions, as feature of execution, an expected chaining for the execution of the Sinstructions, 00 as detection means, means enabling to detect that the chaining of the instructions does not correspond to the expected one, K- and as coercion means, means enabling to inform the data processing system and/or to modify the functioning of the portion of protected software when the chaining of the instructions does not correspond to the expected one, Sconstructing the exploitation means also enabling the unit to execute the instructions of the instructions set, the execution of said instructions being triggered by the execution in the data processing system, of the instructions commands, and modifying the protected software: by modifying at least one chosen portion of the source of the protected software, this modification being such that: at least one chosen algorithmic processing is split so that during the execution of the protected software, said algorithmic processing is executed by means of the second execution part, using instructions, for at least one chosen algorithmic processing, instructions commands are integrated to the source of the protected software, so that during the execution of the protected software, each instruction command is executed by the first execution part and triggers in the unit, the execution by means of the second 1340487 1 00 00 execution part, of an instruction, a sequence of the instructions commands is chosen among the set of 2 ~sequences allowing the execution of the protected software, and the chaining by which must abide at least some of the (N instructions during their execution in the unit is specified, and during the usage phase, in the presence of the unit, in the case where it is detected that the chaining of the instructions executed in the unit does not 00 correspond to the expected one, informing the data processing system of it and/or Cc modifying the functioning of the portion of the protected software, so that the functioning of the protected software is modified.
N According to a variant embodiment, the process according to the present disclosure comprises: Sduring the protection phase: defining: as instructions set, an instructions set whose at least some instructions work with registers and use at least one operand with the intention of returning a result, for at least some of the instructions working with registers: a part defining the functionality of the instruction, and a part defining the expected chaining for the execution of the instructions and including bits fields corresponding to: o an identification field of the instruction, o and for each operand of the instruction: a flag field, and an expected identification field of the operand, for each register belonging to the exploitation means and used by the instructions set, a generated identification field in which is automatically memorized the identification of the last instruction which has returned its result in said register, as detection means, means enabling, during the execution of an instruction, for each operand, when the flag field imposes it, to check 1340487 1 00 the equality of the generated identification field corresponding to the )register used by said operand, and the expected identification field of the origin of said operand, and as coercion means, means enabling to modify the result of the instructions, if at least one of the checked equalities is false.
According to a preferred embodiment, the process according to the present 00 disclosure comprises: during the protection phase: modifying the protected software: S- by choosing at least one variable used in at least one chosen algorithmic processing, which during the execution of the protected software, partially defines the state of the protected software, by modifying at least one chosen portion of the source of the protected software, this modification being such that during the execution of the protected software, at least one chosen variable or at least one copy of chosen variable resides in the unit, and by producing: a the first object part of the protected software, said first object part being such that during the execution of the protected software, at least one portion of the first execution part takes also into account that at least one variable or at least one copy of variable resides in the unit, and the second object part of the protected software, said second object part being such that, after upload to the unit and during the execution of the protected software, appears the second execution part by means of which at least one chosen variable, or at least one copy of chosen variable resides too in the unit, and during the usage phase: in the presence of the unit each time a portion of the first execution part imposes it, using a variable or a copy of variable residing in the unit, so that said portion is executed correctly and that, consequently, the protected 13404871 -11- 00 software is completely functional, S and in the absence of the unit, in spite of the request by a portion of the first ;execution part to use a variable or a copy of variable residing in the unit, not being able to fulfill said request correctly, so that at least said portion is not ~executed correctly and that, consequently the protected software is not completely functional.
SAccording to another preferred embodiment, the process according to the present 00 00 disclosure comprises: during the protection phase: S defining: as a triggering command, an instruction command, as a dependent function, an instruction, as an order, at least one argument for a triggering command, corresponding at least in part to the information transmitted by the data processing system to the unit, so as to trigger the execution of the corresponding dependent function, a method of renaming of the orders enabling to rename the orders so as to obtain triggering commands with renamed orders, and restoring means designed to be used in the unit during the usage phase, and enabling to restore the dependent function to execute, from the renamed order, constructing exploitation means enabling the unit to also implement the restoring means, and modifying the protected software: by choosing in the source of the protected software, triggering commands, by modifying at least one chosen portion of the source of the protected software by renaming the orders of the chosen triggering commands, so as to conceal the identity of the corresponding dependent functions, and by producing: the first object part of the protected software, said first object part 1340487 1 -12- 00oO being such that during the execution of the protected software, the triggering commands with renamed orders are executed, and the second object part of the protected software containing the exploitation means also implementing the restoring means, said second object part being such that, after upload to the unit and during the execution of the protected software, the identity of the dependent Cc functions whose execution is triggered by the first execution part is 00 1 restored by means of the second execution part, and the dependent functions are executed by means of the second execution part, and during the usage phase: in the presence of the unit and each time a triggering command with renamed order, contained in a portion of the first execution part imposes it, restoring in the unit, the identity of the corresponding dependent function and executing it, so that said portion is executed correctly and that, consequently, the protected software is completely functional, and in the absence of the unit, in spite of the request by a portion of the first execution part, to trigger the execution of a dependent function in the unit, not being able to fulfill said request correctly, so that at least said portion is not executed correctly and that, consequently, the protected software is not completely functional.
According to a variant embodiment, the process according to the present disclosure comprises: during the protection phase: defining for at least one dependent function, a family of dependent functions algorithmically equivalent, but triggered by triggering commands whose renamed orders are different, and modifying the protected software: by choosing, in the source of the protected software at least one triggering command with renamed order, and by modifying at least one chosen portion of the source of the 1340487 1 -13- 00 protected software by replacing at least the renamed order of one chosen triggering command with renamed order, with another renamed order, triggering a dependent function of the same family.
According to a variant embodiment, the process according to the present disclosure comprises: during the protection phase, defining, for at least one dependent function, a 00, family of algorithmically equivalent dependent functions: 00i by concatenating a field of noise to the information defining the functional part of the dependent function to execute in the unit, S- or by using the identification field of the instruction and the expected identification fields of the operands.
According to a variant embodiment, the process according to the present disclosure comprises: Sduring the protection phase: defining: as method of renaming of the orders, a ciphering method to cipher the orders, and as restoring means, means implementing a deciphering method to decipher the renamed orders and thus restore the identity of the dependent functions to execute in the unit.
According to another preferred embodiment, the process according to the present disclosure comprises: during the protection phase: S modifying the protected software: by choosing, in the source of the protected software, at least one conditional branch carried out in at least one chosen algorithmic processing, by modifying at least one chosen portion of the source of the protected software, this modification being such that during the execution of the protected software, the functionality of at least one chosen conditional branch is executed, by means of the second execution part, in the unit, 13404871 -14- 00 and by producing: the first object part of the protected software, said first object part ;being such that during the execution of the protected software, the functionality of at least one chosen conditional branch is executed in the unit, and the second object part of the protected software, said second object part being such that, after upload to the unit and during the
OO
00 execution of the protected software, appears the second execution part by means of which the functionality of at least one chosen conditional branch is executed, and during the usage phase: in the presence of the unit and each time a portion of the first execution part imposes it, executing the functionality of at least one conditional branch in the unit, so that said portion is executed correctly and that, consequently, the protected software is completely functional, and In the absence of the unit and in spite of the request by a portion of the first execution part to execute the functionality of a conditional branch in the unit, not being able to fulfill said request correctly, so that at least said portion is not executed correctly and that consequently, the protected software is not completely functional.
According to a variant embodiment, the process according to the present disclosure comprises, during the protection phase, modifying the protected software: by choosing, in the source of the protected software, at least one series of chosen conditional branches, by modifying at least one chosen portion of the source of the protected software, this modification being such that during the execution of the protected software, the overall functionality of at least one chosen series of conditional branches is executed, by means of the second execution part, in the unit, and by producing: the first object part of the protected software, said first object part 1340487 1 00 being such that during the execution of the protected software, the functionality of at least one chosen series of conditional branches is executed in the unit, and the second object part of the protected software, said second object part being such that, after upload to the unit and during the ~execution of the protected software, appears the second execution Cc part by means of which the overall functionality of at least one 00 chosen series of conditional branches is executed.
(Ni The process according to one or more aspects of the present disclosure thus enables to protect usage ofa software by using a processing and memorizing unit which presents the characteristic of containing a part of the software being executed. It follows that any derived version of the software attempting to work without the processing and memorizing unit imposes to recreate the part of the software contained in the processing and memorizing unit during the execution, or else said derived version of the software will not be completely functional.
Various other characteristics emerge from the description made below in reference to the appended diagrams which show, as non-limiting examples, embodiments and implementations of the subject of the invention.
Figures 10 and 11 are functional blocks diagrams illustrating the various representations of a software respectively not protected and protected by the process in accordance with the invention.
Figures 20 to 22 illustrate as examples, various embodiments of an apparatus implementing the process in accordance with the invention.
Figures 30 and 31 are functional blocks diagrams making explicit the general principle of the process in accordance with the invention.
Figures 40 to 43 are diagrams illustrating the protection process according to the invention implementing the principle of protection by variable.
Figures 70 to 74 are diagrams illustrating the protection process according to the invention implementing the principle of protection by detection and coercion.
Figures 80 to 85 are diagrams illustrating the protection process according to the invention implementing the principle of protection by par renaming.
1340487 1
I
16 Figures 90 to 92 are diagrams illustrating the protection process according to the invention implementing the principle of protection by conditional branch.
Figure 100 is a diagram illustrating the different phases of implementation of the subject of the invention.
Figure 110 illustrates an embodiment of a system allowing the implementation of the construction stage of the protection phase in accordance with the invention.
Figure 120 illustrates an embodiment of a pre-customization unit used in the protection process in accordance with the invention.
Figure 130 illustrates an embodiment of a system allowing the implementation of the tools making stage of the protection phase in accordance with the invention.
Figure 140 illustrates an embodiment of a system allowing the implementation of the protection process according to the invention.
Figure 150 illustrates an embodiment of a customization unit used in the protection process in accordance with the invention.
In the rest of the description, the following definitions will be used: A data processing system 3 is a system able to execute a program.
A processing and memorizing unit is a unit able: to accept data provided by a data processing system 3, to return data to the data processing system 3, to store data at least partly in secret and to retain at least a part of said data even if the unit is switched off, and to carry out algorithmic processing on said data, part or all of the result being secret.
A unit 6 is a processing and memorizing unit implementing the process according to the invention.
A blank unit 60 is a unit which does not implement the process according to the invention, but which can receive data transforming it into a unit 6.
A pre-customized unit 66 is a blank unit 60 which has received part of data enabling it, after reception of supplementary data, to be transformed into a unit 6.
The upload of information to a blank unit 60 or a pre-customized unit 66 17 corresponds to a transfer of information to the blank unit 60 or the precustomized unit 66, and to a storage of said transferred information. The transfer can possibly include a change of the information format.
A variable, a function or data contained in the data processing system 3 will be indicated by an uppercase letter, while a variable, a function or data contained in the unit 6 will be indicated by a lowercase letter.
A "protected software", is a software which has been protected by at least one of the principles of protection implemented by the process in accordance with the invention.
0 A "vulnerable software", is a software which has not been protected by any principle of protection implemented by the process in accordance with the invention.
0 In the case where differentiation between a vulnerable software and a protected software is not important, the term "software" is used.
0 A software has various representations depending on the instant considered in its life cycle: a source representation, an object representation, a distribution, or a dynamic representation.
A source representation of a software is understood as a representation which after transformation, results in an object representation. A source representation can offer different levels, from a conceptual abstract level to a level executable directly by a data processing system or a processing and memorizing unit.
An object representation of a software corresponds to a level of representation which after transfer to a distribution and upload to a data processing system or a processing and memorizing unit, can be executed. It can be, for instance, a binary code, an interpreted code, etc.
0 A distribution is a physical or virtual support containing the object representation, said distribution having to be put at the user's disposal to enable them to use the software.
A dynamic representation corresponds to the execution of the software from its distribution.
A portion of a software corresponds to some part of the software and can, for instance correspond, to one or several consecutive or not instructions, and/or one or several consecutive or not functional blocks, and/or one or several functions, and/or one or several subprograms, and/or one or several modules. A portion of a software can also correspond to all of said software.
Figures 10 and 11 illustrate the various representations respectively of a vulnerable software 2v in the general sense, and of a protected software 2p protected according to the process in accordance with the invention.
Figure 10 illustrates various representations of a vulnerable software 2v appearing during its life cycle. The vulnerable software 2v can thus appear under any of the following representations: a source representation 2vs, an object representation 2vo, a distribution 2vd. Said distribution can have commonly the form of a physical distribution medium such as a CDROM or the form of files distributed through a network (GSM, Internet, etc.), or a dynamic representation 2ve corresponding to the execution of the vulnerable software 2v on a data processing system 3 of any known type, which classically includes, at least one processor 4.
Figure 11 illustrates various representations of a protected software 2p appearing during its life cycle. The protected software 2p can thus appear under any of the following representations: Sa source representation 2ps including a first source part intended for the data processing system 3 and a second source part intended for the unit 6, part of said source parts can commonly be contained in common files, an object representation 2po including a first object part 2pos intended for the data processing system 3 and a second object part 2pou intended for the unit 6, Sa distribution 2pd including: a first distribution part 2pds containing the first object part 2pos, said first distribution part 2pds being intended for the data processing system 3 and which can commonly have the form of a physical distribution medium such as a CDROM or the form of files distributed through a network (GSM, Internet, etc.), and a second distribution part 2pdu having the form: of at least one pre-customized unit 66 to which a part of the second object part 2pou has been uploaded and for which the user has to finish the customization by uploading supplementary data so as to obtain a unit 6, said supplementary data being obtained, for instance, by download through a network, Sor of at least one unit 6 to which the second object part 2pou has been uploaded, or a dynamic representation 2pe corresponding to the execution of the protected software 2p. Said dynamic representation 2pe includes a first execution part 2pes which is executed in the data processing system 3 and an second execution part 2peu which is executed in the unit 6.
In the case where the differentiation between the different representations of the protected software 2p is not important, the expressions first part of the protected software and second part of the protected software shall be used.
The implementation of the process according to the invention in accordance with the dynamic representation of figure 11, uses an apparatus Ip including a data processing system 3 linked up by a link 5 to a unit 6. The data processing system 3 is of any type and includes, classically, at least one processor 4. The data processing system 3 can be a computer or be part, for instance, of various machines, devices, fixed or mobile products, or vehicles in the general sense. The link 5 can be realized in any possible way, such as for instance a serial link, a USB bus, a radio link, an optical link, a network link or a direct electric connection to a circuit of data processing system 3, etc. It should be observed that the unit 6 can possibly be physically locited inside the same integrated circuit than the processor 4 of the data processing system 3. In this case, the unit 6 can be considered as a co-processor in relation to the processor 4 of the data processing system 3 and the link 5 is internal to the integrated circuit.
Figures 20 to 22 show in an illustrative and non-limiting manner, various embodiments of the apparatus Ip allowing the implementation of the protection process in accordance with the invention.
In the embodiment illustrated in figure 20, the protection apparatus Ip includes, as a data processing system 3, a computer and, as a unit 6, a chip card 7 and its interface 8 commonly called card reader. The computer 3 is linked up to the unit 6 by a link 5. During the execution of the protected software 2p, the first execution part 2pes which is executed in the computer 3 and the second execution part 2peu which is executed in the chip card 7 and its interface 8, must both be functional so that the protected software 2p is completely functional.
In the embodiment illustrated in figure 21, the protection apparatus lp equips a product 9 in the general sense, including various components 10 adapted to the function(s) assumed by such a product 9. The protection apparatus ip includes, on the one hand, a data processing system 3 embedded in the product 9 and, on the other hand, a unit 6 associated with the product 9. So that the product 9 is completely functional, the protected software 2p, must be completely functional. Thus, during the execution of the protected software 2p, the first execution part 2pes which is executed in the data processing system 3 and the second execution part 2peu which is executed in the unit 6, must both be functional. Said protected software 2p enables therefore indirectly, to protect against unauthorized usage, the product 9 or one of its functionalities. For instance, the product 9 can be an installation, a system, a machine, a toy, a piece of domestic appliances, a phone, etc.
In the embodiment illustrated in figure 22, the protection apparatus Ip includes several computers, as well as part of a communication network. The data processing system 3 is a first computer linked up by a link 5 of network type, to a unit 6 constituted by a second computer. For the implementation of the invention, the second computer 6 is used as a license server for a protected software 2p. During the execution of the protected software 2p, the first execution part 2pes which is
I
21 executed in the first computer 3 and the second execution part 2peu which is executed in the second computer 6, must both be functional so that the protected software 2p is completely functional.
Figure 30 enables to make explicit more precisely, the protection process in accordance with the invention. It should be observed that a vulnerable software 2v, is considered as being executed totally in a data processing system 3. On the other hand, in the case of the implementation of a protected software 2p, the data processing system 3 includes transfer means 12 linked up by the link 5, to transfer means 13 being part of the unit 6 enabling to establish communication between the first execution part 2pes and the second execution part 2peu of the protected software 2p.
It must be considered that the transfer means 12, 13 are of software and/or hardware nature and are capable of providing and, possibly, optimizing the data communication between the data processing system 3 and the unit 6. Said transfer means 12, 13 are adapted to enable to have at one's disposal a protected software 2p which is, preferably, independent from the type of link 5 used. Said transfer means 12, 13 are not part of the subject of the invention and are not described more precisely as they are well known by the Man of art. The first part of the protected software 2p includes commands. During the execution of the protected software 2p, the execution of said commands by the first execution part 2pes enables the communication between the first execution part 2pes and the second execution part 2peu. In the rest of the description, said commands are represented by IN, OUT or
TRIG.
As illustrated in figure 31, to allow the implementation of the second execution part 2peu of the protected software 2p, the unit 6 includes protection means 14. The protection means 14 include memorization means 15 and processing means 16.
For the sake of simplification in the rest of the description, it is chosen to consider, during the execution of the protected software 2p, the presence of the unit 6 or the absence of the unit 6. In actual fact, a unit 6 providing protection means 14 not adapted to the execution of the second execution part 2peu of the protected software 2p is also considered as missing, each time the execution of the protected software 2p is not correct. In other words: 0 a unit 6 physically present and including protection means 14 adapted to the execution of the second execution part 2peu of the protected software 2p, is always considered as present, 0 a unit 6 physically present but including protection means 14 not adapted, i.e. not allowing the correct implementation of the second execution part 2peu of the protected software 2p is considered as present, when it works correctly, and as missing when it does not work correctly, and a unit 6 physically missing is always considered as missing.
In the case where the unit 6 is constituted by a chip card 7 and its interface 8, the transfer means 13 are split into two parts, one being on the interface 8 and the other one being on the chip card 7. In this embodiment, the absence of the chip card 7 is considered as equivalent to the absence of the unit 6. In other words, in the absence of the chip card 7 and/or its interface 8, the protection means 14 are not accessible and do not enable the execution of the second execution part 2peu of the protected software 2p, so much so that the protected software 2p is not completely functional.
In accordance with the invention, the protection process aims at implementing a principle of protection, called by detection and coercion a description of which is carried out in relation to figures 70 to 74.
For the implementation of the principle of protection by detection and coercion, are defined: at least one software execution characteristic liable to be monitored at least in part in the unit 6, at least one criterion to abide by for at least one software execution characteristic, detection means 17 to implement in the unit 6 and enabling to detect that at least one software execution characteristic does not abide by at least one associated criterion, and coercion means 18 to implement in the unit 6 and enabling to inform the data processing system 3 and/or modify the execution of a software, when at least one criterion is not abided by.
For the implementation of the principle of protection by detection and coercion, are also constructed exploitation means enabling to transform a blank unit 60 into a unit 6 implementing at least the detection means 17 and the coercion means 18.
Figure 70 illustrates the means necessary to the implementation of this principle of protection by detection and coercion. The unit 6 includes the detection means 17 and the coercion means 18 belonging to the processing means 16. The coercion means 18 are informed by the detection means 17 that a criterion has not been abided by.
More precisely, the detection means 17 use information coming from the transfer means 13 and/or from the memorization means 15 and/or from the processing means 16, so as to monitor one or several software execution characteristics. For each software execution characteristic is set at least one criterion to abide by.
In the case where it is detected that at least one software execution characteristic does not abide by at least one criterion, the detection means 17 inform the coercion means 18 of it. Said coercion means 18 are adapted to modify, in the appropriate way, the state of the unit 6.
For the implementation of the principle of protection by detection and coercion, are also chosen: 0 at least one software execution characteristic to monitor, among the software execution characteristics liable to be monitored, at least one criterion to abide by for at least one chosen software execution characteristic, in the source of the vulnerable software 2vs, at least one algorithmic processing for which at least one software execution characteristic is to be monitored, Sand in the source of the vulnerable software 2vs, at least one portion containing at least one chosen algorithmic processing.
At least one chosen portion of the source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps. This modification is such that, during the execution of the protected software 2p, among others: 0 at least one portion of the first execution part 2pes, which is executed in the data processing system 3, takes into account that at least one chosen software execution characteristic is to be monitored, at least in part in the unit 6, 0 and the second execution part 2peu, which is executed in the unit 6, monitors at least in part, a chosen software execution characteristic.
During the execution of the protected software 2p, protected by this principle of protection by detection and coercion, in the presence of the unit 6: as long as all the criteria corresponding to all the monitored execution characteristics of all the modified portions of the protected software 2p are abided by, said modified portions of the protected software 2p work nominally, so that said protected software 2p works nominally, and if at least one of the criteria corresponding to a monitored execution characteristic of a portion of the protected software 2p is not abided by, the data processing system 3 is informed of it and/or the functioning of the portion of the protected software 2p is modified, so that the functioning of the protected software 2p is modified.
Naturally, in the absence of the unit 6, at least one request by a portion of the first execution part 2pes of the protected software 2p to use the unit 6 cannot be fulfilled correctly so that at least said portion is not executed correctly and that consequently the protected software 2p is not completely functional.
For the implementation of the principle of protection by detection and coercion, two types of software execution characteristics are used preferentially.
The first type of software execution characteristic corresponds to a variable of measurement of the execution of a software and the second type corresponds to a profile of usage of a software. Said two types of characteristics can be used independently or in combination.
For the implementation of the principle of protection by detection and coercion using, as execution characteristic, a variable of measurement of software execution, are defined: in the memorization means 15, the possibility to memorize at least one variable of measurement used to quantify the usage of at least one functionality of a software, 0 in the detection means 17, the possibility to monitor at least one threshold associated to each variable of measurement, 0 and actualization means enabling to update each variable of measurement depending on the usage of the functionality to which it is associated.
Are also constructed exploitation means implementing, in addition to the detection means 17 and the coercion means 18, the actualization means.
Are also chosen, in the source of the vulnerable software 2vs: 0 at least one functionality of the vulnerable software 2v whose usage is liable to be monitored using a variable of measurement, at least one variable of measurement used to quantify the usage of said functionality, at least one threshold associated to the variable of measurement corresponding to a limit of usage of said functionality, Sand at least one method of update of the variable of measurement depending on the usage of said functionality.
The source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps, this modification being such that, during the execution of the protected software 2p, the second execution 2peu: actualizes the variable of measurement depending on the usage of said functionality, and takes into account at least one threshold crossing.
In other words, during the execution of the protected software 2p, the variable of measurement is updated depending on the usage of said functionality, and when the threshold is crossed, the detection means 17 inform of it the coercion means 18 which make an adapted decision to inform the data processing system 3 and/or to modify the processings carried out by the processing means 16 enabling to modify the functioning of the portion of the protected software 2p, so that the functioning of the protected software 2p is modified.
For the implementation of a first preferred variant embodiment of the principle of protection by detection and coercion using, as characteristic, a variable of measurement, are defined: for at least one variable of measurement, several associated thresholds, and different coercion means corresponding to each of said thresholds.
Are also chosen, in the source of the vulnerable software 2vs: at least one variable of measurement used to quantify the usage of at least one functionality of the software and to which must be associated several thresholds corresponding to different limits of usage of said functionalities, and at least two thresholds associated to the variable of measurement.
The source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps, this modification being such that, during the execution of the protected software 2p, the second execution part 2peu: actualizes the variable of measurement depending on the usage of said functionality, 0 and takes into account, differently, the crossing of the various thresholds.
In other words, classically, during the execution of the protected software 2p, when the first threshold is crossed, the unit 6 informs the data processing system 3 enjoining the protected software 2p not to use said functionality anymore. If the protected software 2p carries on using said functionality, the second threshold will potentially be crossed. In the case where the second threshold is crossed, the coercion means 18 can make the chosen functionality ineffective and/or make the protected software 2p ineffective.
For the implementation of a second preferred variant embodiment of the principle of protection by detection and coercion using, as characteristic, a variable of measurement, are defined refilling means enabling to credit at least one software functionality monitored by a variable of measurement with at least one additional usage.
Are also constructed exploitation means implementing, in addition to the detection means 17, the coercion means 18 and the actualization means, the refilling means.
Is also chosen, in the source of the vulnerable software 2vs, at least one variable 27 of measurement used to limit the usage of at least one functionality of the software and which must be able to be credited with at least one additional usage.
The source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps, this modification being such that, during a phase called of refilling, at least one additional usage of at least one functionality corresponding to a chosen variable of measurement can be credited.
Is carried out, during the phase of refilling, the reactualization of at least one chosen variable of measurement and/or of at least one associated threshold, so as to allow at least one additional usage of the corresponding functionality. In other words, it is possible, during the phase of refilling, to credit additional usages of at least one functionality of the protected software 2p.
For the implementation of the principle of protection by detection and coercion using, as characteristic, a profile of software usage, is defined as criterion to abide by for said profile of usage, at least one feature of software execution.
Are also chosen, in the source of the vulnerable software 2vs: at least one profile of usage to monitor, and at least one feature of execution by which at least one chosen profile of usage must abide.
The source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps, this modification being such that, during the execution of the protected software 2p, the second execution part 2peu abides by all the chosen features of execution. In other words, the unit 6 itself monitors the way the second execution part 2peu is executed and can inform the data processing system 3 and/or modify the functioning of the protected software 2p, in the case where at least one feature of execution is not abided by.
During the execution of the protected software 2p, protected by this principle, in the presence of the unit 6: Sas long as all the features of execution of all the modified portions of the protected software 2p are abided by, said modified portions of the protected software 2p work nominally, so that said protected software 2p works nominally, 0 and if at least one feature of execution of a portion of protected software 2p is not abided by, the data processing system 3 is informed of it and/or the functioning of the portion of the protected software 2p is modified, so that the functioning of the protected software 2p is modified.
The monitoring of different features of execution can be considered, like for instance the monitoring of the presence of instructions including a marker or the monitoring of the execution chaining for at least one part of the instructions.
For the implementation of the principle of protection by detection and coercion using as feature of execution to abide by, the monitoring of the execution chaining for at least one part of the instructions, are defined: an instructions set, whose instructions are liable to be executed in the unit 6, a set of instructions commands for said instructions set, said instructions commands are liable to be executed in the data processing system 3. The execution of each of said instructions commands in the data processing system 3 triggers in the unit 6, the execution of the corresponding instruction, Sdetection means 17 enabling to detect that the chaining of the instructions does not correspond to the expected one, Sand coercion means 18 enabling to inform the data processing system 3 and/or to modify the execution of a software when the chaining of the instructions does not correspond to the expected one.
Are also constructed exploitation means enabling the unit 6 to also execute the instructions of the instructions set, the execution of said instructions being triggered by the execution in the data processing system 3 of the instructions commands.
Is also chosen, in the source of the vulnerable software 2vs, at least one algorithmic processing which must be remoted in the unit 6 and for which the chaining of at least one part of the instructions is to be monitored.
The source of the vulnerable software 2vs is then modified, so as to obtain the source of the vulnerable software 2ps, this modification being such that, during the execution of the protected software 2p: the second execution part 2peu executes at least the functionality of the chosen algorithmic processing, the chosen algorithmic processing is split into instructions, the chaining by which at least some of the instructions must abide during their execution in the unit 6 is specified, and the first execution part 2pes of the protected software 2p executes instructions commands which trigger the execution of the instructions in the unit 6.
During the execution of the protected software 2p, protected by this principle, in the presence of the unit 6: as long as the chaining of the instructions of all the modified portions of the protected software 2p, executed in the unit 6 corresponds to the expected one, said modified portions of the protected software 2p work nominally, so that said protected software 2p works nominally, and if the chaining of the instructions of a portion of the protected software 2p executed in the unit 6 does not correspond to the expected one, the data processing system 3 is informed of it and/or the functioning of the portion of protected software 2p is modified, so that the functioning of the protected software 2p is modified.
Figure 71 illustrates an example of implementation of the principle of protection by detection and coercion using, as feature of execution to abide by the monitoring of the execution chaining of a at least one part of the instructions, in the case where the expected chaining is abided by.
The first execution part 2pes of the protected software 2p, executed in the data processing system 3, executes instructions commands CIi triggering, in the unit 6 the execution of the instructions ii belonging to the instructions set. In said instructions set, at least some of the instructions each include a part defining the functionality of the instruction and a part enabling to verify the expected chaining for the execution of the instructions. In this example, the instructions commands CIi are represented by TRIG(ii) and the expected chaining for the execution of the instructions is in, i,+l and in+ 2 The execution in the unit 6, of the instruction in gives the result a and the execution of the instruction in+l gives the result b. The instruction in+2 uses as operand, the results a and b of the instructions i, and in+ 1 and its execution gives the result c.
Taking into account that said chaining of the instructions executed in the unit 6 corresponds to the expected one, it results in a normal or nominal functioning of the protected software 2p.
Figure 72 illustrates an example of implementation of the principle of protection by detection and coercion using, as feature of execution to abide by, the monitoring of the execution chaining of at least one part of the instructions, in the case where the expected chaining is not abided by.
According to this example, the expected chaining for the execution of the instructions is still in, in+l and i.+ 2 However, the execution chaining is modified by the replacement of the instruction in with the instruction i'n, so that the chaining actually executed is in+l and The execution of the instruction i' gives the result a, i.e. the same result that the execution of the instruction in. However, at the latest during the execution of the instruction in+ 2 the detection means 17 detect that the instruction i'n does not correspond to the expected instruction to generate the result a used as operand of the instruction in+ 2 The detection means 17 inform of it the coercion means 18 which modify accordingly, the functioning of the instruction in+2, so that the execution of the instruction in+ 2 gives the result c' which can be different than c. Naturally, if the execution of the instruction i' gives a result a' different from the result a of the instruction in,, it is clear that the result of the instruction in,+ 2 can also be different from c.
Inasmuch as the execution chaining of the instructions executed in the unit 6 does not correspond to the expected one, a modification of the functioning of the protected software 2p can therefore be obtained.
Figures 73 and 74 illustrates a preferred variant embodiment of the principle of protection by detection and coercion using, as feature of execution to abide by, the monitoring of the execution chaining of at least one part of the instructions.
According to this preferred variant, is defined an instructions set whose at least some instructions work with registers and use at least one operand with the intention of returning a result.
As illustrated in figure 73, are defined for at least some of the instructions working with registers, a part PF defining the functionality of the instruction and a part PE defining the expected chaining for the execution of the instructions. The part PF corresponds to the operation code known by the Man of art. The part PE defining the expected chaining, includes bits fields corresponding to: an identification field of the instruction CII, and for each operand k of the instruction, with k varying from 1 to K, and K number of operands of the instruction: a flag field CDk, indicating whether or not it is appropriate to verify the origin of the operand k, and an expected identification field CIPk of the operand, indicating the expected identity of the instruction which has generated the contents of the operand k.
As illustrated in figure 74, the instructions set includes V registers belonging to the processing means 16, each register being named R, with v varying from 1 to V.
For each register R, are defined two fields, namely: a functional field CF,, known by the Man of art and enabling to store the result of the execution of the instructions, and a generated identification field CIG, enabling to memorize the identity of the instruction which has generated the contents of the functional field CF,. Said generated identification field CIG, is automatically updated with the contents of the identification field of the instruction CII which has generated the functional field CF,. Said generated identification field CIG, is neither accessible, nor modifiable by any of the instructions and is solely used for the detection means 17.
During the execution of an instruction, the detection means 17 carry out for each operand k the following operations: the flag field CDk is read, if the flag field CDk imposes it, the expected identification field CIPk and the generated identification field CIG, corresponding to the register used by the operand k are both read, 32 the equality of the two fields CIPk and CIG, is checked, and if the equality is false, the detection means 17 consider that the execution chaining of the instructions is not abided by.
The coercion means 18 enable to modify the result of the instructions when the detection means 17 has informed them of an instructions chaining not abided by. A preferred embodiment is carried out by modifying the functional part PF of the instruction currently executed or the functional part PF of subsequent instructions.
According to another advantageous characteristic of the invention, the protection process aims at implementing a principle of protection called by ((variable a description of which is carried out in relation to figures 40 to 43.
For the implementation of the principle of protection by variable, is chosen in the source of the vulnerable software 2vs at least one variable which, during the execution of the vulnerable software 2v, partially defines its state. By state of a software, must be understood the set of pieces of information, at a given moment, necessary to the complete execution of said software, so much so that the absence of such a chosen variable prejudices the complete execution of said software. Is also chosen at least one portion of the source of the vulnerable software 2vs containing at least one chosen variable.
At least one chosen portion of the source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps. This modification is such that during the execution of the protected software 2p, at least one portion of the first execution part 2pes which is executed in the data processing system 3, takes into account that at least one chosen variable or at least one copy of chosen variable resides in the unit 6.
Figure 40 illustrates an example of execution of a vulnerable software 2v. In this example, during the execution of the vulnerable software 2v in the data processing system 3, appear: 0 at time instant tl, the assignment of the data X to the variable V1, represented by V1-- X, 0 at time instant t 2 the assignment of the value of the variable V 1 to the variable Y, represented by Y V1,
I
Sand at time instant t 3 the assignment of the value of the variable V1 to the variable Z, represented by Z V1.
Figure 41 illustrates an example of a first form of implementation of the invention for which the variable resides in the unit 6. In this example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2p, and in presence of the unit 6, appear: at time instant tl, the execution of a transfer command triggering the transfer of the data X from the data processing system 3 to the variable vl located in the memorization means 15 of the unit 6, said transfer command being represented by OUT(vi, X) and corresponding in the end to the assignment of the data X to the variable vl, at time instant t 2 the execution of a transfer command triggering the transfer of the value of the variable vl residing in the unit 6 to the data processing system 3 so as to assign it to the variable Y, said transfer command being represented by IN(vi) and corresponding in the end to the assignment of the value of the variable v, to the variable Y, and at time instant t 3 the execution of a transfer command triggering the transfer of the value of the variable vl residing in the unit 6 to the data processing system 3 so as to assign it to the variable Z, said transfer command being represented by IN(vl) and corresponding in the end to the assignment of the value of the variable vl to the variable Z.
It should be observed that during the execution of the protected software 2p, at least one variable resides in the unit 6. Thus, when a portion of the first execution part 2pes of the protected software 2p imposes it, and in the presence of the unit 6, the value of said variable residing in the unit 6 is transferred to the data processing system 3 to be used by the first execution part 2pes of the protected software 2p, so much so that said portion is executed correctly and that, consequently, the protected software 2p is completely functional.
Figure 42 illustrates an example of a second form of implementation of the invention for which a copy of the variable resides in the unit 6. In this example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2p, and in the presence of the unit 6, appear: at time instant tl, the assignment of the data X to the variable V 1 located in the data processing system 3, as well as the execution of a transfer command triggering the transfer of the data X from the data processing system 3 to the variable vl located in the memorization means 15 of the unit 6, said transfer command being represented by OUT(vi, X), at time instant t 2 the assignment of the value of the variable V1 to the variable Y, and at time instant t 3 the execution of a transfer command triggering the transfer of the value of the variable v, residing in the unit 6 to the data processing system 3 so as to affect it to the variable Z, said transfer command being represented by IN(vi).
It should be observed that during the execution of the protected software 2p, at least one copy of a variable resides in the unit 6. Thus, when a portion of the first execution part 2pes of the protected software 2p, imposes it, and in the presence of the unit 6, the value of said copy of variable residing in the unit 6 is transferred to the data processing system 3 to be used by the first execution part 2pes of the protected software 2p, so much so that said portion is executed correctly and that, consequently, the protected software 2p is completely functional.
Figure 43 illustrates an example of attempt of execution of the protected software 2p, when the unit 6 is missing. In this example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2p: Sat time instant tl, the execution of the transfer command OUT(vl, X) cannot trigger the transfer of the data X to the variable vi, taking into account the absence of the unit 6, at time instant tz, the execution of the transfer command IN(v 1 cannot trigger the transfer of the value of the variable vl to the data processing system 3, taking into account the absence of the unit 6, and at time instant t 3 the execution of the transfer command IN(vi) cannot trigger the transfer of the value of the variable V, to the data processing system 3, taking into account the absence of the unit 6.
It therefore appears that in the absence of the unit 6, at least one request by a portion of the first execution part 2pes to use a variable or a copy of variable residing in the unit 6, cannot be fulfilled correctly, so that at least said portion is not executed correctly and that, consequently, the protected software 2p is not completely functional.
It should be observed that the data transfers between the data processing system 3 and the unit 6 illustrated in the previous examples use only simple assignments but that the Man of art will know how to combine them with other operations to obtain complex operations such as for instance OUT(vl, 2 X 3) or Z t- (5 vl v2).
According to another advantageous characteristic of the invention, the protection process aims at implementing a principle of protection, called by «(renaming a description of which is carried out in relation to figures 80 to For the implementation of the principle of protection by renaming, are defined: a set of dependent functions, whose dependent functions are liable to be executed, by means of the second execution part 2peu, in the unit 6, and possibly to transfer data between the data processing system 3 and the unit 6, said set of dependent functions can be finite or infinite, a set of triggering commands for said dependent functions, said triggering commands being liable to be executed in the data processing system 3 and to trigger in the unit 6, the execution of corresponding dependent functions, for each triggering command, an order corresponding at least in part to the information transmitted by the first execution part 2pes, to the second execution part 2peu, so as to trigger the execution of the corresponding dependent function, said order having the form of at least one argument of the triggering command, Sa method of renaming of the orders designed to be used during the modification of the vulnerable software 2v, such a method enabling to rename the orders so as to obtain triggering commands with renamed orders enabling to conceal the identity of the corresponding dependent functions, 0 and restoring means 20 designed to be used in the unit 6 during the usage phase and enabling to restore the initial order, from the renamed order, so as
I
to restore the dependent function to execute.
For the implementation of the principle of protection by renaming, are also constructed exploitation means enabling to transform a blank unit 60 into a unit 6 implementing at least the restoring means For the implementation of the principle of protection by renaming, are also chosen, in the source of the vulnerable software 2vs: at least one algorithmic processing using at least one operand and returning at least one result, and at least one portion of the source of the vulnerable software 2vs, containing at least one chosen algorithmic processing.
The source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps. This modification is such that, among others: 0 during the execution of the protected software 2p, at least one portion of the first execution part 2pes, which is executed in the data processing system 3, takes into account that the functionality of at least one chosen algorithmic processing is executed in the unit 6, 0 during the execution of the protected software 2p, the second execution part 2peu, which is executed in the unit 6, executes at least the functionality of at least one chosen algorithmic processing, 0 each chosen algorithmic processing is split so that during the execution of the protected software 2 p, each chosen algorithmic processing is executed, by means of the second execution part 2peu, using dependent functions.
Preferably, each chosen algorithmic processing is split into dependent functions fd. (with n varying from 1 to namely: possibly one or several dependent functions enabling the placing of one or several operands at the unit 6's disposal, dependent functions, some of which use the operand(s) and execute in combination the functionality of the chosen algorithmic processing, using said operand(s), and possibly, one or several dependent functions enabling the placing by the unit 6, at the data processing system 3's disposal of the result of
I
the chosen algorithmic processing, during the execution of the protected software 2p, the second execution part 2peu executes the dependent functions fd, during the execution of the protected software 2p, the dependent functions are triggered by triggering commands with renamed orders, and a sequence of the triggering commands is chosen among the set of sequences allowing the execution of the protected software 2p.
The first execution part 2pes of the protected software 2p, executed in the data processing system 3, executes triggering commands with renamed orders transferring renamed orders to the unit 6, and triggering in the unit 6 the restoring by means of the restoring means 20, of the orders, and then the execution by means of the second execution part 2peu, of each of the previously defined dependent functions fdn.
In other words, the principle of protection by renaming is carried out by renaming the orders of the triggering commands, so as to obtain triggering commands with renamed orders whose execution in the data processing system 3, triggers in the unit 6, the execution of the dependent functions which would have been triggered by the triggering commands with not-renamed orders, without however the examination of the protected software 2p enabling to determine the identity of the executed dependent functions.
Figure 80 illustrates an example of execution of a vulnerable software 2v. In this example, appears during the execution of the vulnerable software 2v in the data processing system 3, at a certain time instant, the calculation of Z F(X, Y) corresponding to the assignment to a variable Z of the result of an algorithmic processing represented by a function F and using the operands X and Y.
Figures 81 and 82 illustrate an example of implementation of the invention.
Figure 81 illustrates the partial implementation of the invention. In this example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2p and in the presence of the unit 6, appear: Sat time instants tl, t 2 the execution of the triggering commands CD 1
CD
2 triggering in the unit 6, the execution by means of the second execution part 2peu, of the corresponding dependent functions fdl, fd 2 which provide the transfer of data X, Y from the data processing system 3 to the memorization zones respectively x, y located in the memorization means 15 of the unit 6, said triggering commands CD 1
CD
2 being represented respectively by OUT(x, OUT(y, Y), at time instants t 3 to tN-1, the execution of the triggering commands CD 3 to CDN.1, triggering in the unit 6, the execution by means of the second execution part 2peu, of the corresponding dependent functions fd 3 to fdN-1, said triggering commands CD 3 to CDN-1 being represented respectively, by TRIG(fd 3 to TRIG(fdN-1). The series of dependent functions fd 3 to fdN-1 executed in combination is algorithmically equivalent to the function F.
More precisely, the execution of said triggering commands leads to the execution in the unit 6, of the dependent functions fd 3 to fdN-1 which use the contents of the memorization zones x, y and return the result in a memorization zone z of the unit 6, and at time instant tN, the execution of a triggering command CDN triggering in the unit 6, the execution by means of the second execution part 2peu, of the dependent function fdN providing the transfer of the result of the algorithmic processing contained in the memorization zone z of the unit 6 to the data processing system 3, so as to assign it to the variable Z, said command being represented by IN(z).
In this example, to completely implement the invention, are chosen as orders, the first argument of the triggering commands OUT and the argument of the triggering commands TRIG and IN. The orders chosen in this way are renamed using the method of renaming of the orders. In this manner, the orders of the triggering commands CD 1 to CDN i.e. x, y, fd 3 fdN-1, z are renamed so as to obtain respectively R(fd 3 R(fdN-l), R(z).
Figure 82 illustrates the complete implementation of the invention. In this example, during the execution in the data processing system 3, of the first execution part 2pes of the protected software 2p, and in the presence of the unit 6, appear: at time instants ti, t 2 the execution of the triggering commands with renamed orders CDCRi, CDCR 2 transferring to the unit 6, the renamed orders R(y) as well as the data X, Y triggering in the unit 6 the restoring by means of the restoring means 20, of the renamed orders to restore the orders i.e. the identity of the memorization zones x, y, and then the execution by means of the second execution part 2peu, of the corresponding dependent functions fdl, fd 2 which provide the transfer of the data X, Y from the data processing system 3 to the memorization zones respectively x, y located in the memorization means 15 of the unit 6, said triggering commands with renamed orders CDCRi, CDCR 2 being represented respectively by OUT OUT Y), at time instants t 3 to tN-1, the execution of the triggering commands with renamed orders CDCR 3 to CDCRNI, transferring to the unit 6, the renamed orders R(fd 3 to R(fdN-l), triggering in the unit 6 the restoring by means of the restoring means 20, of the orders, i.e. fd 3 to fdN-1, and then the execution by means of the second execution part 2peu, of the dependent functions fd 3 to fdN-1, said triggering commands with renamed orders
CDCR
3 to CDCRN.1 being represented respectively by TRIG (R(fd 3 to TRIG (R(fdN-1)), and at time instant tN, the execution of the triggering command with renamed order CDCRN transferring to the unit 6, the renamed order R(z) triggering in the unit 6 the restoring by means of restoring means 20, of the order i.e. the identity of the memorization zone z, and then the execution by means of the second execution part 2peu, of the dependent function fdN providing the transfer of the result of the algorithmic processing contained in the memorization zone z of the unit 6 to the data processing system 3, so as to assign it to the variable Z, said triggering command with renamed order CDCRN being represented by IN In the illustrated example, the triggering commands with renamed orders 1 to N are executed successively. It should be observed that two improvements can be effected: The first improvement concerns the case where several algorithmic processings are remoted to the unit 6 and at least the result of one algorithmic processing is used by another algorithmic processing. In this case, some triggering commands with renamed orders used for the transfer, can possibly be removed.
The second improvement aims at opting for a pertinent sequence of the triggering commands with renamed orders among the set of sequences allowing the execution of the protected software 2p. In this respect, it is preferable to choose a sequence of the triggering commands with renamed orders which dissociate temporally the execution of the dependent functions, by intercalating, between them portions of code executed in the data processing system 3 and including or not triggering commands with renamed orders used of the determination of other data. Figures 83 and 84 illustrate the principle of such an embodiment.
Figure 83 shows an example of execution of a vulnerable software 2v. In this example, appears, during the execution of the vulnerable software 2v, in the data processing system 3, the execution of two algorithmic processings leading to the determination of Z and such as Z F Y) and Z' F' Figure 84 illustrates an example of implementation of the process according to the invention for which the two algorithmic proccesings chosen in figure 83 are remoted to the unit 6. According to such an example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2 p and in the presence of the unit 6, appear, as explained above, the execution of the triggering commands with renamed orders CDCRi to CDCRN corresponding to the determination of Z and the execution of the triggering commands with renamed orders CDCR'I to CDCR'M corresponding to the determination of As illustrated, the triggering commands with renamed orders CDCRI to CDCRN are not executed consecutively, inasmuch as the triggering commands with renamed orders CDCR'I to CDCR'M as well as other portions of code are intercalated. In the example, the following sequence is thus carried out: CDCR 1 portion of intercalated code,
CDCR'
1
CDCR
2 portion of intercalated code, CDCR' 2
CDCR'
3 portion of intercalated code, CDCR' 4
CDCR
3 CDCR4,..., CDCRN, CDCR'M.
It should be observed that, during the execution of a portion of the first execution part 2pes of the protected software 2p, the triggering commands with renamed orders executed in the data processing system 3, trigger in the unit 6 the restoring of the identity of the corresponding dependent functions and then their execution. Thus, it appears that in the presence of the unit 6, said portion is executed correctly and that, consequently, the protected software 2p is completely functional.
Figure 85 illustrates an example of an attempt of execution of the protected software 2p, when the unit 6 is missing. In this example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2p, at every time instant, the execution of a triggering command with renamed order can trigger neither the restoring of the order nor the execution of the corresponding dependent function, because of the absence of the unit 6. The value to assign to the variable Z cannot therefore be determined correctly.
It therefore appears, that in the absence of the unit 6, at least one request by a portion of the first execution part 2pes of the protected software 2p, to trigger the restoring of an order and the execution of a dependent function in the unit 6 cannot be fulfilled correctly, so that at least said portion is not executed correctly and that, consequently, the protected software 2p is not completely functional.
Thanks to this principle of protection by renaming, the examination in the protected software 2p of the triggering commands with renamed orders does not enable to determine the identity of the dependent functions which have to be executed in the unit 6. It should be observed that the renaming of the orders is carried out during the modification of the vulnerable 2v to a protected software 2p.
According to a variant of the principle of protection by renaming, is defined for at least one dependent function, a family of dependent functions algorithmically equivalent but triggered by different triggering commands with renamed orders.
According to this variant, for at least one algorithmic processing using dependent functions, said algorithmic processing is split into dependent functions which for at least one of them is replaced with a dependent function of the same family instead of keeping several occurrences of the same dependent function. To this end, triggering commands with renamed orders are modified to take into account the replacement of dependent functions with dependent functions of the same family. In other words,
I
42 two dependent functions of the same family have different orders and consequently different triggering commands with renamed orders and, it is not possible, by examining the protected software 2p, to discover that the dependent functions called are algorithmically equivalent.
According to a first preferred embodiment of the variant of the principle of protection by renaming, is defined for at least one dependent function, a family of algorithmically equivalent dependent functions, by concatenating a noise field to the information defining the functional part of the dependent function to execute in the unit 6.
According to a second preferred embodiment of the variant of the principle of protection by renaming, is defined for at least one dependent function, a family of algorithmically equivalent dependent functions by using identification fields.
According to a preferred variant embodiment of the principle of protection by renaming, is defined as method of renaming of the orders a ciphering method enabling to cipher the orders to transform them into renamed orders. Remember that the renaming of the orders is carried out during the phase of protection P. For this preferred variant, the restoring means 20 are means implementing a deciphering method enabling to decipher the renamed orders and thus to restore the identity of the dependent functions to execute in the unit 6. Said restoring means are implemented in the unit 6 and can be of software or hardware nature. Said restoring means 20 are appealed to during the usage phase U each time a triggering command with renamed order is executed in the data processing system 3 with the intention of triggering in the unit 6, the execution of a dependent function.
According to another advantageous characteristic of the invention, the protection process aims at implementing a principle of protection called by conditional branch a description of which is carried out in relation to figures 90 to 92.
For the implementation of the principle of protection by conditional branch, is chosen in the source of the vulnerable software 2vs, at least one conditional branch BC. Is also chosen at least one portion of the source of the vulnerable software 2vs containing at least one chosen conditional branch BC.
At least one chosen portion of the source of the vulnerable software 2vs is then modified, so as to obtain the source of the protected software 2ps. This modification is such that, during the execution of the protected software 2p, among others: Sat least one portion of the first execution part 2pes, which is executed in the data processing system 3, takes into account that the functionality of at least one chosen conditional branch BC is executed in the unit 6, 0 and the second execution part 2peu, which is executed in the unit 6, executes at least the functionality of at least one chosen conditional branch BC and puts at the data processing system 3's disposal, a piece of information enabling the first execution part 2pes, to carry on its execution at the chosen spot.
The first execution part 2pes of the protected software 2p, executed in the data processing system 3, executes conditional branches commands, triggering in the unit 6, the execution by means of the second execution part 2peu, of remoted conditional branches bc whose functionality is equivalent to the functionality of the chosen conditional branches BC.
Figure 90 illustrates an example of execution of a vulnerable software 2v. In this example, appears, during the execution of the vulnerable software 2v in the data processing system 3 at a certain time instant, a conditional branch BC indicating to the vulnerable software 2v the spot where to carry on its execution, i.e. one of the three possible spots B 1
B
2 or B 3 It must be understood that the conditional branch BC takes the decision to carry on the execution of the software at spot B 1
B
2 or B 3 Figure 91 illustrates an example of implementation of the invention for which the conditional branch chosen to be remoted to the unit 6, corresponds to the conditional branch BC. In this example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2p and in the presence of the unit 6, appear: at time instant tl, the execution of the conditional branch command CBC 1 triggering in the unit 6, the execution by means of the second execution part 2peu, of the remoted conditional branch bc algorithmically equivalent to the conditional branch BC, said conditional branch command CBC1 being represented by TRIG(bc), 44 Sand at time instant t 2 the transfer from the unit 6 to the data processing system 3, of the information enabling the first execution part 2pes, to carry on its execution at the chosen spot, i.e. the spot B 1
B
2 or B 3 It should be observed that during the execution of a portion of the first execution part 2pes of the protected software 2p, the conditional branches commands executed in the data processing system 3 trigger the execution of the corresponding remoted conditional branches in the unit 6. Thus, it appears, that in the presence of the unit 6, said portion is executed correctly and that, consequently, the protected software 2p is completely functional.
Figure 92 illustrates an example of an attempt of execution of the protected software 2p, when the unit 6 is missing. In this example, during the execution in the data processing system 3 of the first execution part 2pes of the protected software 2p: at time instant t 1 the execution of the conditional branch command CBC 1 cannot trigger the execution of the remoted conditional branch be, taking into account the absence of the unit 6, and at time instant t 2 the transfer of the piece of information enabling the first execution part 2pes to carry on at the chosen spot fails taking into account the absence of the unit 6.
It therefore appears that in the absence of the unit 6, at least one request by a portion of the first execution part 2pes to trigger the execution of a remoted conditional branch in the unit 6, cannot be fulfilled correctly, so that at least said portion is not executed correctly and that, consequently, the protected software 2p is not completely functional.
In the previous description in relation to figures 90 to 92, the subject of the invention aims at remoting in the unit 6, a conditional branch. Naturally, a preferred embodiment of the invention can be carried out by remoting in the unit 6, a series of conditional branches whose overall functionality is equivalent to all the functionalities of the conditional branches which have been remoted. The execution of the overall functionality of said series of remoted conditional branches leads to the placing at the data processing system 3's disposal of a piece of information enabling the first execution part 2pes of the protected software 2p to carry on its execution at the chosen spot.
In the previous description in relation to figures 40 to 92, four different principles of software protection have been made explicit generally speaking independently of one another. The protection process in accordance with the invention, is implemented by using the principle of protection by detection and coercion, possibly combined with one or several other principles of protection. In the case where the principle of protection by detection and coercion is complemented by the implementation of at least another principle of protection, the principle of protection by detection and coercion is advantageously complemented by the principle of protection by variable and/or the principle of protection by renaming and/or the principle of protection by conditional branch.
And when the principle of protection by renaming is also implemented, it can be complemented in its turn by the principle of protection by conditional branch.
According to the preferred variant embodiment, the principle of protection by detection and coercion is complemented by the principle of protection by variable and by the principle of protection by renaming, complemented by the principle of protection by conditional branch.
In the case where a principle of protection is applied, in complement to the principle of protection by detection and coercion, its previously carried out description must include, to take into account its combined implementation, the following modifications: the notion of vulnerable software must be understood as software vulnerable towards the principle of protection being described. Thus, in the case where a principle of protection has already been applied to the vulnerable software, the expression "vulnerable software" must be interpreted by the reader as the expression "software protected by the principle(s) of protection already applied"; the notion of protected software must be understood as software protected towards the principle of protection being described. Thus, in the case where a principle of protection has already been applied, the expression "protected software" must be interpreted by the reader as the expression "new version of the protected software"; Sand the choice(s) made for the implementation of the principle of protection being described must take into account the choice(s) made for the implementation of the principle(s) of protection already applied.
The rest of the description enables to have a better understanding of the implementation of the protection process in accordance with the invention. This protection process according to the invention is composed, as shown more precisely in figure 100: Sfirst, of a protection phase P during which a vulnerable software 2v is modified to become a protected software 2p, Sthen, of a usage phase U during which the protected software 2p is used.
During this usage phase U: in the presence of the unit 6 and each time a portion of the first execution part 2pes executed in the data processing system 3 imposes it, an imposed functionality is executed in the unit 6, so that said portion is executed correctly and that, consequently, the protected software 2p is completely functional, in the absence of the unit 6 and in spite of the request by a portion of the first execution part 2pes to execute a functionality in the unit 6, said request cannot be fulfilled correctly, so that at least said portion is not executed correctly and that consequently, the protected software 2p is not completely functional, Sand possibly of a phase of refilling R during which is credited at least one additional usage of a functionality protected by the implementation of the second preferred variant embodiment of the principle of protection by detection and coercion using as characteristic, a variable of measurement.
The protection phase P can be split into two protection sub-phases P 1 and P 2 The first one, called prior protection sub-phase P 1 takes place independently of the vulnerable software 2v to protect. The second one, called subsequent protection subphase P 2 is dependent of the vulnerable software 2v to protect. It should be observed that the prior protection sub-phase P 1 and the subsequent protection sub-phase P 2 can 47 be carried out advantageously by two different persons or two different teams. For instance, the prior protection sub-phase P 1 can be carried out by a person or a company providing the development of software protection systems, while the subsequent protection sub-phase P 2 can be carried out by a person or a company providing the development of software requiring to be protected. Naturally, it is clear that the prior protection sub-phase P 1 and the subsequent protection sub-phase P 2 can also be carried out by the same person or team.
The prior protection sub-phase P 1 is composed of several stages Snil, Sli for each of which various tasks or jobs are to be carried out.
The first stage of this prior protection sub-phase P 1 is called "definitions stage S11". During this definitions stage Sn: are chosen: the type of the unit 6. As an illustrative example, can be chosen as unit 6, a chip card reader 8 and the chip card 7 associated to the reader, and the transfer means 12, 13 designed to be implemented respectively in the data processing system 3 and in the unit 6, during the usage phase U and capable of providing the transfer of data between the data processing system 3 and the unit 6, are defined: at least one software execution characteristic, liable to be monitored at least in part in a unit 6, at least one criterion to abide by for at least one software execution characteristic, detection means 17 to implement in a unit 6 and enabling to detect that at least one software execution characteristic does not abide by at least one associated criterion, and coercion means 18 to implement in a unit 6 and enabling to inform the data processing system 3 and/or modify the execution of a software when at least one criterion is not abided by, and in the case where the protection process according to the invention implements the principle of protection by detection and coercion using as characteristic a variable of measurement of the software execution, are also defined: as software execution characteristic liable to be monitored, a variable of measurement of the usage of a functionality of a software, as criterion to abide by, at least one threshold associated to each variable of measurement, and actualization means enabling to update at least one variable of measurement, and in the case where the protection process according to the invention also implements a first preferred variant embodiment of the principle of protection by detection and coercion using as characteristic a variable of measurement of the software execution, are also defined: for at least one variable of measurement, several associated thresholds, and different coercion means corresponding to each of said thresholds, and in the case where the protection process according to the invention implements a second preferred variant embodiment of the principle of protection by detection and coercion using as characteristic a variable of measurement of the software execution, are also defined refilling means enabling to add at least one additional usage to at least one software functionality monitored by a variable of measurement, and in the case where the protection process according to the invention implements the principle of protection by detection and coercion using as characteristic a profile of software usage, are also defined: as software execution characteristic liable to be monitored, a profile of software usage, and as criterion to abide by, at least one feature of software execution, and in the case where the protection process according to the invention implements the principle of protection by detection and coercion using as feature of execution to abide by, the monitoring of the execution chaining, are also defined: an instructions set whose instructions are liable to be executed in the unit 6, a set of instructions commands for said instructions set, said instructions commands being liable to be executed in the data processing system 3 and to trigger in the unit 6 the execution of the instructions, as profile of usage, the chaining of the instructions, as feature of execution, an expected chaining for the execution of the instructions, as detection means 17, means enabling to detect that the chaining of the instructions does not correspond to the expected one, and as coercion means 18, means enabling to inform the data processing system 3 and/or to modify the functioning of the portion of protected software 2p when the chaining of the instructions does not correspond to the expected one, and in the case where the protection process according to the invention implements a preferred variant embodiment of the principle of protection by detection and coercion using as feature of execution to abide by, the monitoring of the execution chaining, are also defined: as instructions set, an instructions set whose at least some instructions work with registers and use at least one operand with the intention of returning a result, for at least some of the instructions working with registers: a part PF defining the functionality of the instruction, and a part defining the expected chaining for the execution of the instructions and including bits fields corresponding to: O an identification field of the instruction CII, O and for each operand of the instruction: Sa flag field CDk, and an expected identification field CIPk of the operand, for each register belonging to the exploitation means and used by the instructions set, a generated identification field CIG, in which is automatically memorized the identification of the last instruction which has returned its result in said register, as detection means 17, means enabling, during the execution of an instruction, for each operand, when the flag field CDk imposes it, to check the equality of the generated identification field CIG, corresponding to the register used by said operand, and the expected identification field CIPk of the origin of said operand, and as coercion means 18, means enabling to modify the result of the instructions, if at least one of the checked equalities is false.
and in the case where the protection process according to the invention implements the principle of protection by renaming, are also defined: as a triggering command, an instruction command, as a dependent function, an instruction, as an order, at least one argument for a triggering command, corresponding at least in part to the information transmitted by the data processing system 3 to the unit 6, so as to trigger the execution of the corresponding dependent function, a method of renaming of the orders enabling to rename the orders so as to obtain triggering commands with renamed orders, and restoring means 20 designed to be used in the unit 6 during the usage phase U, and enabling to restore the dependent function to execute, from the renamed order, and in the case where the protection process according to the invention implements a variant of the principle of protection by renaming, is also defined for at least one dependent function, a family of dependent functions algorithmically equivalent, but triggered by triggering commands whose renamed orders are different, Sand in the case where the protection process according to the invention implements one of the preferred embodiments of the variant of the principle of protection by renaming, are also defined for at least one dependent function, a family of algorithmically equivalent dependent functions: by concatenating a field of noise to the information defining the functional part of the dependent function to execute in the unit 6, or by using the identification field of the instruction CII and the expected identification fields CIPk of the operands.
and in the case where the protection process according to the invention implements a preferred variant of the principle of protection by renaming, are also defined: as method of renaming of the orders, a ciphering method to cipher the orders, and as restoring means 20, means implementing a deciphering method to decipher the renamed orders and thus restore the identity of the dependent functions to execute in the unit 6.
During the prior protection sub-phase P 1 the definitions stage S 11 is followed by a stage called "construction stage S 12 During such a stage S 12 are constructed the transfer means 12, 13 and the exploitation means corresponding to the definitions of the definitions stage Sil.
During this construction stage S12, are therefore carried out: the construction of the transfer means 12, 13 enabling, during the usage phase U, the transfer of data between the data processing system 3 and the unit 6, the construction: of the exploitation means enabling the unit 6, during the usage phase U to also implement the detection means 17 and the coercion means 18, and possibly of the exploitation means enabling the unit 6, during the usage phase U to also implement the actualization means, and possibly of the exploitation means enabling the unit 6, during the usage phase U to also implement the refilling means, and possibly of the exploitation means also enabling the unit 6, during the usage phase U to execute the instructions of the instructions set, 0 and when the principle of protection by renaming is also implemented, the construction of the exploitation means enabling the unit 6, during the usage phase U to also implement the restoring means.
The construction of the exploitation means is carried out classically, through a program development unit and taking into account the definitions intervened in the definitions stages Sil. Such a unit is described in the rest of the description in figure 110.
During the prior protection sub-phase P 1 the construction stage S12 can be followed by a stage called "pre-customization stage S 13 During this precustomization stage S13, at least a part of the transfer means 13 and/or the exploitation means are uploaded to at least one blank unit 60, with the intention of obtaining at least one pre-customized unit 66. It should be observed that part of the exploitation means, once transferred to a pre-customized unit 66, is no longer directly accessible outside said pre-customized unit 66. The transfer of the exploitation means to a blank unit 60 can be carried out through an adapted pre-customization unit, which is described in the rest of the description in figure 120. In the case of a precustomized unit 66, constituted by a chip card 7 and its reader 8, the precustomization concerns only the chip card 7.
During the prior protection sub-phase P 1 after the definitions stage S 11 and, possibly after the construction stage S12, a stage called "tools making stage S 14 can take place. During this tools making stage S14 are made tools enabling to help generate protected software or automate the protection of software. Such tools enable: Sto help choose or to choose automatically in the vulnerable software 2v to protect: the execution characteristic(s) to monitor and, possibly, the algorithmic processing(s) liable to be split into instructions remotable in the unit 6, the portion(s) liable to be modified, and when the principle of protection by variable is also implemented, the variable(s) liable to be remoted in the unit 6, and when the principle of protection by renaming is also implemented, the algorithmic processing(s) liable to be split into dependent functions remotable in the unit 6 and for which the orders of the triggering commands can be renamed, and when the principle of protection by conditional branch is also implemented, the conditional branch(es) whose functionality is liable to be remoted in the unit 6, and, possibly, to help generate protected software or to automate the protection of software.
These different tools can be carried out independently or in combination and each tool can have various forms, such as for instance pre-processor, assembler, compiler, etc.
The prior protection sub-phase P 1 is followed by a subsequent protection subphase P 2 which depends on the vulnerable software 2v to protect. This subsequent protection sub-phase P 2 is composed of several stages as well. The first stage corresponding to the implementation of the principle of protection by detection and coercion is called "creation stage S 21 During this creation stage S 21 zl, the choices made during the definition stage S11 are used. With the aid of said choices and, possibly of tools constructed during the tools making stage S 14 the protected software 2p is created: by choosing at least one software execution characteristic to monitor, among the software execution characteristics liable to be monitored, 0 by choosing at least one criterion to abide by for at least one chosen software execution characteristic, by choosing, at least one algorithmic processing which, during the execution of the vulnerable software 2v, uses at least one operand and enables to obtain at least one result, and for which at least one chosen software execution characteristic, is to be monitored, by choosing at least one portion of the source of the vulnerable software 2vs containing, at least one chosen algorithmic processing, by producing the source of the protected software 2ps from the source of the vulnerable software 2vs, by modifying at least one chosen portion of the source of the vulnerable software 2vs to obtain at least one modified portion of the source of the protected software 2ps, this modification being such that: during the execution of the protected software 2p a first execution part 2pes is executed in the data processing system 3 and a second execution part 2peu is executed in a unit 6, obtained from the blank unit 60 after upload of information, the second execution part 2peu executes at least the functionality of at least one chosen algorithmic processing, and during the execution of the protected software 2p, at least one chosen execution characteristic is monitored by means of the second execution part 2peu and the fact that a criterion is not abided by leads to a modification of the execution of the protected software 2p, Sand by producing: a first object part 2pos of the protected software 2p, from the source of the protected software 2ps, said first object part 2pos being such that during the execution of the protected software 2p, appears a first execution part 2pes which is executed in the data processing system 3 and whose at least a portion takes into account that at least one chosen software execution characteristic is monitored, and a second object part 2pou of the protected software 2p, containing the exploitation means implementing the detection means 17 and the coercion means 18, said second object part 2pou being such that, after upload to the blank unit 60 and during the execution of the protected software 2p, appears the second execution part 2peu by means of which at least one chosen software execution characteristic is monitored and by means of which the fact that a criterion is not abided by leads to a modification of the execution of the protected software 2 p.
Naturally, the principle of protection by detection and coercion according to the invention can be applied directly during the development of a new software without requiring the prior realization of a vulnerable software 2v. In this way, a protected software 2p is obtained directly.
For the implementation of the principle of protection by detection and coercion using as characteristic a variable of measurement of the software execution, the protected software 2p is modified: by choosing as software execution characteristic to monitor, at least one variable of measurement of the usage of at least one functionality of a software, by choosing: at least one functionality of the protected software 2p whose usage is liable to be monitored using a variable of measurement, at least one variable of measurement used to quantify the usage of said functionality, at least one threshold associated to a chosen variable of measurement corresponding to a limit of usage of said functionality, and at least one method of update of a chosen variable of measurement depending on the usage of said functionality, and by modifying at least one chosen portion of the source of the protected software 2ps, this modification being such that, during the execution of the protected software 2p, the variable of measurement is actualized by means of the second execution part 2peu depending on the usage of said functionality, and at least one threshold crossing is taken into account.
For the implementation of a first preferred variant embodiment of the principle of protection by detection and coercion using, as characteristic, a variable of measurement, the protected software 2p is modified: by choosing in the source of the protected software 2ps, at least one chosen variable of measurement to which must be associated several thresholds corresponding to different limits of usage of the functionality, by choosing at least two thresholds associated to the chosen variable of measurement, and by modifying at least one chosen portion of the source of the protected software 2ps, this modification being such that, during the execution of the protected software 2p, the crossings of the various thresholds are taken into 56 account differently, by means of the second execution part 2peu.
For the implementation of a second preferred variant embodiment of the principle of protection by detection and coercion using as characteristic, a variable of measurement, the protected software 2p is modified: 0 by choosing in the source of the protected software 2ps, at least one chosen variable of measurement enabling to limit the usage of a functionality and which must be able to be credited with at least one additional usage, and by modifying at least one chosen portion, this modification being such that during a phase called of refilling, at least one additional usage of at least one functionality corresponding to a chosen variable of measurement can be credited.
For the implementation of the principle of protection by detection and coercion using as characteristic, a profile of software usage, the protected software 2p is modified: by choosing as software execution characteristic to monitor at least one profile of software usage, by choosing at least one feature of execution by which at least one chosen profile of usage must abide, and by modifying at least one chosen portion of the source of the protected software 2ps, this modification being such that, during the execution of the protected software 2p, the second execution part 2peu abides by all the chosen features of execution.
For the implementation of the principle of protection by detection and coercion using as feature of execution to abide by, the monitoring of the execution chaining, the protected software 2p is modified: Sby modifying at least one chosen portion of the source of the protected software 2ps, this modification being such that: at least one chosen algorithmic processing is split so that during the execution of the protected software 2p, said algorithmic processing is executed by means of the second execution part 2peu, using instructions,
I
for at least one chosen algorithmic processing, instructions commands are integrated to the source of the protected software 2ps, so that during the execution of the protected software 2p, each instruction command is executed by the first execution part 2pes and triggers in the unit 6, the execution by means of the second execution part 2peu, of an instruction, a sequence of the instructions commands is chosen among the set of sequences allowing the execution of the protected software 2p, and the chaining by which must abide at least some of the instructions during their execution in the unit 6 is specified.
During the subsequent protection sub-phase P 2 and when at least another principle of protection is applied in addition to the principle of protection by detection and coercion, a "modification stage S22" takes place. During this modification stage S22, are used the definitions intervened in the definitions stage Sil.
Using said definitions and possibly tools constructed during the tools making stage S14, the protected software 2p is modified to allow the implementation of the principles of protection according to one of the arrangements herebefore defined.
When the principle of protection by variable is implemented, the protected software 2p is modified: by choosing at least one variable used in at least one chosen algorithmic processing, which during the execution of the protected software 2p, partially defines the state of the protected software 2p, by modifying at least one chosen portion of the source of the protected software 2ps, this modification being such that during the execution of the protected software 2p, at least one chosen variable or at least one copy of chosen variable resides in the unit 6, Sand by producing: the first object part 2pos of the protected software 2p, said first object part 2pos being such that during the execution of the protected software 2p, at least one portion of the first execution part 2pes takes also into account that at least one variable or at least one copy of variable resides in the unit 6, and the second object part 2pou of the protected software 2p, said second object part 2pou being such that, after upload to the unit 6 and during the execution of the protected software 2p, appears the second execution part 2peu by means of which at least one chosen variable, or at least one copy of chosen variable resides too in the unit 6.
When the principle of protection by renaming is implemented, the protected software 2p is modified: by choosing in the source of the protected software 2ps, triggering commands, by modifying at least one chosen portion of the source of the protected software 2ps by renaming the orders of the chosen triggering commands, so as to conceal the identity of the corresponding dependent functions, and by producing: the first object part 2pos of the protected software 2p, said first object part 2pos being such that during the execution of the protected software 2p, the triggering commands with renamed orders are executed, and the second object part 2pou of the protected software 2p containing the exploitation means also implementing the restoring means 20, said second object part 2pou being such that, after upload to the unit 6 and during the execution of the protected software 2p, the identity of the dependent functions whose execution is triggered by the first execution part 2pes is restored by means of the second execution part 2peu, and the dependent functions are executed by means of the second execution part 2peu.
For the implementation of a variant of the principle of protection by renaming, the protected software 2p is modified: Sby choosing, in the source of the protected software 2ps at least one triggering command with renamed order, Sand by modifying at least one chosen portion of the source of the protected software 2ps by replacing at least the renamed order of one chosen triggering command with renamed order, with another renamed order, triggering a dependent function of the same family.
When the principle of protection by conditional branch is implemented, the protected software 2p is modified: by choosing, in the source of the protected software 2ps, at least one conditional branch carried out in at least one chosen algorithmic processing, by modifying at least one chosen portion of the source of the protected software 2ps, this modification being such that during the execution of the protected software 2p, the functionality of at least one chosen conditional branch is executed, by means of the second execution part 2peu, in the unit 6, Sand by producing: the first object part 2pos of the protected software 2p, said first object part 2pos being such that during the execution of the protected software 2p, the functionality of at least one chosen conditional branch is executed in the unit 6, and the second object part 2pou of the protected software 2p, said second object part 2pou being such that, after upload to the unit 6 and during the execution of the protected software 2p, appears the second execution part 2peu by means of which the functionality of at least one chosen conditional branch is executed.
For the implementation of a preferred embodiment of the principle of protection by conditional branch, the protected software 2p is modified: 0 by choosing, in the source of the protected software 2ps, at least one series of chosen conditional branches, 0 by modifying at least one chosen portion of the source of the protected software 2ps, this modification being such that during the execution of the protected software 2p, the overall functionality of at least one chosen series of conditional branches is executed, by means of the second execution part 2peu, in the unit 6, Sand by producing: the first object part 2 pos of the protected software 2p, said first object part 2pos being such that during the execution of the protected software 2p, the functionality of at least one chosen series of conditional branches is executed in the unit 6, and the second object part 2pou of the protected software 2p, said second object part 2pou being such that, after upload to the unit 6 and during the execution of the protected software 2p, appears the second execution part 2peu by means of which the overall functionality of at least one chosen series of conditional branches is executed.
Naturally, the principles of protection according to the invention can be applied directly during the development of a new software without requiring the prior carrying out of intermediate protected pieces of software. In this way, the creation stage S 21 and the modification stage S22 can be carried out concomitantly so as to obtain directly the protected software 2p.
During the subsequent protection sub-phase P 2 after the creation stage S21 of the protected software 2p, and possibly after the modification stage S22, a stage called "customization stage S 23 1 takes place. During this customization stage S23, the second object part 2pou containing the exploitation means is uploaded to at least one blank unit 60, with the intention of obtaining at least one unit 6, or a part of the second object part 2pou possibly containing the exploitation means is uploaded to at least one pre-customized unit 66, with the intention of obtaining at least one unit 6.
The uploading of this customization information enables to make operational at least one unit 6. It should be observed that part of said information, once transferred to a unit 6, is not directly accessible outside said unit 6. The transfer of the customization information to a blank unit 60 or a pre-customized unit 66 can be carried out through an adapted customization unit which is described in the rest of the description in figure 150. In the case of a unit 6, constituted by a chip card 7 and its reader 8, the customization concerns only the chip card 7.
For the implementation of the protection phase P, various technical means are described more precisely in relation to figures 110, 120, 130, 140 and 150.
Figure 110 illustrates an embodiment of a system 25 enabling to implement the construction stage S 1 2 which takes into account the definitions intervened during the definitions stage S11 and during which are constructed the transfer means 12, 13 and possibly, the exploitation means intended for the unit 6. Such a system 25 includes a program development unit or workstation which has classically the form of a computer comprising a system unit, a screen, peripherals such as keyboard-mouse, and including, among others, the following programs: file editors, assemblers, preprocessors, compilers, interpretors, debuggers and link editors.
Figure 120 illustrates an embodiment of a pre-customization unit 30 enabling to upload at least in part the transfer means 13 and/or the exploitations means to at least one blank unit 60 with the intention of obtaining a pre-customized unit 66. Said precustomization unit 30 includes reading and writing means 31 enabling to electrically pre-customize, a blank unit 60 so as to obtain a pre-customized unit 66 to which the transfer means 13 and/or the exploitations means have been uploaded. The precustomization unit 30 can also include physical customization means 32 of the blank unit 60 which can for instance, have the form of a printer. In the case where the unit 6 is constituted by a chip card 7 and its reader 8, the pre-customization generally concerns only the chip card 7.
Figure 130 illustrates an embodiment of a system 35 enabling to carry out the making of the tools enabling to help generate protected software or to automate software protection. Such a system 35 includes a program development unit or workstation which has classically the form of a computer comprising a system unit, a screen, peripherals such as keyboard-mouse, and including, among others, the following programs: file editors, assemblers, pre-processors, compilers, interpretors, debuggers and link editors.
Figure 140 illustrates an embodiment of a system 40 enabling to create directly a protected software 2p or to modify a vulnerable software 2v with the intention of obtaining a protected software 2p. Such a system 40 includes a program development unit or workstation which has classically the form of a computer comprising a system unit, a screen, peripherals such as keyboard-mouse, and including, among others, the following programs: file editors, assemblers, pre-processors, compilers, interpretors, debuggers and link editors, as well as tools enabling to help generate protected software or to automate software protection.
Figure 150 illustrates an embodiment of a customization unit 45 enabling to upload the second object part 2pou to at least one blank unit 60 with the intention of obtaining at least one unit 6 or to upload a part of the second object part 2pou to at least one pre-customized unit 66 with the intention of obtaining at least one unit 6.
Said customization unit 45 includes reading and writing means 46 enabling to electrically customize, at least one blank unit 60 or at least one pre-customized unit 66, so as to obtain at least one unit 6. At the close of this customization, a unit 6 includes the information necessary to the execution of the protected software 2p. The customization unit 45 can also include physical customization means 47 for at least one unit 6 which can for instance, have the form of a printer. In the case where a unit 6 is constituted by a chip card 7 and its reader 8, the customization generally concerns only the chip card 7.
The protection process according to the invention can be implemented with the following improvements: It can be planned to use jointly several processing and memorizing units between which is divided out the second object part 2pou of the protected software 2p so that their joint use enables to execute the protected software 2p, the absence of at least one of said processing and memorizing units preventing the usage of the protected software 2p.
In the same way, after the pre-customization stage S 13 and during customization stage S 23 the part of the second object part 2pou necessary to transform the pre-customized unit 66 into a unit 6 can be contained in a processing and memorizing unit used by the customization unit 45 so as to limit the access to said part of the second object part 2pou. Naturally, said part of the second object part 2pou can be divided out between several processing and memorizing units so that said part of the second object part 2pou is accessible only during the joint use of said processing and memorizing units.

Claims (14)

1. A process to protect, using at least one blank unit including at least memorization means and processing means, a vulnerable software against its s unauthorized usage, said vulnerable software working on a data processing system, said protection process comprising the steps of: during a protection phase: 00 defining: at least one software execution characteristic, liable to be monitored at least in part in a unit, at least one criterion to abide by for at least one software execution characteristic, detection means to implement in a unit and enabling to detect that at least one software execution characteristic does not abide by at least one associated criterion, and coercion means to implement in a unit and enabling to inform the data processing system and/or modify the execution of a software when at least one criterion is not abided by, constructing exploitation means enabling to transform the blank unit into a unit able to implement the detection means and the coercion means, creating a protected software: by choosing at least one software execution characteristic to monitor, among the software execution characteristics liable to be monitored, by choosing at least one criterion to abide by for at least one chosen software execution characteristic, by choosing, at least one algorithmic processing which, during the execution of the vulnerable software, uses at least one operand and enables to obtain at least one result, and for which at least one chosen software execution characteristic, is to be monitored, by choosing at least one portion of the source of the vulnerable software containing, at least one chosen algorithmic processing, 1333820 I DOC IRN: 664663 -64- 00 by producing the source of the protected software from the source of the vulnerable software, by modifying at least one chosen ;portion of the source of the vulnerable software to obtain at least one modified portion of the source of the protected software, this modification being such that: during the execution of the protected software a first execution part is executed in the data processing system and 00 a second execution part is executed in a unit, obtained from (N Cc the blank unit after upload of information, (,i the second execution part executes at least the functionality C of at least one chosen algorithmic processing, and during the execution of the protected software, at least one chosen execution characteristic is monitored by means of the second execution part and the fact that a criterion is not abided by leads to a modification of the execution of the protected software, and by producing: a first object part of the protected software, from the source of the protected software, said first object part being such that during the execution of the protected software, appears a first execution part which is executed in the data processing system and whose at least a portion takes into account that at least one chosen software execution characteristic is monitored, and a second object part of the protected software, containing the exploitation means implementing the detection means and the coercion means, said second object part being such that, after upload to the blank unit and during the execution of the protected software, appears the second execution part by means of which at least one chosen software execution characteristic is monitored and by means of which the fact that a criterion is not abided by leads to a modification of the execution of the protected software, 1333820_1 DOC IRN 664663 00 Sand uploading the second object part to the blank unit, with the intention of obtaining the unit, and during a usage phase during which the protected software is executed: in the presence of the unit: and as long as all the criteria corresponding to all the monitored execution characteristics of all the modified 00 portions of the protected software are abided by, enabling Cc said portions of the protected software to work nominally and consequently enabling the protected software to work C nominally, and if at least one of the criteria corresponding to a monitored execution characteristic of a portion of the protected software is not abided by, informing the data processing system of it and/or modifying the functioning of the portion of the protected software, so that the functioning of the protected software is modified, and in the absence of the unit, in spite of the request by a portion of the first execution part to trigger the execution in the unit, of the functionality of a chosen algorithmic processing, in not being able to fulfill said request correctly, so that at least said portion is not executed correctly and that, consequently, the protected software is not completely functional.
2. The process according to claim 1, to limit usage of a protected software, comprising the further steps of: during the protection phase: defining: as software execution characteristic liable to be monitored, a variable of measurement of the usage of a functionality of a software, as criterion to abide by, at least one threshold associated to each variable of measurement, 1333820_1 DOC IRN: 664663 -66- 00 and actualization means enabling to update at least one variable of measurement, constructing the exploitation means enabling the unit to also implement the actualization means, 0 and modifying the protected software: by choosing as software execution characteristic to monitor, at least one variable of measurement of the usage of at least one 00 functionality of a software, (N by choosing: at least one functionality of the protected software whose usage NI is liable to be monitored using a variable of measurement, at least one variable of measurement used to quantify the usage of said functionality, at least one threshold associated to a chosen variable of measurement corresponding to a limit of usage of said functionality, and at least one method of update of a chosen variable of measurement depending on the usage of said functionality, and by modifying at least one chosen portion of the source of the protected software, this modification being such that, during the execution of the protected software, the variable of measurement is actualized by means of the second execution part depending on the usage of said functionality, and at least one threshold crossing is taken into account, and during the usage phase, in the presence of the unit, and in the case where at least one threshold crossing corresponding to at least one limit of usage is detected, informing the data processing system of it and/or modifying the functioning of the portion of the protected software, so that the functioning of the protected software is modified. 1333B20 IDOC IRN: 664663 -67- 00
3. The process according to claim 2, comprising the further steps of: -N during the protection phase: defining: for at least one variable of measurement, several associated thresholds, and different coercion means corresponding to each of said thresholds, 00 and modifying the protected software: (N by choosing in the source of the protected software, at least one chosen variable of measurement to which must be associated (Ni several thresholds corresponding to different limits of usage of the functionality, by choosing at least two thresholds associated to the chosen variable of measurement, Is and by modifying at least one chosen portion of the source of the protected software, this modification being such that, during the execution of the protected software, the crossings of the various thresholds are taken into account differently, by means of the second execution part, and during the usage phase: in the presence of the unit: in the case where the crossing of a first threshold is detected, enjoining the protected software not to use the corresponding functionality anymore, and in the case where the crossing of a second threshold is detected, making ineffective the corresponding functionality and/or at least one portion of the protected software.
4. The process according to either one of claims 2 and 3, comprising the further steps of: during the protection phase: S defining refilling means enabling to credit at least one software functionality monitored by a variable of measurement with at least one additional usage, 1333820_1 DOC IRN 664663 -68- 00 constructing the exploitation means also allowing the unit to implement the refilling means, and modifying the protected software: by choosing in the source of the protected software, at least one N, 5 chosen variable of measurement enabling to limit the usage of a functionality and which must be able to be credited with at least one additional usage, 00 and by modifying at least one chosen portion, this modification being Cc such that during a phase called of refilling, at least one additional usage of at least one functionality corresponding to a chosen variable NI of measurement can be credited, and during the phase of refilling: S reactualizing at least one chosen variable of measurement and/or at least one associated threshold, so as to allow at least one additional usage of the functionality. The process according to claim 1, comprising the further steps of: during the protection phase: defining: as software execution characteristic liable to be monitored, a profile of software usage, and as criterion to abide by, at least one feature of software execution, and modifying the protected software: by choosing as software execution characteristic to monitor at least one profile of software usage, by choosing at least one feature of execution by which at least one chosen profile of usage must abide, and by modifying at least one chosen portion of the source of the protected software, this modification being such that, during the execution of the protected software, the second execution part abides by all the chosen features of execution, and during the usage phase in the presence of the unit, and in the case where it is detected that at least one feature of execution is not abided by, informing the data processing system of it and/or modifying the functioning of the portion of 1333820_1DOC IRN: 664663 -69- 00 the protected software, so that the functioning of the protected software is modified.
6. The process according to claim 5, comprising the further steps of: S- during the protection phase: Sdefining: I- an instructions set whose instructions are liable to be executed in the 00 unit, (N M a set of instructions commands for said instructions set, said instructions commands being liable to be executed in the data C, processing system and to trigger in the unit the execution of the instructions, as profile of usage, the chaining of the instructions, as feature of execution, an expected chaining for the execution of the instructions, as detection means, means enabling to detect that the chaining of the instructions does not correspond to the expected one, and as coercion means, means enabling to inform the data processing system and/or to modify the functioning of the portion of protected software when the chaining of the instructions does not correspond to the expected one, constructing the exploitation means also enabling the unit to execute the instructions of the instructions set, the execution of said instructions being triggered by the execution in the data processing system, of the instructions commands, and modifying the protected software: by modifying at least one chosen portion of the source of the protected software, this modification being such that: at least one chosen algorithmic processing is split so that during the execution of the protected software, said algorithmic processing is executed by means of the second execution part, using instructions, for at least one chosen algorithmic processing, instructions commands are integrated to the source of the protected software, 1333820_IDOC IRN: 664663 00 so that during the execution of the protected software, each instruction command is executed by the first execution part and ;triggers in the unit, the execution by means of the second execution part, of an instruction, a sequence of the instructions commands is chosen among the set of sequences allowing the execution of the protected software, and the chaining by which must abide at least some of the 00 instructions during their execution in the unit is specified, and during the usage phase, in the presence of the unit, in the case where it is detected that the chaining of the instructions executed in the unit does not C1 correspond to the expected one, informing the data processing system of it and/or modifying the functioning of the portion of the protected software, so that the functioning of the protected software is modified.
7. The process according to claim 6, comprising the further steps of: during the protection phase: defining: as instructions set, an instructions set whose at least some instructions work with registers and use at least one operand with the intention of returning a result, for at least some of the instructions working with registers: a part defining the functionality of the instruction, and a part defining the expected chaining for the execution of the instructions and including bits fields corresponding to: A an identification field of the instruction, A and for each operand of the instruction: a flag field, and an expected identification field of the operand, for each register belonging to the exploitation means and used by the instructions set, a generated identification field in which is automatically memorized the identification of the last instruction which has returned its result in said register, as detection means, means enabling, during the execution of an instruction, for each operand, when the flag field imposes it, to check 1333820_ IDOC IRN 664663 -71 00 0 the equality of the generated identification field corresponding to the Nregister used by said operand, and the expected identification field of ;the origin of said operand, and as coercion means, means enabling to modify the result of the N 5 instructions, if at least one of the checked equalities is false.
8. The process according to any one of claims 1 to 7, comprising the 00 further steps of: during the protection phase: modifying the protected software: I by choosing at least one variable used in at least one chosen algorithmic processing, which during the execution of the protected software, partially defines the state of the protected software, by modifying at least one chosen portion of the source of the protected software, this modification being such that during the execution of the protected software, at least one chosen variable or at least one copy of chosen variable resides in the unit, and by producing: the first object part of the protected software, said first object part being such that during the execution of the protected software, at least one portion of the first execution part takes also into account that at least one variable or at least one copy of variable resides in the unit, and the second object part of the protected software, said second object part being such that, after upload to the unit and during the execution of the protected software, appears the second execution part by means of which at least one chosen variable, or at least one copy of chosen variable resides too in the unit, and during the usage phase: in the presence of the unit each time a portion of the first execution part imposes it, using a variable or a copy of variable residing in the unit, so that said portion is executed correctly and that, consequently, the protected software is completely functional, 1333820_1 DOC IRN: 664663 -72- 00 and in the absence of the unit, in spite of the request by a portion of the Sfirst execution part to use a variable or a copy of variable residing in the ;unit, not being able to fulfill said request correctly, so that at least said portion is not executed correctly and that, consequently the protected software is not completely functional.
9. The process according to claim 6 comprising the further steps of: 00 during the protection phase: C* defining: as a triggering command, an instruction command, as a dependent function, an instruction, as an order, at least one argument for a triggering command, corresponding at least in part to the information transmitted by the data processing system to the unit, so as to trigger the execution of the corresponding dependent function, a method of renaming of the orders enabling to rename the orders so as to obtain triggering commands with renamed orders, and restoring means designed to be used in the unit during the usage phase, and enabling to restore the dependent function to execute, from the renamed order, constructing exploitation means enabling the unit to also implement the restoring means, and modifying the protected software: by choosing in the source of the protected software, triggering commands, by modifying at least one chosen portion of the source of the protected software by renaming the orders of the chosen triggering commands, so as to conceal the identity of the corresponding dependent functions, and by producing: the first object part of the protected software, said first object part being such that during the execution of the protected software, the triggering commands with renamed orders are executed, and the second object part of the protected software containing the exploitation means also implementing the restoring means, 13338201 DOC IRN: 664663 73 00 said second object part being such that, after upload to the unit and during the execution of the protected software, the identity of ;the dependent functions whose execution is triggered by the first execution part is restored by means of the second execution part, and the dependent functions are executed by means of the second execution part, and during the usage phase: 00 in the presence of the unit and each time a triggering command with Cc renamed order, contained in a portion of the first execution part imposes it, restoring in the unit, the identity of the corresponding dependent N, function and executing it, so that said portion is executed correctly and that, consequently, the protected software is completely functional, and in the absence of the unit, in spite of the request by a portion of the first execution part, to trigger the execution of a dependent function in the unit, not being able to fulfill said request correctly, so that at least said portion is not executed correctly and that, consequently, the protected software is not completely functional. The process according to claim 9, comprising the further steps of: during the protection phase: defining for at least one dependent function, a family of dependent functions algorithmically equivalent, but triggered by triggering commands whose renamed orders are different, and modifying the protected software: by choosing, in the source of the protected softwvare at least one triggering command with renamed order, and by modifying at least one chosen portion of the source of the protected software by replacing at least the renamed order of one chosen triggering command with renamed order, with another renamed order, triggering a dependent function of the same family. 1333820_ 1.DOC IRN: 664663 -74- 00 S11. The process according to claim 10, comprising the further step of: S during the protection phase, defining, for at least one dependent function, a tb3 ;family of algorithmically equivalent dependent functions: by concatenating a field of noise to the information defining the functional part of the dependent function to execute in the unit, or by using the identification field of the instruction and the expected identification fields of the operands. Cc, 00 Mc 12. The process according to any one of claims 9, 10 and 11, comprising 1o the further step of: during the protection phase: defining: as method of renaming of the orders, a ciphering method to cipher the orders, and as restoring means, means implementing a deciphering method to decipher the renamed orders and thus restore the identity of the dependent functions to execute in the unit.
13. The process according to any one of claims 1 to 12, comprising the further steps of: during the protection phase: S modifying the protected software: by choosing, in the source of the protected software, at least one conditional branch carried out in at least one chosen algorithmic processing, by modifying at least one chosen portion of the source of the protected software, this modification being such that during the execution of the protected software, the functionality of at least one chosen conditional branch is executed, by means of the second execution part, in the unit, and by producing: the first object part of the protected software, said first object part being such that during the execution of the protected software, the functionality of at least one chosen conditional branch is executed in the unit, 1333820_1DOC IRN 664663 75 00 and the second object part of the protected software, said second object part being such that, after upload to the unit and during the ;execution of the protected software, appears the second execution part by means of which the functionality of at least one chosen conditional branch is executed, and during the usage phase: S in the presence of the unit and each time a portion of the first execution 00 part imposes it, executing the functionality of at least one conditional Sbranch in the unit, so that said portion is executed correctly and that, O 10 consequently, the protected software is completely functional, and in the absence of the unit and in spite of the request by a portion of the first execution part to execute the functionality of a conditional branch in the unit, not being able to fulfill said request correctly, so that at least said portion is not executed correctly and that consequently, the protected software is not completely functional.
14. The process according to claim 13, comprising, during the protection phase, modifying the protected software: by choosing, in the source of the protected software, at least one series of chosen conditional branches, by modifying at least one chosen portion of the source of the protected software, this modification being such that during the execution of the protected software, the overall functionality of at least one chosen series of conditional branches is executed, by means of the second execution part, in the unit, and by producing: the first object part of the protected software, said first object part being such that during the execution of the protected software, the functionality of at least one chosen series of conditional branches is executed in the unit, and the second object part of the protected software, said second object part being such that, after upload to the unit and during the execution of the protected software, appears the second execution part by means of which the overall 1333820_I.Doc IRN: 664663 76 00 0 0functionality of at least one chosen series of conditional N branches is executed. The process according to any one of claims 1 to 14, comprising splitting the protection phase into a prior protection sub-phase, independent of the software to protect and a subsequent protection sub-phase, dependent of the software to protect. 00 Mc 16. The process according to claim 15, comprising, during the prior protection sub-phase, making intervene a definitions stage during which are carried out N, all the definitions.
17. The process according to claim 16, comprising, after the definitions stage, making intervene a construction stage during which are constructed the exploitation means.
18. The process according to claim 17, comprising, after the construction stage, making intervene a pre-customization stage, comprising uploading to a blank unit, at least a part of the exploitation means with the intention of obtaining a pre- customized unit.
19. The process according to either one of claims 16 and 17, comprising, during the prior protection sub-phase, making intervene a tools making stage during which are made tools enabling to help generate protected software or to automate software protection. The process according to either one of claims 15 and 18, comprising splitting the subsequent protection sub-phase, into: S a creation stage during which the protected software is created, from the vulnerable software, S possibly, a modification stage during which the protected software is modified, and a customization stage during which: 1333820L.DOC IRN: 664663 77 00 the second object part of the protected software containing the exploitation means is uploaded to at least one blank unit with the intention of obtaining at least one unit, or a part of the second object part of the protected software possibly containing the exploitation means is uploaded to at least one pre-customized unit with the intention of obtaining at least one unit. 00 Mc 21. The process according to either one of claims 19 and 20, comprising, io during the creation stage and possibly during the modification stage, using at least one N tool which help generate protected software or which automate software protection.
22. A process to protect, using at least one blank unit including at least memorization means and processing means, a vulnerable software against its unauthorized usage, said vulnerable software working on a data processing system, said protection process being substantially as described herein with reference to the accompanying drawings. DATED this twenty-seventh Day of August, 2008 Validy Patent Attorneys for the Applicant SPRUSON FERGUSON 1333820_1 IRN 664663
AU2002328377A 2001-07-31 2002-07-04 Method for protecting a software using a so-called detection and coercion principle against its unauthorised use Expired AU2002328377B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
FR01/10244 2001-07-31
FR0110244A FR2828301B1 (en) 2001-07-31 2001-07-31 METHOD FOR PROTECTING SOFTWARE USING A PRINCIPLE OF "DETECTION AND COERCITION" AGAINST ITS UNAUTHORIZED USE
PCT/FR2002/002343 WO2003012571A2 (en) 2001-07-31 2002-07-04 Method for protecting a software using a so-called detection and coercion principle against its unauthorised use

Publications (2)

Publication Number Publication Date
AU2002328377A1 AU2002328377A1 (en) 2003-05-29
AU2002328377B2 true AU2002328377B2 (en) 2008-10-02

Family

ID=8866119

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2002328377A Expired AU2002328377B2 (en) 2001-07-31 2002-07-04 Method for protecting a software using a so-called detection and coercion principle against its unauthorised use

Country Status (29)

Country Link
EP (1) EP1412838B1 (en)
JP (1) JP3949104B2 (en)
KR (1) KR100881733B1 (en)
CN (1) CN100339778C (en)
AP (1) AP2055A (en)
AU (1) AU2002328377B2 (en)
BR (1) BR0211373A (en)
CA (1) CA2455626A1 (en)
CO (1) CO5550507A2 (en)
EA (1) EA005466B1 (en)
EC (1) ECSP044952A (en)
ES (1) ES2529426T3 (en)
FR (1) FR2828301B1 (en)
GE (1) GEP20053648B (en)
HK (1) HK1078363A1 (en)
HR (1) HRP20040045A2 (en)
HU (1) HUP0400234A2 (en)
IL (1) IL159955A0 (en)
IS (1) IS7120A (en)
MA (1) MA26122A1 (en)
MX (1) MXPA04000489A (en)
NO (1) NO333768B1 (en)
OA (1) OA12700A (en)
PL (1) PL371096A1 (en)
RS (1) RS50234B (en)
TN (1) TNSN04011A1 (en)
UA (1) UA77187C2 (en)
WO (1) WO2003012571A2 (en)
ZA (1) ZA200400352B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2634917A1 (en) * 1988-08-01 1990-02-02 Pionchon Philippe METHOD AND DEVICE FOR PROTECTING SOFTWARE, ESPECIALLY AGAINST UNAUTHORIZED COPIES
US5706426A (en) * 1996-02-07 1998-01-06 United Microelectronics Corporation Software protection method and apparatus
US5754646A (en) * 1995-07-19 1998-05-19 Cable Television Laboratories, Inc. Method for protecting publicly distributed software
WO1999066387A1 (en) * 1998-06-12 1999-12-23 Gemplus Method for verifying the execution of a software product
US6523119B2 (en) * 1996-12-04 2003-02-18 Rainbow Technologies, Inc. Software protection device and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4932054A (en) * 1988-09-16 1990-06-05 Chou Wayne W Method and apparatus for protecting computer software utilizing coded filter network in conjunction with an active coded hardware device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2634917A1 (en) * 1988-08-01 1990-02-02 Pionchon Philippe METHOD AND DEVICE FOR PROTECTING SOFTWARE, ESPECIALLY AGAINST UNAUTHORIZED COPIES
US5754646A (en) * 1995-07-19 1998-05-19 Cable Television Laboratories, Inc. Method for protecting publicly distributed software
US5706426A (en) * 1996-02-07 1998-01-06 United Microelectronics Corporation Software protection method and apparatus
US6523119B2 (en) * 1996-12-04 2003-02-18 Rainbow Technologies, Inc. Software protection device and method
WO1999066387A1 (en) * 1998-06-12 1999-12-23 Gemplus Method for verifying the execution of a software product

Also Published As

Publication number Publication date
JP2004537796A (en) 2004-12-16
HUP0400234A2 (en) 2004-09-28
IS7120A (en) 2004-01-20
TNSN04011A1 (en) 2006-06-01
YU5704A (en) 2006-05-25
IL159955A0 (en) 2004-06-20
FR2828301B1 (en) 2010-09-03
AP2004002959A0 (en) 2004-03-31
EA200400058A1 (en) 2004-06-24
AP2055A (en) 2009-10-15
UA77187C2 (en) 2006-11-15
ECSP044952A (en) 2004-04-28
WO2003012571A3 (en) 2004-01-22
JP3949104B2 (en) 2007-07-25
WO2003012571A2 (en) 2003-02-13
EA005466B1 (en) 2005-02-24
NO20040229L (en) 2004-03-30
KR20040026685A (en) 2004-03-31
MA26122A1 (en) 2004-04-01
CA2455626A1 (en) 2003-02-13
PL371096A1 (en) 2005-06-13
CN1620640A (en) 2005-05-25
NO333768B1 (en) 2013-09-16
ES2529426T3 (en) 2015-02-20
HRP20040045A2 (en) 2005-02-28
EP1412838B1 (en) 2014-11-19
FR2828301A1 (en) 2003-02-07
HK1078363A1 (en) 2006-03-10
EP1412838A2 (en) 2004-04-28
RS50234B (en) 2009-07-15
GEP20053648B (en) 2005-10-25
OA12700A (en) 2006-06-23
CO5550507A2 (en) 2005-08-31
MXPA04000489A (en) 2005-03-07
CN100339778C (en) 2007-09-26
ZA200400352B (en) 2005-03-30
BR0211373A (en) 2005-05-10
KR100881733B1 (en) 2009-02-06

Similar Documents

Publication Publication Date Title
US20070294770A1 (en) Method to Protect Software Against Unwanted Use with a Variable Principle
US20070136816A1 (en) Method to protect software against unwanted use with a detection and coercion principle
US20070283437A1 (en) Method to Protect Software Against Unwanted Use with a "Temporal Dissociation" Principle
US20070277239A1 (en) Method to Protect Software Against Unwanted Use with a "Renaming" Principle
US7434064B2 (en) Method to protect software against unwanted use with a “elementary functions” principle
AU2002325998B2 (en) Method for protecting a software using a so-called variable principle against its unauthorised use
US7502940B2 (en) Method to protect software against unwanted use with a “conditional branch” principle
AU2002328377B2 (en) Method for protecting a software using a so-called detection and coercion principle against its unauthorised use
ZA200400350B (en) Method for protecting a software using a so called renaming principle against its unauthorised use
ZA200400349B (en) Method for protecting a software using a so called temporal dissociation principle against its unauthorised use
ZA200400351B (en) Method for protecting a software using a so called conditional jump principle against its unauthorised use
ZA200400353B (en) Method for protecting a software using a so called elementary functions principle against its unauthorised use

Legal Events

Date Code Title Description
FGA Letters patent sealed or granted (standard patent)
MK14 Patent ceased section 143(a) (annual fees not paid) or expired