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