flare-redact 1.9.0 → 1.10.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.
- package/CHANGELOG.md +113 -0
- package/README.md +122 -1225
- package/bench/adversarial-runtime.mjs +27 -6
- package/dist/ai-sdk.d.ts +62 -0
- package/dist/ai-sdk.d.ts.map +1 -0
- package/dist/ai-sdk.js +263 -0
- package/dist/ai-sdk.js.map +1 -0
- package/dist/checksums.d.ts +43 -0
- package/dist/checksums.d.ts.map +1 -1
- package/dist/checksums.js +184 -0
- package/dist/checksums.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -2
- package/dist/cli.js.map +1 -1
- package/dist/detectors.d.ts.map +1 -1
- package/dist/detectors.js +7 -4
- package/dist/detectors.js.map +1 -1
- package/dist/extra.d.ts.map +1 -1
- package/dist/extra.js +229 -1
- package/dist/extra.js.map +1 -1
- package/dist/file-discovery.d.ts +5 -0
- package/dist/file-discovery.d.ts.map +1 -1
- package/dist/file-discovery.js +5 -1
- package/dist/file-discovery.js.map +1 -1
- package/dist/gateway/body.d.ts.map +1 -1
- package/dist/gateway/body.js +2 -1
- package/dist/gateway/body.js.map +1 -1
- package/dist/gateway/config.d.ts +5 -3
- package/dist/gateway/config.d.ts.map +1 -1
- package/dist/gateway/config.js.map +1 -1
- package/dist/gateway/index.d.ts +1 -0
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +1 -0
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/server.d.ts.map +1 -1
- package/dist/gateway/server.js +17 -1
- package/dist/gateway/server.js.map +1 -1
- package/dist/gateway/sse.d.ts +35 -0
- package/dist/gateway/sse.d.ts.map +1 -0
- package/dist/gateway/sse.js +217 -0
- package/dist/gateway/sse.js.map +1 -0
- package/dist/help.d.ts.map +1 -1
- package/dist/help.js +11 -5
- package/dist/help.js.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +12 -3
- package/dist/init.js.map +1 -1
- package/dist/llm.d.ts.map +1 -1
- package/dist/llm.js +20 -9
- package/dist/llm.js.map +1 -1
- package/dist/locales.d.ts +3 -2
- package/dist/locales.d.ts.map +1 -1
- package/dist/locales.js +152 -3
- package/dist/locales.js.map +1 -1
- package/dist/pack.d.ts.map +1 -1
- package/dist/pack.js +14 -1
- package/dist/pack.js.map +1 -1
- package/dist/vault.d.ts +26 -1
- package/dist/vault.d.ts.map +1 -1
- package/dist/vault.js +61 -3
- package/dist/vault.js.map +1 -1
- package/docker/README.md +8 -5
- package/docs/guide.md +1416 -0
- package/package.json +10 -3
- package/spec/SPEC.md +40 -3
- package/spec/conformance/README.md +8 -1
- package/spec/conformance/cases.json +60 -1
- package/spec/conformance/expected.json +815 -7
- package/spec/detectors.json +1118 -222
- package/spec/detectors.schema.json +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flare-redact",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"description": "Keep secrets and PII out of logs, Sentry, LLM prompts and commits. Reads values, not field names. Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"./dist/register.js"
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"types": "./dist/llm.d.ts",
|
|
22
22
|
"default": "./dist/llm.js"
|
|
23
23
|
},
|
|
24
|
+
"./ai-sdk": {
|
|
25
|
+
"types": "./dist/ai-sdk.d.ts",
|
|
26
|
+
"default": "./dist/ai-sdk.js"
|
|
27
|
+
},
|
|
24
28
|
"./ml": {
|
|
25
29
|
"types": "./dist/ml.d.ts",
|
|
26
30
|
"default": "./dist/ml.js"
|
|
@@ -91,6 +95,7 @@
|
|
|
91
95
|
"files": [
|
|
92
96
|
"dist",
|
|
93
97
|
"bin",
|
|
98
|
+
"docs/guide.md",
|
|
94
99
|
"spec/SPEC.md",
|
|
95
100
|
"spec/FLAREFLOW.md",
|
|
96
101
|
"spec/detectors.json",
|
|
@@ -124,7 +129,7 @@
|
|
|
124
129
|
"benchmark:agent": "npm run build && node bench/agent-flow.mjs",
|
|
125
130
|
"benchmark:adversarial": "npm run build && node bench/adversarial-runtime.mjs",
|
|
126
131
|
"benchmark:entities": "npm run build && node bench/entities.mjs",
|
|
127
|
-
"
|
|
132
|
+
"prepack": "npm run build",
|
|
128
133
|
"benchmark:graph": "npm run build && node bench/graph-vault.mjs",
|
|
129
134
|
"build:playground": "npm run build && npx --yes esbuild dist/index.js --bundle --format=esm --minify --outfile=docs/playground/flare-redact.min.js"
|
|
130
135
|
},
|
|
@@ -175,6 +180,8 @@
|
|
|
175
180
|
"ai",
|
|
176
181
|
"openai",
|
|
177
182
|
"anthropic",
|
|
183
|
+
"vercel-ai-sdk",
|
|
184
|
+
"ai-sdk",
|
|
178
185
|
"chatgpt",
|
|
179
186
|
"claude",
|
|
180
187
|
"prompt",
|
package/spec/SPEC.md
CHANGED
|
@@ -64,7 +64,8 @@ A pattern **may** use:
|
|
|
64
64
|
- character classes `[…]`, `[^…]`, ranges, and the escapes `\t \n \r \f \x0B \xHH \\ \. \* \+ \? \( \) \[ \] \{ \} \| \^ \$ \/ \-`
|
|
65
65
|
- groups `(…)` (capturing) and `(?:…)` (non-capturing)
|
|
66
66
|
- alternation `|`
|
|
67
|
-
- quantifiers `* + ? {n} {n,} {n,m}` and their lazy forms `*? +? ?? {n,m}
|
|
67
|
+
- quantifiers `* + ? {n} {n,} {n,m}` and their lazy forms `*? +? ?? {n,m}?`; no count may exceed 1000,
|
|
68
|
+
which is the largest repetition Go's RE2 accepts
|
|
68
69
|
- the two substitution tokens below
|
|
69
70
|
|
|
70
71
|
A pattern **must not** use:
|
|
@@ -179,6 +180,19 @@ survives only if **all** validators return true.
|
|
|
179
180
|
| `aba` | US routing 3-7-1 mod-10 |
|
|
180
181
|
| `nhs` | UK weighted mod-11, rejects repeated digits |
|
|
181
182
|
| `vin` | transliterated weighted mod-11, check character at position 9 |
|
|
183
|
+
| `cnp` | Romania, 13 digits, first digit 1–9; month 01–12, day 01–31; weights 2-7-9-1-4-6-3-5-8-2-7-9, mod 11, a remainder of 10 is written as 1 |
|
|
184
|
+
| `personnummer` | Sweden, separators `-` and `+` removed; a 12-digit value must start with 18, 19 or 20 and loses those two digits; 10 digits, month 01–12, day 01–31 or 61–91 (samordningsnummer), Luhn |
|
|
185
|
+
| `hetu` | Finland `DDMMYY`, century sign `-` `+` `A`–`F` `U`–`Y`, individual number ≥ 002, check character `0123456789ABCDEFHJKLMNPRSTUVWXY`[`DDMMYYNNN` mod 31]; upper case only |
|
|
186
|
+
| `fodselsnummer` | Norway, 11 digits; day 01–31 or 41–71 (D-number), month 01–12 or 41–52 (H-number); two mod-11 check digits, weights 3-7-6-1-8-9-4-5-2 and 5-4-3-2-7-6-5-4-3-2, a check of 10 is invalid |
|
|
187
|
+
| `be_national_number` | Belgium, 11 digits; month mod 20 ≤ 12 and month ≤ 52 (BIS numbers add 20 or 40), day unchecked; check = 97 − (first nine digits mod 97), or the same with a `2` prefixed (born from 2000) |
|
|
188
|
+
| `pt_nif` | Portugal, 9 digits starting 1, 2, 3 or 45 (a person); weights 9…2, check = ((11 − sum mod 11) mod 11) mod 10 |
|
|
189
|
+
| `za_id` | South Africa, 13 digits; month 01–12, day 01–31; citizenship digit (11th) 0–2; Luhn |
|
|
190
|
+
| `curp` | Mexico, 18 characters, upper case: 4 letters, `YYMMDD` (month 01–12, day 01–31), `H` or `M`, a state code, 3 consonants, a homoclave, a check digit; values 0–9, A–N = 10–23, O–Z = 25–36, weights 18…2, check = (10 − sum mod 10) mod 10 |
|
|
191
|
+
| `rut` | Chile, `.`, `-` and ASCII whitespace removed, upper-cased; 7–8 digits and a check character; weights 2…7 repeating from the right, 11 − (sum mod 11), with 11 → `0` and 10 → `K` |
|
|
192
|
+
| `cuit` | Argentina, 11 digits starting 20, 23, 24 or 27 (a person); weights 5-4-3-2-7-6-5-4-3-2; remainder 0 → 0, remainder 1 → 9, otherwise 11 − remainder |
|
|
193
|
+
| `nric` | Singapore `[STFG]` + 7 digits + letter, upper case; weights 2-7-6-5-4-3-2, plus 4 for T and G; letter from `JZIHGFEDCBA` (S, T) or `XWUTRQPNMLK` (F, G) at sum mod 11 |
|
|
194
|
+
| `amka` | Greece, 11 digits; `DDMMYY` with day 01–31 and month 01–12; Luhn |
|
|
195
|
+
| `uk_nino` | UK National Insurance number, spaces removed: prefix letters per HMRC (first not D F I Q U V, second not D F I O Q U V; never BG GB KN NK NT TN ZZ), 6 digits, suffix A–D; no checksum exists |
|
|
182
196
|
|
|
183
197
|
Adding a validator name is a spec revision, not a pack change: an engine that
|
|
184
198
|
does not know a name **must fail loudly** when loading the pack rather than
|
|
@@ -398,9 +412,32 @@ model without sending the data" work.
|
|
|
398
412
|
- A generator that mints a duplicate placeholder for two different values is an
|
|
399
413
|
error; silently merging them would restore the wrong secret.
|
|
400
414
|
|
|
415
|
+
**Restoring into JSON text.** Tool-call arguments and JSON-mode output are JSON
|
|
416
|
+
held in a string, and a placeholder in valid JSON can only sit inside a string
|
|
417
|
+
literal. A string being restored is a *JSON document* when, after any leading
|
|
418
|
+
JSON whitespace (space, tab, LF, CR), it starts with `{` or `[` and the whole
|
|
419
|
+
string parses as JSON. In a JSON document each original is inserted
|
|
420
|
+
**JSON-escaped**; every other string gets the original verbatim. Structured data
|
|
421
|
+
is restored one string at a time by the same rule. The escaped form is the
|
|
422
|
+
content of a JSON string literal:
|
|
423
|
+
|
|
424
|
+
| Original | Inserted as |
|
|
425
|
+
|---|---|
|
|
426
|
+
| `"` | `\"` |
|
|
427
|
+
| `\` | `\\` |
|
|
428
|
+
| U+0008, U+0009, U+000A, U+000C, U+000D | `\b`, `\t`, `\n`, `\f`, `\r` |
|
|
429
|
+
| any other code point below U+0020 | `\u00xx`, lowercase hex |
|
|
430
|
+
| a lone surrogate, where the host string can hold one | `\uxxxx`, lowercase hex |
|
|
431
|
+
| anything else | itself |
|
|
432
|
+
|
|
433
|
+
The document stays valid JSON, and a quote, backslash or control character in a
|
|
434
|
+
restored value cannot end its string and add or replace fields.
|
|
435
|
+
|
|
401
436
|
Streaming restoration holds back the longest proper prefix of any placeholder that
|
|
402
437
|
the emitted tail could still be starting, so a placeholder split across two chunks
|
|
403
|
-
is still restored exactly once.
|
|
438
|
+
is still restored exactly once. A stream restorer also has a JSON mode, which
|
|
439
|
+
inserts the escaped form, for streams whose text is JSON: tool-call arguments,
|
|
440
|
+
partial tool input, and output the request asked to be JSON.
|
|
404
441
|
|
|
405
442
|
## 12. Limits and failure modes
|
|
406
443
|
|
|
@@ -448,7 +485,7 @@ purpose and listed here.
|
|
|
448
485
|
2048-word English wordlist, which is a 14 KB payload every SDK would embed for
|
|
449
486
|
one opt-in detector. Node keeps it; a future revision may add a `wordlists`
|
|
450
487
|
section.
|
|
451
|
-
2. **Trailing boundaries on dash-terminated tokens are stricter.** `\
|
|
488
|
+
2. **Trailing boundaries on dash-terminated tokens are stricter.** `\bxox[baprs]-[A-Za-z0-9-]{10,64}\b`
|
|
452
489
|
in JavaScript requires a *word* character after a token ending in `-`, which
|
|
453
490
|
truncates such tokens. FRS-1 uses `word_dash`, which does not.
|
|
454
491
|
3. **`coordinates` accepts a leading minus after a word character.** The JavaScript
|
|
@@ -41,7 +41,10 @@ formatting change.
|
|
|
41
41
|
accepts.
|
|
42
42
|
- `checks` defaults to `["redact", "scan"]`; add `"vault"` for a round trip, and
|
|
43
43
|
set `"vault": {"placeholderStyle": "readable"}` so the placeholders are
|
|
44
|
-
deterministic.
|
|
44
|
+
deterministic. A `"reply"` inside `"vault"` is a value that uses those
|
|
45
|
+
placeholders, as a model would send it back; it is restored with the same
|
|
46
|
+
vault (see [SPEC.md §11](../SPEC.md#11-vaults-and-reversible-redaction) for
|
|
47
|
+
restoring into JSON text).
|
|
45
48
|
|
|
46
49
|
A good case answers a question someone will actually ask. The corpus is
|
|
47
50
|
deliberately full of negatives — a Luhn-invalid card, a random 12-digit run, a
|
|
@@ -53,6 +56,10 @@ gets turned off.
|
|
|
53
56
|
- **No astral-plane characters.** Offsets are reported in the host language's
|
|
54
57
|
natural string unit: UTF-16 code units in JavaScript, scalar values elsewhere.
|
|
55
58
|
These coincide for everything below U+10000, and the corpus stays there.
|
|
59
|
+
- **No complete credential in the raw file.** A case that holds a whole token
|
|
60
|
+
writes one character of its prefix as a `\uXXXX` escape (`glpat\u002d…`).
|
|
61
|
+
Every JSON parser reads the plain character, so the engines see the real
|
|
62
|
+
token, while secret scanners and push protection do not flag the fixture.
|
|
56
63
|
- **No wall-clock or randomness.** Vault cases use readable placeholders; keyed
|
|
57
64
|
transforms use a fixed `transformSecret`.
|
|
58
65
|
- **Confidence is compared at six decimal places**, which is finer than any
|
|
@@ -41,11 +41,45 @@
|
|
|
41
41
|
{ "name": "sentry/dsn", "input": "SENTRY_DSN=https://0123456789abcdef0123456789abcdef@o1.ingest.sentry.io/12345" },
|
|
42
42
|
{ "name": "doppler/token", "input": "dp.st.dev.abcdefghijklmnopqrstuvwxyz0123456789ABCD" },
|
|
43
43
|
{ "name": "postman/key", "input": "PMAK-0123456789abcdef01234567-0123456789abcdef0123456789abcdef01" },
|
|
44
|
+
{ "name": "gitlab/routable-token", "input": "CI_TOKEN glpat\u002dabcdefghijklmnopqrstuvwxyz0.01abcdefg here" },
|
|
45
|
+
{ "name": "gitlab/runner-token", "input": "runner glrt\u002dABCDEFGHIJKLMNOPQRST registered" },
|
|
46
|
+
{ "name": "gitlab/deploy-token-negative", "input": "gldt-ABCDEFGHIJ is too short" },
|
|
47
|
+
{ "name": "digitalocean/oauth-token", "input": "doo\u005fv1_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" },
|
|
48
|
+
{ "name": "slack/webhook", "input": "SLACK_WEBHOOK https://hooks.slack.com\u002fservices/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" },
|
|
49
|
+
{ "name": "google/oauth-secret", "input": "oauth GOCSPX\u002dabcdefghijklmnopqrstuvwxyz01" },
|
|
50
|
+
{ "name": "aws/bedrock-key", "input": "A\u0042SKQmVkcm9ja0FQSUtleS1leGFtcGxlabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789AB" },
|
|
51
|
+
{ "name": "langsmith/key", "input": "lsv2\u005fpt_0123456789abcdef0123456789abcdef_0123456789" },
|
|
52
|
+
{ "name": "pinecone/key", "input": "pcsk\u005fabcde_abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZa" },
|
|
53
|
+
{ "name": "tavily/key", "input": "tvly\u002ddev-abcdefghijklmnopqrstuvwxyz012345" },
|
|
54
|
+
{ "name": "pypi/token", "input": "pypi\u002dAgEIcHlwaS5vcmcabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWX" },
|
|
55
|
+
{ "name": "pypi/negative-no-macaroon", "input": "pypi-abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWX" },
|
|
56
|
+
{ "name": "rubygems/key", "input": "rubygems\u005f0123456789abcdef0123456789abcdef0123456789abcdef" },
|
|
57
|
+
{ "name": "dockerhub/pat", "input": "docker login -p dckr\u005fpat_abcdefghijklmnopqrstuvwxyz0" },
|
|
58
|
+
{ "name": "jfrog/api-key", "input": "A\u004bCpabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg" },
|
|
59
|
+
{ "name": "atlassian/token", "input": "A\u0054ATT3xFfGF0abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJK=0A1B2C3D" },
|
|
60
|
+
{ "name": "grafana/service-account", "input": "glsa\u005fabcdefghijklmnopqrstuvwxyz012345_0a1b2c3d" },
|
|
61
|
+
{ "name": "sentry/user-token", "input": "sntryu\u005f0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" },
|
|
62
|
+
{ "name": "dynatrace/token", "input": "dt0c01\u002eABCDEFGHIJKLMNOPQRSTUVWX.ABCDEFGHIJKLMNOPQRSTUVWXYZ234567ABCDEFGHIJKLMNOPQRSTUVWXYZ234567" },
|
|
63
|
+
{ "name": "heroku/key", "input": "HRKU\u002dAAabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUV" },
|
|
64
|
+
{ "name": "flyio/token", "input": "FlyV1 fo1\u005fabcdefghijklmnopqrstuvwxyz0123456789ABCDEFG" },
|
|
65
|
+
{ "name": "planetscale/token", "input": "pscale\u005ftkn_abcdefghijklmnopqrstuvwxyz0123456789ABCDEF" },
|
|
66
|
+
{ "name": "pulumi/token", "input": "PULUMI pul\u002d0123456789abcdef0123456789abcdef01234567" },
|
|
67
|
+
{ "name": "terraform/token", "input": "abcdefghijklmn\u002eatlasv1.abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcd" },
|
|
68
|
+
{ "name": "onepassword/token", "input": "op ops\u005feyJabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl" },
|
|
69
|
+
{ "name": "age/secret-key", "input": "AGE\u002dSECRET-KEY-1QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7LQPZRY9X8GF2TVDW0S3JN54KHCE" },
|
|
70
|
+
{ "name": "alibaba/access-key", "input": "L\u0054AIabcdefghijklmnopqrst" },
|
|
71
|
+
{ "name": "mailchimp/key", "input": "0123456789abcdef0123456789abcdef\u002dus21" },
|
|
72
|
+
{ "name": "mailchimp/negative-region", "input": "0123456789abcdef0123456789abcdef-us-east-1" },
|
|
73
|
+
{ "name": "brevo/key", "input": "xkeysib\u002d0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef-abcdefghijkmnopq" },
|
|
74
|
+
{ "name": "resend/key", "input": "re\u005fabcdefgh_ijkmnopqrstuvwxyzABCDEFG" },
|
|
75
|
+
{ "name": "resend/negative-identifier", "input": "re_compute_cache" },
|
|
44
76
|
|
|
45
77
|
{ "name": "jwt/basic", "input": "Authorization eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U" },
|
|
46
78
|
{ "name": "bearer/header", "input": "Authorization: Bearer abcdefghijklmnopqrstuvwx" },
|
|
47
79
|
{ "name": "basic/header", "input": "Authorization: Basic YWRtaW46aHVudGVyMg==" },
|
|
48
80
|
{ "name": "url/credentials", "input": "DATABASE_URL=postgres://app:s3cr3t-pass@db.internal:5432/main" },
|
|
81
|
+
{ "name": "url/credentials-underscore-scheme", "input": "SQLALCHEMY_URL=oracle+cx_oracle://scott:tiger-pass@db.internal:1521/orcl" },
|
|
82
|
+
{ "name": "url/credentials-long-scheme-run", "input": "a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.a-b.ab://u:p@h then mysql+mysqldb://root:s3cret@localhost/app" },
|
|
49
83
|
{ "name": "private-key/pem", "input": "-----BEGIN RSA PRIVATE KEY-----\nMIIBOgIBAAJBAKj34GkxFhD90vcNLYLInFEX6Ppy1tPf9Cnzj4p4WGeKLs1Pt8Qu\n-----END RSA PRIVATE KEY-----" },
|
|
50
84
|
{ "name": "private-key/mismatched-footer", "input": "-----BEGIN RSA PRIVATE KEY-----\nMIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAq7BFUpkGp3+LQmlQ\n-----END CERTIFICATE-----\nnext line" },
|
|
51
85
|
{ "name": "private-key/truncated", "input": "log: -----BEGIN OPENSSH PRIVATE KEY-----\nMIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAq7BFUpkGp3+LQmlQ\nMIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAq7BFUpkGp3+LQmlQ" },
|
|
@@ -127,6 +161,27 @@
|
|
|
127
161
|
{ "name": "id/uk-nhs", "input": "NHS 943 476 5919", "options": { "enable": ["uk_nhs"] } },
|
|
128
162
|
{ "name": "id/vin", "input": "VIN 1HGBH41JXMN109186", "options": { "enable": ["vin"] } },
|
|
129
163
|
{ "name": "id/aba-routing", "input": "routing 021000021", "options": { "enable": ["aba_routing"] } },
|
|
164
|
+
{ "name": "id/ro-cnp", "input": "CNP 1850101401238", "options": { "enable": ["ro"] } },
|
|
165
|
+
{ "name": "id/se-personnummer", "input": "personnummer 850709-1232", "options": { "enable": ["se"] } },
|
|
166
|
+
{ "name": "id/se-personnummer-12-digit", "input": "pnr 200505054569", "options": { "enable": ["se"] } },
|
|
167
|
+
{ "name": "id/se-samordningsnummer", "input": "samordningsnummer 850769-1239", "options": { "enable": ["se"] } },
|
|
168
|
+
{ "name": "id/fi-hetu", "input": "HETU 010185-123B", "options": { "enable": ["fi"] } },
|
|
169
|
+
{ "name": "id/fi-hetu-2000s", "input": "HETU 150605A456H", "options": { "enable": ["fi"] } },
|
|
170
|
+
{ "name": "id/no-fodselsnummer", "input": "fnr 010185 12366", "options": { "enable": ["no"] } },
|
|
171
|
+
{ "name": "id/no-d-number", "input": "D-nummer 41018510187", "options": { "enable": ["no"] } },
|
|
172
|
+
{ "name": "id/be-national-number", "input": "NN 85.01.01-123.87", "options": { "enable": ["be"] } },
|
|
173
|
+
{ "name": "id/be-bis", "input": "BIS 85210112333", "options": { "enable": ["be"] } },
|
|
174
|
+
{ "name": "id/pt-nif", "input": "NIF 123 456 789", "options": { "enable": ["pt"] } },
|
|
175
|
+
{ "name": "id/za-id-outranks-card", "input": "ID 850101 5123 08 5", "options": { "enable": ["za"] } },
|
|
176
|
+
{ "name": "id/mx-curp", "input": "CURP ABCD850101HDFBCD00", "options": { "enable": ["mx"] } },
|
|
177
|
+
{ "name": "id/cl-rut", "input": "RUT 12.345.678-5", "options": { "enable": ["cl"] } },
|
|
178
|
+
{ "name": "id/cl-rut-k", "input": "RUN 10000013-k", "options": { "enable": ["cl"] } },
|
|
179
|
+
{ "name": "id/ar-cuit", "input": "CUIL 20-12345678-6", "options": { "enable": ["ar"] } },
|
|
180
|
+
{ "name": "id/sg-nric", "input": "NRIC S1234567D, FIN G1234567X", "options": { "enable": ["sg"] } },
|
|
181
|
+
{ "name": "id/il-teudat-zehut", "input": "TZ 12345678-2", "options": { "enable": ["il"] } },
|
|
182
|
+
{ "name": "id/gr-amka", "input": "AMKA 01018512341", "options": { "enable": ["gr"] } },
|
|
183
|
+
{ "name": "id/uk-nino", "input": "NINO AB 12 34 56 C", "options": { "enable": ["uk_nino"] } },
|
|
184
|
+
{ "name": "id/negative-checksum-valid-near-misses", "input": "CNP 1851301401236 HETU 320185-123B AMKA 32018512346 CURP ABCD851301HDFBCD06 NRIC S1234567A NINO QQ 12 34 56 C", "options": { "enable": ["ro", "fi", "gr", "mx", "sg", "gb"] } },
|
|
130
185
|
{ "name": "id/negative-random-digits", "input": "sequence 123456789012 means nothing", "options": { "enable": ["pii", "id"] } },
|
|
131
186
|
|
|
132
187
|
{ "name": "crypto/eth-address", "input": "wallet 0x52908400098527886E0F7030069857D2E4169EE7", "options": { "enable": ["crypto"] } },
|
|
@@ -156,6 +211,10 @@
|
|
|
156
211
|
{ "name": "vault/round-trip", "input": "email ada@example.com and grace@example.org", "vault": { "placeholderStyle": "readable" }, "checks": ["vault"] },
|
|
157
212
|
{ "name": "vault/stable-placeholder", "input": "ada@example.com then ada@example.com again", "vault": { "placeholderStyle": "readable" }, "checks": ["vault"] },
|
|
158
213
|
{ "name": "vault/structured", "input": { "cc": ["grace@example.org"], "password": "hunter2", "to": "ada@example.com" }, "vault": { "placeholderStyle": "readable" }, "checks": ["vault"] },
|
|
159
|
-
{ "name": "vault/array-order", "input": ["ada@example.com", "grace@example.org", "ada@example.com"], "vault": { "placeholderStyle": "readable" }, "checks": ["vault"] }
|
|
214
|
+
{ "name": "vault/array-order", "input": ["ada@example.com", "grace@example.org", "ada@example.com"], "vault": { "placeholderStyle": "readable" }, "checks": ["vault"] },
|
|
215
|
+
{ "name": "vault/reply-json-arguments", "input": { "password": "x\",\"extra\":true,\"y\":\"\\\n\t\u0001", "user": "bob" }, "vault": { "placeholderStyle": "readable", "reply": { "arguments": "{\"password\":\"[SENSITIVE_KEY_1]\",\"remember\":false}", "name": "login" } }, "checks": ["vault"] },
|
|
216
|
+
{ "name": "vault/reply-json-document", "input": "save Q\"uo\\te\nline\ttab\u0001end", "options": { "terms": ["Q\"uo\\te\nline\ttab\u0001end"] }, "vault": { "placeholderStyle": "readable", "reply": "\n [\"[CUSTOM_TERM_1]\", 1]" }, "checks": ["vault"] },
|
|
217
|
+
{ "name": "vault/reply-json-structure-kept", "input": "call back https://user:pa\",\"extra\":true,\"note\":\"x@example.com/pay", "vault": { "placeholderStyle": "readable", "reply": "{\"amount\":10,\"callback\":\"[URL_CREDENTIALS_1]\"}" }, "checks": ["vault"] },
|
|
218
|
+
{ "name": "vault/reply-other-strings-verbatim", "input": "save Q\"uo\\te\nline\ttab\u0001end", "options": { "terms": ["Q\"uo\\te\nline\ttab\u0001end"] }, "vault": { "placeholderStyle": "readable", "reply": { "leaf": { "note": "[CUSTOM_TERM_1]" }, "text": ["said \"[CUSTOM_TERM_1]\" twice", "{ not json [CUSTOM_TERM_1]", "[CUSTOM_TERM_1]"] } }, "checks": ["vault"] }
|
|
160
219
|
]
|
|
161
220
|
}
|