Secure workflow to enhance data security using sandboxes hosted by trusted execution environment

By executing workflows in a trusted execution environment and using sandbox technology, the issues of user privacy and data confidentiality are solved, secure distribution of data between multiple content platforms is achieved, and data integrity and user privacy are ensured. Protect.

CN118575447APending Publication Date: 2024-08-30GOOGLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280042333.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult for existing technologies to ensure the confidentiality and integrity of data while protecting user privacy. Especially during the data sharing and distribution process between multiple content platforms, there are risks of unauthorized access and data leakage.

Method used

By executing each stage of the workflow in a trusted execution environment, sandbox technology is used to isolate code and data, prevent unauthorized access and leakage, and ensure data confidentiality and integrity through encryption and signatures.

Benefits of technology

Effectively protect user privacy, prevent unauthorized access and data leakage, ensure safe distribution of data among multiple content platforms, and maintain the overall integrity and confidentiality of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575447A
    Figure CN118575447A
Patent Text Reader

Abstract

Methods, systems, and apparatus, including medium-encoded computer program products for secure workflows, that enhance data security using sandboxes hosted by a trusted execution environment. A digital component (DC) request may be received, and in response, a multi-stage workflow may be identified. Each multi-stage workflow (i) is configured to select a DC of a plurality of content platforms, and (ii) includes a customizable stage. A trusted execution environment of the server may initiate a sandbox environment for executing stages of the workflow, which may be executed within the sandbox environment, preventing code of the workflow from transferring user data from the server. Output data may be received by the server from the workflow and from the trusted execution environment. The DC may be selected by the server based on at least a portion of the output data from the workflow. The DC may be provided to a client device for presentation to a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to secure processing using sandboxes and trusted execution environments. Background Art

[0002] Data security is critical for computing systems connected to public networks, such as the Internet. Network security techniques, such as firewalls, are often used to protect computer systems from unauthorized access and data corruption.

[0003] A virtual machine provides an emulated version of a computer system. A virtual machine may include an emulated processing unit (eg, a central processing unit (CPU)), memory, network interfaces, and / or other computing components.

[0004] A Trusted Execution Environment (TEE) provides a secure environment for computing and is sometimes implemented as a secure area of ​​the main processor. The TEE ensures that the code and data loaded inside the TEE are protected in terms of integrity and confidentiality. Integrity indicates that unauthorized entities cannot change the data within the TEE, and confidentiality indicates that unauthorized entities cannot read the data within the TEE. Summary of the invention

[0005] This specification describes techniques related to securely executing workflows that enable non-public and otherwise proprietary customization of stages of the workflow in a manner that prevents other parties from accessing the customizations. A workflow is a set of executable stages through which a unit of work progresses from initiation to completion. The techniques include executing workflows in an isolated environment (e.g., in a virtual machine) that provides a secure sandbox while still supporting fully functional workflows. The techniques may also include constraints on inputs to and / or outputs from a workflow or portions thereof to maintain user privacy, prevent access to confidential customizations, and enhance system integrity.

[0006] One aspect is characterized in that a digital component request that may include a data set is received from a client device. In response to receiving the digital component request, one or more multi-stage workflows can be identified, each of the one or more multi-stage workflows (i) being configured to select a digital component from candidate digital components of multiple content platforms, and (ii) including one or more customizable stages. In addition, for each specific multi-stage workflow in the one or more multi-stage workflows, the following operations can be performed. The trusted execution environment of the server can initiate a sandbox environment for executing at least one or more stages of a specific multi-stage workflow. One or more stages of a specific multi-stage workflow can be executed within the sandbox environment, and the sandbox environment can prevent the code of the multi-stage workflow from sending user data from the server. Output data can be received by the server from the specific multi-stage workflow and from the trusted execution environment. The server can select a digital component based on at least a portion of the output data from the specific multi-stage workflow. The digital component can be provided by the server to the client device for presentation to a user of the client device.

[0007] One or more of the following features may be included. A sandbox may be a virtual machine and / or may include a virtual machine. Executing a particular multi-stage workflow within a sandbox environment may include: (i) for each customizable stage of the particular multi-stage workflow, initiating a corresponding sandbox environment by a trusted execution environment, executing code for the stage in the sandbox environment to generate output data for use in one or more other stages of the secure workflow; (ii) executing code for the stage within the sandbox environment, wherein each sandbox environment prevents the code from sending user data from a server; and (iii) receiving output data from each configurable stage by the server and from the trusted execution environment.

[0008] For at least one stage of a specific multi-stage workflow in one or more multi-stage workflows, wherein the specific multi-stage workflow belongs to a specific content platform: (i) for a stage of the at least one stage of the specific multi-stage workflow, a reference to a location containing code implementing the stage can be determined; and (ii) the code including the at least one stage can be requested from the content platform by the server at least in part using the reference, and wherein executing the specific multi-stage workflow within the sandbox environment can include executing the code.

[0009] The trusted execution environment may provide a signature for code of the trusted execution environment. The specific content platform may obtain the signature of the trusted execution environment and a known signature, and determine that the signature matches the known signature. In response to determining that the signature matches the known signature: the specific content platform may determine that the trusted execution environment is verified, and provide at least one customization to the trusted execution environment.

[0010] The output data may include one or more selection parameters describing a relevance of the digital component to the digital component request. At least one stage that is not customizable may be identified in the multi-stage workflow, and in response, at least one stage outside the trusted execution environment may be executed. Identifying the multi-stage workflow may include receiving a revised version of a default workflow from a specific content platform, and may include executing the revised version of the default workflow using an envelope that provides a limited set of communication application programming interfaces (APIs) that restrict communication of the revised version of the workflow to external components.

[0011] Specific embodiments of the subject matter described in this specification can be implemented to achieve one or more of the following advantages. The technology described in this document can be used to select content, such as digital components, from various content providers (e.g., content platforms) while protecting the privacy of the requester. In addition, the technology enables such digital components to be provided by the content platform while also retaining the confidentiality and integrity of the technology and proprietary logic used by the content platform to select and / or customize content for the requester. As further described below, the system can execute the stages of the workflow for determining the digital component, wherein the stages involving sensitive user data and / or confidential technology and / or logic are executed in a virtual machine or in other appropriate sandbox environments that provide a secure and isolated environment for executing code. Executing code in a sandbox virtual machine protects the privacy of the content requester because the virtual machine can constrain access to information about the requester. For example, by preventing the logic of the content platform from sending sensitive data from the system hosting the virtual machine. Executing code in a sandbox protects the content platform that provides the code because the sandbox can ensure that the proprietary customization of the content platform remains isolated so that other content platforms can never access the customization of the content platform. The technology can include encrypting the code used for customization, which ensures the security, confidentiality and integrity of the code. These techniques can also be used to ensure that the data generated by the stages of the workflow meet validity standards. Such standards can further protect the privacy of the requester by ensuring that the stage only provides data to other stages and content platforms when privacy constraints are met. In addition, the technology enables a third party (such as a content platform, an industry organization, a government organization, and / or other appropriate parties) to check the code that implements the secure distribution system, and then verify that the code running in the TEE matches the code being checked. In particular, since the code can be used for inspection, a third party can verify that unauthorized parties cannot access the customization, and that the customization cannot provide data outside the TEE except for authorization. In addition, the technology enables a third party such as a content platform to check the code of the TEE. Then verify that the TEE provided by the system is the same as the TEE whose code is checked. In addition, since the code can be used for inspection, a third party can verify that unauthorized parties cannot access the customization, and that the customization cannot provide data outside the TEE except for authorization.

[0012] The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the invention will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 An example environment is shown in which a secure distribution system distributes digital components to client devices in a privacy-preserving manner.

[0014] Figure 2A Shown in more detail Figure 1 Components of a secure distribution system.

[0015] Figure 2B An example of encapsulated code running in a trusted execution environment is shown.

[0016] Figure 3 and Figure 4 is a flow diagram of an example process for performing a secure workflow for content selection.

[0017] Figure 5 is a block diagram of an example computer system.

[0018] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION

[0019] In general, this document describes systems and techniques for selecting and distributing digital components to client devices in a manner that protects user privacy and confidential data of content platforms and / or digital component providers. A secure distribution system can be configured to perform a digital component selection process that uses sensitive user data so that the user data is not provided to any other entity. The secure distribution system can host and execute the selection logic of various content platforms (e.g., supply-side platforms and demand-side platforms) when selecting digital components based on user data in a manner that ensures that no other entity can access the selection logic of the content platform. In this way, the data of both users and content platforms remains secure.

[0020] Ensuring the privacy of personal data is a requirement of many computing systems, especially those connected to public networks such as the Internet. Some users who do not trust a system to enforce strong privacy protections will simply choose not to use the system.

[0021] However, some data sharing can provide utility to users, especially when consumers authorize specific sharing. For example, private data, including aggregated private data, can be used to locate content that is relevant and interesting to the user if the user authorizes such use of the user's data. In the absence of information about the user, it can be challenging for the system to provide relevant content.

[0022] One solution to balancing privacy and utility is to enable a "data custodian" to receive private data from a user's device, guaranteeing that the data is only used for authorized purposes. Such authorization may include which content platforms may use the data, how often, for what purposes, etc. When a user's device requests content, the data custodian's secure distribution system may execute code provided by the content platform, and the result may be the selection and presentation of content that is of interest to or otherwise relevant to the user. In this case, the secure distribution system may execute code on behalf of the content platform, and that code may use an authorized subset of the private data, but the content platform never actually receives the user's private data.

[0023] However, the code or other types of logic (e.g., rules) of a content platform can be a valuable business asset of the content platform. Such code can contain differentiating innovations that lead to the selection of more relevant content for users. For this reason, a content platform may be reluctant to provide its code to a data custodian.

[0024] In addition, executing code from multiple content platforms may create integrity issues. For example, one content platform may attempt to share data with another content platform that is not authorized to access the data. In another example, a content platform may attempt to use its code to determine how another content platform's code operates. Therefore, there is a need to ensure overall system integrity while still allowing undisclosed proprietary code to operate on private data without leaking such data to content platforms or other parties.

[0025] This specification describes a workflow system that can be run in a secure distribution system that enables a content platform to execute code for each stage or a subset of the stages of a workflow in a sandbox (e.g., a virtual machine), and the result of the workflow can be content for presentation to a user. A sandbox is an isolated environment provided by a computing system that enables applications to execute without affecting applications running outside the sandbox or the system on which the application runs. A sandbox provides a limited interface between code executed in the sandbox and the system in which the sandbox runs, which allows the system to strictly control the impact that code running in the sandbox may have on the larger system.

[0026] The code provided by the content platform to implement the stage can be referred to as a "customization", such that each customization includes code that a computer system can execute using input to generate an output. To protect privacy, the system can ensure that each customization is allowed to access only data that does not violate privacy constraints, and that the results generated by each customization satisfy validity constraints. In addition, the system can execute each customization in a separate sandbox, ensuring that each customization is executed in isolation, and the data provided to and / or sent from each customization is controlled by a secure distribution system. This can prevent malicious or corrupted code from leaking private user data from the secure distribution system to, for example, the content platform or other parties. In addition, the content platform can encrypt its customizations before providing them to the system. Encrypting the customizations and then executing them in isolation provides protection for these valuable data assets. In addition, encryption ensures the integrity of the customizations by ensuring that the customizations cannot be tampered with before reaching the workflow system.

[0027] In addition to ensuring that customizations can only access authorized data, in some cases, the parties providing the customizations also want to ensure that their customizations (which may include proprietary code) are not disclosed to third parties, including parties operating or otherwise hosting secure distribution systems. In this case, the secure distribution system can execute the customizations in a trusted execution environment (TEE) that provides this added level of privacy.

[0028] With a TEE, no party (including the host of the secure distribution system) can access the code (including customizations) running within the TEE. The implementation of the TEE can be publicly accessible, which allows for customized content platforms and / or independent third parties to verify that the TEE is providing the claimed level of privacy. The TEE can be cryptographically signed, ensuring that the TEE implementation available for review matches the TEE. In summary, the TEE ensures that customizations are not exposed, and the sandbox running in the TEE ensures that the customization can only receive authorized data, and only authorized data is sent from the customization and only to authorized recipients.

[0029] Figure 1 is a block diagram of an example environment 100 in which a secure distribution system 120 distributes digital components to a client device 110 in a privacy-preserving manner. Figure 1 1 , but the environment 100 includes a data communication network 105, such as a local area network (LAN), a wide area network (WAN), the Internet, a mobile network, or a combination thereof. The data communication network 105 connects the client device 110 to the secure distribution system 120 and connects the secure distribution system 120 to content platforms, such as a supply side platform (SSP) 140 and / or a demand side platform (DSP). The network 105 can also connect the various content platforms to each other and / or to a digital component provider 160, for example, to a server of the digital component provider 160.

[0030] The client device 110 is an electronic device capable of communicating over the network 105. Example client devices 110 include personal computers, server computers, mobile communication devices (e.g., smart phones and / or tablet computers), and other devices that can send and receive data over the network 105. The client device may also include a digital assistant device that accepts audio input through a microphone and outputs audio output through a speaker. When the digital assistant detects a "hot word" or "hot phrase" that activates the microphone to accept audio input, the digital assistant may be placed in a listening mode (e.g., ready to accept audio input). The digital assistant device may also include a camera and / or a display to capture images and present information visually. The digital assistant may be implemented in different forms of hardware devices, including wearable devices (e.g., watches or glasses), smart phones, speaker devices, tablet devices, or other hardware devices. The client device may also include a digital media device, for example, a streaming device, a gaming device, or a virtual reality system that is plugged into a television or other display to stream video to the television.

[0031] Game device is the equipment that enables the user to participate in game application, for example, wherein the user controls one or more roles, avatar or other rendering contents presented in the game application.Game device generally includes computer processor, memory device and controller interface (physical or visual rendering) that enables the user to control the content rendered by the game application.Game device can store and execute game application locally, or execute the game application (for example, online game application) that is stored and / or served by cloud server at least in part.Similarly, game device can be connected with the game server interface that executes game application, and game application is "streamed" to game device.Game device can be another equipment of tablet device, mobile telecommunication device, computer or other functions that execute except executing game application.

[0032] The client device 110 may include applications 112, such as a network (web) browser and / or native applications, to facilitate sending and receiving data over the network 105. Native applications are applications developed for a specific platform or a specific device (e.g., a mobile device with a specific operating system). Although operations may be described as being performed by the client device 110, such operations may be performed by an application 112 running on the client device 110.

[0033] Application 112 can present electronic resources, such as web pages, application pages, or other application content, to a user of client device 110. The electronic resource may include a digital component slot for presenting a digital component along with the content of the electronic resource. A digital component slot is an area of ​​an electronic resource (e.g., a web page or application page) for displaying a digital component. A digital component slot may also refer to a portion of an audio and / or video stream (which is another example of an electronic resource) for playing a digital component.

[0034] For brevity, electronic resources are also referred to herein as resources. For the purposes of this document, a resource may refer to a web page, an application page, application content presented by a native application, an electronic document, an audio stream, a video stream, or other appropriate types of electronic resources that can be used to present a digital component.

[0035] As used throughout this document, the phrase "digital component" refers to a discrete unit of digital content or digital information (e.g., a video clip, an audio clip, a multimedia clip, an image, text, or another unit of content). A digital component may be electronically stored in a physical memory device as a single file or a collection of files, and a digital component may take the form of a video file, an audio file, a multimedia file, an image file, or a text file, and include advertising information, such that an advertisement is a type of digital component. For example, a digital component may be content that is intended to supplement the content of a web page or other resource presented by application 112. More specifically, a digital component may include digital content related to resource content (e.g., a digital component may relate to the same subject as the web page content, or to a related subject). Thus, the provision of a digital component may supplement and generally enhance the web page or application content.

[0036] When application 112 loads a resource including a digital component slot, application 112 may generate a digital component request 125 requesting a digital component for presentation in the digital component slot. In some implementations, the digital component slot and / or resource may include code (e.g., a script) that causes application 112 to request a digital component from secure distribution system 120.

[0037] The digital component request 125 sent by the client device 110 may include sensitive user data and / or non-sensitive data related to the user of the client device 110, such as common keywords and / or query strings. Sensitive user data may include, for example, data identifying a user group that includes the user as a member. The user group may include an interest-based group. Each interest-based group may include a topic of interest and a member set that is identified (e.g., determined or predicted) as being interested in the topic. The user group may also include, for example, a user group that performs a specific action at an electronic resource (e.g., a website or a native application) of a publisher. For example, a user group may include a user who visits a website, requests more information about an item, interacts (e.g., selects) with a specific digital component, and / or adds an item to a virtual shopping cart to potentially obtain an item. The user data of a user may also include user profile data and / or attributes of the user.

[0038] Further to the description throughout this document, controls (e.g., user interface elements with which the user can interact) may be provided to the user to allow the user to select whether and when the systems, programs, or features described herein may enable the collection of user information (e.g., information about the user's social network, social actions or activities, occupation, the user's preferences, or the user's current location), as well as whether to send content or communications from a server to the user. In addition, certain data may be processed in one or more ways before it is stored or used so that personally identifiable information is removed. For example, the user's identity may be processed so that personally identifiable information of the user cannot be determined, or the user's geographic location may be generalized (such as to a city, zip code, or state level) if location information is obtained so that the user's specific location cannot be determined. Thus, the user can control what information is collected about the user, how the information is used, and what information is provided to the user.

[0039] The digital component request 125 may also include contextual data that is generally considered non-sensitive. The contextual data may describe the environment in which the selected digital component will be presented. The contextual data may include, for example, coarse location information indicating the general location of the client device 110 that sent the digital component request 125, the resource (e.g., a website or native application) with which the selected digital component will be presented, the spoken language setting of the application 112 or the client device 110, the number of digital component slots that will be used to present the digital component, the type of digital component slot, and other appropriate contextual information.

[0040] The secure distribution system 120 may be implemented using one or more server computers (or other suitable computing devices) that may be distributed across multiple locations. Typically, the secure distribution system 120 receives a request for a digital component from a client device 110, selects a digital component based on data included in the request, and sends the selected digital component to the client device 110.

[0041] When secure distribution system 120 receives sensitive user data, secure distribution system 120 may be operated and maintained by an independent trusted party, e.g., a party different from the user of the client device, the parties operating SSP 140 and DSP 150, and digital component provider 160. For example, secure distribution system 120 may be operated by an industrial group or a government group.

[0042] As described in more detail below, secure distribution system 120 may select digital components from a set of digital components stored in digital component repository 130 and / or a set of digital components received from SSP 140. Digital component repository 130 stores digital components received from content platforms (e.g., from SSP 140 and / or DSP 150) and additional data (e.g., metadata) for each digital component. Metadata for digital components may include, for example, distribution criteria defining situations in which digital components are eligible to be provided to client device 110 in response to digital component requests received from client device 110 and / or selection parameters indicating the amount to be provided to the publisher if the digital component is displayed with the publisher's resources and / or interacted with by a user when presented. For example, distribution criteria for digital components may include location information indicating a geographic location in which the digital component is eligible to be presented, user group membership data identifying a user group to which the digital component is eligible to be presented, resource data identifying a resource to which the electronic resource is eligible to be presented, and / or other appropriate distribution criteria. Distribution criteria may also include negative criteria, for example, criteria indicating situations in which the digital component is not eligible (e.g., with a specific resource or in a specific location). Other data that may be used to select a digital component may also be stored in the digital component repository along with a reference to its digital component (eg, a link or as metadata).

[0043] SSP 140 is a technology platform implemented in hardware and / or software that automates the process of obtaining digital components of resources. Publishers of resources can use SSP 140 to manage the process of obtaining digital components of digital component slots of their resources. Each publisher can have a corresponding SSP 140 or multiple SSPs 140. Some publishers can use the same SSP 140.

[0044] DSP 150 is a technology platform implemented in hardware and / or software that automates the process of distributing digital components for presentation with resources and / or applications. DSP 150 can interact with multiple supply-side platforms SSPs on behalf of digital component providers 160 to provide digital components for presentation with resources of multiple different publishers. Digital component providers 160 can create (or otherwise publish) digital components that are presented in digital component slots of a publisher's resources.

[0045] In this example, the user data does not cross the trust boundary 190 that separates the client device 110, secure distribution system 120, and digital component repository from the SSP 140, DSP 150, and digital component provider 160. In this manner, no entity other than the client device 110 and secure distribution system 120 receives the user data included in the digital component request 125. This protects user privacy and data security, particularly when compared to techniques that employ third-party cookies to send user data over the Internet.

[0046] An example process for selecting and providing digital components for presentation at client device 110 is shown in stage AI, which shows the flow of data between components of environment 100 .

[0047] In phase A, application 112 sends digital component request 125 to secure distribution system 120. As described above, application 112 may send a digital component request to request that a digital component be presented in a digital component slot of a resource presented by application 112. Digital component request 125 may include user data and context data.

[0048] In phase B, secure distribution system 120 sends a context-based digital component request to SSP 140. Context-based digital component request 125 may include context data for digital component request 125 received from application 112. However, context-based digital component request 125 does not include any user data. Secure distribution system 120 may temporarily store user data while waiting for a response from SSP 140. Secure distribution system 120 may send context-based digital component request 125 to SSP 140 of the publisher of the resource presented by application 112.

[0049] In stage C, the SSP 140 forwards the context-based digital component request 125 to one or more DSPs 150. In stage D, each DSP 150 sends one or more selection parameters for one or more digital components (e.g., digital components stored in the digital component repository 130) to the SSP 140. For example, the DSP 150 may select a digital component based on context data of the context-based request and determine the selection parameters for the digital component based on the context data. The DSP 150 may also provide digital components and selection parameters, e.g., digital components not stored in the digital component repository 130. Each DSP 150 may send a selection parameter having data indicating the digital component to which the selection parameter applies. The digital component for which the DSP 150 provides the selection parameter may be referred to as a context-based digital component.

[0050] In stage E, SSP 140 sends the digital components and / or selection values ​​to secure distribution system 120. In some implementations, SSP 140 may filter the digital components and / or selection parameters before sending the digital components and / or selection values ​​to secure distribution system 120. For example, SSP 140 may filter the digital components and / or selection parameters based on publisher controls specified by the publisher of the resources presented by application 112. In a specific example, the publisher of a web page about a particular event may define that a digital component related to another event may not be presented with the web page as a publisher control. SSP 140 may filter based on rules or other data provided by the publisher.

[0051] In stage F, secure distribution system 120 queries digital component repository 130 for a user-based set of digital components selected based on the user data of digital component request 125. For example, secure distribution system 120 may submit a query that defines the user data of digital component request 125 as a condition for the query. In some embodiments, the query may also include context-based conditions. For example, the query may request retrieval of digital components that include a specific user group and / or a specific geographic location as distribution criteria. Although shown after stage BE, secure distribution system 120 may query the digital component repository in parallel with these stages to reduce the delay in selecting digital components and providing the digital components to application 112.

[0052] In stage G, secure distribution system 120 receives a set of user-based digital components and selection parameters for each user-based digital component from digital component repository 130. The set of user-based digital components may include those having distribution criteria that match the conditions of the query.

[0053] In stage H, the selection engine 122 of the secure distribution system 120 selects a digital component to provide to the application 112 for presentation in the digital component slot. The selection engine 122 may select the digital component from a set of user-based digital components and context-based digital components. The selection engine 122 may select the digital component from the two sets based on the selection parameters of each digital component in the two sets. For example, the selection engine 122 may select the digital component with the highest selection parameter.

[0054] In phase I, secure distribution system 120 provides the selected digital component to application 112. Application 112 may then render the digital component with the resource rendered by application 112.

[0055] Figure 2A Shown in more detail Figure 1 In general, the secure distribution system 120 can receive a digital component request 125 from a client device 110, securely execute a workflow 250, and provide a digital component 285 to the client device 110. The secure distribution system 120 can include one or more trusted execution environments (TEEs) 205, an interface engine 210, a workflow management engine 215, a virtual machine (VM) management engine 220, an output verification engine 225, and a request management engine 230. The secure distribution system 120 can execute within the TEE 205.

[0056] TEE 205 is an environment for executing code on a computing platform, wherein the environment ensures that the code is isolated from the computing platform, thereby providing confidentiality of the code. The computing platform can provide TEE 205 using hardware, software, or a combination of hardware and software. In some embodiments, TEE 205 includes a hardware isolation mechanism that runs a secure operating system, and the secure operating system runs applications, thereby providing isolation for the applications. Third parties can inspect the operating system code, allowing these parties to confirm the isolation properties. Therefore, including TEE 205 in the secure distribution system 120 ensures that customizations 255 cannot be accessed when running in the secure distribution system 120, and the secure distribution system 120 ensures that customizations 255 cannot access unauthorized data, thereby providing privacy and isolation for related business assets (e.g., customizations 255 and data used by customizations 255).

[0057] TEE 205 is an execution environment that can provide multiple sandbox and non-sandbox environments. For example, TEE 205 can provide an isolated container configured to run unverified code. Isolating unverified code in such a container ensures that the code can only perform a limited set of operations provided by the container. For example, such code cannot transmit data to external parties except as allowed by the container. TEE 205 can also include a privileged container in which trusted code can be run. Trusted code can be code that is available for public inspection and is cryptographically signed to ensure that no tampering has occurred. The code of TEE 205 itself can run in such a privileged container.

[0058] The secure distribution system 120 may use any suitable technology to provide the TEE 205. For example, the TEE 205 may run on one or more processors of the secure distribution system 120, where such processors are configured to provide a secure computing environment. In another example, the TEE 205 may be hosted in a cloud environment coupled to the secure distribution system 120. In another example, the secure distribution system 120 may include any combination of software code and hardware required to provide the TEE 205.

[0059] The interface engine 210 of the secure distribution system 120 is configured to accept the workflow specification 240a, the customization 255, and the digital component request 125, and can provide the digital component 285 and / or a reference to the digital component 285, such as a uniform resource locator (URL), which enables the client device 110 to download the referenced digital component 285 from the server. The interface engine 210 may include an application programming interface (API) configured to accept data provided to the secure workflow system 105 (e.g., the workflow specification 240a, the customization 255, and the digital component request 125) and to provide a digital component 285 to the client device 110. Figure 1 Other components in environment 100 provide data (e.g., digital component 285).

[0060] Workflow specifications 240a, 240b (collectively referred to as workflow specifications 240) can define the structure of a workflow and can include descriptions of stages 252a, 252b (collectively referred to as stages 252) of the workflow, including interconnections between stages 252 and constraints on inputs and outputs of stages 252.

[0061] The workflow specification 240 can be instantiated into a specific workflow 250 by the workflow management engine 215, and the same workflow specification 240 can be instantiated into multiple workflows 250 multiple times, for example, for multiple content platforms, i.e., the workflow management engine 215 can execute a workflow 250 instantiated from a single workflow specification 240 for each of the multiple content platforms. Each content platform can provide customizations 255 that provide implementations of the stages 252 of the workflow 250 executed by the secure distribution system 120 on their behalf. As further described below, in order to provide privacy of user data, in some embodiments, each stage 252 of the workflow 250 can be executed in a separate virtual machine instance 222, and in some embodiments, all stages of the workflow 250 executed on behalf of the content platform are executed in a single virtual machine instance 222. The workflow specification 240 can use any appropriate technology for defining the structure of the workflow. For example, a workflow can be described as a graph, where the nodes of the graph are the stages 252 of the workflow, and the edges in the graph show the inputs and outputs of the stages 252. In some workflows, the output from one stage becomes the input to another stage 252 or to multiple other stages 252, and a stage 252 may also obtain input from sources other than another stage 252. Additionally, the output from a stage 252 may be processed before it becomes the input to another stage 252. For example, the output may be validated before it is passed to another stage 252, as described further below.

[0062] The workflow specification 240 may include default code for any subset of the workflow stages 252, no stages 252, or all stages 252. The default code provides a basic implementation of the stages, reducing the coding burden for parties providing customizations 255 who do not wish to provide customizations 255 for all stages 252. The workflow specification 240 may also include an indication that a particular stage may not be overridden or otherwise customized, and that the default code must always be used for that stage. The stages in the workflow specification 240 that may be overridden may be referred to as "customization points."

[0063] For example, the secure distribution system 120 may perform a digital component selection process to select digital components to be provided to the client device 110 based on user data and / or other data (such as distribution criteria for each digital component, contextual data, and / or other appropriate data). The digital component selection process may have a plurality of stages 252 defined by the workflow specification 240. The overall sequence of stages may be rigid so that there is no customization of the content platform (e.g., SSP 140 and / or DSP 150). However, the processes performed in some stages may be customized by the content platform. For example, the digital component selection process may have a stage for processing digital component requests 125 to extract data from the requests 125. This stage may be a default stage, in which default code that cannot be customized by the content platform is used by the workflow management engine 215. A later stage may include obtaining candidate digital components and corresponding selection parameters. At this stage, the workflow management engine 215 may perform customization provided by the content platform to select candidate digital components and generate corresponding selection parameters. Since logic provided by the content platform is generally considered confidential, the logic may be securely stored by the secure distribution system 120 and may be executed in an isolated environment, for example, within a content platform-specific virtual machine, as described in more detail below. After obtaining the candidate digital components, the workflow management system 215 may perform another default phase to select a digital component 285 from the candidate digital components to provide to the client device 110 from which the digital component request 125 was received.

[0064] In some implementations, metadata may be included in or associated with a workflow specification 240. Such metadata may include, but is not limited to, the author of the workflow specification 240, its version, creation time, owner, and the like. The metadata may also include criteria indicating whether the workflow defined by the workflow specification 240 is appropriate for a digital component request 125. For example, one workflow specification 240 may be appropriate for a request for a textual digital component 285, while a different workflow specification 240 is appropriate for a request for a multimedia digital component 285. The secure distribution system 120 may use such metadata to select a workflow specification 240 that is appropriate for a particular digital component request 125. The metadata may also include an identifier for the workflow specification 240.

[0065] Customization 255 may be computer executable instructions that define the operation of stage 252 of workflow 250. Instructions for customization 255 may be expressed as executable instructions (e.g., bytecode) and / or in any suitable programming language (including scripting languages), and different customizations 255 may be expressed in any combination of executable instructions and programming languages ​​(which may be different programming languages). For example, customization 255 may be specified as C, C++, Python, and / or other example types of code.

[0066] Customizations may be grouped into workflow descriptions, where a workflow description is an implementation of a workflow specification 240, or a portion of a workflow specification 240, and more specifically, a workflow description may include one or more customizations 255, each of which implements a customization point in a workflow specification 240. A customization 255 may also include one or more identifiers of a stage in the workflow specification that specifies the customization implementation. For example, if a workflow specification 240 includes stages A, B, C, and D, the content platform may provide a workflow description containing customizations 255 of stages A, B, C, and D or a portion thereof. When the secure distribution system 120 instantiates the workflow specification 240 into a workflow 250 on behalf of the content platform, secure distribution may use customizations 255 of each of stages A, B, C, and D provided by the content platform. To simplify the management of customizations, the content platform may group customizations 255 into a workflow description, or the content platform may provide customizations 255 separately.

[0067] The workflow management engine 215 can execute the workflow specified by the workflow specification 240 and the customization 255. In some embodiments, the workflow management engine 215 can execute within the TEE 205, and in some embodiments, the workflow management engine 215 or some components of the workflow management engine 215 can execute outside the TEE 205.

[0068] The workflow management engine 215 can obtain a VM instance 222 from a virtual machine (VM) management engine 220 and instruct the VM instance 222 to execute instructions specified by the customization 255. The VM instance 222 can simulate the operation of a physical computing device while isolating the instructions executed by the VM from the computing device and other VM instances. In the event that a customization 255 does not exist in a stage 252, the VM instance 222 can execute the default code for the stage 252 specified by the workflow specification 240. Executing the customization 255 in the VM instance 222 provides isolation of the customization 255 from the customization 255 provided by other content platforms and resources in the secure distribution system 120 that the customization 255 is prohibited from accessing.

[0069] In some embodiments, the workflow management engine 215 can execute a program consisting of two parts: (i) a "wrapper" that provides a limited set of communication APIs that allow the program to communicate in a limited manner outside the secure distribution system 120, and (ii) code or alternative code specifications that implement the workflow 250.

[0070] Encapsulated code is typically available for review and / or audit and signing by a trusted third party, ensuring that the code is trustworthy because such code may not include confidential code of the content platform that should remain confidential. The API provided by the encapsulation can limit the information that can be sent to third parties, protecting the privacy of user data. The confidential code of the content platform can run in a protected environment (e.g., a sandbox of the TEE) so that the confidential code does not have to be audited to ensure that the confidential code does not do anything malicious, such as exposing sensitive user data outside the secure distribution system 200. Alternatively, the TEE 205 and the sandbox provide this protection.

[0071] Figure 2B An example of encapsulated code 290 running in a trusted execution environment 205 is shown. The TEE 205 can execute the encapsulated code 290 and can instantiate a virtual machine instance 222 or other sandbox. The virtual machine instance 222 or other sandbox can execute code 292 provided by the content platform to implement a workflow in an isolated environment using only the encapsulated code 290 to communicate outside the secure distribution system 120. Note that while the code 292 that implements the workflow is shown as being executed within the encapsulation 290, the encapsulation 290 can be a service provided by the TEE 205 and available to the code 292. In addition, while the code 292 for one content platform is shown, the TEE 205 can execute code 292 for any number of content platforms.

[0072] The code implementing workflow 250 may include one or more reference implementations of workflow 250. The code may also rewrite or otherwise replace all or part of workflow 250, and thus may include all of a reference implementation, any part of a reference implementation, parts of multiple reference implementations, or no parts of any reference implementation. Such code need not be available for review or otherwise auditing, as the code will be executed in a sandbox hosted by TEE 205, and thus its execution and ability to send data from secure distribution system 120 is controlled.

[0073] The code implementing the workflow 250 can be provided by any authorized party. In one example, a content provider can obtain one or more reference implementations and modify all or part of the reference implementations. The content provider can modify one or more stages, completely replace one or more stages, remove stages, combine stages, add stages that do not exist in the reference implementations, and make other adjustments. In this way, the content platform has flexibility in configuring workflows that implement their requirements and are not audited, but in a way that ensures that their customized workflows do not leak user data from the secure distribution system 120.

[0074] Back to Figure 2A, the VM management engine 220 can create a VM instance 122, destroy a VM instance 222, and assign a VM instance 222 to a workflow stage 252, among other VM management operations. The VM management engine 220 may include an API that, when called by the workflow management engine 215, causes the VM management engine 220 to create a VM instance 222 and provide a reference to the VM instance 222 to the workflow management engine 215. The workflow management engine 215 may assign the VM instance 222 to a stage 252 of the workflow 250, and execute instructions (which may be customizations 255) of the stage 252 in the VM instance 222. The TEE 205 may also instruct the VM management engine 220 to create a VM instance 222 that executes within the TEE 205.

[0075] In some embodiments, the VM management engine 220 can deploy each virtual machine in a sandbox environment or other isolated environment. In this way, the VM management engine 220 can control the data provided to or sent from each virtual machine, which can prevent the logic of the content platform from sending sensitive data (e.g., user data) outside the secure distribution system 110. This further enhances user privacy when generating dynamic digital content by preventing sensitive user data from leaking from the secure distribution system 110.

[0076] In some embodiments, the VM management engine 220 may be executed within the TEE 205, and in some embodiments, the VM management engine 220 or some components of the VM management engine 220 may be executed outside the TEE 205. In some embodiments, the VM management engine 220 or components of the VM management engine 220 may be executed outside the TEE 205, and the VM instance 222 created by the VM management engine 220 may be executed inside the TEE 205.

[0077] The output validation engine 225 can accept the output from the stage 252 of the workflow that can be implemented by the customization 255, and determine whether the output meets the criteria imposed on the output. In various implementations, the criteria are included in the workflow specification 240; the criteria are configured into the workflow management engine 215, for example, by an authorized administrator of the secure distribution system 110; and / or the workflow management engine 215 obtains the criteria using other techniques (such as reading the criteria from a storage device). If the output validation engine 225 determines that the output does not meet the criteria, the output validation engine can indicate to the workflow management engine 215 that the workflow 250 should be halted.

[0078] The criteria may be expressed in any suitable format and may be expressed using any property of the output and / or any property of the system. For example, the criteria may be expressed as a Boolean expression. The criteria may include the type of value produced (e.g., the output must be an integer, a floating point number, a string, an array, a Boolean, etc.), the range of the value produced (e.g., the value must be between a minimum and a maximum), the limits of the value produced (e.g., the value cannot exceed a threshold), etc. The criteria may be expressed for a specific content platform, for a category of content platforms (e.g., a provider of images or a provider of multimedia), for all content platforms, etc.

[0079] The request management engine 230 can accept the digital component request 125 from the interface engine 210 and provide the request 125 (or data from the request 125) to the workflow management engine 215. The digital component request 125 can be any appropriate content specification. For example, the digital component request 125 can be a query string and can include user data and / or context data provided by the client device 110, as described above. The workflow management engine 215 can use the digital component request 125 and metadata associated with the workflow specification 240 to determine an appropriate workflow specification 240 for the digital component request 125. For example, if the request is for an image, the workflow management engine 215 can select a workflow that is configured to select a digital component 285 in the form of or including an image.

[0080] Figure 3 1 is a flow chart of an example process 300 for executing a secure workflow for content selection. For convenience, the process 300 will be described as being performed by a system for executing a secure workflow for content selection (e.g., Figure 1 2) which is appropriately programmed to perform the process. The operations of process 300 may also be implemented as instructions stored on one or more computer-readable media that may be non-transitory, and execution of the instructions by one or more data processing devices may cause one or more data processing devices to perform the operations of process 300. One or more other components described herein may perform the operations of process 300.

[0081] The system obtains (310) a workflow specification. For example, the system may include an API configured to accept a workflow specification. In another example, the system may receive data containing the workflow specification over a network, such as data delivered using Transmission Control Protocol / Internet Protocol (TCP / IP), Hypertext Transfer Protocol (HTTP), or HTTP-Secure (HTTP-S). In yet another example, the system may obtain the workflow specification from a storage device using an API suitable for the storage device, or obtain the workflow specification from a database using Structured Query Language (SQL). As described above, the workflow specification may define the structure of the workflow, and in some examples may include default codes for stages of the workflow.

[0082] The system obtains (315) customizations, which may be included in one or more workflow descriptions. The system may use any suitable technique to obtain customizations. For example, the system may accept customizations included in data received via a network protocol such as TCP / IP, HTTP, or HTTP-S. In another example, the system may include an API that enables parties, such as content platforms, to provide customizations when called by the parties. As described above, each customization may be configured to implement a stage of a workflow specification. Multiple parties, which may be content platforms, may provide customizations, and the parties may provide multiple workflow descriptions, each of which is configured to implement a stage of a different workflow specification.

[0083] In some embodiments, the customizations may be encrypted by the submitting party and decrypted by the system using any suitable encryption technique to protect the workflow description. For example, the system may publish a public key (e.g., by storing the public key at a known accessible location). The submitting party may obtain the public key, encrypt the customization (or multiple customizations in the workflow description) using the public key, and provide the encrypted customization and / or the encrypted workflow description to the system. The system may decrypt the encrypted customization and / or workflow description using its private key, which corresponds to the public key used by the submitting party.

[0084] The system can create a workflow from a workflow specification and customizations. As described above, a customization can include an identifier of a stage of the workflow specification that the customization implements. For each stage included in the workflow specification, the system can include default code for the stage from the workflow specification, and for a customization point (i.e., a stage of the workflow specification that can be overridden), replace the code for the stage with the code included in the corresponding customization. If the system obtains a customization for a stage that is not a customization point, the system can ignore the customization and / or provide an error message.

[0085] The system receives (320) a request for a digital component using any suitable technique. For example, the system can receive the digital component request 125 via HTTP or SQL. As described above, the digital component request 125 can include a description of the requested digital component (e.g., a search string), user data, and / or context data, as described above.

[0086] In response to receiving the request, the system determines (325) a multi-stage workflow for selecting personalized content from candidate content of multiple content platforms. As described above, metadata associated with the workflow specification may include criteria indicating whether the workflow is suitable for a particular digital component request. The system can determine whether the criteria are met to determine a workflow for execution. For example, the criteria may specify that the workflow specification is suitable for requests received from a particular geographic region to which location-specific rules apply. In this case, the system can evaluate the criteria associated with the workflow to select a workflow suitable for requests from that region.

[0087] The system executes (330) each stage of the multi-stage workflow to determine at least one output value. Executing the workflow may include various operations, as described below.

[0088] For at least a subset of content platforms that provide stages (which may be customizations) associated with digital component request 125, the system may execute the stages of the workflow determined in operation 225. Executing the stages may include instantiating (335) a VM instance that is configured to isolate a set of executable instructions (e.g., customizations for the stages) provided by the content platform. The system may instantiate the VM instance using a hypervisor configured to instantiate VM instances or using any other suitable technique for instantiating VM instances. The system may then execute the code for the stages in the VM instances. Thus, in some embodiments, the system executes each stage in a separate, isolated VM instance, and the isolation ensures that the VM instance can only access system resources that the VM instance has access permissions to. For example, for each customizable stage, the system may execute customizations for each content platform for that stage in its own separate and isolated VM. Such a system provides isolation between all stages, regardless of whether they are provided by a single content platform or by multiple content platforms. Additionally, in some implementations, the system may execute multiple stages provided by a given content platform in a single VM instance. Using a single VM instance to execute multiple stages may reduce the computational requirements of a computing system by reducing the number of required VM instances.

[0089] The system executes (340) executable instructions of the stage within the VM to determine at least one output value. The system may include one or more execution environments (e.g., a Java virtual machine, a JavaScript engine, and a Python engine, among other alternatives) configured to execute executable instructions that may determine output values ​​for selecting digital components. In some embodiments, a workflow may include multiple stages, wherein an end stage directly selects a digital component from a set of candidate digital components, and outputs of intermediate stages may affect the operation of the end stage (e.g., by selecting a candidate and / or generating selection parameters for a candidate), thereby affecting the selection of a digital component. As described above, workflow specifications and customizations may include code specified using any appropriate programming language or code specified as executable instructions (such as bytecode). The results of each stage may be returned to the system for delivery to the next stage and / or for selecting a digital component. Validity criteria may also be used to evaluate the results of a stage, as described below.

[0090] When executing within a VM, implementations of a stage may access input data needed to execute the stage. The input data may be stored in any suitable format and may be stored on any suitable storage device. For example, the input data may be stored as (key, value) pairs, where a stage accesses the data by providing a key, and the system may provide the value associated with the key. In various implementations, the input data may be stored in a database and obtained using SQL queries and / or stored in a file system and accessed using a file system API.

[0091] The system may provide access control for (key, value) pairs. For example, each (key, value) pair may be associated with an access control list, and the system may provide the (key, value) pair only if the content platform providing the customization is included in the access control list. The system may obtain the access control list from an authorized administrator or using other suitable techniques for obtaining the access control list. In some embodiments, a content platform may provide a collection of (key, value) pairs, and the system may allow access to such a collection only for the content platform providing the collection, or allow access to such a collection by other content platforms explicitly authorized by the content platform providing the collection.

[0092] In order to limit the system resources consumed on behalf of the content platform, on behalf of any subset of the content platform, or on behalf of all content platforms, the system can impose limits on the resources consumed by the entire workflow, a subset of stages in the workflow, or any workflow stage. Such limits can be valuable, for example, when the system is executed on a server or server group that provides a multi-tenant environment, and one or more servers ensure that the computing resources consumed by any given tenant do not exceed the configured threshold, thereby leaving enough computing resources available for other tenants. This can also reduce the overall workload on the system, which can extend the life of the processing components of the system. Resources can include any operational metrics, such as processor time (e.g., by central processing unit (CPU), graphics processing unit (GPU), digital signal processor (DSP), dedicated processor (ASP), etc.), memory usage, storage usage, and network usage, as well as other operational metrics. The system can impose limits on any aspect of resource usage (such as aggregate usage, peak usage, usage rate within a certain time period, etc.), which can be expressed as constraints. Limits can also be combined in any logical combination. For example, a limit can specify a maximum peak usage and a limit on aggregate usage. Constraints may be enforced on a particular stage, on a group of stages, on an entire workflow, on all workflows provided by a content platform, across a collection of content platforms, and / or on other single or aggregate entities. If a constraint is met, the system may perform remedial actions. Such actions may include, but are not limited to, terminating or delaying the operation of a stage or workflow.

[0093] When the stage completes execution, the system determines (345) the validity of one or more output values ​​produced by the stage. In the case where multiple VMs are used in a stage, for example, when there is a separate VM for each content platform of the stage, the system can determine the validity of the output of each VM. As described above, the criteria for determining the validity of the output can be included in the workflow specification and / or configured into the system. Such criteria can protect requester privacy by ensuring that the stage only provides data to other stages and content platforms that meet constraints, which constraints may include privacy constraints. The system can use the output value to evaluate the criteria to determine whether the criteria is met. As described above, the criteria can be expressed as a function of the type output, one or more values ​​of the output, and the like.

[0094] The VM management engine may deactivate (350) the VM using any suitable technique for deactivating a VM. For example, the system may instruct the hypervisor to deactivate the VM. Deactivating a virtual machine removes all state of the computations completed by the stage, thereby ensuring that the stage does not provide unauthorized content to another stage.

[0095] In response to determining that the output value is valid (e.g., as determined in operation 245), the virtualized workflow engine determines (355) a result based at least in part on the first output value from each VM. The result can be a digital component or a descriptor of a digital component. The descriptor can include a reference to one or more digital components (e.g., indicated by a URL or URI) present at or provided by the content platform, and / or a descriptor that can be used by the content platform to determine the digital component. For example, the descriptor can include any metadata describing the digital component, such as the category of information requested (e.g., sports, fashion, news, science, etc.), depersonalized information about the requester (e.g., general categories of demographic data, such as age range, location, etc.), characteristics of the device (e.g., phone or laptop), etc.

[0096] The system can provide (360) the result to the requestor's client device, the content platform, or both. When the result is a digital component provided to the requestor's client device, the client device can display the digital component on a user interface of the client device. When the result is a descriptor of a digital component, the client device can retrieve the digital component (e.g., using HTTP to retrieve the digital component specified by a URL) and display the digital component on a user interface of the client device.

[0097] In addition, in the case where the descriptor is provided to the requester rather than the content platform, the system can provide the content platform with an indication that the content from the provider was selected. Such information can allow the content platform to determine the popularity of the digital component provided by the provider. The content platform can also use such information to refine its customized operations.

[0098] Figure 4 4 is a flow chart of an example process 400 for executing a secure workflow for content selection. For convenience, the process 400 will be described as being performed by a system for executing a secure workflow for content selection (e.g., Figure 1 2) is performed by the secure distribution system 120 of FIG. 2, which is appropriately programmed to perform the process. The operations of process 400 may also be implemented as instructions stored on one or more computer-readable media that may be non-transitory, and execution of the instructions by one or more data processing devices may cause one or more data processing devices to perform the operations of process 400. One or more other components described herein may perform the operations of process 400.

[0099] The system can obtain (410) specifications for one or more multi-stage workflows. The system can use Figure 3 The method may be performed by performing operation 310 or a similar operation.

[0100] In some embodiments, the system may verify (412) the authenticity of its TEE to the provider of the customization and / or other interested parties (such as third parties) that verify the code of the secure distribution system 120 (in addition to the content platform's customization code and / or other confidential code running in the TEE). As described above, the TEE ensures that the code running in the TEE is protected from disclosure, and because some customizations can be confidential, the content platform (e.g., SSP) and other parties can benefit from ensuring that the TEE is trustworthy. Therefore, before the content platform provides the customization to the system, the content platform can use any appropriate technology to verify the authenticity of the TEE.

[0101] For example, in one technique, the system can provide a signature, such as a hash value, for the code that implements the TEE. Each party can obtain a known signature for the TEE and verify the TEE by comparing the provided signature with the known signature of the TEE. If the signatures match, then the TEE can be confirmed to be authentic. In addition, additional techniques can be employed to ensure that the TEE is properly verified.

[0102] If the content platform cannot authenticate the TEE, the content platform can perform remedial actions. For example, if the content platform predicts that the error is transient, the content platform can repeat the operation by providing a second nonce to the TEE. In another example, the content platform can provide an error message to an appropriate destination (such as a system administrator or a log file). The content platform can also provide a message to the system, allowing the system to take corrective action. For example, if the TEE becomes corrupted in some way, the system can remove the TEE and load an uncorrupted version. In another example, the system can stop process 400 in response to failing to successfully authenticate the TEE.

[0103] The system obtains (415) customizations that may be included in one or more workflow descriptions and creates one or more workflows from the workflow specifications and customizations. The system may use Figure 3 The method may be performed by performing operation 315 or a similar operation.

[0104] The system receives (420) a request for a digital component. The system may use Figure 3 The method may be performed by using a technique of operation 320 or similar operations.

[0105] In response to receiving the request, the system identifies (425) one or more multi-stage workflows, which may have been created in operation 415 or may have been obtained by the system using other techniques. For example, the multi-stage workflows may be identified from multi-stage workflows stored by the system. To identify the one or more multi-stage workflows, the system may use Figure 3 The technique of operation 325 or similar operation may be used.

[0106] As described above, each of the one or more multi-stage workflows may include one or more customizable stages and may be associated with (e.g., provided by) a particular content platform. When evaluated by the system, the multi-stage workflow selects a digital component from candidate digital components of a plurality of content platforms that distribute the digital component to a client device based on data available to the multi-stage workflow.

[0107] In some embodiments, for at least one stage of one of the multi-stage workflows, the system may request code for the stage from the content platform or from a trusted location specified by the content platform. In some implementations, the workflow specification (e.g., as obtained in operation 410) may include one or more references to a location (e.g., URL) containing code for one or more stages (e.g., customization) of the workflow described by the workflow specification. The system may download the code (e.g., using HTTP or HTTP-S) from the location specified by the workflow specification. The system may then execute the workflow within the sandbox environment, including the downloaded code.

[0108] The system can evaluate each specific workflow identified in operation 425 by launching (440) a sandbox for the specific workflow; executing (445) the workflow in the sandbox; receiving (450) output data from the sandbox; and selecting (455) one or more digital components using, at least in part, the output data. The system can also provide (460) the selected digital components.

[0109] The system can launch (440) a sandbox for a particular workflow. In some implementations, the sandbox can be a VM, and the system can instantiate the VM instance using a hypervisor configured to instantiate a VM instance or using any other suitable technique for instantiating a VM instance. The sandbox environment (e.g., a VM) isolates the workflow, preventing it from performing operations not provided by the sandbox. For example, the sandbox prevents the code of a multi-stage workflow from sending user data from a server, communicating with other multi-stage workflows, accessing storage on the system (except as authorized by the sandbox), etc.

[0110] The system can then execute (445) the code for the phases of the workflow in a single VM instance.As described above, using a single VM instance to execute multiple phases of a workflow can reduce the computational requirements of the computing system by reducing the number of VM instances required.

[0111] In some embodiments, the system can execute each stage in a separate, isolated VM instance, and the isolation ensures that the VM instance executing the stage can only access system resources, which may include data stored by the system for which the VM instance has access permissions. For example, for each customizable stage, the system can perform customization of each content platform of that stage in its own separate and isolated VM. Such a system provides isolation between all stages, regardless of whether they are provided by a single content platform or by multiple content platforms. For example, as described above, the VM prevents the platform from sending user data to the server, thereby protecting the user's privacy.

[0112] The system can also use a hybrid approach, where it creates multiple VMs for the content platform's workflow, but instead of creating one VM for each stage, the system can execute all stages that are not customized in a single VM, and each customized stage in its own VM.

[0113] In some implementations, some VMs may run within the TEE, while some VMs may run within the system but outside the TEE. For example, a customization may run within the TEE (e.g., one customization per VM, or multiple customizations from the same content provider in a single VM), while a non-customized phase may run in a VM outside the TEE. Since the non-customized phase may contain non-proprietary code, the level of privacy provided by the TEE may not be necessary.

[0114] The system may receive (450) output data from the sandbox. The system may provide resources accessible to the sandbox, wherein the sandbox may provide output data. For example, the sandbox may provide an API that, when called by code running in the sandbox, enables the code to provide output data to the sandbox. In another example, the system may provide code running in the sandbox access to a shared memory or storage device. The code may write data to the shared storage device, thereby allowing the system to receive the output data. The output data may include one or more selection parameters that may be used by the system to select a digital component. For example, the selection parameter may include a metric reflecting the relevance of the digital component to the digital component request.

[0115] The system may use, at least in part, the output data to select (455) one or more digital components. The system may use Figure 3 The technique of operation 355 or similar operation.

[0116] The system may also provide (460) the selected digital component to the client device for presentation to a user of the client device. Figure 3 360 degree operation or similar operation technology.

[0117] Figure 55 is a block diagram of an example computer system 500 that can be used to perform the above operations. System 500 includes a processor 510, a memory 520, a storage device 530, and an input / output device 540. Each of components 510, 520, 530, and 540 can be interconnected, for example, using a system bus 550. Processor 510 is capable of processing instructions for execution within system 500. In one embodiment, processor 510 is a single-threaded processor. In another embodiment, processor 510 is a multi-threaded processor. Processor 510 is capable of processing instructions stored in memory 520 or on storage device 530.

[0118] Memory 520 stores information within system 500. In one embodiment, memory 520 is a computer readable medium. In one embodiment, memory 520 is a volatile memory unit. In another embodiment, memory 520 is a non-volatile memory unit.

[0119] The storage device 530 can provide mass storage for the system 500. In one embodiment, the storage device 530 is a computer-readable medium. In various embodiments, the storage device 530 may include, for example, a hard disk device, an optical disk device, a storage device shared by multiple computing devices (e.g., a cloud storage device) over a network, or some other mass storage device.

[0120] The input / output device 540 provides input / output operations for the system 500. In one embodiment, the input / output device 540 may include one or more of a network interface device (e.g., an Ethernet card), a serial communication device (e.g., an RS-232 port), and / or a wireless interface device (e.g., an 802.11 card). In another embodiment, the input / output device may include a driver device configured to receive input data and send output data to other input / output devices, such as a keyboard, a printer, and a display device 560. However, other embodiments may also be used, such as a mobile computing device, a mobile communication device, a set-top TV client device, etc.

[0121] Although already Figure 5 An example processing system is described in the specification, but the subject matter and implementation of the functional operations described in this specification may be implemented in other types of digital electronic circuits, or in computer software, firmware, or hardware (including the structures disclosed in this specification and their structural equivalents), or in a combination of one or more of them.

[0122] The embodiments of the subject matter and functional operations described in this specification can be implemented in digital electronic circuits, or in computer software, firmware or hardware, including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification can be implemented using one or more modules of computer program instructions encoded on a computer-readable medium, which are used to be executed by a data processing device or control the operation of the data processing device. The computer-readable medium can be a manufactured product, such as a hard drive in a computer system or an optical disk sold through a retail channel, or an embedded system. The computer-readable medium can be obtained separately and later encoded with one or more modules of computer program instructions, such as one or more modules of computer program instructions delivered via a wired or wireless network. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, or a combination of one or more of them.

[0123] The term "data processing apparatus" encompasses all apparatus, devices and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. In addition to hardware, the apparatus may also include code that creates an execution environment for the computer program in question, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, a runtime environment, or a combination of one or more of them. In addition, the apparatus may employ a variety of different computing model infrastructures, such as web services, distributed computing, and grid computing infrastructures.

[0124] A computer program (also referred to as a program, software, software application, script, or code) may be written in any suitable form of a programming language, including compiled or interpreted languages, declarative or procedural languages, and may be deployed in any suitable form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions). A computer program may be deployed to execute on one computer or on multiple computers located at one site or distributed across multiple sites and interconnected by a communications network.

[0125] The processes and logic flows described in this specification can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, and the apparatus can also be implemented as special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits).

[0126] Processors suitable for executing computer programs include, for example, dedicated microprocessors. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices (such as magnetic disks, magneto-optical disks, or optical disks) for storing data, or be operably coupled to receive data from it or transmit data to it or both. However, a computer does not need to have such a device. In addition, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name a few. Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM (erasable programmable read-only memory), EEPROM (electrically erasable programmable read-only memory), and flash memory devices; disks, such as internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[0127] In this specification, the term "engine" is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine; in other cases, multiple engines can be installed and run on the same one or more computers.

[0128] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computing device capable of providing information to a user. Information may be provided to the user in any form of sensory format, including visual, auditory, tactile, or a combination thereof. The computing device may be coupled to a display device for displaying information to the user, such as an LCD (liquid crystal display) display device, an OLED (organic light emitting diode) display device, another monitor, a head-mounted display device, or the like. The computing device may be coupled to an input device. The input device may include a touch screen, a keyboard, and an indicating device, such as a mouse or a trackball, through which a user can provide input to the computing device. Other types of devices may also be used to provide interaction with a user; for example, feedback provided to the user may be any suitable form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any suitable form, including sound, voice, or tactile input.

[0129] A computing system may include a client and a server. The client and the server are usually far away from each other and usually interact through a communication network. The relationship between the client and the server is generated by means of a computer program that runs on a corresponding computer and has a client-server relationship with each other. The embodiments of the subject matter described in this specification can be implemented in a computing system, which includes a back-end component (e.g., as a data server), or includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer with a graphical user interface or a Web browser, through which a user can interact with the embodiment of the subject matter described in this specification), or any combination of one or more such back-ends, middleware or front-end components. The components of the system can be interconnected by digital data communication (e.g., a communication network) in any suitable form or medium. Examples of communication networks include local area networks ("LAN") and wide area networks ("WAN"), Internet networks (e.g., the Internet) and peer-to-peer networks (e.g., self-organized (ad hoc) peer-to-peer networks).

[0130] Although this specification contains many implementation details, these should not be interpreted as limitations on the scope of what is claimed or may be claimed, but as descriptions of features that are peculiar to a particular embodiment of the disclosed subject matter. Certain features described in the context of a separate embodiment in this specification may also be implemented in combination in a single embodiment. On the contrary, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations and even initially claimed, one or more features from the claimed combination may be deleted from the combination in some cases, and the claimed combination may be directed to a sub-combination or a variation of the sub-combination. Therefore, unless otherwise expressly stated, or unless otherwise expressly stated by the knowledge of a person of ordinary skill in the art, any feature of the above-described embodiments may be combined with any other feature of the above-described embodiments.

[0131] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that the operations be performed in the particular order shown or in sequence, or that all of the operations shown be performed, to achieve the desired results. In some cases, multitasking and / or parallel processing may be advantageous. In addition, the separation of various system components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0132] Thus, certain embodiments of the invention have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results.

Claims

1. A computer-implemented method comprising: receiving a digital component request including a data set from a client device; In response to receiving the digital component request: identifying one or more multi-stage workflows, each of the one or more multi-stage workflows (i) configured to select a digital component from candidate digital components for a plurality of content platforms, and (ii) comprising one or more customizable stages; For each specific multi-stage workflow of the one or more multi-stage workflows: Initiating, by a trusted execution environment (TEE) of a server, a sandbox environment for executing at least one or more stages of the specific multi-stage workflow; Executing one or more stages of a particular multi-stage workflow by the TEE and within a sandbox environment, wherein the sandbox environment prevents code of the multi-stage workflow from transmitting user data from a server; as well as receiving, by the server and from the TEE, output data from the particular multi-stage workflow; selecting, by the server, a digital component based on at least a portion of the output data from each particular multi-stage workflow; as well as The digital component is provided by the server to the client device for presentation to a user of the client device.

2. The computer-implemented method of claim 1 , wherein: Executing the specific multi-stage workflow within the sandbox environment further includes: For each customizable stage of this particular multi-stage workflow: Initiating a corresponding sandbox environment by the trusted execution environment, executing the code of the phase in the sandbox environment to generate output data for use in one or more other phases of the secure workflow; executing the code of the stages within the sandbox environments, wherein each sandbox environment prevents the code from sending user data from the server; and receiving the output data from each configurable stage by the server and from the trusted execution environment.

3. The computer-implemented method of any preceding claim, further comprising: For at least one stage of a specific multi-stage workflow among the one or more multi-stage workflows, wherein the specific multi-stage workflow belongs to a specific content platform: determining, for a stage in the at least one stage of the particular multi-stage workflow, a reference to a location containing code implementing the stage; Code including the at least one stage is requested from the content platform by the server and using at least in part the reference, wherein executing the particular multi-stage workflow within the sandbox environment includes executing the code.

4. A computer-implemented method according to any preceding claim, wherein: Sandboxes include virtual machines.

5. The computer-implemented method of any preceding claim, further comprising: A signature for the code of the TEE is provided by the TEE.

6. The computer-implemented method of claim 5, further comprising: Obtaining the signature from the specific content platform; Obtaining a known signature of the TEE from the specific content platform; determining that the signature matches the known signature; as well as In response to determining that the signature matches the known signature: Determining that the trusted execution environment is verified; as well as At least one customization is provided to the trusted execution environment.

7. A computer-implemented method according to any preceding claim, wherein: The output data includes one or more selection parameters describing a relevance of the digital component to the digital component request.

8. The computer-implemented method of any preceding claim, further comprising: At least one stage is identified in the multi-stage workflow that is not customizable, and in response, the at least one stage is executed outside of the trusted execution environment.

9. A computer-implemented method according to any preceding claim, wherein: Identifying the multi-stage workflow includes receiving a revised version of a default workflow from a specific content platform, the method further comprising: The revised version of the default workflow is executed using a wrapper that provides a limited set of communication application programming interfaces (APIs) that restrict communication of the revised version of the workflow with external components.

10. A system comprising: one or more processors; as well as One or more storage devices storing instructions which, when executed by the one or more processors, cause the one or more processors to perform a method according to any preceding claim.

11. A computer readable medium carrying instructions which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1 to 9.

12. A computer program product comprising instructions which, when executed by a computer, cause the computer to perform the steps of the method according to any one of claims 1 to 9.