Have I Been Pwned? API

Steph Locke

2018-04-17

Utilising the HaveIBeenPwned.com API, check whether email addresses and/or user names have been present in a publicly disclosed data breach.

The R package aims to be / is a feature complete wrapper of the HaveIBeenPowned API, and is useful for situations where you may want to assess data breaches or check whether one or more email addresses have been compromised.

If you get a lot of value out of this package, do consider donating to HIBP since Troy Hunt does not put any limits on the API and it’s a tremendous service.

library("HIBPwned")
account_breaches("steff.sullivan@gmail.com", truncate=TRUE)
## $`steff.sullivan@gmail.com`
##             Name
## 1          Adobe
## 2         Disqus
## 3       LinkedIn
## 4 OnlinerSpambot
breached_sites("adobe.com")
##   Title  Name    Domain BreachDate            AddedDate
## 1 Adobe Adobe adobe.com 2013-10-04 2013-12-04T00:00:00Z
##           ModifiedDate  PwnCount
## 1 2013-12-04T00:00:00Z 152445165
##                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Description
## 1 In October 2013, 153 million Adobe accounts were breached with each containing an internal ID, username, email, <em>encrypted</em> password and a password hint in plain text. The password cryptography was poorly done and <a href="http://stricture-group.com/files/adobe-top100.txt" target="_blank" rel="noopener">many were quickly resolved back to plain text</a>. The unencrypted hints also <a href="http://www.troyhunt.com/2013/11/adobe-credentials-and-serious.html" target="_blank" rel="noopener">disclosed much about the passwords</a> adding further to the risk that hundreds of millions of Adobe customers already faced.
##                                             DataClasses IsVerified
## 1 Email addresses, Password hints, Passwords, Usernames       TRUE
##   IsFabricated IsSensitive IsActive IsRetired IsSpamList LogoType
## 1        FALSE       FALSE     TRUE     FALSE      FALSE      svg
breached_site("Adobe")
##   Title  Name    Domain BreachDate            AddedDate
## 1 Adobe Adobe adobe.com 2013-10-04 2013-12-04T00:00:00Z
##           ModifiedDate  PwnCount
## 1 2013-12-04T00:00:00Z 152445165
##                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Description
## 1 In October 2013, 153 million Adobe accounts were breached with each containing an internal ID, username, email, <em>encrypted</em> password and a password hint in plain text. The password cryptography was poorly done and <a href="http://stricture-group.com/files/adobe-top100.txt" target="_blank" rel="noopener">many were quickly resolved back to plain text</a>. The unencrypted hints also <a href="http://www.troyhunt.com/2013/11/adobe-credentials-and-serious.html" target="_blank" rel="noopener">disclosed much about the passwords</a> adding further to the risk that hundreds of millions of Adobe customers already faced.
##                                             DataClasses IsVerified
## 1 Email addresses, Password hints, Passwords, Usernames       TRUE
##   IsFabricated IsSensitive IsActive IsRetired IsSpamList LogoType
## 1        FALSE       FALSE     TRUE     FALSE      FALSE      svg
data_classes()
##   [1] "Account balances"                 "Address book contacts"           
##   [3] "Age groups"                       "Ages"                            
##   [5] "Apps installed on devices"        "Astrological signs"              
##   [7] "Auth tokens"                      "Avatars"                         
##   [9] "Bank account numbers"             "Banking PINs"                    
##  [11] "Beauty ratings"                   "Biometric data"                  
##  [13] "Browser user agent details"       "Buying preferences"              
##  [15] "Car ownership statuses"           "Career levels"                   
##  [17] "Cellular network names"           "Charitable donations"            
##  [19] "Chat logs"                        "Credit card CVV"                 
##  [21] "Credit cards"                     "Credit status information"       
##  [23] "Customer feedback"                "Customer interactions"           
##  [25] "Dates of birth"                   "Deceased date"                   
##  [27] "Deceased statuses"                "Device information"              
##  [29] "Device usage tracking data"       "Drinking habits"                 
##  [31] "Drug habits"                      "Eating habits"                   
##  [33] "Education levels"                 "Email addresses"                 
##  [35] "Email messages"                   "Employers"                       
##  [37] "Ethnicities"                      "Family members' names"           
##  [39] "Family plans"                     "Family structure"                
##  [41] "Financial investments"            "Financial transactions"          
##  [43] "Fitness levels"                   "Genders"                         
##  [45] "Geographic locations"             "Government issued IDs"           
##  [47] "Health insurance information"     "Historical passwords"            
##  [49] "Home ownership statuses"          "Homepage URLs"                   
##  [51] "IMEI numbers"                     "IMSI numbers"                    
##  [53] "Income levels"                    "Instant messenger identities"    
##  [55] "IP addresses"                     "Job titles"                      
##  [57] "MAC addresses"                    "Marital statuses"                
##  [59] "Names"                            "Nationalities"                   
##  [61] "Net worths"                       "Nicknames"                       
##  [63] "Parenting plans"                  "Partial credit card data"        
##  [65] "Passport numbers"                 "Password hints"                  
##  [67] "Passwords"                        "Payment histories"               
##  [69] "Payment methods"                  "Personal descriptions"           
##  [71] "Personal health data"             "Personal interests"              
##  [73] "Phone numbers"                    "Physical addresses"              
##  [75] "Physical attributes"              "Political donations"             
##  [77] "Political views"                  "Private messages"                
##  [79] "Professional skills"              "Profile photos"                  
##  [81] "Purchases"                        "Purchasing habits"               
##  [83] "Races"                            "Recovery email addresses"        
##  [85] "Relationship statuses"            "Religions"                       
##  [87] "Reward program balances"          "Salutations"                     
##  [89] "School grades (class levels)"     "Security questions and answers"  
##  [91] "Sexual fetishes"                  "Sexual orientations"             
##  [93] "Smoking habits"                   "SMS messages"                    
##  [95] "Social connections"               "Social media profiles"           
##  [97] "Spoken languages"                 "Support tickets"                 
##  [99] "Survey results"                   "Time zones"                      
## [101] "Travel habits"                    "User statuses"                   
## [103] "User website URLs"                "Usernames"                       
## [105] "Utility bills"                    "Vehicle details"                 
## [107] "Website activity"                 "Work habits"                     
## [109] "Years of birth"                   "Years of professional experience"