@socprime/logtotal-sanitizer 0.2.0-beta.2 → 0.2.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,7 +117,40 @@ var geoLocationRule = {
117
117
  "postcode",
118
118
  "zip",
119
119
  "zipCode",
120
- "geohash"
120
+ "geohash",
121
+ "address",
122
+ "homeAddress",
123
+ "billingAddress",
124
+ "shippingAddress",
125
+ "mailingAddress",
126
+ "postalAddress",
127
+ "residentialAddress",
128
+ "street",
129
+ "streetName",
130
+ "houseNumber",
131
+ "addressLine",
132
+ "addressLine3",
133
+ "postCode",
134
+ "plz",
135
+ "gps",
136
+ "gpsCoordinates",
137
+ "geoPoint",
138
+ "geoLocation",
139
+ "latLng",
140
+ "latLon"
141
+ ],
142
+ jsonKeyContains: [
143
+ "streetaddress",
144
+ "homeaddress",
145
+ "billingaddress",
146
+ "shippingaddress",
147
+ "mailingaddress",
148
+ "postaladdress",
149
+ "addressline",
150
+ "latitude",
151
+ "longitude",
152
+ "postalcode",
153
+ "zipcode"
121
154
  ]
122
155
  };
123
156
 
@@ -225,7 +258,60 @@ var govIdentifiersRule = {
225
258
  "licenseNumber",
226
259
  "personalId",
227
260
  "dob",
228
- "dateOfBirth"
261
+ "dateOfBirth",
262
+ "passportNo",
263
+ "passportId",
264
+ "idNumber",
265
+ "idCardNumber",
266
+ "identityCardNumber",
267
+ "nationalIdNumber",
268
+ "nationalInsuranceNumber",
269
+ "sin",
270
+ "socialInsuranceNumber",
271
+ "tin",
272
+ "taxNumber",
273
+ "taxIdentificationNumber",
274
+ "ein",
275
+ "itin",
276
+ "ssnLast4",
277
+ "driversLicense",
278
+ "driverLicenseNumber",
279
+ "drivingLicence",
280
+ "dlNumber",
281
+ "personalCode",
282
+ "personalNumber",
283
+ "birthNumber",
284
+ "rodneCislo",
285
+ "pesel",
286
+ "oib",
287
+ "cnp",
288
+ "dni",
289
+ "nie",
290
+ "nif",
291
+ "nir",
292
+ "codiceFiscale",
293
+ "steuerId",
294
+ "bsn",
295
+ "cpf",
296
+ "curp",
297
+ "aadhaar",
298
+ "rnokpp",
299
+ "ipn",
300
+ "inn",
301
+ "snils",
302
+ "birthDate",
303
+ "placeOfBirth",
304
+ "mothersMaidenName",
305
+ "residencePermit",
306
+ "voterId"
307
+ ],
308
+ jsonKeyContains: [
309
+ "passport",
310
+ "taxid",
311
+ "nationalid",
312
+ "socialsecurity",
313
+ "driverlicen",
314
+ "drivinglicen"
229
315
  ]
230
316
  };
231
317
 
@@ -280,8 +366,42 @@ var healthInfoRule = {
280
366
  "insuranceNumber",
281
367
  "labResult",
282
368
  "observation",
283
- "vitalSigns"
284
- ]
369
+ "vitalSigns",
370
+ "diagnoses",
371
+ "diagnosisCode",
372
+ "icd",
373
+ "icdCode",
374
+ "medications",
375
+ "medicationName",
376
+ "drug",
377
+ "dosage",
378
+ "prescriptions",
379
+ "treatment",
380
+ "procedureCode",
381
+ "cptCode",
382
+ "symptom",
383
+ "symptoms",
384
+ "disease",
385
+ "illness",
386
+ "disability",
387
+ "medicalCondition",
388
+ "healthCondition",
389
+ "medicalHistory",
390
+ "medicalRecord",
391
+ "healthRecord",
392
+ "clinicalNotes",
393
+ "labResults",
394
+ "bloodGroup",
395
+ "vaccination",
396
+ "immunization",
397
+ "healthInsuranceNumber",
398
+ "insuranceId",
399
+ "npi",
400
+ "deaNumber",
401
+ "patientName",
402
+ "patientDob"
403
+ ],
404
+ jsonKeyContains: ["diagnos", "medication", "prescription", "allerg", "patient"]
285
405
  };
286
406
 
287
407
  // src/rules/definitions/homePaths.ts
@@ -1250,7 +1370,10 @@ var INTERNAL_SUFFIXES = [
1250
1370
  "lan",
1251
1371
  "home",
1252
1372
  "localdomain",
1253
- "arpa"
1373
+ "arpa",
1374
+ "test",
1375
+ "invalid",
1376
+ "localhost"
1254
1377
  ];
1255
1378
  var INTERNAL_COMPOUND_SUFFIXES = [
1256
1379
  "svc\\.cluster\\.local",
@@ -1357,9 +1480,34 @@ var hostnamesRule = {
1357
1480
  "nodeName",
1358
1481
  "dnsName",
1359
1482
  "machineName",
1360
- "targetHost"
1483
+ "targetHost",
1484
+ "remoteHost",
1485
+ "sourceHost",
1486
+ "destinationHost",
1487
+ "srcHost",
1488
+ "dstHost",
1489
+ "shost",
1490
+ "dhost",
1491
+ "clientHost",
1492
+ "hostFqdn",
1493
+ "workstation",
1494
+ "workstationName",
1495
+ "deviceName",
1496
+ "deviceHostname",
1497
+ "sni",
1498
+ "serverNameIndication",
1499
+ "tlsServerName",
1500
+ "virtualHost",
1501
+ "vhost",
1502
+ "httpHost",
1503
+ "xForwardedHost",
1504
+ "qname",
1505
+ "queryName",
1506
+ "dnsDomain",
1507
+ "smtpHost",
1508
+ "mailServer"
1361
1509
  ],
1362
- jsonKeyContains: ["computer", "domainname"]
1510
+ jsonKeyContains: ["computer", "domainname", "hostname", "fqdn", "workstation"]
1363
1511
  };
1364
1512
 
1365
1513
  // src/rules/definitions/ipAddresses.ts
@@ -1435,7 +1583,63 @@ var ipAddressesRule = {
1435
1583
  "destinationIp",
1436
1584
  "xForwardedFor",
1437
1585
  "mac",
1438
- "macAddress"
1586
+ "macAddress",
1587
+ "ipv4",
1588
+ "ipv6",
1589
+ "ipAddr",
1590
+ "clientAddress",
1591
+ "clientAddr",
1592
+ "serverAddress",
1593
+ "remoteIp",
1594
+ "remoteAddress",
1595
+ "peerIp",
1596
+ "peerAddress",
1597
+ "srcAddr",
1598
+ "dstAddr",
1599
+ "sourceAddress",
1600
+ "destinationAddress",
1601
+ "src",
1602
+ "dst",
1603
+ "srcIpAddr",
1604
+ "dstIpAddr",
1605
+ "localIp",
1606
+ "publicIp",
1607
+ "privateIp",
1608
+ "externalIp",
1609
+ "internalIp",
1610
+ "hostIp",
1611
+ "serverIp",
1612
+ "nasIpAddress",
1613
+ "callerIpAddress",
1614
+ "sourceIPAddress",
1615
+ "trueClientIp",
1616
+ "xRealIp",
1617
+ "cfConnectingIp",
1618
+ "forwardedFor",
1619
+ "natIp",
1620
+ "gatewayIp",
1621
+ "macAddr",
1622
+ "hwAddr",
1623
+ "clientMac",
1624
+ "srcMac",
1625
+ "dstMac",
1626
+ "smac",
1627
+ "dmac",
1628
+ "bssid"
1629
+ ],
1630
+ jsonKeyContains: [
1631
+ "ipaddr",
1632
+ "macaddr",
1633
+ "networkaddress",
1634
+ "remoteaddr",
1635
+ "clientaddr",
1636
+ "peeraddr",
1637
+ "clientip",
1638
+ "sourceip",
1639
+ "remoteip",
1640
+ "srcip",
1641
+ "dstip",
1642
+ "destinationip"
1439
1643
  ]
1440
1644
  };
1441
1645
 
@@ -1865,8 +2069,41 @@ var paymentInfoRule = {
1865
2069
  "routingNumber",
1866
2070
  "bic",
1867
2071
  "swift",
1868
- "expiryDate"
1869
- ]
2072
+ "expiryDate",
2073
+ "ccNumber",
2074
+ "cardNo",
2075
+ "cardNum",
2076
+ "creditCardNumber",
2077
+ "debitCardNumber",
2078
+ "primaryAccountNumber",
2079
+ "cvc2",
2080
+ "cvn",
2081
+ "csc",
2082
+ "securityCode",
2083
+ "cardSecurityCode",
2084
+ "cardCvv",
2085
+ "cardExpiry",
2086
+ "expDate",
2087
+ "expirationDate",
2088
+ "bankAccount",
2089
+ "bankAccountNumber",
2090
+ "acctNumber",
2091
+ "sortCode",
2092
+ "bsb",
2093
+ "swiftCode",
2094
+ "bicCode",
2095
+ "ibanNumber",
2096
+ "walletAddress",
2097
+ "btcAddress",
2098
+ "ethAddress",
2099
+ "cardHolder",
2100
+ "cardholderName",
2101
+ "nameOnCard",
2102
+ "track1",
2103
+ "track2",
2104
+ "trackData"
2105
+ ],
2106
+ jsonKeyContains: ["iban", "cardnumber", "cvv", "creditcard", "accountnumber"]
1870
2107
  };
1871
2108
 
1872
2109
  // src/rules/definitions/phoneNumbers.ts
@@ -1905,8 +2142,30 @@ var phoneNumbersRule = {
1905
2142
  "tel",
1906
2143
  "fax",
1907
2144
  "msisdn",
1908
- "contactNumber"
1909
- ]
2145
+ "contactNumber",
2146
+ "phoneNo",
2147
+ "phoneNum",
2148
+ "mobilePhone",
2149
+ "mobileNo",
2150
+ "cellPhone",
2151
+ "homePhone",
2152
+ "workPhone",
2153
+ "businessPhone",
2154
+ "telephoneNumber",
2155
+ "otherTelephone",
2156
+ "telNo",
2157
+ "faxNumber",
2158
+ "contactPhone",
2159
+ "primaryPhone",
2160
+ "callerId",
2161
+ "callerNumber",
2162
+ "callingNumber",
2163
+ "calledNumber",
2164
+ "ani",
2165
+ "dnis",
2166
+ "whatsapp"
2167
+ ],
2168
+ jsonKeyContains: ["phone", "msisdn", "mobilenumber", "faxnumber"]
1910
2169
  };
1911
2170
 
1912
2171
  // src/rules/definitions/secrets.ts
@@ -2000,7 +2259,66 @@ var secretsRule = {
2000
2259
  "xApiKey",
2001
2260
  "idToken",
2002
2261
  "awsSecretAccessKey",
2003
- "signature"
2262
+ "signature",
2263
+ "accessKey",
2264
+ "accessKeyId",
2265
+ "secretAccessKey",
2266
+ "awsSessionToken",
2267
+ "xAmzSecurityToken",
2268
+ "bearerToken",
2269
+ "authToken",
2270
+ "authKey",
2271
+ "apiToken",
2272
+ "appSecret",
2273
+ "consumerSecret",
2274
+ "oauthToken",
2275
+ "oauthTokenSecret",
2276
+ "masterKey",
2277
+ "encryptionKey",
2278
+ "sharedKey",
2279
+ "sharedSecret",
2280
+ "webhookSecret",
2281
+ "signingSecret",
2282
+ "signingKey",
2283
+ "connectionString",
2284
+ "connStr",
2285
+ "passphrase",
2286
+ "passwordHash",
2287
+ "pwdHash",
2288
+ "otp",
2289
+ "totp",
2290
+ "mfaCode",
2291
+ "oneTimePassword",
2292
+ "verificationCode",
2293
+ "recoveryCode",
2294
+ "sshKey",
2295
+ "subscriptionKey",
2296
+ "ocpApimSubscriptionKey",
2297
+ "xAuthToken",
2298
+ "xAccessToken",
2299
+ "proxyAuthorization",
2300
+ "sasToken",
2301
+ "vaultToken",
2302
+ "xVaultToken",
2303
+ "jwt",
2304
+ "samlResponse",
2305
+ "samlAssertion",
2306
+ "pinBlock"
2307
+ ],
2308
+ jsonKeyContains: [
2309
+ "password",
2310
+ "passwd",
2311
+ "secret",
2312
+ "apikey",
2313
+ "accesstoken",
2314
+ "refreshtoken",
2315
+ "idtoken",
2316
+ "authtoken",
2317
+ "bearertoken",
2318
+ "privatekey",
2319
+ "credential",
2320
+ "passphrase",
2321
+ "connectionstring"
2004
2322
  ]
2005
2323
  };
2006
2324
 
@@ -2031,7 +2349,41 @@ var sessionCookiesRule = {
2031
2349
  `(?:(?<![\\w-])[\\w-]*session[\\w-]*=${COOKIE_VALUE})`,
2032
2350
  `(?:(?<![\\w-])[\\w-]*token=${COOKIE_VALUE})`
2033
2351
  ],
2034
- jsonKeys: ["sessionId", "sid", "cookie", "cookies", "setCookie", "jsessionid", "csrfToken"]
2352
+ jsonKeys: [
2353
+ "sessionId",
2354
+ "sid",
2355
+ "cookie",
2356
+ "cookies",
2357
+ "setCookie",
2358
+ "jsessionid",
2359
+ "csrfToken",
2360
+ "sessionCookie",
2361
+ "sessionToken",
2362
+ "sessionKey",
2363
+ "session",
2364
+ "phpsessid",
2365
+ "aspNetSessionId",
2366
+ "connectSid",
2367
+ "laravelSession",
2368
+ "xsrfToken",
2369
+ "xCsrfToken",
2370
+ "xXsrfToken",
2371
+ "csrf",
2372
+ "rememberToken",
2373
+ "authCookie",
2374
+ "cookieHeader",
2375
+ "requestCookies",
2376
+ "responseCookies"
2377
+ ],
2378
+ jsonKeyContains: [
2379
+ "sessionid",
2380
+ "sessiontoken",
2381
+ "sessioncookie",
2382
+ "sessionkey",
2383
+ "cookie",
2384
+ "csrf",
2385
+ "xsrf"
2386
+ ]
2035
2387
  };
2036
2388
 
2037
2389
  // src/rules/definitions/users.ts
@@ -2151,9 +2503,71 @@ var usersRule = {
2151
2503
  "givenName",
2152
2504
  "surname",
2153
2505
  "userId",
2154
- "uid"
2506
+ "uid",
2507
+ "usr",
2508
+ "usrName",
2509
+ "usrEmail",
2510
+ "usrId",
2511
+ "loginName",
2512
+ "loginId",
2513
+ "logonName",
2514
+ "userSid",
2515
+ "requestedBy",
2516
+ "submittedBy",
2517
+ "approvedBy",
2518
+ "updatedBy",
2519
+ "deletedBy",
2520
+ "author",
2521
+ "committer",
2522
+ "reporter",
2523
+ "assignee",
2524
+ "customerName",
2525
+ "customerEmail",
2526
+ "contactEmail",
2527
+ "contactName",
2528
+ "recipient",
2529
+ "recipients",
2530
+ "sender",
2531
+ "replyTo",
2532
+ "mailFrom",
2533
+ "rcptTo",
2534
+ "envelopeFrom",
2535
+ "envelopeTo",
2536
+ "emails",
2537
+ "primaryEmail",
2538
+ "workEmail",
2539
+ "personalEmail",
2540
+ "middleName",
2541
+ "nickname",
2542
+ "maidenName",
2543
+ "familyName",
2544
+ "legalName",
2545
+ "realName",
2546
+ "gecos",
2547
+ "distinguishedName",
2548
+ "userDn",
2549
+ "userDisplayName",
2550
+ "employeeId",
2551
+ "employeeNumber",
2552
+ "staffId",
2553
+ "studentId",
2554
+ "impersonatedUser",
2555
+ "effectiveUser",
2556
+ "sudoUser",
2557
+ "ruser",
2558
+ "suser",
2559
+ "duser"
2155
2560
  ],
2156
- jsonKeyContains: ["owner", "username"]
2561
+ jsonKeyContains: [
2562
+ "owner",
2563
+ "username",
2564
+ "email",
2565
+ "principalname",
2566
+ "loginname",
2567
+ "firstname",
2568
+ "lastname",
2569
+ "fullname"
2570
+ ]
2157
2571
  };
2158
2572
 
2159
2573
  // src/rules/registry.ts
@@ -2389,5 +2803,5 @@ function defineRule(rule) {
2389
2803
  }
2390
2804
 
2391
2805
  export { InvalidKeyError, InvalidOptionError, InvalidRuleError, SanitizationAbortedError, SanitizerError, UnknownRuleError, builtinRuleIds, builtinRules, countCapturingGroups, defineRule, deriveGateSource, getBuiltinRule, isSanitizerError, lineHasAnyChar, validateRule };
2392
- //# sourceMappingURL=chunk-VMPXBCSL.js.map
2393
- //# sourceMappingURL=chunk-VMPXBCSL.js.map
2806
+ //# sourceMappingURL=chunk-X2QYRBY6.js.map
2807
+ //# sourceMappingURL=chunk-X2QYRBY6.js.map