# US 2004/0083373 A1 · Automatically generated cryptographic functions for renewable tamper resistant security systems

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0083373 A1
- Document ID: US20040083373A1
- Status: Published application
- Kind: A1
- Application number: 10/282,648
- Filed: 2002-10-28
- Published: 2004-04-29
- Earliest claimed: 2002-10-28
- Inventors: Gregory M. Perkins; Zhijun He
- Web page: https://patentgrep.com/patent/US20040083373A1

## CPC

- G06F 21/604: {Tools and structures for managing or administering access control systems}
- G06F 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/6272: {by registering files or documents with a third party}
- H04L 9/065: {Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3}
- H04L 9/3236: {using cryptographic hash functions}
- H04L 2209/34: Encoding or coding, e.g. Huffman coding or error correction
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A secure cryptographic function is generated from a template containing static program code that is the same for all mobile agents and dynamic program code which differs for each function. The dynamic code implements a stream cipher encryption algorithm that is used to encrypt messages processed by the function. The dynamic code may also generate a message digest that is attached to each message. The message digest may be a hash function applied to the dynamic code and, optionally, to the message. Each function may be assigned a limited lifetime, either by assigning it a fixed termination time, a maximum number of messages that it may send or, if the cryptographic function is used with a mobile agent, a maximum number of hosts that it may visit. Any received messages that have been processed by the encryption algorithm after the expiration of its lifetime are ignored.

## Claims

### Claim 1

A method for creating a cryptographic function comprising the steps of:
providing a cryptographic function template having at least one static set of instructions and indicators for at least one dynamic set of instructions;
dynamically generating computer program instructions for the at least one dynamic set of instructions, the dynamically generated instructions being unique to the cryptographic function; and
replacing the indicators for the at least one dynamic set of instructions with the dynamically generated computer program instructions to form the unique cryptographic function.

### Claim 2 (depends on 1)

A method according to claim 1, further comprising the step of assigning a unique identifier to the unique cryptographic function.

### Claim 3 (depends on 2)

A method according to claim 2, wherein the step of dynamically generating computer program instructions includes the step of selecting a plurality of functions from a predetermined set of functions wherein the stream cipher algorithm sequentially applies the selected functions to encrypt data.

### Claim 4 (depends on 1)

A method according to claim 1, wherein the step of dynamically generating computer program instructions includes generating computer program instructions that produce a message digest which is provided with at least one message processed using the unique cryptographic function.

### Claim 5 (depends on 5)

A method according to claim 5, wherein the step of generating computer program instructions that produce the message digest includes the step of generating computer program instructions that apply a hash function to at least the dynamically generated code to produce the message digest.

### Claim 6 (depends on 5)

A method according to claim 5, wherein the hash function is a stream cipher algorithm and the step of generating computer program instructions that apply the hash function to at least the dynamically generated code includes the step of selecting a plurality of functions from a predetermined set of functions wherein the stream cipher algorithm sequentially applies the selected functions to implement the hash function.

### Claim 7 (depends on 1)

A method according to claim 1, further comprising the step of assigning a limited lifetime to the unique cryptographic function.

### Claim 8 (depends on 7)

A method according to claim 7, wherein the step of assigning a limited lifetime to the unique cryptographic function assigns a predetermined termination time to the agent.

### Claim 9 (depends on 7)

A method according to claim 7, wherein the step of assigning a limited lifetime to the unique cryptographic function assigns a maximum number of messages that may be processed using the function.

### Claim 10

A method for creating a unique mobile agent comprising the steps of:
providing a mobile agent template having at least one static set of instructions and indicators for at least one dynamic set of instructions;
dynamically generating computer program instructions for the at least one dynamic set of instructions, the dynamically generated instructions being unique to the mobile agent; and
replacing the indicators for the at least one dynamic set of instructions with the dynamically generated computer program instructions to form the unique mobile agent.

### Claim 11 (depends on 10)

A method according to claim 10, further comprising the step of assigning a unique identifier to the unique mobile agent.

### Claim 12 (depends on 10)

A method according to claim 10, wherein the dynamic set of instructions implement an encryption algorithm.

### Claim 13 (depends on 12)

A method according to claim 12, wherein the encryption algorithm is a stream cipher algorithm and the step of dynamically generating computer program instructions includes the step of selecting a plurality of functions from a predetermined set of functions wherein the stream cipher algorithm sequentially applies the selected functions to encrypt data.

### Claim 14 (depends on 10)

A method according to claim 10, wherein the step of dynamically generating computer program instructions includes generating computer program instructions that produce a message digest which is provided with at least one message sent processed using the unique cryptographic function.

### Claim 15 (depends on 14)

A method according to claim 14, wherein the step of generating computer program instructions that produce the message digest includes the step of generating computer program instructions that apply a hash function to at least the dynamically generated code to produce the message digest.

### Claim 16 (depends on 15)

A method according to claim 15, wherein the hash function is a stream cipher algorithm and the step of generating computer program instructions that apply the hash function to at least the dynamically generated code includes the step of selecting a plurality of functions from a predetermined set of functions wherein the stream cipher algorithm sequentially applies the selected functions to implement the hash function.

### Claim 17 (depends on 10)

A method according to claim 10, further comprising the step of assigning a limited lifetime to the unique mobile agent.

### Claim 18 (depends on 17)

A method according to claim 17, wherein the step of assigning a limited lifetime to the unique mobile agent assigns a predetermined termination time to the agent.

### Claim 19 (depends on 17)

A method according to claim 17, wherein the step of assigning a limited lifetime to the unique mobile agent assigns a maximum number of messages that may be sent by the unique mobile agent.

### Claim 20 (depends on 17)

A method according to claim 17, wherein the step of assigning a limited lifetime to the unique mobile agent assigns a maximum number of host computers that the unique mobile agent may visit.

### Claim 21

A method for creating a plurality of unique mobile agents comprising the steps of:
providing a mobile agent template having at least one static set of instructions and indicators for at least one dynamic set of instructions;
dynamically generating a plurality of respectively different sets of computer program instructions for the at least one dynamic set of instructions, for the respective plurality of mobile agents; and
replacing the indicators for the at least one dynamic set of instructions with the respective dynamically generated computer program instructions to generate the plurality of unique mobile agents.

### Claim 22 (depends on 21)

A method according to claim 21, further comprising the step of assigning a respectively different identifier to each of the plurality of unique mobile agents.

### Claim 23 (depends on 21)

A method according to claim 21, wherein the each of the plurality of dynamic sets of instructions implements a respectively different encryption algorithm.

### Claim 24 (depends on 23)

A method according to claim 23, wherein each of the respectively different encryption algorithms is a stream cipher algorithm and the step of dynamically generating computer program instructions includes the step of selecting a respectively different plurality of functions from a predetermined set of functions wherein the stream cipher algorithm sequentially applies the selected functions to encrypt data.

### Claim 25 (depends on 24)

A method according to claim 24, wherein the static set of instructions for each unique mobile agent includes instructions which apply the respective encryption algorithm to at least one message sent by the unique mobile agent.

### Claim 26 (depends on 24)

A method according to claim 24, wherein the static set of instructions for each unique mobile agent includes instructions which apply the respective encryption algorithm to produce a message digest which is sent with at least one message sent by the unique mobile agent.

### Claim 27 (depends on 21)

A method according to claim 21, further comprising the step of assigning a respectively different limited lifetime to each of the plurality of unique mobile agents.

### Claim 28

A method of monitoring a mobile agent migrating among consumer host computers in a network to detect possibly malicious host computers, the method comprising the steps of:
assigning a limited lifetime of the mobile agent;
registering the mobile agent with an agent monitoring system (AMS);
establishing communication between the mobile and the AMS to determine a sequence of the host computers visited by the mobile agent; and
identifying a last one of the host computers on the network to which the agent migrated as possibly malicious if the AMS is not able to communicate with the mobile agent during the limited lifetime of the mobile agent.

### Claim 29 (depends on 28)

A method according to claim 28, wherein the step of assigning a limited lifetime to the mobile agent assigns a maximum number of messages that the mobile agent may send to the AMS

### Claim 30 (depends on 28)

A method according to claim 28, wherein the step of assigning a limited lifetime to the mobile agent assigns a maximum number of hosts that the mobile agent may visit.

### Claim 31 (depends on 30)

A method according to claim 30, wherein the step of assigning a limited lifetime to the mobile agent assigns a time at which the mobile agent will expire.

### Claim 32

A method of monitoring a mobile agent migrating among consumer host computers in a network to detect possibly malicious host computers, the method comprising the steps of:
specifying a unique encryption algorithm to the mobile agent;
registering the mobile agent with an agent monitoring system (AMS);
establishing communication between the mobile and the AMS to determine a sequence of the host computers visited by the mobile agent; and
identifying a last one of the host computers on the network to which the agent migrated as possibly malicious if the AMS receives an improperly encrypted message from the mobile agent.

### Claim 33

A computer readable carrier including computer program instructions that cause a computer to implement a method for creating a cryptographic function, the method comprising the steps of:
providing a cryptographic function template having at least one static set of instructions and indicators for at least one dynamic set of instructions;
dynamically generating computer program instructions for the at least one dynamic set of instructions, the dynamically generated instructions being unique to the cryptographic function; and
replacing the indicators for the at least one dynamic set of instructions with the dynamically generated computer program instructions to form the unique cryptographic function.

### Claim 34

A computer readable carrier including computer program instructions that cause a computer to implement a method for creating a plurality of unique mobile agents, the method comprising the steps of:
providing a mobile agent template having at least one static set of instructions and indicators for at least one dynamic set of instructions;
dynamically generating a plurality of respectively different sets of computer program instructions for the at least one dynamic set of instructions, for the respective plurality of mobile agents; and
replacing the indicators for the at least one dynamic set of instructions with the respective dynamically generated computer program instructions to generate the plurality of unique mobile agents.

### Claim 35

A computer readable carrier including computer program instructions that cause a computer to implement a method of monitoring a mobile agent migrating among consumer host computers in a network to detect possibly malicious host computers, the method comprising the steps of:
specifying a unique encryption algorithm to the mobile agent;
registering the mobile agent with an agent monitoring system (AMS);
establishing communication between the mobile and the AMS to determine a sequence of the host computers visited by the mobile agent; and
identifying a last one of the host computers on the network to which the agent migrated as possibly malicious if the AMS receives an improperly encrypted message from the mobile agent.
