This disclosure relates to computer security. More specifically, this disclosure relates to systems and methods for invalidating user security tokens.
Security of network communication between user devices and remote computing resources, such as servers and computing clouds, has been a major issue. The remote computing resources can be vulnerable to unauthorized access by malicious users. Malicious users can submit intercepted passwords to the remote computing resources in an attempt to receive unauthorized access to the data. Verifiable authentication tokens can be used to prevent such unauthorized access. The tokens can be generated by the remote computing resources and distributed to the user devices. The tokens can be leased to user devices for a period during which the user devices can use the tokens to access services of the remote computing resources. The tokens can be stored as browser cookies or in key stores. However, the tokens themselves can be subject to interception by the malicious users and malicious software and can be used for unauthorized access to data and services of the remote computing resources. Therefore, there is a need for improvement of security by using the verifiable authentication tokens.
This summary is provided to introduce a selection of concepts in a simplified form that are further described in the Detailed Description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Generally, the present disclosure is directed to a technology for managing user security tokens in clusters comprising a plurality of computing nodes. Some embodiments of the present disclosure may facilitate preventing security tokens from unauthorized access by third parties.
According to one example embodiment of the present disclosure, a method for invalidating user security tokens is provided. The method may include providing, by one or more nodes in a cluster, a list of revoked security tokens. The method may further include receiving, by the one or more nodes, an indication of invalidating a user security token associated with a user. In response to the receiving the indication, the method may allow adding, by the one or more nodes, the user security token to the list of revoked security tokens. The method may further include replicating, by the one or more nodes, the list of revoked security tokens between further nodes of the cluster.
The indication of invalidating the user security token may include a request from the user to invalidate the user security token. The user security token may include information regarding the user device, an issue time of the user security token, and expiration time of the user security token. The user security token can be generated based on a request from the user. The user security token can be added to the list of revoked security tokens prior to the expiration time of the user security token.
The method may further include determining, by the one or more nodes, that the issue time precedes a predetermined time. In response to the determination, the method may include adding, by the one or more nodes, the user security token to the list of revoked security tokens.
The user security token can be encrypted using an authenticated encryption and a symmetric key. The symmetric key can be a pre-shared key or a key generated at runtime based on a shared secret between the nodes of the cluster. The method may include, upon restarting the cluster, generating, by the one or more nodes, a key to be used for the authenticated encryption. The method may also include, upon restarting the cluster, invalidating, by the one or more nodes, previously issued user security tokens.
A system for invalidating user security tokens is provided. The system can comprise a cluster including one or more nodes. The nodes can be configured to implement operations of the above-mentioned method for invalidating user security tokens.
According to yet another example embodiment of the present disclosure, the operations of the above-mentioned method for invalidating user security tokens are stored on a machine-readable medium comprising instructions, which when implemented by one or more processors, perform the recited operations.
Other example embodiments of the disclosure and aspects will become apparent from the following description taken in conjunction with the following drawings.
Exemplary embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements.
The technology disclosed herein is concerned with methods and systems for invalidating user security tokens in clusters comprising computing nodes. Embodiments of the present disclosure may facilitate preventing the security tokens from unauthorized use by third parties.
The security tokens can be used in network communication between user devices and clusters including one or more (computing) nodes using stateful or stateless communication protocols. The stateful communication protocols may include a transmission control protocol (TCP), a file transfer protocol (FTP), and others. The stateless communication protocols may include a User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), and others. Stateless communication protocols may not require generating and storing a session state for keeping information regarding a service session between a user device and the clusters.
According to some embodiments of the present disclosure, when a user device sends session requests to the cluster, the two different requests from the same session can be processed by two different nodes of the cluster. Therefore, if a session state is used to store the information concerning the session, the session state should be accessible by all nodes in the cluster or replicated between all nodes of the cluster. This may cause unwanted use of computational resources (processing time of nodes and communication time between the nodes) and delays in generating responses to the session requests. Therefore, using stateless communication protocols can be preferable when the session requests are processed by several nodes in the cluster.
In some embodiments of the present disclosure, upon receiving a new session request from a user device, the cluster can generate a user security token to be used with all further requests associated with the new session. The user security token can include an identifier and information regarding the user device and/or a user of the user device. The user security token may have an expiration time, so it can be used by the user device only within a predetermined period of time. Upon receiving a user security token from the user device, the user security token can be validated or invalidated by any of the nodes of the cluster.
One of the shortcomings of the user security tokens is that there may be a lag between the time the user device stops using the user security token and the time the user security token becomes invalid due to the expiration time. During this lag, the user security token can be used by malicious users and malicious software to gain unauthorized access to the cluster. To prevent an unauthorized use of the security token, the user security token can be invalidated by the cluster immediately after the user device indicates that the user security token is no longer in use.
According to one example embodiment of the present disclosure, a method for invalidating user security tokens may include providing, by one or more nodes in a cluster, a list of revoked security tokens. The method may further include receiving, by the one or more nodes, an indication of invalidating a user security token associated with a user. In response to the receiving of the indication, the method may further allow adding, by the one or more nodes, the user security token to the list of revoked security tokens. The method may further include replicating, by the one or more nodes, the list of revoked security tokens between further nodes of the cluster.
Referring now to the drawings, various embodiments are described in which like reference numerals represent like parts and assemblies throughout the several views. It should be noted that the reference to various embodiments does not limit the scope of the claims attached hereto. Additionally, any examples outlined in this specification are not intended to be limiting and merely set forth some of the many possible embodiments for the appended claims.
As shown in
In some embodiments, the cluster 120 may include a load balancer 130 and one or more computing node(s) 140. The cluster 120 may also include a master node 150. The cluster 120 may further include network switches and/or routers for connecting the load balancer 130, the one or more node(s) 140, and the master node 150.
In some embodiments, the one or more node(s) 140 may be configured to run one or more applications that can be available to the user device(s) 110. Users of the user device(s) 110 can access the applications on the cluster 120 using an Internet browser, a terminal application, a FTP client, and other applications configured to run on the user device(s) 110.
Generally, the user device(s) 110 may send request(s) to the cluster 120. The request(s) can be associated with an application configured to run on the computing node(s) 140. The user requests can be formatted per one or more communication protocols. The communication protocols may include a stateless protocol (for example, UDP, HTTP, and the like) or a stateful protocol (e.g., TCP, FTP, and the like).
When the cluster 120 receives a request from the one or more user device(s) 110, the load balancer 130 may select a node from the one or more computing node(s) 140 to process the request. When selecting the node 140, the load balancer 130 may be configured to distribute the user devices 110's request(s) to the computing nodes 140 based on a load balancing algorithm. The request can be further transferred to the selected node. The selected node can process the request and send a response to the user device 110 from which the request was originated.
The user device 110 may send the user security token with a further request to the cluster 120. The further request can be forwarded to one of the computing nodes 140, which can be a different node than the computing node that generated the user security token. The computing node 140 may be configured to verify the user security token. If the user security token is valid, the computing node 140 may further process the further request to generate a response and send the response to the user device 110. The user security token can be used until it is invalidated. The user device 140 may be configured to send an indication to invalidate the user security token. The user security token can be also assigned an expiration time after which the user security token becomes invalid.
The token generation module 310 may receive a request for a token from the user device(s) 110 and generate the user security token. The user security token may include an identifier, an information regarding the user device(s) 110 and/or a user of the user device 110, time of issue of the user security token, and an expiration time of the user security token. The length of the user security token may be selected to be as minimum as possible but still allow the computing node(s) 140 of the cluster 120 to retrieve information regarding the user device 110 from the user security token.
The user security token can be encrypted with authenticated encryption and formatted into an opaque string, which may include a ciphertext and a message authentication code (MAC). A system key or a generated key can be used in authenticated encryption. The key can be generated on the master node 150. The generated key can be further retrieved by the computing node(s) 140 for generating user security tokens. The key can be generated based on a shared secret between the nodes of the cluster 120. A new key can be generated immediately after each full restart of the cluster 120. As result, all user security tokens issued before the full restart become invalid. The new key may not be required to be generated during a rolling restart of applications on the computing nodes 140.
The token validation module 320 can be configured to receive the user security tokens from the user device(s) 110 and determine whether the user security tokens are valid or invalid. The user security token can be decrypted using a system key or a key generated at last restart of the cluster 120. The user security token can be valid if the expiration time of the user security token is not expired, the user security token is not found in the revoked token list 330, and the issue time of the user security token is not earlier than a predetermined time.
The token validation module 320 can be further configured to receive an indication to invalidate a user security token. Upon receiving the indication, the user security token can be added to the revoked token list 330. The user security token can be added to the revoked token list 330 even if the expiration time of the user security token is not expired. The revoked token list 330 can be further immediately replicated between the all the computing nodes 140 of the cluster 120. This may allow preventing reuse of a user security token by all nodes in cluster 120 after invalidating the use security token by one of the nodes. The revoked token list 330 can be also stored in a cluster state (for example, on the master node 150).
The indication to invalidate a security token may include a request from a user device(s) 110 to invalidate the user security token. The indication to invalidate the token may also include a request from an administrator of the cluster 120 to invalidate one or more of the user security tokens. The indication to invalidate one or more user security tokens can be also issued by one or more applications running on the cluster 120.
In block 405, the method 400 may commence with providing, by one or more nodes in a cluster, a list of revoked security tokens.
In block 410, the method 400 may proceed with receiving, by the one or more nodes, an indication of invalidating a user security token associated with a user. The indication may include a request from a user to invalidate the user security token or a request from an administrator of the cluster 120 to invalidate the security token. The request for invalidating the user security can be also generated by one or more applications running on nodes of the cluster.
In block 415, the method 400 may proceed with adding, by the one or more nodes, the user security token to the list of revoked security tokens. The user security token can be added to the list of revoked security tokens before an expiration time of the user security token.
In block 420, the method 400 may proceed with replicating, by the one or more nodes, the list of revoked security tokens between further nodes of the cluster.
The components shown in
Mass data storage 530, which can be implemented with a magnetic disk drive, solid state drive, or an optical disk drive, is a non-volatile storage device for storing data and instructions for use by processor unit 510. Mass data storage 530 stores the system software for implementing embodiments of the present disclosure for purposes of loading that software into main memory 520.
Portable storage device 540 operates in conjunction with a portable non-volatile storage medium, such as a flash drive, floppy disk, compact disk, digital video disc, or Universal Serial Bus (USB) storage device, to input and output data and code to and from the computer system 500 of
User input devices 560 can provide a portion of a user interface. User input devices 560 may include one or more microphones; an alphanumeric keypad, such as a keyboard, for inputting alphanumeric and other information; or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys. User input devices 560 can also include a touchscreen. Additionally, the computer system 500 as shown in
Graphics display system 570 can include a liquid crystal display (LCD) or other suitable display device. Graphics display system 570 is configurable to receive textual and graphical information and process the information for output to the display device.
Peripheral devices 580 may include any type of computer support device to add additional functionality to the computer system.
The components provided in the computer system 500 of
The processing for various embodiments may be implemented in software that is cloud-based. In some embodiments, the computer system 500 is implemented as a cloud-based computing environment, such as a virtual machine operating within a computing cloud. In other embodiments, the computer system 500 may itself include a cloud-based computing environment, where the functionalities of the computer system 500 are executed in a distributed fashion. Thus, the computer system 500, when configured as a computing cloud, may include pluralities of computing devices in various forms, as will be described in greater detail below.
In general, a cloud-based computing environment is a resource that typically combines the computational power of a large grouping of processors (such as within web servers) and/or that combines the storage capacity of a large grouping of computer memories or storage devices. Systems that provide cloud-based resources may be utilized exclusively by their owners or such systems may be accessible to outside users who deploy applications within the computing infrastructure to obtain the benefit of large computational or storage resources.
The cloud may be formed, for example, by a network of web servers that comprise a plurality of computing devices, such as the computer system 500, with each server (or at least a plurality thereof) providing processor and/or storage resources. These servers may manage workloads provided by multiple users (e.g., cloud resource customers or other users). Typically, each user places workload demands upon the cloud that vary in real-time, sometimes dramatically. The nature and extent of these variations typically depends on the type of business associated with the user.
The present technology is described above with reference to example embodiments. Therefore, other variations upon the example embodiments are intended to be covered by the present disclosure.
This application is a continuation of U.S. patent application Ser. No. 16/017,797, filed Jun. 25, 2018, entitled “User Security Token Invalidation,” the disclosure of which is incorporated by reference for all purposes.
Number | Name | Date | Kind |
---|---|---|---|
7130839 | Boreham et al. | Oct 2006 | B2 |
7324953 | Murphy | Jan 2008 | B1 |
7333943 | Charuk et al. | Feb 2008 | B1 |
7644432 | Patrick et al. | Jan 2010 | B2 |
7650505 | Masurkar | Jan 2010 | B1 |
7685430 | Masurkar | Mar 2010 | B1 |
7730523 | Masurkar | Jun 2010 | B1 |
7801967 | Bedell et al. | Sep 2010 | B1 |
7970791 | Liao et al. | Jun 2011 | B2 |
7975292 | Corella | Jul 2011 | B2 |
7996392 | Liao et al. | Aug 2011 | B2 |
8005816 | Krishnaprasad et al. | Aug 2011 | B2 |
8027982 | Ture et al. | Sep 2011 | B2 |
8166310 | Harrison et al. | Apr 2012 | B2 |
8214394 | Krishnaprasad et al. | Jul 2012 | B2 |
8239414 | Liao et al. | Aug 2012 | B2 |
8332430 | Koide et al. | Dec 2012 | B2 |
8352475 | Bhatkar et al. | Jan 2013 | B2 |
8412717 | Liao et al. | Apr 2013 | B2 |
8433712 | Koide et al. | Apr 2013 | B2 |
8548997 | Wu | Oct 2013 | B1 |
8595255 | Krishnaprasad et al. | Nov 2013 | B2 |
8601028 | Liao et al. | Dec 2013 | B2 |
8626794 | Liao et al. | Jan 2014 | B2 |
8707451 | Ture et al. | Apr 2014 | B2 |
8725770 | Koide et al. | May 2014 | B2 |
8793489 | Polunin et al. | Jul 2014 | B2 |
8838961 | Zarfoss, III et al. | Sep 2014 | B2 |
8875249 | Ture et al. | Oct 2014 | B2 |
9069979 | Srinivasan et al. | Jun 2015 | B2 |
9071606 | Braun et al. | Jun 2015 | B2 |
9081816 | Krishnaprasad et al. | Jul 2015 | B2 |
9081950 | Jain et al. | Jul 2015 | B2 |
9130920 | Pelykh | Sep 2015 | B2 |
9177124 | Krishnaprasad et al. | Nov 2015 | B2 |
9251364 | Ture et al. | Feb 2016 | B2 |
9288042 | Madhukar et al. | Mar 2016 | B1 |
9355233 | Chen et al. | May 2016 | B1 |
9407433 | Sohi et al. | Aug 2016 | B1 |
9436968 | Kobets et al. | Sep 2016 | B1 |
9467437 | Krishnaprasad et al. | Oct 2016 | B2 |
9479494 | Krishnaprasad et al. | Oct 2016 | B2 |
9552431 | Nassar | Jan 2017 | B2 |
9594922 | McGuire et al. | Mar 2017 | B1 |
9734309 | Allen | Aug 2017 | B1 |
9742779 | Ngo et al. | Aug 2017 | B2 |
9769154 | Yang et al. | Sep 2017 | B2 |
9774586 | Roche et al. | Sep 2017 | B1 |
9781102 | Knjazihhin et al. | Oct 2017 | B1 |
9858195 | Bhogal et al. | Jan 2018 | B2 |
9930033 | Chhabra et al. | Mar 2018 | B2 |
9992186 | Drozd et al. | Jun 2018 | B1 |
10044723 | Fischer et al. | Aug 2018 | B1 |
10057246 | Drozd et al. | Aug 2018 | B1 |
10083247 | Brown et al. | Sep 2018 | B2 |
10114964 | Ramesh et al. | Oct 2018 | B2 |
10277618 | Wu | Apr 2019 | B1 |
10382421 | Krishnaprasad et al. | Aug 2019 | B2 |
10505982 | Motukuru et al. | Dec 2019 | B2 |
10659307 | Sinn | May 2020 | B2 |
11023598 | Grand | Jun 2021 | B2 |
11025425 | Modi | Jun 2021 | B2 |
11196554 | Willnauer | Dec 2021 | B2 |
11223626 | Gormley | Jan 2022 | B2 |
20030037234 | Fu | Feb 2003 | A1 |
20030105742 | Boreham et al. | Jun 2003 | A1 |
20030130928 | Chozick | Jul 2003 | A1 |
20040210767 | Sinclair et al. | Oct 2004 | A1 |
20050055232 | Yates | Mar 2005 | A1 |
20050289354 | Borthakur et al. | Dec 2005 | A1 |
20060059359 | Reasor et al. | Mar 2006 | A1 |
20070208714 | Ture et al. | Sep 2007 | A1 |
20070233688 | Smolen et al. | Oct 2007 | A1 |
20080205655 | Wilkins et al. | Aug 2008 | A1 |
20080313712 | Ellison et al. | Dec 2008 | A1 |
20090046862 | Ito et al. | Feb 2009 | A1 |
20090106271 | Chieu et al. | Apr 2009 | A1 |
20090185677 | Bugbee | Jul 2009 | A1 |
20090204590 | Yaskin et al. | Aug 2009 | A1 |
20090254642 | Geist | Oct 2009 | A1 |
20090271624 | Cao et al. | Oct 2009 | A1 |
20100022306 | Campion | Jan 2010 | A1 |
20100146611 | Kuzin et al. | Jun 2010 | A1 |
20100198804 | Yaskin et al. | Aug 2010 | A1 |
20110265160 | Nettleton | Oct 2011 | A1 |
20110307695 | Slater | Dec 2011 | A1 |
20120060207 | Mardikar et al. | Mar 2012 | A1 |
20120090037 | Levit | Apr 2012 | A1 |
20120131683 | Nassar | May 2012 | A1 |
20120151563 | Bolik et al. | Jun 2012 | A1 |
20130080520 | Kiukkonen et al. | Mar 2013 | A1 |
20130152191 | Bright et al. | Jun 2013 | A1 |
20130212703 | Ramesh et al. | Aug 2013 | A1 |
20130232539 | Polunin et al. | Sep 2013 | A1 |
20130326588 | Jain et al. | Dec 2013 | A1 |
20140075501 | Srinivasan et al. | Mar 2014 | A1 |
20140164776 | Hook et al. | Jun 2014 | A1 |
20140196115 | Pelykh | Jul 2014 | A1 |
20140208100 | Kendall | Jul 2014 | A1 |
20140337941 | Kominar et al. | Nov 2014 | A1 |
20150012919 | Moss et al. | Jan 2015 | A1 |
20150089575 | Vepa et al. | Mar 2015 | A1 |
20150106736 | Torman | Apr 2015 | A1 |
20150106893 | Hou et al. | Apr 2015 | A1 |
20150112870 | Nagasundaram | Apr 2015 | A1 |
20150169875 | Ide | Jun 2015 | A1 |
20150349954 | Borda | Dec 2015 | A1 |
20150363607 | Yang et al. | Dec 2015 | A1 |
20160103890 | Boe | Apr 2016 | A1 |
20160173475 | Srinivasan et al. | Jun 2016 | A1 |
20160182471 | Wilson et al. | Jun 2016 | A1 |
20170011214 | Cavanagh et al. | Jan 2017 | A1 |
20170063931 | Seed | Mar 2017 | A1 |
20170083698 | Scott et al. | Mar 2017 | A1 |
20170103470 | Raju | Apr 2017 | A1 |
20170134429 | Gustafsson | May 2017 | A1 |
20170134434 | Allen | May 2017 | A1 |
20170322985 | Boe | Nov 2017 | A1 |
20170353444 | Karangutkar et al. | Dec 2017 | A1 |
20180109421 | Laribi | Apr 2018 | A1 |
20180210901 | DePaoli et al. | Jul 2018 | A1 |
20180287800 | Chapman et al. | Oct 2018 | A1 |
20180300117 | Ackerman | Oct 2018 | A1 |
20180367528 | Schwarz et al. | Dec 2018 | A1 |
20190018869 | Bhagwat et al. | Jan 2019 | A1 |
20190018870 | Bhagwat et al. | Jan 2019 | A1 |
20190052537 | Sinn | Feb 2019 | A1 |
20190080318 | Yuan et al. | Mar 2019 | A1 |
20190116623 | Apte | Apr 2019 | A1 |
20190245699 | Irwan | Aug 2019 | A1 |
20190245763 | Wu | Aug 2019 | A1 |
20190349360 | Yeddula | Nov 2019 | A1 |
20190394040 | Modi | Dec 2019 | A1 |
20200007549 | Gormley | Jan 2020 | A1 |
20200036522 | Willnauer | Jan 2020 | A1 |
20200036527 | Girdhar et al. | Jan 2020 | A1 |
20200184090 | Grand | Jun 2020 | A1 |
20210168149 | Gormley | Jun 2021 | A1 |
20210216652 | Grand | Jul 2021 | A1 |
20210248250 | Grand | Aug 2021 | A1 |
20220038276 | Willnauer | Feb 2022 | A1 |
Entry |
---|
“Search Query Report”, IP.com, performed Dec. 18, 2020, 4 pages. |
Gejibo, Samson et al., “Secure data storage for mobile data collection systems”, Proceedings of the International Conference on Management of Emergent Digital EcoSystems, Oct. 28-31, 2012, pp. 131-144. |
Kumbhar et al., “Hybrid Encryption for Securing Shared Preferences of Android Applications,” 2018 1st International Conference on Data Intelligence and Security (ICDIS), 2018, pp. 246-249. |
“Search Query Report”, IP.com, performed Sep. 28, 20201, 5 pages. |
Number | Date | Country | |
---|---|---|---|
20210243024 A1 | Aug 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16017797 | Jun 2018 | US |
Child | 17234631 | US |