This application relates to analyzing device similarity.
Uses for the Internet and the World Wide Web are continually increasing, and have expanded into “secure” areas. Different mechanisms for maintaining security in a network such as the Internet have been developed, such as the Secure Sockets Layer (SSL) security protocol. The SSL protocol uses a public key infrastructure to maintain security. In establishing an SSL connection between a client computer and a server computer hosting a web page, the server computer transmits a certificate to the client computer for verification or validation.
Typically in practice, when a user's Web browser first tries to contact a server for a secure transaction, the server sends its digital certificate to the browser. This certificate includes (among other things) the server's public key, the server's identity, the name of the certificate authority (CA) that signed the certificate and the signature itself (which is a mathematical hash of the certificate encrypted with the CA's private key). To validate the certificate, the browser computes the certificate hash and compares the result with the hash obtained by decrypting the signature using the CA's public key (as well as checking the validity dates and identity included in the certificate against the desired server). To then validate the server, the browser encrypts a message with the public key obtained from the certificate and sends it to the server. If the server can prove it can decrypt that message then it must have the associated private key and the authentication has succeeded. If desired, the server may likewise validate the browser. Once the browser and (optionally) the server is/are satisfied that each is the computer it claims to be, the browser and server can exchange session keys (additional keys that are used to encrypt the data transfers between the computers from then on).
In web-based systems, such as electronic commerce systems, when data is requested by a client from a server, it is often the case that the web server must query a database to locate the requested data.
In such a case, communications between a server and a web browser client typically require authorization of the client, to permit a client access only to certain data stored by the server. Such data may include, for example, contract information or pricing information which is exclusive to that client; other clients of the web server are not entitled to view this information.
One approach to identifying the client to the server is to initially authenticate the client and to then provide a session identifier to the client in the form of a hypertext transfer protocol (HTTP) cookie. A cookie, which is a form of persistent state object, is a small piece of data generated by the server and which is intended to be passed by the client with every subsequent client request to any server in a defined domain. Upon receipt of the request, the server can verify the client's entitlement to the requested information by comparing the contents of the cookie to the client records stored on the server. Such an approach is disclosed, for example, in U.S. Pat. No. 5,875,296 to Shi et al. (Feb. 23, 1999) in which a cookie including a client identifier is used to access an in-memory credential database used to allow or disallow access to files on a distributed file system. Browser uniqueness is also the subject of “How unique is your web browser” by Electronic Frontier Foundation at http://panopticlick.eff.org/browser-uniqueness.pdf.
Data and cookies that are transmitted between servers and clients on the Internet are subject to certain security risks unless measures are taken to secure communications between the client and server. An unauthorized user at a routing point or at another server in a cookie's domain may capture the packets transmitted between the client and the server and read the data contained in the transmitted cookie. Alternatively, a user may edit the contents of his or her own authorized cookie and alter the session data contained therein to construct a fraudulent session. For example, if the session data includes a contract identification number, the user could edit the cookie to insert a different number and thereby gain access to unauthorized data or resources when the edited cookie is transmitted to the server in a subsequent request. An unauthorized user may furthermore “steal” a valid cookie from an authorized user, and use the cookie to replay a valid session, thereby gaining unauthorized access to the server (a “replay attack”).
Further, as the size and diversity of the Internet grows, so do the devices and applications that use the network. Originally, network applications such as web browsers, terminal clients, and e-mail readers were the only programs accessing the Internet. Now, almost every new device or application has a networking component, whether it is to obtain content, updates, manage licensing, or report usage statistics.
Principal component analysis (PCA) is a well-known multivariate statistical analysis technique. PCA is frequently used for data analysis and dimensionality reduction. PCA has applications throughout science, engineering, and finance.
PCA determines a linear combination of input variables that capture a maximum variance in data. Typically, PCA is performed using singular value decomposition (SVD) of a data matrix. In PCA, the principal components are uncorrelated, which facilitates data analysis.
A method is used in analyzing device similarity. Data describing a device is received and a similarity analysis is applied to the data. Based on the similarity analysis, a measure of similarity between the device and a previously known device is determined.
The above and further advantages of the present invention may be better understood by referring to the following description taken into conjunction with the accompanying drawings in which identical numbers for elements appearing in different drawing figures represent identical or similar elements throughout the figures:
Described below is a technique for use in analyzing device similarity, which technique may be used to help provide, among other things, a device similarity measure or score for device identification.
Conventionally, it is common to use a rule-based method that requires extensive tuning with inflexible performance. For example, conventionally when presented with two set of device components, a rule declares some deterministic conditions that components must satisfy before saying the devices are deterministically the same. The conditions in the conventional system are manually designed and tweaked by hand. The deterministic binary result in the conventional system does not allow control for a tradeoff between false positive and false negative rates.
Referring to
Mobile devices may include any of a variety of devices, such as cell phones, smart phones (e.g., Android phone Blackberry, iPhone, etc.), laptops, netbooks, tablets, tablet PCs, iPADs, and personal digital assistants (PDAs), among others.
Mobile Devices 100 may be access Server 102 through a variety of means. Such connections are well known in the art, and may include 3G, General Packet Radio Service (GPRS), and WiFi, among others. It is anticipated that Mobile Devices 100 may utilize newer access technologies as they are developed to access Server 102.
Though
With respect to device matching similarity scoring and background and motivation, identifying whether a user is accessing from a previously detected device (“past seen device”) in the user's history has important web-based applications, especially for e-commerce. For example, it can be important to determine whether a device that is now attempting to access data of Server 102 is the same as past seen Mobile Device 1 or past seen Mobile Device 2.
Conventionally, a cookie or flash cookie remains the primary identifier to track a user's devices. However, rising privacy concerns and new regulations are slowly weakening the effectiveness of the use of cookies. By contrast, in at least some implementations using the technique described herein, a new method is provided to track a user's device via components of the user's device signature, without (in at least some cases) embedding or tagging the device with any stored information. According to the method, a data-driven modeling framework is constructed to detect probabilistically whether the unknown device is one of the past seen devices.
When a user's device is connected to a web application, information about a number of device data components is available to the system. This information includes browser-level information such as IP address, user agent string, and accept language setting, and application requested information run by javaScript such as screen size, software fingerprints, and time zone, as shown in
In contrast to conventional methods such as rule-based methods that require human tuning, at least some implementations based on the technique use a data-driven method that outputs a soft similarity score between first and second devices based on their observed device elements. The first device is the current unknown device, and the second device is a past known user's device. If the similarity score is high, the current unknown device is classified as the same as the earlier known device; otherwise, the unknown device is classified as a new device. In at least some cases, this score is used as a threshold to flexibly control the tradeoff between false positive and false negative rate. Depending on the implementation, in real time, the score is produced by a mathematical model that calculates a similarity “distance” between the current unknown device and the known devices. The model may be trained offline from actual web data automatically without human intervention.
In at least one implementation based on the technique, a critical aspect is how the mathematical model is trained and taught, specifically with respect to the use of principal component analysis in a framework that simultaneously deal with issues of:
With respect to modeling technology, the device similarity problem may be cast to a modeling problem that automatically learns from data. To enable modeling, data is first prepared, a learning algorithm is applied to learn the structure of the data, and then a distance measure is constructed to calculate the device match similarity score.
With respect to data preparation, the system first collects unlabeled pairs from devices in which in each pair is observed a vector of observed matching status for each element.
The data vector is then augmented to encode the same information numerically. Every element is represented by the numeric dimensions—one for match, one for mismatch, and one for null (no data is available). All three dimensions can take on a mutually exclusive value of 0 or 1, such that when the dimension for ‘match’ is 1, it is necessarily true that dimensions for ‘mismatch’ and ‘null’ are null, and vice versa. In this way, the information of observed statuses are captured numerically.
In the case where the ‘match’ dimension is 1 and the underlying element value used is very popular, this information is further encoded in by introducing a penalty such that its value is less than 1. In this way, the system de-emphasizes the fact that a popular element value is matched so the fact contributes less in weight to the final similarity scoring.
In at least one implementation based on the technique, the augmented data vectors can be collected in either of the two ways below.
1. In real time. At a user's login, the current device is paired up against each past device; for every pair, the augmented data vector is constructed as illustrated by example in
2. Offline. At times, e.g., periodically, a large number of users are sampled. For each user, pairs of devices are constructed randomly to make the augmented data vectors as shown by example in
With respect to a learning algorithm, the collection of data vectors prepared as described above is stored in a matrix A, illustrated by example in
Mathematically, given matrix A of high dimension, it is desirable to project A to a lower dimensional space or a latent space in a principal component analysis procedure using SVD. With SVD, A can be decomposed to 3 matrices with certain properties.
A=U*S*VT
After a number k is chosen for the number of dimensions to project to, A is approximated by
A≈Uk*Sk*VkT
The matrices Uk and Sk are the result of learning, effectively capture the structure of the latent space, and are used to project future data vector to this space. If q is the input data vector, the projected vector q′ is
q′=qT*Uk*Sk−1
With respect to distance measure defined in the latent space, with a properly selected number of dimensions, the latent space has an informative viewpoint where vectors are separated into two clusters according to a distance metric. In this space, the system can identify the pair of vectors that are maximally away from each other. A proper distance metric to use in the latent space is cosine similarity angle. With reference also to
In this pair of vectors that are maximally apart, one of these vectors corresponds to an original high dimensional vector belonging to an observation where all or nearly all device elements matched—same device. The other vector corresponds to an original high dimensional vector where all or nearly all device elements are mismatched—difference device.
The latent vector corresponding to same device is identified. This vector is used as the origin. Deviation from the origin in cosine similarity is defined as our desired device match similarity score.
With respect to other considerations, given a pair of devices, it is necessary in at least some implementations to decide the match status for each element. One simple alternative is to use s simple string comparison such as strcmp( ) in C language library. However, special attention is paid to the user agent string such that a later user string in time is treated as the same as an earlier user agent string if the later one:
As shown by this example, a simple string match may not always suffice or be preferable; other deep user agent string analysis variants may be necessary and/or possible.
With respect to example applications using the technique described herein, many e-commerce applications can benefit from the use of device similarity scoring as described herein. For example, in an on-line banking security application, a decision to challenge or deny access to a user may be based on whether the current device matches a previously known device with a similarity score within a threshold. In a case in which a device is defined with non-cookie elements, an incidence of possible cookie theft can be flagged if a current device does not have a high similarity score to a previously known device with the same cookie.
In web session management, instead of cookies, device identification based on scoring may be used to store data about a user's navigation patterns, including across multiple visits. In advertising applications, tracking devices based on scoring may enable merchants to store data about visitors' browsing habits that allow them to build user profiles, which advertisers may use to target users with display advertisements.
The methods and apparatus of this invention may take the form, at least partially, of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, random access or read only-memory, or any other machine-readable storage medium. When the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention. The methods and apparatus of the present invention may also be embodied in the form of program code that is transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via any other form of transmission. It may be implemented such that herein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention. When implemented on one or more general-purpose processors, the program code combines with such a processor to provide a unique apparatus that operates analogously to specific logic circuits.
Having described a preferred embodiment of the present invention, it may occur to skilled artisans to incorporate these concepts into other embodiments. Nevertheless, this invention should not be limited to the disclosed embodiment, but rather only by the spirit and scope of the following claims and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
6415282 | Mukherjea | Jul 2002 | B1 |
6480837 | Dutta | Nov 2002 | B1 |
6539395 | Gjerdingen | Mar 2003 | B1 |
6754662 | Li | Jun 2004 | B1 |
6835931 | Wright | Dec 2004 | B2 |
6917952 | Dailey | Jul 2005 | B1 |
6990628 | Palmer | Jan 2006 | B1 |
6990685 | Christensen | Jan 2006 | B1 |
7376643 | Zeng | May 2008 | B2 |
7533094 | Zhang | May 2009 | B2 |
7630986 | Herz | Dec 2009 | B1 |
7634741 | Klein | Dec 2009 | B2 |
7668405 | Gallagher | Feb 2010 | B2 |
7783581 | Hosoi | Aug 2010 | B2 |
7849092 | Slaney | Dec 2010 | B2 |
8005767 | Cassella | Aug 2011 | B1 |
8024343 | Gallagher | Sep 2011 | B2 |
8285719 | Long | Oct 2012 | B1 |
8386505 | Gallagher | Feb 2013 | B2 |
8468158 | Kumar | Jun 2013 | B2 |
8565529 | Chang-Tsun | Oct 2013 | B2 |
8601003 | Gates | Dec 2013 | B2 |
8667047 | Jackson | Mar 2014 | B2 |
9292793 | Lin | Mar 2016 | B1 |
20020002899 | Gjerdingen | Jan 2002 | A1 |
20020091655 | Agrafiotis | Jul 2002 | A1 |
20030048946 | Foote | Mar 2003 | A1 |
20030185443 | Jinnai | Oct 2003 | A1 |
20030185450 | Garakani | Oct 2003 | A1 |
20030217066 | Kayahara | Nov 2003 | A1 |
20030228842 | Heinonen | Dec 2003 | A1 |
20040091933 | Stoughton | May 2004 | A1 |
20050234880 | Zeng | Oct 2005 | A1 |
20050250552 | Eagle | Nov 2005 | A1 |
20050281237 | Heinonen | Dec 2005 | A1 |
20060269143 | Kozakaya | Nov 2006 | A1 |
20070217676 | Grauman | Sep 2007 | A1 |
20080037876 | Galperin | Feb 2008 | A1 |
20080114750 | Saxena | May 2008 | A1 |
20080137950 | Park | Jun 2008 | A1 |
20080177640 | Gokturk | Jul 2008 | A1 |
20080256230 | Handley | Oct 2008 | A1 |
20080294770 | Jackson | Nov 2008 | A1 |
20090082637 | Galperin | Mar 2009 | A1 |
20090106614 | Desineni | Apr 2009 | A1 |
20090254971 | Herz | Oct 2009 | A1 |
20090319513 | Terao | Dec 2009 | A1 |
20100057843 | Landsman | Mar 2010 | A1 |
20100070917 | Gates | Mar 2010 | A1 |
20100076958 | Gates | Mar 2010 | A1 |
20100098306 | Madabhushi | Apr 2010 | A1 |
20100211605 | Ray | Aug 2010 | A1 |
20100280920 | Scott | Nov 2010 | A1 |
20100284604 | Chrysanthakopoulos | Nov 2010 | A1 |
20100332210 | Birdwell | Dec 2010 | A1 |
20100332475 | Birdwell | Dec 2010 | A1 |
20110093449 | Belenzon | Apr 2011 | A1 |
20110243449 | Hannuksela | Oct 2011 | A1 |
20110268323 | Gallagher | Nov 2011 | A1 |
20120203717 | Xu | Aug 2012 | A1 |
20120224711 | Kim | Sep 2012 | A1 |
20130013603 | Parker | Jan 2013 | A1 |
20130054603 | Birdwell | Feb 2013 | A1 |
20130138635 | Park | May 2013 | A1 |
20130237242 | Oka | Sep 2013 | A1 |
20130238681 | Oka | Sep 2013 | A1 |
Entry |
---|
Scott Deerwester, et al., “Indexing by Latent Semantic Analysis,” Journal of the American Society for Information Science (1986-1998); Sep. 1990; 41, 6; ABI/INFORM Global, p. 391. |
Scott Deerwester et al., “Indexing by Latent Semantic Analysis,” Journal of the American Society for Information Science (1986-1998); Sep. 1990; 41, 6; ABI/INFORM Global, pp. 391-407. |