Protecting a web server from an unauthorized client application

DE112017004160B4Active Publication Date: 2024-10-02INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
DE112017004160
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2016-11-28
Filing Date
2017-11-27
Publication Date
2024-10-02
Estimated Expiration
2037-11-27

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A concept is provided to protect communication between a server computer and a client computer. An initial string is sent to the client in response to a request to allow the client computer to execute an application to access a first function. A second string, containing a parameter of a second function, is received. This second string is the result of converting the first string into a command and executing that command by the client. The second string is then converted into a call to the second function. Using this call, the server executes the second function.Based on the result of the execution of the second function, and without requiring any implementation of native code, the server determines whether (i) the application should be allowed access to the first function or (ii) the application should be prevented from accessing the first function.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUNDThe present invention relates to protecting communications between a client and a server, and more particularly to protecting a web server from an unauthorized client application of a mobile device.Hybrid mode mobile applications can execute JavaScript ®- code in a native container, which simplifies platform-wide development, but subjects backend servers to a possibility of being invoked by unauthorized applications. JavaScript is a registered trademark of Oracle America Inc. located in Redwood Shores, California. An attacker can examine the JavaScript ®- code provided with the application and write the attacker's own application that makes unauthorized calls to the server. Some known development frameworks of mobile applications may protect the server from modified code on a mobile phone using a native implementation (e.g., a query token sent from a server to the application is processed by compiled native code so that an outside attacker cannot see the logic of the processing).Challenge-response authentication. In: Wikipedia, the free encyclopedia. Processing status: 03.01.2016. URL: https: / / en.wikipedia.org / w / index.php?titute=Hall%E2%80%93response_authentication [retrieved on 20.06.2024] describes the challenge-response authentication as a protocol in which one party sends a challenge and the other party must deliver a valid response to confirm authenticity.US 2012 / 0 117 639 A1 describes embodiments which enable the authentication of users of web-based applications by presenting a previously acquired signed digital signature.SUMMARY OF THE INVENTIONThe invention is described by the features of the independent claims.Embodiments are set out in the dependent claims.In a first embodiment, the present invention provides a method for protecting communication between a server computer and a client computer. The method includes sending, by the server computer, a first string of characters to the client computer in response to a request to the server computer to verify authenticity of an application executed by the client computer and to allow the application to access a first function executed by the server computer. The method further includes, in response to transmitting the first string of characters, receiving, by the server computer, a second string of characters that includes a parameter of a second function that is an internal function of the server computer. The second string is a result of converting the first string into a command by the client computer and locally executing the command by the client computer. The method further includes converting, by the server computer, the second string of characters into a call to the second function to verify authenticity of the application. The method further includes executing, by the server computer, the second function using the call to the second function. The method further includes, based on a result of executing the second function and without requiring translation of native code that checks authenticity of the application, determining, by the server computer, whether (i) to validate authenticity of the application and allow the application access to the first function, or (ii) to prevent the application from accessing the first function.In a second embodiment, the present invention provides a computer program product including a computer readable storage medium and computer readable program code stored in the computer readable storage medium. The computer readable program code includes instructions executed by a central processing unit (CPU) of a server computer system to implement a method for protecting communication between the server computer system and a client computer system. The method includes sending, by the server computer system, a first string of characters to the client computer system in response to a request to the server computer system to verify authenticity of an application executed by the client computer system and to allow the application to access a first function executed by the server computer system. The method further includes, in response to transmitting the first string of characters, receiving, by the server computer system, a second string of characters that includes a parameter of a second function that is an internal function of the server computer system. The second string is a result of the first string being converted to a command by the client computer system and the client computer system locally executing the command. The method further includes converting, by the server computer system, the second string of characters into a call to the second function to verify authenticity of the application. The method further includes executing, by the server computer system, the second function using the call to the second function. The method further includes, based on a result of executing the second function and without requiring translation of native code that checks authenticity of the application, determining, by the server computer system, whether (i) to validate authenticity of the application and allow the application access to the first function, or (ii) to prevent the application from accessing the first function.In a third embodiment, the present invention provides a computer system including a central processing unit (CPU), a memory connected to the CPU, and a computer readable storage unit connected to the CPU. The storage unit includes instructions executed by the CPU via the memory to implement a method for protecting communication between the server computer system and a client computer system. The method includes sending, by the server computer system, a first string of characters to the client computer system in response to a request to the server computer system to verify authenticity of an application executed by the client computer system and to allow the application to access a first function executed by the server computer system. The method further includes, in response to transmitting the first string of characters, receiving, by the server computer system, a second string of characters that includes a parameter of a second function that is an internal function of the server computer system. The second string is a result of the first string being converted to a command by the client computer system and the client computer system locally executing the command. The method further includes converting, by the server computer system, the second string of characters into a call to the second function to verify authenticity of the application. The method further includes executing, by the server computer system, the second function using the call to the second function. The method further includes, based on a result of executing the second function and without requiring translation of native code that checks authenticity of the application, determining, by the server computer system, whether (i) to validate authenticity of the application and allow the application access to the first function, or (ii) to prevent the application from accessing the first function.Embodiments of the present invention validate the authenticity of a mobile application to prevent unauthorized applications from invoking a server without requiring a native implementation for checking application authenticity. Embodiments of the present invention may be implemented in any client-server architecture or added to an authentication framework already implemented in the client-server architecture when the authentication framework is configured to prompt the client for authentication (e.g., prompt for a password).BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a block diagram of a system for protecting communication between a server computer and a client computer, in accordance with embodiments of the present invention. FIG. 2 is a flow diagram of a process for protecting communication between a server computer and a client computer, the process being implemented in the system of FIG. 1, in accordance with embodiments of the present invention. FIG. 3 is a block diagram of a computer that includes the server computer included in the system of FIG. 1 and that implements the process of FIG. 2 in accordance with embodiments of the present invention.DETAILED DESCRIPTIONOVERVIEWEmbodiments of the present invention validate an application in a client / server environment or hybrid mode mobile application as being authorized to access a server. The application operates in a framework that implements a security check such that when the client invokes a function disclosed by the server, the server sends to the client a challenge that allows the client to authenticate and authorize itself to invoke the function of the server in a protected manner. In one embodiment, a JavaScript ®- file of the hybrid mode mobile application is supplemented with code necessary to obtain each function available in the file itself by adding a code execution function. An attacker is unable to identify the technique used to protect the code because the code execution function executes the code received during runtime in a string variable. The server may modify the code via remote access and validate the modification of the code during runtime. The security technique can be used in any client / server architecture with a file written in an interpreted programming language, i.e., a functional programming language (e.g., Lisp, Scheme, Haskell, ML, lambda, etc.), or supports functional programming, such as the JavaScript ®- Web scripting language. The programming language must be capable of: (1) converting a function to a string; (2) modifying a function during runtime; and (3) transforming a string to a function.Embodiments of the present invention allow the server to insert any type of code executing on a mobile unit or other client computer to implement the relevant security and authenticity checks before allowing function calls. Such routines are not available in the source files (e.g. JavaScript ®- source files), but are executed only in a controlled manner by the server itself. Security is enhanced by the server being able to modify the security translation over time and perform additional checks, for example for client application execution time and behavior.Embodiments of the present invention protect communication between the server and the client by performing the following steps: (1) when the client invokes a function disclosed by the server, performing a security query on the client side; (2) the server sends a string of characters to be performed (e.g., retrieving and sending a particular portion of the JavaScript ®- source file); (3) the client executes the code and sends the result to the server and can send the original function as a string of characters; and (4) the server reads the result and decides whether the client is authentic.Protection during transmission and code concealing are required to prevent an attacker from understanding the overall process. In one embodiment, the technique for protecting communication between client and server uses JavaScript ®- code and does not use a native implementation.SYSTEM FOR PROTECTING COMMUNICATION BETWEEN A SERVER AND A CLIENTFIG. 1 is a block diagram of a system 100 for protecting communication between a server computer and a client computer, in accordance with embodiments of the present invention. The system 100, a server computer 102 that stores authenticity information 104 and executes server-side authentication components 106 based on software. The system 100 also includes a client computer 108 that executes a software-based application 110 (e.g., a mobile application) that includes a client-side authentication component 112 and a query utility 114.Prior to enabling the application 110, a software-based application authentication tool 116 is executed on a computer (e.g., the server computer 102 or other computer, not shown) to generate authenticity information 104 and the challenge utility 114. The authentication information 104 is stored in a data store and contains security queries and the proper responses to the security queries. The application authentication tool 116 reads from a data store that stores application source files 118, which are the source files of the application 110, i.e., an application whose authenticity must be validated by a security challenge in response to the application attempting to access a function of the server computer 102.The query utility 114 is code that is executed to respond to the security query sent by the server computer 102 to the client computer 108. The challenge utility 114 is not written within the application 110, but is inserted into the application 110 by the application authentication tool 116. In one embodiment, the query utility 114 is written in the JavaScript ®- language. As used herein, a query or security query is a request from the server 102 that is sent to the client computer 108 to respond with code information associated with a function, the code information being obtained by modifying the function during runtime, obtaining a portion of the code of the function, or executing the code of the function.The server side authentication component 106 selects a security challenge from the queries stored in the authentication information 104 and sends the selected security challenge to the client side authentication component 112 to validate the authenticity of the application 110. The client side authentication component 112 receives the security challenge and sends a response to the security challenge to the server side authentication component 106 which compares the response to the correct response in the authentication information 104. If the response matches the correct response in the authentication information 104, the server side authentication component 106 validates the authenticity of the application 110 and allows the application 110 to access the function of the server computer 102; otherwise, the server side authentication component 106 prevents the application 110 from accessing the function of the server computer 102.The operation of the components shown in FIG. 1 will be described in more detail in the following explanations with reference to FIGS. 2 and 3.PROCESS FOR PROTECTING COMMUNICATION BETWEEN A SERVER AND A CLIENTFIG. 2 is a flow diagram of a process for protecting communication between a server computer and a client computer, the process being implemented in the system of FIG. 1, in accordance with embodiments of the present invention. The process of FIG. 2 begins in step 200. Prior to step 202, the client computer (see FIG. 1 ) executes the application 110 (see FIG. 1 ), and the application 110 (see FIG. 1 ) attempts to execute a first function that is executed by the server computer 102 (see FIG. 1 ), and the first function is protected by a security framework. In one embodiment, application 110 (see FIG. 1 ) is a hybrid mode mobile application.In step 202, the server computer 102 (see FIG. 1 ) receives a request from the client computer 108 (see FIG. 1 ) for the server computer 102 (see FIG. 1 ) to validate the authenticity of the application 110 (see FIG. 1 ) and thereby allow the application 110 (see FIG. 1 ) to access the first function executed by the server computer 102 (see FIG. 1 ). In one embodiment, the server-side authentication component 106 (see FIG. 1 ) receives the aforementioned request from the client-side authentication component 112 (see FIG. 1 ). Alternatively, in response to attempting to access the first function by the application 110 (see FIG. 1 ), the server computer 102 (see FIG. 1 ) instructs the server-side authentication component 106 (see FIG. 1 ) to validate the authenticity of the application 110 (see FIG. 1 ).After step 202 and prior to step 204, the server-side authentication component 106 (see FIG. 1 ) selects a security challenge from a plurality of security queries included in the authenticity information 104 (see FIG. 1 ) in response to the request received in step 202, and generates code for a command that performs an action to obtain a response to the security challenge. In step 204, the server-side authentication component 106 (see FIG. 1 ) sends a first string of characters to the client computer 108 (see FIG. 1 ) in response to (1) the request received in step 202, (2) the selected security challenge, and (3) the code of the command that is generated. The first string of characters contains the code of the command that performs the action to obtain the response to the selected security challenge. The command is to be executed by the client computer 108 (see FIG. 1 ). In one embodiment, the action performed by the instruction includes modifying code of a second function included in the application 110 (see FIG. 1 ), reading and obtaining at least a portion of the code of the second function, the code written in an interpreted programming language that is a functional programming language or supports functional programming, and that has the following capability: (1) converting a function to a string of characters; (2) modifying a function during runtime; and (3) transforming a string of characters to a function.After step 204 and prior to step 206, the client-side authentication component 112 (see FIG. 1 ) receives the first string of characters, thereby invoking a client-side security framework. The client-side authentication component 112 (see FIG. 1 ) converts the received first character string into the command and then sends the command to the query utility 114 (see FIG. 1 ). In response to receiving the command, the query utility 114 (see FIG. 1 ) executes the command locally. By executing the command, the query utility 114 (see FIG. 1 ) performs the aforementioned action, obtains a second character string that is a result of executing the action, and sends the second character string to the server-side authentication component 106 (see FIG. 1 ), the second character string including a parameter of a second function to be accessed by the server computer 102 (see FIG. 1 ).In step 206, the server-side authentication component 106 (see FIG. 1 ) receives the second string of characters in response to transmitting the first string of characters in step 204, converting the first string of characters into the command, locally executing the command to execute the action, obtaining the second string of characters that is the result of executing the action, and transmitting the second string of characters.In step 208, the authentication component 106 (see FIG. 1 ) converts the second string of characters into a call to the second function, which is an internal server function, and data for validating the authenticity of the application 110 (see FIG. 1 ).In step 210, the server-side authentication component 106 (see FIG. 1 ) executes the second function by using the call to the second function that resulted from the conversion of the second string of characters in step 208. In one embodiment, execution in step 210 uses a mirroring capability of the second function to modify code of the second function, read and obtain at least a portion of the code of the second function, or execute the code of the second function.After step 210 and before step 212, the server-side authentication component 106 (see FIG. 1 ) receives a result of the execution of the second function in step 210.Prior to step 212, the server-side authentication component 106 (see FIG. 1 ) determines whether the result of the execution of the second function in step 210 matches the correct response to the selected security challenge, the correct response being stored in the authenticity information 102 (see FIG. 1 ). In step 212, the server-side authentication component 106 (see FIG. 1 ) determines whether (i) the authenticity of the application 110 (see FIG. 1 ) is to be validated and thus allowed for the application 110 (see FIG. 1 ) to access the first function, based on the result of executing the second function in step 210 and the determination whether the result matches the proper response to the selected security challenge, and without requiring translation of native code that checks the authenticity of the application 110 (see FIG. 1 ), or (ii) the application 110 (see FIG. 1 ) is to be prevented from accessing the first function.If the server-side authentication component 106 (see FIG. 1 ) determines that the result of executing the second function in step 210 matches the proper response to the selected security challenge, the server-side authentication component 106 (see FIG. 1 ) validates the authenticity of the application 110 (see FIG. 1 ) and allows the application 110 (see FIG. 1 ) to access the first function. After allowing access to the first function, the server computer 102 performs the original call to the first function. If the server-side authentication component 106 (see FIG. 1 ) determines that the result does not match the correct response, the server-side authentication component 106 (see FIG. 1 ) inhibits the application 110 (FIG. 1 ) from accessing the first function. In one embodiment, preventing the application 110 (FIG. 1 ) from accessing the first function includes the server computer (see FIG. 1 ) generating an error notification and not returning to the original call to the first function.After step 212, the process of FIG. 2 ends in step 214.In an alternative embodiment, in a client-server architecture without an already implemented security framework, the following steps are performed in response to the client computer 108 (see FIG. 1 ) attempting to access a calling function f1on the server computer 102 (see FIG. 1 ): (1) the client computer 108 (see FIG. 1 ) calls a command generator function on the server computer 102 (see FIG. 1 ), the command generator generating a command to be executed on the client side; (2) the server computer 102 (see FIG. 1 ) sends the command to the client computer 108 (see FIG. 1 ); (3) Client computer 108 (see FIG. 1 ) invokes a RunCom function to locally execute the command; (4) Client computer 108 (see FIG. 1 ) obtains the result of the RunCom call as a string of characters s 1; (5) Client computer 108 (see FIG. 1 ) invokes function f1 on server computer 102 (see FIG. 1 ) and passes string of characters s1 in the call to function f1; and (6) Server computer 102 (see FIG. 1 ) performs an internal server function, CheckPro, to determine whether string of characters s1 is the result expected from an authentic application from an challenge to function f1. If the string of characters s 1 is the expected result, the server computer 102 (see FIG. 1 ) executes the original call to the function f 1. If the string of characters s 1 is not the expected result, the server computer 102 (see FIG. 1 ) subsequently triggers an error and does not resume the original call to the function f 1.COMPUTER SYSTEMFIG. 3 is a block diagram of a computer 300 that includes the server computer included in the system of FIG. 1 and that implements the process of FIG. 2 in accordance with embodiments of the present invention. The computer 300 is a computer system that generally includes a central processing unit (CPU) 302, memory 304, an input / output (I / O) interface 306, and a bus 308. Further, the computer 300 is connected to I / O units 310 and a computer data storage unit 312. In one embodiment, the computer 300 includes the server computer 102 (see FIG. 1 ). The CPU 302 performs computing and control functions of the computer 300, including executing instructions included in program code 314 for the server-side authentication component 106 (see FIG. 1 ) to perform a method for protecting communication between server and client computers, the instructions being executed by the CPU 302 via the memory 304. In another embodiment, the computer 300 includes the client computer 108 (see FIG. 1 ), and the CPU 302 performs computing and control functions of the computer 300, including executing instructions included in the program code 314 for the client-side authentication component 112 (see FIG. 1 ) to perform a method for protecting communication between server and client computers. The CPU 302 may include a single processing unit or may be distributed across one or more processing units at one or more locations (e.g., on a client and a server).The memory 304 includes a known computer readable storage medium, which will be described below. In one embodiment, cache memory elements of memory 304 may provide temporary storage of at least some program code (e.g., program code 314) to reduce the number of times code is retrieved from mass storage while instructions are executed from the program code. Further, memory 304, which includes one or more types of data storage, may be located at a single physical location, similar to CPU 302, or distributed across a plurality of physical systems in various forms. Further, the memory 304 may each include data distributed over, for example, a local area network (LAN) or a wide area network (WAN).I / O interface 306 includes any system for exchanging information for or from an external source. I / O devices 310 include any known type of external device, including a two-level display 104 (see FIG. 1 ), keyboard, etc. Bus 308 provides a communication link between each of the components in computer 300 and may include any type of communication link, including electrical, optical, wireless, etc.I / O interface 306 also allows computer 300 to store and retrieve information (e.g., data or program instructions, such as program code 314) from computer data storage unit 312 or other computer data storage unit (not shown). The computer data storage unit 312 includes a known computer readable storage medium, which will be described below. In one embodiment, the computer data storage unit 312 is a non-volatile data storage unit such as a magnetic disk (i.e., a hard disk drive) or an optical drive (e.g., a CD-ROM drive that holds a CD-ROM disk).Memory 304 and / or storage unit 312 may store computer program code 314 containing instructions executed by CPU 302 via memory 304 to protect communication between server and client computers. Although FIG. 3 illustrates memory 304 as including program code, the present invention contemplates embodiments in which memory 304 does not include all code 314 simultaneously, but includes only a portion of code 314 at a time.Further, memory 304 may include an operating system (not shown) and may include other systems not shown in FIG. 3.The storage unit 312 and / or one or more other computer storage units (not shown) coupled to the computer 300 may include any combination of authenticity information 104 (see FIG. 1 ) and application source files 118 (see FIG. 1 ).As will be appreciated by those skilled in the art, in a first embodiment, the present invention may be a method; in a second embodiment, the present invention may be a system; and in a third embodiment, the present invention may be a computer program product.Each of the components of an embodiment of the present invention may be provided, managed, maintained, etc. by a service provider offering to provide or integrate a data processing infrastructure with respect to protecting communication between server and client computers. Thus, an embodiment of the present invention discloses a process for supporting a computer infrastructure, the process including providing at least one support service to at least one of integrating, hosting, managing, and providing computer readable code (e.g., program code 314) in a computer system (e.g., computer 300) including one or more processors (e.g., CPU 302), the processor or processors executing instructions included in the code to cause the computer system to protect communication between server and client computers. Another embodiment discloses a process for supporting a computer infrastructure, the process including incorporating computer readable program code into a computer system having a processor. The step of integrating includes storing the program code in a computer readable storage unit of the computer system using the processor. When executed by the processor, the program code implements a method for protecting communication between server and client computers.Although it should be appreciated that program code 314 for protecting communication between server and client computers may be provided by directly loading into the client, server and proxy computers (not shown) via manually loading a computer readable storage medium (e.g., computer data storage unit 312), program code 314 may also be provided automatically or semi-automatically to computer 300 by sending program code 314 to a central server or group of central servers. Program code 314 is then downloaded to client computers (e.g., computer 300) that execute program code 314. Alternatively, the program code 314 is sent directly to the client computer by eMail. Program code 314 is then either placed in a directory on the client computer or loaded into a directory on the client computer by a button on the eMail that executes a program that places program code 314 in a directory. Another alternative is to send the program code 314 directly to a directory on the client computer's hard disk. If proxy servers are present, the process selects the proxy server code, determines which computers the proxy server code is to be specified to, transmits the proxy server code, and then installs the proxy server code on the proxy computer. Program code 314 is transmitted to the proxy server and then stored on the proxy server.Another embodiment of the invention provides a method that performs the process steps based on subscription, advertising, and / or fees. That is, a service provider, such as a solution integrator, may offer to create, manage, support, etc. a process for protecting communication between server and client computers. In turn, the service provider may receive a payment from the customer or customers according to a subscription and / or a billing agreement and / or the service provider may receive a payment from selling advertising content to one or more third parties.The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer readable storage medium or media (i.e., memory 304 and computer storage unit 312) having computer readable program instructions 314 stored thereon for causing a processor (e.g., CPU 302) to carry out aspects of the present invention.The computer readable storage medium may be a tangible device that can retain and store instructions (e.g., program code 314) for use by a device (e.g., computer 300) to execute instructions. The computer readable storage medium may be, for example, but is not limited to, an electronic storage unit, a magnetic storage unit, an optical storage unit, an electromagnetic storage unit, a semiconductor storage unit, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable CD-ROM, a DVD, a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions stored thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not intended to be transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses conducted through a fiber optic cable), or electrical signals transmitted through a wire.Computer readable program instructions (e.g., program code 314) described herein may be downloaded from a computer readable storage medium to respective data processing / processing units (e.g., computer 300) or via a network (not shown) such as the Internet, a local area network, a wide area network, and / or a wireless network to an external computer or storage unit (e.g., computer data storage unit 312). The network may include copper transmission cables, lightwave transmission conductors, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card (not shown) or network interface (not shown) in each computing / processing unit receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the corresponding computing / processing unit.Computer readable program instructions (e.g., program code 314) for carrying out operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk, C++, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuits, including, for example, programmable logic circuits, field programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuits to perform aspects of the present invention.Aspects of the present invention are described herein with reference to flowchart illustrations (e.g., FIG. 2 ) and / or block diagrams (e.g., FIGS. 1 and 3 ) of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be appreciated that each block in the flowchart illustrations and / or the block diagrams, and combinations of blocks in the flowchart illustrations and / or the block diagrams, may be implemented by computer readable program instructions (e.g., program code 314).These computer readable program instructions may be provided to a processor (e.g., CPU 302) of a general purpose computer, special purpose computer, or other programmable data processing apparatus (e.g., computer 300) to produce a machine, such that the instructions executed via the processor of the computer or other programmable data processing apparatus produce a means for implementing the functions / steps specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions may also be stored on a computer readable storage medium (e.g., computer storage unit 312) that can control a computer, programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored thereon comprises an article of manufacture including instructions that implement aspects of / the function / step specified in the flowchart and / or block diagram block or blocks.The computer readable program instructions (e.g., program code 314) may also be loaded onto a computer (e.g., computer 300), other programmable data processing apparatus, or other device to cause a series of operations to be performed on the computer or other programmable apparatus or other device to produce a computer implemented process such that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / steps specified in the flowchart and / or block diagram block or blocks.The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions that include one or more executable instructions for implementing the particular logical function(s). In some alternative implementations, the functions indicated in the block may occur in a different order than shown in the figures. For example, two blocks shown in succession may actually be executed substantially in parallel, or the blocks may sometimes be executed in the reverse order, depending on the functionality involved. It is further noted that each block of the block diagrams and / or flowchart illustration, as well as combinations of blocks in the block diagrams and / or flowchart illustration, may be implemented by special purpose hardware-based systems that perform the specified functions or acts or execute combinations of special purpose hardware and computer instructions.While embodiments of the present invention have been described herein for illustrative purposes, many modifications and changes will be apparent to those skilled in the art. Accordingly, it is intended that the appended claims cover all such modifications and changes as fall within the spirit and scope of this invention.

Claims

A method for protecting communication between a server computer (102) and a client computer (108), the method comprising the steps of: transmitting (204), by the server computer (102), a first string of characters to the client computer (108) in response to a request to the server computer (102) to check authenticity of an application (110) executing on the client computer (108) and to allow the application (110) to access a first function executed by the server computer (102), wherein the first string of characters includes code of a command to be executed by the client computer (108) that performs an action to obtain a response to a security query selected from a plurality of stored security queries, wherein the action performed by the command includes modifying code of a second function included in the application (110), reading and obtaining at least a portion of the code of the second function; receiving (206), in response to the step of sending the first string of characters, a second string of characters by the server computer (102) including a parameter of a second function that is an internal function of the server computer (102), the second string of characters being a result of converting the first string of characters to the command by the client computer (108) and locally executing the command by the client computer (108); converting (208), by the server computer (102), the second string of characters into a call to the second function to verify authenticity of the application (110); executing (210), by the server computer (102), the second function using the call to the second function; determining (212), by the server computer (102), based on a result of executing the second function and determining whether the result matches a stored proper response to the selected security challenge without requiring translation of native code that checks the authenticity of the application (110), whether (i) to validate the authenticity of the application (110) and allow the application (110) to access the first function, or (ii) to prevent the application (110) from accessing the first function.The method of claim 1, wherein the first function is written in an interpreted programming language configured to convert functions written in the interpreted programming language into respective strings, modify the functions during runtime, and convert the strings into respective functions written in the interpreted programming language.The method of claim 1 or 2, wherein locally executing the command by the client computer (108) includes reading at least a portion of the code of the second function, executing the code of the second function, or modifying the code of the second function.The method of any of claims 1 to 3, further comprising the step of adding the steps of transmitting the first string of characters, receiving the second string of characters, converting the second string of characters, executing the second string of characters, and determining whether (i) to validate authenticity of the client computer (108) and to allow the client computer (108) access to the first function, or (ii) to prevent the client computer (108) from accessing the first function via an authentication framework implemented in a client-server architecture, wherein the authentication framework requests authentication from the client computer (108).The method of any of claims 1 to 4, further comprising the steps of: receiving, by the server computer (102), a plurality of files of a hybrid application, the plurality of files being written in a programming language that supports functional programming and is capable of converting functions into respective strings, modifying functions during runtime, and transforming strings into respective functions; generating, by the server computer (102), a code execution file; and associating the code execution file with the plurality of files such that the code execution file has access to functions in the plurality of files, the code execution file including code that performs the conversion of the first string to the command; Obtaining code information from the plurality of files by the server computer (102) and storing the information in the server computer (102), wherein the step of determining whether (i) validates the authenticity of the client computer (108) and to allow the client computer (108) to access the first function, or (ii) the client computer (108) is to be prevented from accessing the first function, is based on a match between the result of execution of the second function and the code information obtained from the plurality of files.The method of claim 5, wherein the step of receiving the plurality of files includes receiving the plurality of files written in a JavaScript programming language.The method of claim 5 or 6, further comprising the steps of: receiving, by the server computer (102), a request from the hybrid application executing on the client computer (108) to access the first function; determining, by the server computer (102), in response to the step of receiving the request, that the first function be protected by a security framework implemented on the server computer (102) and that access to the first function require validation of the authenticity of the client computer (108), wherein the step of sending the first string of characters to the client computer (108) is performed in response to the step of determining that access to the first function requires validation of the authenticity of the client computer (108).The method of any one of claims 1 to 7, further comprising the steps of: matching, by the server computer (102), the result of execution of the second function with code information obtained from files of the application (110) executed by the client computer (108); matching the code information based on the result of execution of the second function, wherein a security framework of the server computer (102) automatically executes the first function for the client computer (108); and sending, by the server computer (102), a result of the step of execution of the first function to the client computer (108).The method of any of claims 1 to 8, further comprising the step of: providing at least one support service to at least one of creating, integrating, hosting, managing and providing computer readable program code in the computer, the program code being executed by a processor of the computer to implement the steps of sending the first string of characters, receiving the second string of characters, converting the second string of characters into the call to the second function, executing the second string of characters, and determining whether (i) to validate authenticity of the client computer (108) and to permit the client computer (108) access to the first function, or (ii) to prevent the client computer (108) from accessing the first function.A computer program product, comprising: a computer readable storage medium; and computer readable program code stored in the computer readable storage medium, the computer readable program code including instructions executed by a central processing unit (CPU) of a server computer system to implement a method for protecting communication between the server computer system and a client computer system, the method comprising the steps of: sending, by the server computer system, a first string of characters to the client computer system in response to a request to the server computer system, checking authenticity of an application (110) executed by the client computer system, and allowing the application (110) to access a first function executed by the server computer system, wherein the first string of characters includes code of a command to be executed by the client computer that executes an action to obtain a response to a security query selected from a plurality of stored security queries, the action executed by the command including modifying code of a second function included in the application (110), reading and obtaining at least a portion of the code of the second function; receiving, in response to the step of sending the first string of characters, a second string of characters by the server computer system that includes a parameter of a second function that is an internal function of the server computer system, the second string of characters being a result of conversion of the first string of characters to the command by the client computer system and local execution of the command by the client computer system; Converting the second string of characters by the server computer system into a call to the second function to verify the authenticity of the application (110); executing the second function by the server computer system using the call to the second function; and determining, by the server computer system, based on a result of the execution of the second function and the determination whether the result matches a stored proper response to the selected security challenge without requiring conversion of native code that checks the authenticity of the application (110), whether (i) validates the authenticity of the application (110) and the application (110) is to be allowed access to the first function or (ii) the application (110) is to be prevented from accessing the first function.The computer program product of claim 10, wherein the local execution of the command by the client computer system includes reading at least a portion of the code of the second function, executing the code of the second function, or modifying the code of the second function.The computer program product of claim 10 or 11, wherein the method further comprises the steps of: matching, by the server computer system, the result of execution of the second function with code information obtained from files of the application (110) executed by the client computer system; matching, based on the result of execution of the second function of the code information, a security framework of the server computer system that automatically executes the first function for the client computer system; and sending a result of the step of execution of the first function to the client computer system by the server computer system.A server computer system comprising: a central processing unit (CPU): a memory coupled to the CPU; and a computer readable storage unit coupled to the CPU, the storage unit including instructions executable by the CPU via the memory to implement a method for protecting communication between the server computer system and a client computer system, the method comprising the steps of: sending, by the server computer system, a first string of characters to the client computer system in response to a request to the server computer system, checking authenticity of an application (110) executed by the client computer system, and allowing the application (110) to access a first function executed by the server computer system, wherein the first string of characters includes code of a command to be executed by the client computer that executes an action to obtain a response to a security query selected from a plurality of stored security queries, the action executed by the command including modifying code of a second function included in the application (110), reading and obtaining at least a portion of the code of the second function; receiving, in response to the step of sending the first string of characters, a second string of characters by the server computer system that includes a parameter of a second function that is an internal function of the server computer system, the second string of characters being a result of conversion of the first string of characters to the command by the client computer system and local execution of the command by the client computer system; Converting the second string of characters by the server computer system into a call to the second function to verify the authenticity of the application (110); executing the second function by the server computer system using the call to the second function; and determining, by the server computer system, based on a result of the execution of the second function and the determination whether the result matches a stored proper response to the selected security challenge without requiring conversion of native code that checks the authenticity of the application (110), whether (i) validates the authenticity of the application (110) and the application (110) is to be allowed access to the first function or (ii) the application (110) is to be prevented from accessing the first function.The server computer system of claim 13, wherein the client computer system locally executing the command includes reading at least a portion of the code of the second function, executing the code of the second function, or modifying the code of the second function.The server computer system according to claim 13 or 14, wherein the method further comprises the steps of: matching, by the server computer system, the result of execution of the second function with code information obtained from files of the application (110) executed by the client computer system; matching the code information, based on the result of execution of the second function, a security framework of the server computer system that automatically executes the first function for the client computer system; and sending, by the server computer system, a result of the step of execution of the first function to the client computer system.

Citation Information

Patent Citations

  • Remote authentication based on challenge-response using digital certificates

    US20120117639A1