@conarium-ai/core 0.2.4 → 0.2.6
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 +87 -1
- package/README.md +70 -14
- package/SECURITY.md +8 -0
- package/bin/conarium-suggest-policy.mjs +143 -0
- package/dist/audit.d.ts +5 -0
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +19 -6
- package/dist/audit.js.map +1 -1
- package/dist/config.d.ts +52 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +9 -0
- package/dist/config.js.map +1 -1
- package/dist/digit_pii.d.ts +46 -0
- package/dist/digit_pii.d.ts.map +1 -0
- package/dist/digit_pii.js +177 -0
- package/dist/digit_pii.js.map +1 -0
- package/dist/governance.d.ts.map +1 -1
- package/dist/governance.js +55 -20
- package/dist/governance.js.map +1 -1
- package/dist/ip_detect.d.ts +28 -0
- package/dist/ip_detect.d.ts.map +1 -0
- package/dist/ip_detect.js +91 -0
- package/dist/ip_detect.js.map +1 -0
- package/dist/llm-gate.d.ts +4 -2
- package/dist/llm-gate.d.ts.map +1 -1
- package/dist/llm-gate.js +4 -2
- package/dist/llm-gate.js.map +1 -1
- package/dist/mrz.d.ts +7 -0
- package/dist/mrz.d.ts.map +1 -0
- package/dist/mrz.js +73 -0
- package/dist/mrz.js.map +1 -0
- package/dist/pii_normalize.d.ts +8 -5
- package/dist/pii_normalize.d.ts.map +1 -1
- package/dist/pii_normalize.js +20 -8
- package/dist/pii_normalize.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/tckn.d.ts +21 -0
- package/dist/tckn.d.ts.map +1 -0
- package/dist/tckn.js +68 -0
- package/dist/tckn.js.map +1 -0
- package/dist/types.d.ts +21 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,93 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
Nothing yet — 0.2.
|
|
5
|
+
Nothing yet — 0.2.6 is the current cut.
|
|
6
|
+
|
|
7
|
+
## 0.2.6 — 2026-08-14
|
|
8
|
+
|
|
9
|
+
Detector coverage plus two operator knobs. Address and bare-name *content*
|
|
10
|
+
detectors were not added: both need a dictionary or a model, which this
|
|
11
|
+
product refuses. Those gaps stay documented. `conarium-suggest-policy`
|
|
12
|
+
guesses `maskColumns` from column names and does not write config.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **`policy.scanCharCap`** (default 16 384) and env `CONARIUM_SCAN_CHAR_CAP`.
|
|
17
|
+
Oversize fields are still replaced whole with `[MASKED_PII]`; they are
|
|
18
|
+
never skipped. Raising the cap grows scan cost quadratically. Ceiling
|
|
19
|
+
1 048 576.
|
|
20
|
+
- **`policy.detectors`**: `ip` (default **false**), `mrz` (default **true**).
|
|
21
|
+
TCKN / card / IBAN / email are not keys; a config that tries to disable
|
|
22
|
+
them is rejected at load.
|
|
23
|
+
- **IPv4 / IPv6** when `detectors.ip` is true. Octets 0–255, no leading
|
|
24
|
+
zeros. `1.2.3.4` is structurally IPv4 and is masked; dates and amounts
|
|
25
|
+
are not. Loopback and private ranges are masked too — leave `ip` off
|
|
26
|
+
if SOC needs them in the clear.
|
|
27
|
+
- **Passport MRZ (TD3)** — 2×44, 7-3-1 check digits. Checksum miss → not
|
|
28
|
+
an MRZ. TD1/TD2 not implemented.
|
|
29
|
+
- **JSON `\u0040` and `%40`** join HTML `@` as scan-only encoded `@`.
|
|
30
|
+
Non-email encodings are left unchanged. `@` is not chased.
|
|
31
|
+
- **Split TCKN** on similarly named fields of the same row when the
|
|
32
|
+
concatenation checksums. No combinatorial scan.
|
|
33
|
+
- **`conarium-suggest-policy`** — `--sql` / `--json`. Prints a guess.
|
|
34
|
+
Refuses `--write`.
|
|
35
|
+
|
|
36
|
+
**Not published. Not deployed to Hetzner.**
|
|
37
|
+
|
|
38
|
+
## 0.2.5 — 2026-08-14
|
|
39
|
+
|
|
40
|
+
0.2.4 said a partial mask could no longer count as masked. On the card
|
|
41
|
+
path it still could: `4111111111111111` became `411[MASKED_PII]` with
|
|
42
|
+
`maskedCount: 1`. Same class as the second-IBAN bug closed in 0.2.2 —
|
|
43
|
+
a detector matching from the middle of a longer run.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- **Numeric detectors no longer start inside a longer digit run.** Phone
|
|
48
|
+
had no leading boundary, so it ate 13 digits out of a 16-digit PAN and
|
|
49
|
+
left the prefix. A maximal run is now classified as a whole: 13–16
|
|
50
|
+
digits and Luhn-valid → card, fully masked; 11-digit TCKN-shaped →
|
|
51
|
+
masked; longer runs (20-digit order numbers) are not cards and are
|
|
52
|
+
left alone. `maskedCount` cannot claim a half-masked field.
|
|
53
|
+
- **TR national phone (`0` + 10 digits) was dropped while rewriting that
|
|
54
|
+
classifier, then restored.** `0532…` / `0232…` are 11 digits starting
|
|
55
|
+
with `0` — between "10-digit phone" and "11-digit TCKN starting 1–9".
|
|
56
|
+
0.2.4 masked them; the 0.2.5 candidate did not. Classification is
|
|
57
|
+
still on the maximal run (no mid-run prefix). Leading `0` is the
|
|
58
|
+
trunk prefix, not a 2nd-digit numbering-plan check: TCKN never starts
|
|
59
|
+
with `0`; 08xx would miss a 5-vs-2/3/4 split. Compact 10-digit and
|
|
60
|
+
`+90…` formatted numbers were already covered.
|
|
61
|
+
- **Content scanner O(n²) on long alphanumeric fields.** Profiled, not
|
|
62
|
+
guessed. Three quadratics: (1) email `local+@` with no `@` (~1 s on
|
|
63
|
+
40k digits); (2) this cut's own backstop, `collapsePartialMask`
|
|
64
|
+
`[A-Za-z0-9]+\[MASKED_PII\]`, backtracking when the literal is absent
|
|
65
|
+
(~50 ms on 12k digits); (3) concatenating a long digit run one char
|
|
66
|
+
at a time, then decoding it as unbounded whole-field base64.
|
|
67
|
+
Local/domain lengths are bounded; `@` absent → skip; collapse skips
|
|
68
|
+
when the mask token is absent; digit runs are counted then sliced
|
|
69
|
+
once; whole-field base64 decode is capped at 256 characters. TCKN
|
|
70
|
+
**checksum is not added** — existing vectors use `12345678901`
|
|
71
|
+
(checksum fails); the hole was mid-run matching, not a missing checksum.
|
|
72
|
+
|
|
73
|
+
### Behavior
|
|
74
|
+
|
|
75
|
+
- **A field longer than 16 384 characters is replaced whole with
|
|
76
|
+
`[MASKED_PII]`, including text that contains no identifier.** The scan
|
|
77
|
+
is not skipped. Skipping would let a 20 KB note or JSON column past
|
|
78
|
+
the detectors. `maskedCount` is 1. Fields at or under the cap are
|
|
79
|
+
scanned as before.
|
|
80
|
+
|
|
81
|
+
### Added
|
|
82
|
+
|
|
83
|
+
- **HTML `@` / `@` / `@` emails** are masked when they
|
|
84
|
+
decode to an existing email detector hit. A non-email `@` is left
|
|
85
|
+
unchanged. JSON `\u0040` is still out.
|
|
86
|
+
- **PII regression matrix** (`test/pii_regression_matrix.mjs`): one
|
|
87
|
+
canonical example per class (TR phone, TCKN, card, IBAN, email,
|
|
88
|
+
encoding evasions, labelled name) plus the things that must not be
|
|
89
|
+
touched. A dropped class turns the test red.
|
|
90
|
+
|
|
91
|
+
**Not published. Not deployed to Hetzner.**
|
|
6
92
|
|
|
7
93
|
## 0.2.4 — 2026-08-13
|
|
8
94
|
|
package/README.md
CHANGED
|
@@ -111,10 +111,13 @@ Deliberately narrow, because this is the one feature that can *loosen* protectio
|
|
|
111
111
|
the failure this product exists to prevent.
|
|
112
112
|
- **Fail-closed everywhere else:** no actor, unlisted actor, or a profile name that
|
|
113
113
|
does not exist all fall back to the base policy, never to a wider one.
|
|
114
|
-
- **The content scanners still run.**
|
|
115
|
-
IBAN / secret detectors are not overridable at all, so those stay masked in free
|
|
116
|
-
no matter which profile applied. IBAN is accepted only when ISO 7064
|
|
117
|
-
holds
|
|
114
|
+
- **The content scanners still run.** Email / national-ID / phone / card /
|
|
115
|
+
IBAN / secret detectors are not overridable at all, so those stay masked in free
|
|
116
|
+
text no matter which profile applied. IBAN is accepted only when ISO 7064
|
|
117
|
+
mod-97-10 holds. Passport MRZ (TD3, 7-3-1 check digits) is on by default and
|
|
118
|
+
likewise cannot be turned off by a profile — only `policy.detectors.mrz: false`
|
|
119
|
+
on the **base** policy opts it out. IP addresses are **off** until
|
|
120
|
+
`policy.detectors.ip: true`. Name masking is the one detector a profile can
|
|
118
121
|
switch off (`maskLabelledNames: false`), because the controller reading their
|
|
119
122
|
own customer list is the case this feature exists for.
|
|
120
123
|
- **The receipt says which profile applied** — `policy.id` becomes
|
|
@@ -146,14 +149,44 @@ that do run NER (Presidio-based ones, for instance) cover more entity types; the
|
|
|
146
149
|
buy that with a confidence threshold. Neither position dominates — this one is
|
|
147
150
|
stated so an auditor knows which one they are holding.
|
|
148
151
|
|
|
149
|
-
**Still not caught by content scanners
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
**Still not caught by content scanners — by design, not by omission:** street
|
|
153
|
+
addresses and bare names. An address detector cannot tell "Atatürk Caddesi No:15"
|
|
154
|
+
from "Atatürk Barajı" without a gazetteer. A name detector cannot tell Deniz /
|
|
155
|
+
Güneş / Umut from the words. Both would need a dictionary or a model; this
|
|
156
|
+
gateway's decisions are deterministic. Close those gaps with `maskColumns` (column
|
|
157
|
+
names) and `conarium-suggest-policy` (a name-based *guess* that does not write
|
|
158
|
+
your config).
|
|
159
|
+
|
|
160
|
+
IP addresses are caught **when you turn them on** (`policy.detectors.ip: true`).
|
|
161
|
+
They are off by default: a server IP is not always personal data, and a mask you
|
|
162
|
+
cannot disable breaks SOC work. `1.2.3.4` is structurally a valid IPv4 address;
|
|
163
|
+
when the detector is on it is masked, even if you meant a version number. Dates
|
|
164
|
+
(`13.08.2026`) and amounts (`1.250,00`) are not IPv4.
|
|
165
|
+
|
|
166
|
+
Passport numbers in free text are not caught. **MRZ is:** two TD3 lines × 44
|
|
167
|
+
characters, `P` in position 1, 7-3-1 check digits. A checksum miss is not an MRZ
|
|
168
|
+
and is left alone. TD1/TD2 are not implemented.
|
|
169
|
+
|
|
170
|
+
HTML `@` / `@`, JSON `\u0040`, and `%40` are masked when they sit inside
|
|
171
|
+
an email-shaped token. A lone `5@ store` or `C:\path\u0040abc` is left alone.
|
|
172
|
+
One decode pass; `@` is not chased.
|
|
173
|
+
|
|
174
|
+
A TCKN split across two similarly named fields on the same row (`tckn_1` /
|
|
175
|
+
`tckn_2`) is masked when the concatenation checksums. Unrelated columns are not
|
|
176
|
+
combined.
|
|
177
|
+
|
|
178
|
+
Zero-width characters, fullwidth digits / `@`, and unicode dashes are stripped
|
|
179
|
+
or mapped to ASCII *before* the detectors — that pass is not a general encoding
|
|
180
|
+
decoder; wrapped base64/hex *tokens* inside a field are masked only when they
|
|
181
|
+
decode to an existing detector hit.
|
|
182
|
+
|
|
183
|
+
**Scan length.** A single text field longer than `policy.scanCharCap` (default
|
|
184
|
+
16 384; env `CONARIUM_SCAN_CHAR_CAP` overrides) is replaced with `[MASKED_PII]`
|
|
185
|
+
as a whole, even when it contains no identifier. The scanner is not skipped:
|
|
186
|
+
skipping would mean a long note, JSON blob, or log line is the way past masking.
|
|
187
|
+
This is a **usability** setting. Raising it grows scan cost quadratically — a
|
|
188
|
+
40 KB alphanumeric field was ~1 s on the unbounded email regex before that regex
|
|
189
|
+
was bounded. `maskedCount` records that a decision was made.
|
|
157
190
|
|
|
158
191
|
Carry-over ignores values under three characters (a two-character value matches
|
|
159
192
|
everywhere and would shred the output) and matches on Unicode word boundaries, so
|
|
@@ -348,8 +381,8 @@ npm start
|
|
|
348
381
|
It never prints the private key — only its path.
|
|
349
382
|
|
|
350
383
|
When the package is on npm, the same binaries will ship in the tarball
|
|
351
|
-
(`conarium-init`, `conarium-doctor`, `conarium-verify`).
|
|
352
|
-
from this repository as above.
|
|
384
|
+
(`conarium-init`, `conarium-doctor`, `conarium-verify`, `conarium-suggest-policy`).
|
|
385
|
+
Until then, run them from this repository as above.
|
|
353
386
|
|
|
354
387
|
### Before you file a bug: run the doctor
|
|
355
388
|
|
|
@@ -401,6 +434,29 @@ Anything not in `allowTables` is denied by default; matched `maskColumns` are re
|
|
|
401
434
|
> otherwise the server refuses to start and tells you exactly which field to add.
|
|
402
435
|
> `denyConnectors` still takes precedence over `allowConnectors`.
|
|
403
436
|
|
|
437
|
+
### `policy.detectors` and `policy.scanCharCap`
|
|
438
|
+
|
|
439
|
+
Identity detectors — TCKN, card, IBAN, email — cannot be switched off. A config
|
|
440
|
+
that tries (`detectors: { tckn: false }`) is rejected at load. That is the
|
|
441
|
+
product: masking that a bank can disable from a JSON file is not masking.
|
|
442
|
+
|
|
443
|
+
| Key | Default | Why |
|
|
444
|
+
|---|---|---|
|
|
445
|
+
| `detectors.ip` | `false` | A server IP is not always personal data. A mask with no off switch breaks SOC ("how many requests from this address?"). Opt in when the column really is a client address. |
|
|
446
|
+
| `detectors.mrz` | `true` | A passport MRZ is identity and has check digits. Turn off on the base policy if you do not handle travel documents. |
|
|
447
|
+
| `scanCharCap` | `16384` | Usability. Fields longer than this are replaced whole (`[MASKED_PII]`), never skipped. Env `CONARIUM_SCAN_CHAR_CAP` overrides. Raise it and scan cost grows quadratically. Ceiling 1 048 576. |
|
|
448
|
+
|
|
449
|
+
```json
|
|
450
|
+
{
|
|
451
|
+
"scanCharCap": 32768,
|
|
452
|
+
"detectors": { "ip": true }
|
|
453
|
+
}
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
`conarium-suggest-policy --sql schema.sql` prints a `maskColumns` guess from
|
|
457
|
+
column names (`*name*`, `*address*`, `*tckn*`, …). It does not write your
|
|
458
|
+
config. The first line of the output says so.
|
|
459
|
+
|
|
404
460
|
## 🗺️ Roadmap
|
|
405
461
|
|
|
406
462
|
Conarium is **early access** — and honest about what's real:
|
package/SECURITY.md
CHANGED
|
@@ -60,6 +60,14 @@ log, verification — is local to your infrastructure by construction.
|
|
|
60
60
|
- Anything at the operating-system level: file permissions, process isolation,
|
|
61
61
|
the security of the host running Conarium.
|
|
62
62
|
|
|
63
|
+
**Content scanners — what we do not guess.** Street addresses and bare names
|
|
64
|
+
have no deterministic shape. We do not ship a gazetteer or a name list; a
|
|
65
|
+
half-working detector would turn the documented gap into a lie. Close those
|
|
66
|
+
fields with `maskColumns` / `conarium-suggest-policy`. IP addresses are an
|
|
67
|
+
opt-in detector (`policy.detectors.ip`) because a server IP is not always
|
|
68
|
+
personal data. Passport MRZ is checksummed (TD3); a free-text "letter plus
|
|
69
|
+
eight digits" pattern is not shipped.
|
|
70
|
+
|
|
63
71
|
**We do not have** SOC 2, an external penetration test, or a formal security
|
|
64
72
|
certification. We are one person. That is not a footnote we would rather you missed;
|
|
65
73
|
it is the reason the code is MIT-licensed and runs entirely inside your own
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* conarium-suggest-policy — column-name guess for maskColumns.
|
|
4
|
+
*
|
|
5
|
+
* Standalone: Node builtins only. Does not import src/ or dist/.
|
|
6
|
+
* Does not write conarium.config.json. The operator copies what they accept.
|
|
7
|
+
*
|
|
8
|
+
* "This is a guess; it looks at column names, not data."
|
|
9
|
+
*
|
|
10
|
+
* Exit: 0 printed · 1 refused (missing file / cannot read) · 2 usage
|
|
11
|
+
*/
|
|
12
|
+
import { readFileSync, existsSync, statSync } from 'node:fs'
|
|
13
|
+
import { resolve } from 'node:path'
|
|
14
|
+
|
|
15
|
+
const HONESTY = 'This is a guess; it looks at column names, not data.'
|
|
16
|
+
|
|
17
|
+
const HINTS = [
|
|
18
|
+
/adres/i,
|
|
19
|
+
/address/i,
|
|
20
|
+
/name/i,
|
|
21
|
+
/ad_soyad/i,
|
|
22
|
+
/soyad/i,
|
|
23
|
+
/mahalle/i,
|
|
24
|
+
/ilce/i,
|
|
25
|
+
/passport/i,
|
|
26
|
+
/pasaport/i,
|
|
27
|
+
/(?:^|[._-])ip(?:$|[._-])/i,
|
|
28
|
+
/tckn/i,
|
|
29
|
+
/email/i,
|
|
30
|
+
/iban/i,
|
|
31
|
+
/phone/i,
|
|
32
|
+
/telefon/i,
|
|
33
|
+
/holder/i,
|
|
34
|
+
/(?:^|[._-])pan(?:$|[._-])/i,
|
|
35
|
+
/cvv/i,
|
|
36
|
+
/tc_no/i,
|
|
37
|
+
/tcno/i,
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
const ARGS = process.argv.slice(2)
|
|
41
|
+
const has = (f) => ARGS.includes(f)
|
|
42
|
+
const valueOf = (f) => {
|
|
43
|
+
const i = ARGS.indexOf(f)
|
|
44
|
+
return i >= 0 && ARGS[i + 1] ? ARGS[i + 1] : null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function usage(msg) {
|
|
48
|
+
if (msg) console.error(msg)
|
|
49
|
+
console.error(`conarium-suggest-policy — suggest maskColumns from column names
|
|
50
|
+
|
|
51
|
+
--sql <file> CREATE TABLE script (no database needed)
|
|
52
|
+
--json machine-readable output
|
|
53
|
+
--help this text
|
|
54
|
+
|
|
55
|
+
Does not write config. Does not look at row values.
|
|
56
|
+
Exit: 0 printed · 1 refused · 2 usage`)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (has('--help') || has('-h')) {
|
|
60
|
+
usage()
|
|
61
|
+
process.exit(0)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (has('--write') || has('--apply') || has('--out')) {
|
|
65
|
+
console.error('conarium-suggest-policy does not write config. Copy the suggestion yourself.')
|
|
66
|
+
process.exit(1)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const sqlPath = valueOf('--sql')
|
|
70
|
+
if (!sqlPath) {
|
|
71
|
+
usage('missing --sql <file>')
|
|
72
|
+
process.exit(2)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const abs = resolve(sqlPath)
|
|
76
|
+
if (!existsSync(abs)) {
|
|
77
|
+
console.error(`no such file: ${abs}`)
|
|
78
|
+
process.exit(1)
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
if (!statSync(abs).isFile()) {
|
|
82
|
+
console.error(`not a file: ${abs}`)
|
|
83
|
+
process.exit(1)
|
|
84
|
+
}
|
|
85
|
+
} catch (err) {
|
|
86
|
+
console.error(err.message)
|
|
87
|
+
process.exit(1)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
let sql
|
|
91
|
+
try {
|
|
92
|
+
sql = readFileSync(abs, 'utf8')
|
|
93
|
+
} catch (err) {
|
|
94
|
+
console.error(err.message)
|
|
95
|
+
process.exit(1)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function columnsFromSql(text) {
|
|
99
|
+
const cols = []
|
|
100
|
+
const re = /CREATE TABLE\s+(?:IF NOT EXISTS\s+)?(?:"?(\w+)"?\.)?"?(\w+)"?\s*\(([\s\S]*?)\)\s*;/gi
|
|
101
|
+
let m
|
|
102
|
+
while ((m = re.exec(text))) {
|
|
103
|
+
const table = m[2]
|
|
104
|
+
const body = m[3]
|
|
105
|
+
for (const part of body.split(',')) {
|
|
106
|
+
const trimmed = part.trim()
|
|
107
|
+
if (!trimmed) continue
|
|
108
|
+
if (/^(PRIMARY|FOREIGN|UNIQUE|CHECK|CONSTRAINT)\b/i.test(trimmed)) continue
|
|
109
|
+
const col = trimmed.split(/\s+/)[0]?.replace(/"/g, '')
|
|
110
|
+
if (col) cols.push({ table, column: col })
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return cols
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function suggest(columns) {
|
|
117
|
+
const seen = new Set()
|
|
118
|
+
const maskColumns = []
|
|
119
|
+
for (const { column } of columns) {
|
|
120
|
+
if (!HINTS.some((re) => re.test(column))) continue
|
|
121
|
+
const glob = `*.${column}`
|
|
122
|
+
if (seen.has(glob)) continue
|
|
123
|
+
seen.add(glob)
|
|
124
|
+
maskColumns.push(glob)
|
|
125
|
+
}
|
|
126
|
+
return maskColumns
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const maskColumns = suggest(columnsFromSql(sql))
|
|
130
|
+
|
|
131
|
+
if (has('--json')) {
|
|
132
|
+
process.stdout.write(
|
|
133
|
+
JSON.stringify({ honesty: HONESTY, maskColumns, wroteConfig: false }, null, 2) + '\n',
|
|
134
|
+
)
|
|
135
|
+
} else {
|
|
136
|
+
process.stdout.write(`${HONESTY}\n\nwroteConfig: false\n\nSuggested maskColumns:\n`)
|
|
137
|
+
if (maskColumns.length === 0) {
|
|
138
|
+
process.stdout.write(' (none)\n')
|
|
139
|
+
} else {
|
|
140
|
+
for (const c of maskColumns) process.stdout.write(` ${c}\n`)
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
process.exit(0)
|
package/dist/audit.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ActorAssurance } from './tokens.js';
|
|
2
2
|
import { type MetaSource } from './receipt.js';
|
|
3
|
+
import type { DetectorToggles } from './types.js';
|
|
3
4
|
export interface AuditEntry {
|
|
4
5
|
timestamp: string;
|
|
5
6
|
actor: string;
|
|
@@ -73,12 +74,16 @@ export declare class Audit {
|
|
|
73
74
|
private receiptMeta?;
|
|
74
75
|
private receiptLastHash;
|
|
75
76
|
private receiptSeq;
|
|
77
|
+
private scanCharCap?;
|
|
78
|
+
private detectors?;
|
|
76
79
|
constructor(opts?: {
|
|
77
80
|
sink?: string;
|
|
78
81
|
consumer?: string;
|
|
79
82
|
failClosed?: boolean;
|
|
80
83
|
receiptSink?: string;
|
|
81
84
|
receiptMeta?: ReceiptMeta;
|
|
85
|
+
scanCharCap?: number;
|
|
86
|
+
detectors?: DetectorToggles;
|
|
82
87
|
});
|
|
83
88
|
private requireSigningCapability;
|
|
84
89
|
private currentSinkSize;
|
package/dist/audit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings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O,CAAC,WAAW;IASnB,kEAAkE;IAClE,OAAO,CAAC,qBAAqB;IAY7B,OAAO,CAAC,QAAQ;IAkChB,GAAG,CACD,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG;QACrE,6EAA6E;QAC7E,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,cAAc,CAAC,EAAE,cAAc,CAAA;KAChC,GACA,UAAU;IAyDb,mEAAmE;IACnE,OAAO,CAAC,YAAY;IA8BpB,OAAO,CAAC,aAAa;CAoGtB"}
|
package/dist/audit.js
CHANGED
|
@@ -3,7 +3,10 @@ import { createHmac } from 'crypto';
|
|
|
3
3
|
import { computeEntryHash, GENESIS_HASH } from './audit-hash.js';
|
|
4
4
|
import { loadSigningKey, loadTrustStore, signHash, verifyHash, } from './keys.js';
|
|
5
5
|
import { maskIbansInText, prepareIbanPass } from './iban.js';
|
|
6
|
-
import {
|
|
6
|
+
import { collapsePartialMask, maskEmbeddedEncodedPii, normalizePiiText, } from './pii_normalize.js';
|
|
7
|
+
import { resolveScanCharCap, maskEmails, maskEntityEncodedEmails, maskNumericPii, } from './digit_pii.js';
|
|
8
|
+
import { maskIps } from './ip_detect.js';
|
|
9
|
+
import { maskMrz } from './mrz.js';
|
|
7
10
|
import { buildReceipt, hashArgs, RECEIPT_GENESIS_HASH, } from './receipt.js';
|
|
8
11
|
/**
|
|
9
12
|
* AuditEntry + governance metadata → ReceiptInput.
|
|
@@ -92,9 +95,13 @@ export class Audit {
|
|
|
92
95
|
receiptMeta;
|
|
93
96
|
receiptLastHash = RECEIPT_GENESIS_HASH;
|
|
94
97
|
receiptSeq = 0;
|
|
98
|
+
scanCharCap;
|
|
99
|
+
detectors;
|
|
95
100
|
constructor(opts = {}) {
|
|
96
101
|
this.sink = opts.sink;
|
|
97
102
|
this.consumer = opts.consumer || 'unknown';
|
|
103
|
+
this.scanCharCap = opts.scanCharCap;
|
|
104
|
+
this.detectors = opts.detectors;
|
|
98
105
|
// Fail CLOSED by default: docs promise "every access is appended". A sink write
|
|
99
106
|
// failure must stop the request, not silently drop the trail. Opt out explicitly
|
|
100
107
|
// with failClosed: false for throwaway/demo setups.
|
|
@@ -201,13 +208,19 @@ export class Audit {
|
|
|
201
208
|
if (!args)
|
|
202
209
|
return args;
|
|
203
210
|
const str = typeof args === 'string' ? args : JSON.stringify(args);
|
|
211
|
+
if (str.length > resolveScanCharCap(this.scanCharCap)) {
|
|
212
|
+
return typeof args === 'string' ? '[MASKED_PII]' : { _audit: 'masked-oversize', length: str.length };
|
|
213
|
+
}
|
|
204
214
|
let masked = normalizePiiText(str);
|
|
205
215
|
const ibanPass = prepareIbanPass(masked);
|
|
206
216
|
masked = ibanPass.text;
|
|
207
|
-
masked = masked.
|
|
208
|
-
masked = masked.
|
|
209
|
-
masked = masked.
|
|
210
|
-
|
|
217
|
+
masked = maskEmails(masked).text;
|
|
218
|
+
masked = maskEntityEncodedEmails(masked).text;
|
|
219
|
+
masked = maskNumericPii(masked).text;
|
|
220
|
+
if (this.detectors?.ip === true)
|
|
221
|
+
masked = maskIps(masked).text;
|
|
222
|
+
if (this.detectors?.mrz !== false)
|
|
223
|
+
masked = maskMrz(masked).text;
|
|
211
224
|
// Credentials / secrets — not just PII. Keeps API keys, tokens, passwords
|
|
212
225
|
// and connection-string credentials out of the audit log.
|
|
213
226
|
masked = masked.replace(/\b(?:sk-[A-Za-z0-9]{12,}|sk_live_[A-Za-z0-9]{6,}|AKIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{20,}|gsk_[A-Za-z0-9]{20,}|xox[baprs]-[A-Za-z0-9-]{8,}|eyJ[A-Za-z0-9._-]{20,})\b/g, '[MASKED_SECRET]');
|
|
@@ -215,7 +228,7 @@ export class Audit {
|
|
|
215
228
|
masked = masked.replace(/(Bearer\s+)[A-Za-z0-9._~+/=-]{6,}/gi, '$1[MASKED_SECRET]');
|
|
216
229
|
masked = masked.replace(/((?:password|passwd|pwd|secret|token|api[_-]?key|access[_-]?key|authorization)["'\s]*[:=]["'\s]*)[^"'\s,;}]{4,}/gi, '$1[MASKED_SECRET]');
|
|
217
230
|
masked = ibanPass.restore(masked);
|
|
218
|
-
masked =
|
|
231
|
+
masked = collapsePartialMask(masked);
|
|
219
232
|
masked = maskEmbeddedEncodedPii(masked, (s) => maskIbansInText(s).count > 0).text;
|
|
220
233
|
if (typeof args === 'string')
|
|
221
234
|
return masked;
|
package/dist/audit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EACL,cAAc,EACd,cAAc,EACd,QAAQ,EACR,UAAU,GAIX,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,oBAAoB,GAKrB,MAAM,cAAc,CAAA;AA8CrB;;;;GAIG;AACH,SAAS,mBAAmB,CAAC,KAAiB,EAAE,IAAiB;IAC/D,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,IAAI,EAAE,CAAgC,CAAA;IACjE,MAAM,QAAQ,GAAiC,KAAK,CAAC,MAAM;QACzD,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,CAAC;YAC5B,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,OAAO,CAAA;IAEb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YACH,CAAC;YAED,oFAAoF;YACpF,wFAAwF;YACxF,IAAI,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;gBACvC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;oBAC9C,MAAM,IAAI,KAAK,CAAC,qEAAqE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;gBAChG,CAAC;gBACD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;gBACpD,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,MAAM,IAAI,KAAK,CACb,iDAAiD,KAAK,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,wBAAwB,CAC3G,CAAA;gBACH,CAAC;gBACD,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;oBACtD,MAAM,IAAI,KAAK,CACb,kEAAkE,KAAK,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,GAAG,CACvG,CAAA;gBACH,CAAC;YACH,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,GAAG,EAAE,CAAC;gBACrF,MAAM,IAAI,KAAK,CACb,kIAAkI,CACnI,CAAA;YACH,CAAC;YACD,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAA;QACvB,CAAC;IACH,CAAC;CACF"}
|
package/dist/config.d.ts
CHANGED
|
@@ -24,6 +24,17 @@ export declare const GovernancePolicySchema: z.ZodObject<{
|
|
|
24
24
|
maskLabelledNames?: boolean | undefined;
|
|
25
25
|
}>>>;
|
|
26
26
|
actorProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
27
|
+
scanCharCap: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
detectors: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
ip: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
mrz: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, "strict", z.ZodTypeAny, {
|
|
32
|
+
ip?: boolean | undefined;
|
|
33
|
+
mrz?: boolean | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
ip?: boolean | undefined;
|
|
36
|
+
mrz?: boolean | undefined;
|
|
37
|
+
}>>;
|
|
27
38
|
}, "strict", z.ZodTypeAny, {
|
|
28
39
|
maskColumns?: string[] | undefined;
|
|
29
40
|
maxRows?: number | undefined;
|
|
@@ -40,6 +51,11 @@ export declare const GovernancePolicySchema: z.ZodObject<{
|
|
|
40
51
|
maskLabelledNames?: boolean | undefined;
|
|
41
52
|
}> | undefined;
|
|
42
53
|
actorProfiles?: Record<string, string> | undefined;
|
|
54
|
+
scanCharCap?: number | undefined;
|
|
55
|
+
detectors?: {
|
|
56
|
+
ip?: boolean | undefined;
|
|
57
|
+
mrz?: boolean | undefined;
|
|
58
|
+
} | undefined;
|
|
43
59
|
}, {
|
|
44
60
|
maskColumns?: string[] | undefined;
|
|
45
61
|
maxRows?: number | undefined;
|
|
@@ -56,6 +72,11 @@ export declare const GovernancePolicySchema: z.ZodObject<{
|
|
|
56
72
|
maskLabelledNames?: boolean | undefined;
|
|
57
73
|
}> | undefined;
|
|
58
74
|
actorProfiles?: Record<string, string> | undefined;
|
|
75
|
+
scanCharCap?: number | undefined;
|
|
76
|
+
detectors?: {
|
|
77
|
+
ip?: boolean | undefined;
|
|
78
|
+
mrz?: boolean | undefined;
|
|
79
|
+
} | undefined;
|
|
59
80
|
}>;
|
|
60
81
|
export declare const AuditConfigSchema: z.ZodObject<{
|
|
61
82
|
sink: z.ZodOptional<z.ZodString>;
|
|
@@ -171,6 +192,17 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
171
192
|
maskLabelledNames?: boolean | undefined;
|
|
172
193
|
}>>>;
|
|
173
194
|
actorProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
195
|
+
scanCharCap: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
detectors: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
ip: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
mrz: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
}, "strict", z.ZodTypeAny, {
|
|
200
|
+
ip?: boolean | undefined;
|
|
201
|
+
mrz?: boolean | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
ip?: boolean | undefined;
|
|
204
|
+
mrz?: boolean | undefined;
|
|
205
|
+
}>>;
|
|
174
206
|
}, "strict", z.ZodTypeAny, {
|
|
175
207
|
maskColumns?: string[] | undefined;
|
|
176
208
|
maxRows?: number | undefined;
|
|
@@ -187,6 +219,11 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
187
219
|
maskLabelledNames?: boolean | undefined;
|
|
188
220
|
}> | undefined;
|
|
189
221
|
actorProfiles?: Record<string, string> | undefined;
|
|
222
|
+
scanCharCap?: number | undefined;
|
|
223
|
+
detectors?: {
|
|
224
|
+
ip?: boolean | undefined;
|
|
225
|
+
mrz?: boolean | undefined;
|
|
226
|
+
} | undefined;
|
|
190
227
|
}, {
|
|
191
228
|
maskColumns?: string[] | undefined;
|
|
192
229
|
maxRows?: number | undefined;
|
|
@@ -203,6 +240,11 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
203
240
|
maskLabelledNames?: boolean | undefined;
|
|
204
241
|
}> | undefined;
|
|
205
242
|
actorProfiles?: Record<string, string> | undefined;
|
|
243
|
+
scanCharCap?: number | undefined;
|
|
244
|
+
detectors?: {
|
|
245
|
+
ip?: boolean | undefined;
|
|
246
|
+
mrz?: boolean | undefined;
|
|
247
|
+
} | undefined;
|
|
206
248
|
}>>;
|
|
207
249
|
audit: z.ZodOptional<z.ZodObject<{
|
|
208
250
|
sink: z.ZodOptional<z.ZodString>;
|
|
@@ -281,6 +323,11 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
281
323
|
maskLabelledNames?: boolean | undefined;
|
|
282
324
|
}> | undefined;
|
|
283
325
|
actorProfiles?: Record<string, string> | undefined;
|
|
326
|
+
scanCharCap?: number | undefined;
|
|
327
|
+
detectors?: {
|
|
328
|
+
ip?: boolean | undefined;
|
|
329
|
+
mrz?: boolean | undefined;
|
|
330
|
+
} | undefined;
|
|
284
331
|
} | undefined;
|
|
285
332
|
serverName?: string | undefined;
|
|
286
333
|
serverVersion?: string | undefined;
|
|
@@ -322,6 +369,11 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
322
369
|
maskLabelledNames?: boolean | undefined;
|
|
323
370
|
}> | undefined;
|
|
324
371
|
actorProfiles?: Record<string, string> | undefined;
|
|
372
|
+
scanCharCap?: number | undefined;
|
|
373
|
+
detectors?: {
|
|
374
|
+
ip?: boolean | undefined;
|
|
375
|
+
mrz?: boolean | undefined;
|
|
376
|
+
} | undefined;
|
|
325
377
|
} | undefined;
|
|
326
378
|
serverName?: string | undefined;
|
|
327
379
|
serverVersion?: string | undefined;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAYhD,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAYhD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBxB,CAAA;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanB,CAAA;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKvB,CAAA;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOtB,CAAA;AAEX,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAEhE"}
|
package/dist/config.js
CHANGED
|
@@ -23,6 +23,15 @@ export const GovernancePolicySchema = z.object({
|
|
|
23
23
|
// class by hand.
|
|
24
24
|
profiles: z.record(MaskingProfileSchema).optional(),
|
|
25
25
|
actorProfiles: z.record(z.string().min(1)).optional(),
|
|
26
|
+
scanCharCap: z.number().int().min(1).max(1_048_576).optional(),
|
|
27
|
+
// Identity detectors (TCKN, card, IBAN, email, phone, PAN) are intentionally
|
|
28
|
+
// absent. Turning them off from config would let a bank "solve" masking by
|
|
29
|
+
// disabling it — the product would contradict its own guarantee. .strict()
|
|
30
|
+
// rejects those keys (and any other unrecognised detector name).
|
|
31
|
+
detectors: z.object({
|
|
32
|
+
ip: z.boolean().optional(),
|
|
33
|
+
mrz: z.boolean().optional(),
|
|
34
|
+
}).strict().optional(),
|
|
26
35
|
}).strict();
|
|
27
36
|
export const AuditConfigSchema = z.object({
|
|
28
37
|
sink: z.string().min(1).optional(),
|