incognito-sql 0.0.5a1__tar.gz
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.
- incognito_sql-0.0.5a1/.gitignore +11 -0
- incognito_sql-0.0.5a1/CHANGELOG.md +168 -0
- incognito_sql-0.0.5a1/LICENSE +202 -0
- incognito_sql-0.0.5a1/NOTICE +176 -0
- incognito_sql-0.0.5a1/PKG-INFO +799 -0
- incognito_sql-0.0.5a1/README.md +756 -0
- incognito_sql-0.0.5a1/SECURITY.md +30 -0
- incognito_sql-0.0.5a1/pyproject.toml +164 -0
- incognito_sql-0.0.5a1/src/incognito_sql/__init__.py +10 -0
- incognito_sql-0.0.5a1/src/incognito_sql/__main__.py +5 -0
- incognito_sql-0.0.5a1/src/incognito_sql/assess/__init__.py +6 -0
- incognito_sql-0.0.5a1/src/incognito_sql/assess/command.py +47 -0
- incognito_sql-0.0.5a1/src/incognito_sql/assess/model.py +87 -0
- incognito_sql-0.0.5a1/src/incognito_sql/assess/report.py +66 -0
- incognito_sql-0.0.5a1/src/incognito_sql/assess/run.py +146 -0
- incognito_sql-0.0.5a1/src/incognito_sql/assess/truth.py +104 -0
- incognito_sql-0.0.5a1/src/incognito_sql/audit_command.py +50 -0
- incognito_sql-0.0.5a1/src/incognito_sql/check/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/check/clients.py +99 -0
- incognito_sql-0.0.5a1/src/incognito_sql/check/probes.py +106 -0
- incognito_sql-0.0.5a1/src/incognito_sql/check/run.py +136 -0
- incognito_sql-0.0.5a1/src/incognito_sql/cli.py +202 -0
- incognito_sql-0.0.5a1/src/incognito_sql/connect/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/connect/clients.py +143 -0
- incognito_sql-0.0.5a1/src/incognito_sql/connect/release.py +25 -0
- incognito_sql-0.0.5a1/src/incognito_sql/connect/run.py +172 -0
- incognito_sql-0.0.5a1/src/incognito_sql/connect/write.py +122 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/audit.py +111 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/audit_chain.py +149 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/audit_verify.py +82 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/budget.py +173 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/config/__init__.py +28 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/config/forms.py +36 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/config/load.py +76 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/config/model.py +223 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/config/protection.py +147 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/config/report.py +61 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/config/row_rules.py +119 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/db.py +137 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/deadline.py +53 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/describe.py +65 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/display.py +128 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/errors.py +44 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/exec/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/exec/run.py +88 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/output/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/output/detect.py +139 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/output/mask.py +80 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/output/secret.py +32 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/output/shape.py +84 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/output/suspects.py +49 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/pipeline.py +194 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/rate.py +45 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/aggregates.py +103 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/allowlist.py +107 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/allowlist_table.py +124 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/bind.py +120 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/bind_domain.py +105 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/bind_forms.py +94 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/bind_type.py +133 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/bind_values.py +52 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/binder.py +92 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/catalog.py +181 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/colref.py +29 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/constants.py +69 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/expand.py +93 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/families.py +61 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/flows.py +113 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/grouping.py +142 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/lineage.py +150 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/opaque.py +24 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/order_keys.py +80 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/origin.py +70 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/parse.py +81 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/policy.py +89 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/policy_places.py +78 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/policy_probes.py +94 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/policy_rules.py +149 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/policy_shape.py +121 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/probe_count.py +35 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/recheck.py +71 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/resolve.py +129 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/rewrite.py +153 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/row_mask.py +151 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/scan_fallible.py +170 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/scan_order.py +49 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/scan_spellings.py +55 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/shadow.py +105 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/shape.py +73 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/stars.py +27 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/strings.py +46 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/tiebreak.py +143 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/sql/typefamily.py +85 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/tokens/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/tokens/canon.py +6 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/tokens/crypto.py +80 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/tokens/db.py +59 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/tokens/format.py +13 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/tokens/schema.sql +20 -0
- incognito_sql-0.0.5a1/src/incognito_sql/core/tokens/store.py +150 -0
- incognito_sql-0.0.5a1/src/incognito_sql/demo.py +91 -0
- incognito_sql-0.0.5a1/src/incognito_sql/diff/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/diff/changes.py +168 -0
- incognito_sql-0.0.5a1/src/incognito_sql/diff/kinds.py +19 -0
- incognito_sql-0.0.5a1/src/incognito_sql/diff/rules.py +66 -0
- incognito_sql-0.0.5a1/src/incognito_sql/diff/run.py +49 -0
- incognito_sql-0.0.5a1/src/incognito_sql/dpo/__init__.py +6 -0
- incognito_sql-0.0.5a1/src/incognito_sql/dpo/command.py +81 -0
- incognito_sql-0.0.5a1/src/incognito_sql/dpo/journal.py +95 -0
- incognito_sql-0.0.5a1/src/incognito_sql/dpo/summary.py +77 -0
- incognito_sql-0.0.5a1/src/incognito_sql/envfile.py +37 -0
- incognito_sql-0.0.5a1/src/incognito_sql/init/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/init/hints.py +35 -0
- incognito_sql-0.0.5a1/src/incognito_sql/init/report.py +42 -0
- incognito_sql-0.0.5a1/src/incognito_sql/init/run.py +142 -0
- incognito_sql-0.0.5a1/src/incognito_sql/init/sampling.py +42 -0
- incognito_sql-0.0.5a1/src/incognito_sql/init/scaffold.py +51 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/__init__.py +6 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/asker.py +120 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/chance.py +11 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/cuts.py +60 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/dialects.py +40 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/forms.py +77 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/fragment.py +101 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/infer.py +155 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/oracle.py +98 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/partial.py +68 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/series.py +146 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/target.py +78 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/textforms.py +61 -0
- incognito_sql-0.0.5a1/src/incognito_sql/levels/verdict.py +40 -0
- incognito_sql-0.0.5a1/src/incognito_sql/mcp/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/mcp/http.py +48 -0
- incognito_sql-0.0.5a1/src/incognito_sql/mcp/instructions.md +76 -0
- incognito_sql-0.0.5a1/src/incognito_sql/mcp/refusals.py +188 -0
- incognito_sql-0.0.5a1/src/incognito_sql/mcp/server.py +69 -0
- incognito_sql-0.0.5a1/src/incognito_sql/mcp/token.py +19 -0
- incognito_sql-0.0.5a1/src/incognito_sql/parser.py +33 -0
- incognito_sql-0.0.5a1/src/incognito_sql/problems.py +14 -0
- incognito_sql-0.0.5a1/src/incognito_sql/py.typed +0 -0
- incognito_sql-0.0.5a1/src/incognito_sql/sdk/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/serving.py +114 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/cases.py +16 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/closed.py +158 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/columns.py +76 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/commands.py +49 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/common.py +87 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/env.py +53 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/guide.py +88 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/keep.py +41 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/local.py +163 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/model.py +122 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/projects.py +101 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/secret.py +93 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/setkey.py +61 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/uservar.py +32 -0
- incognito_sql-0.0.5a1/src/incognito_sql/setup/widen.py +25 -0
- incognito_sql-0.0.5a1/src/incognito_sql/shell.py +30 -0
- incognito_sql-0.0.5a1/src/incognito_sql/trial/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/trial/run.py +111 -0
- incognito_sql-0.0.5a1/src/incognito_sql/trial/verdict.py +104 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/app.py +92 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/cards.py +109 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/guard.py +75 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/pages.py +75 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/run.py +122 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/session.py +107 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/templates/index.html +2 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/templates/layout.html +20 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/templates/masked.html +6 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/templates/person.html +4 -0
- incognito_sql-0.0.5a1/src/incognito_sql/web/templates/value.html +3 -0
- incognito_sql-0.0.5a1/src/incognito_sql/wiring.py +72 -0
- incognito_sql-0.0.5a1/src/incognito_sql/wizard/__init__.py +1 -0
- incognito_sql-0.0.5a1/src/incognito_sql/wizard/arrows.py +80 -0
- incognito_sql-0.0.5a1/src/incognito_sql/wizard/columns.py +73 -0
- incognito_sql-0.0.5a1/src/incognito_sql/wizard/prompts.py +111 -0
- incognito_sql-0.0.5a1/src/incognito_sql/wizard/run.py +59 -0
- incognito_sql-0.0.5a1/src/incognito_sql/wizard/walk.py +124 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to incognito-sql are listed here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
0.0.1 and 0.0.2 were stages of development and were never released as packages; their dates
|
|
8
|
+
are when the stage was finished. Numbers from the benchmark are in
|
|
9
|
+
[docs/benchmark.md](docs/benchmark.md), not here.
|
|
10
|
+
|
|
11
|
+
## [0.0.5a1] - 2026-11-03
|
|
12
|
+
|
|
13
|
+
A test build for hands-on checks in agent harnesses before 0.0.5. It is installed only by
|
|
14
|
+
its exact version (`incognito-sql==0.0.5a1`) and has had no cold review; findings go into
|
|
15
|
+
0.0.5. It holds everything under [Unreleased] below and the setup steps of 0.0.5: `guide`
|
|
16
|
+
for an agent, `setup` in the terminal, `secret` for a password typed outside the chat.
|
|
17
|
+
|
|
18
|
+
## [Unreleased] (0.0.4)
|
|
19
|
+
|
|
20
|
+
In progress: the items below may still change before the release.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **Refusals tell the agent what to do next.** A refusal carries `retry` (`rewrite`,
|
|
25
|
+
`ask_user` or `stop`) and a fixed `hint` per reason; neither names a value, a column or
|
|
26
|
+
database text.
|
|
27
|
+
- **Row rules** in the declaration (`row_rules`): hide rows or cells by a condition on
|
|
28
|
+
open columns, under every profile. A query that could fail on a hidden row is refused
|
|
29
|
+
(`hidden_rows`).
|
|
30
|
+
- **`incognito-sql try --config <file> "<sql>"`**: the verdict on a query, the base
|
|
31
|
+
columns it reads and its output columns, without running it.
|
|
32
|
+
- **`incognito-sql assess`**: judges what the model can learn about each column on your own
|
|
33
|
+
database and protection profile, and how long the literal budget makes a series of
|
|
34
|
+
probes wait.
|
|
35
|
+
- **`incognito-sql report`**: a per-column report for a data protection officer: what the
|
|
36
|
+
model may learn of each column and what it asked.
|
|
37
|
+
- **`incognito-sql diff <old> <new>`**: what a new declaration lets the model see or link
|
|
38
|
+
more (`WIDENED`) or less (`NARROWED`); with `--ci` it exits 1 on any widening.
|
|
39
|
+
- **`incognito-sql demo`** writes an invented shop database to try the server on, and
|
|
40
|
+
**`incognito-sql connect <client>`** prints the MCP entry for Claude Code, Codex, Cursor
|
|
41
|
+
or OpenCode (`--write` adds it to the client's settings file); the entry names the DSN's
|
|
42
|
+
variable, never its value.
|
|
43
|
+
- **`incognito-sql audit verify`**: the audit log is a hash chain, and `verify` names its
|
|
44
|
+
first break.
|
|
45
|
+
- Each audit line names the base columns the query read, refused or not.
|
|
46
|
+
- `limits.probe_budget` (default 100): probes of identifier values (`<`, `>`, `BETWEEN`,
|
|
47
|
+
`<>`, `LIKE`, sort keys, `MIN` / `MAX`, `length()`) per window of the installation.
|
|
48
|
+
- `limits.query_rate` and `limits.query_window_s` (default 600 per 60 s): queries the
|
|
49
|
+
installation answers per window, refused ones included.
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- A configuration error names the place of a bad value and never repeats the text typed
|
|
54
|
+
there; a secret pasted into a command-line argument is refused and never echoed.
|
|
55
|
+
|
|
56
|
+
## [0.0.3] (not yet released)
|
|
57
|
+
|
|
58
|
+
### Added
|
|
59
|
+
|
|
60
|
+
- **Protection profiles** for identifier columns: `strict`, `balanced` and `permissive`,
|
|
61
|
+
your own profiles under `protections`, and a profile per column under
|
|
62
|
+
`column_protection`. A profile names the operations an identifier admits; none of them
|
|
63
|
+
shows a value whole. `describe` tells the model which operations it may use.
|
|
64
|
+
- Under `permissive`: `length()` of an identifier, sorting by it, `MIN` / `MAX` of it (as a
|
|
65
|
+
token), `<` `>` `BETWEEN`, `LIKE` and `<>` with a human literal. Each such literal spends
|
|
66
|
+
the literal budget and is written to the audit log as `?`.
|
|
67
|
+
- `serve`, `service` and `check` warn when the profile in use admits more than `balanced`.
|
|
68
|
+
- Query forms accepted under every profile: `INTERSECT` and `EXCEPT`, a table alias
|
|
69
|
+
repeated across their branches, a column outside `GROUP BY` when the whole non-null
|
|
70
|
+
primary key of its table is grouped, `SUM` / `AVG` over a `CASE` of small non-negative
|
|
71
|
+
integers, SQLite double-quoted strings, SQLite date functions and `instr` over open
|
|
72
|
+
columns, catalog names with spaces, parentheses or hyphens.
|
|
73
|
+
- Under `permissive` only: window functions (never over an identifier), `SUM` / `AVG` over
|
|
74
|
+
any expression, grouping by a primary key that can hold NULL.
|
|
75
|
+
- A cell of an open column that looks personal is masked as a link that shows the value to
|
|
76
|
+
a signed-in human only; the first time a column is masked, a warning names it and the
|
|
77
|
+
audit line lists it. `verified_open` lists columns checked by a human, whose values are
|
|
78
|
+
not masked.
|
|
79
|
+
- `SECURITY.md`: how to report a way for a hidden value to reach the model.
|
|
80
|
+
- The package is licensed under Apache-2.0, and a release workflow publishes a tagged
|
|
81
|
+
version to PyPI.
|
|
82
|
+
- The benchmark runs on sets we did not write (Spider, BIRD Mini-Dev, SecureSQL), takes
|
|
83
|
+
more tools of the same kind, and judges every tool by levels of disclosure (a value
|
|
84
|
+
whole, a piece of it, a fact about it) against what that tool claims.
|
|
85
|
+
[docs/competitors.md](docs/competitors.md) describes how the other tools work.
|
|
86
|
+
|
|
87
|
+
### Changed
|
|
88
|
+
|
|
89
|
+
- **The default protection profile is `permissive`, which admits more than 0.0.2 did.**
|
|
90
|
+
`strict` admits exactly what 0.0.2 admitted; set `protection: strict` or
|
|
91
|
+
`protection: balanced` to keep the narrower behaviour.
|
|
92
|
+
- **`strict` now refuses some queries it used to answer**, closing what was left of the
|
|
93
|
+
scan-order channel: `SUM` / `AVG` over float columns (`float_aggregate`); expressions
|
|
94
|
+
that can fail on some rows inside `EXISTS`, `IN (SELECT ...)`, a scalar subquery or a
|
|
95
|
+
`WITH` query (`fallible_subquery`); and, on MySQL and SQL Server, `GROUP BY`,
|
|
96
|
+
`DISTINCT`, `MIN` / `MAX` and `UNION` over open text columns (`equal_spellings`).
|
|
97
|
+
`strict` also prints a number one way whatever its type (`1.0` as `1`).
|
|
98
|
+
- The card sign-in lasts 8 hours by default (`session_ttl_s`).
|
|
99
|
+
- A query refused after the literal budget (a limit, a database error) has spent its
|
|
100
|
+
literals; the README says so.
|
|
101
|
+
- `MIN` / `MAX` of an identifier counts as a place of its value under every profile, and a
|
|
102
|
+
`RANGE` window frame with an offset over an identifier sort key is refused.
|
|
103
|
+
|
|
104
|
+
### Fixed
|
|
105
|
+
|
|
106
|
+
- The service (`incognito-sql service`) counted the literal budget of all its clients as
|
|
107
|
+
one connection with no time window, so after `literal_budget` distinct literals it
|
|
108
|
+
refused every new one for good, even after a restart. It now counts by the
|
|
109
|
+
installation window only.
|
|
110
|
+
- Honest queries no longer refused: the query forms listed under Added, `CAST` of an open
|
|
111
|
+
column, and a literal left of `IN` against an identifier, which now matches the value's
|
|
112
|
+
spellings.
|
|
113
|
+
|
|
114
|
+
## [0.0.2] - 2026-10-31 (not published)
|
|
115
|
+
|
|
116
|
+
The strength of the protection is tested beyond the attack corpus.
|
|
117
|
+
|
|
118
|
+
### Added
|
|
119
|
+
|
|
120
|
+
- Differential fuzzing: random queries go through the server on all five DBMS, and any
|
|
121
|
+
disagreement between the parser and the database is recorded.
|
|
122
|
+
- Red-team campaigns and honest questions through a real MCP client (Claude Code), run
|
|
123
|
+
locally before a release.
|
|
124
|
+
- Mutation testing of the protective modules, weekly in CI.
|
|
125
|
+
- A demo database of invented data for those runs.
|
|
126
|
+
|
|
127
|
+
### Security
|
|
128
|
+
|
|
129
|
+
- A cell holding more candidate e-mails or card numbers than the detector examines is
|
|
130
|
+
masked instead of passed.
|
|
131
|
+
|
|
132
|
+
## [0.0.1] - 2026-10-31 (not published)
|
|
133
|
+
|
|
134
|
+
The first version: safe to run on your own machine.
|
|
135
|
+
|
|
136
|
+
### Added
|
|
137
|
+
|
|
138
|
+
- An MCP server with two read-only tools: `query` runs one SQL `SELECT`, `describe` names
|
|
139
|
+
the DBMS and lists the usable tables and columns with their classes, the number of
|
|
140
|
+
hidden columns, and each table of people's `person_key`.
|
|
141
|
+
- A YAML declaration of every column: `identifier`, `quasi`, `free_text`, `secret` or
|
|
142
|
+
`open`; a column it does not list is hidden. `entities` names the tables whose rows are
|
|
143
|
+
people.
|
|
144
|
+
- Query checks: parser limits, an allowlist of syntax nodes, column lineage through
|
|
145
|
+
aliases, subqueries and set operations, and a default-deny policy for identifier
|
|
146
|
+
columns; system catalogs, `EXPLAIN` and several statements are refused.
|
|
147
|
+
- Only SQL regenerated from the checked tree runs, with literals and tokens as bind
|
|
148
|
+
parameters, on a read-only session where the DBMS has one; a refusal or a database error
|
|
149
|
+
reaches the model as a reason from a fixed list, never with a bound value.
|
|
150
|
+
- Tokens: each identifier value becomes a random `tk_...` token shared by its spellings,
|
|
151
|
+
living 24 hours by default, kept in an encrypted store whose key lives in the OS
|
|
152
|
+
keyring or in `INCOGNITO_SQL_KEY`. Labels mode (`web_enabled: false`) gives labels local
|
|
153
|
+
to one answer instead.
|
|
154
|
+
- Local web cards that show a value or a person to a signed-in human, with a one-time
|
|
155
|
+
sign-in link (`login`) and `web` to serve them alone.
|
|
156
|
+
- Output shaping: rows shuffled unless the query has `ORDER BY`, ties in random order,
|
|
157
|
+
computed floats rounded, and cells of open columns that look personal masked.
|
|
158
|
+
- A literal budget: distinct human literals compared with identifiers, per connection and
|
|
159
|
+
per window of the installation.
|
|
160
|
+
- An audit log with literals replaced by tokens; result rows are never logged.
|
|
161
|
+
- `init` writes a declaration scaffold with every column hidden and lists columns that
|
|
162
|
+
look personal.
|
|
163
|
+
- PostgreSQL, MySQL, SQL Server, SQLite and DuckDB, with a statement time limit on each.
|
|
164
|
+
- The closed installation profile: `incognito-sql service` runs as its own OS user and
|
|
165
|
+
serves MCP over HTTP on `127.0.0.1` behind a token; `--env-file`; `check` tells which
|
|
166
|
+
profile an agent's account is in. [docs/deployment.md](docs/deployment.md) sets it up.
|
|
167
|
+
- A leakage benchmark: an attack corpus, an oracle that shares no code with the server,
|
|
168
|
+
and other tools of the same kind on the same attacks.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
https://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
incognito-sql
|
|
2
|
+
=============
|
|
3
|
+
|
|
4
|
+
Copyright 2026 Alexander Khodos. Licensed under the Apache License, Version 2.0
|
|
5
|
+
(see LICENSE).
|
|
6
|
+
|
|
7
|
+
The attack corpus under bench/corpus/ includes test data taken from the projects
|
|
8
|
+
below. Only test data was taken (case names and SQL strings, grouped by their
|
|
9
|
+
categories), rewritten against the invented bench world (bench/world.py); no code
|
|
10
|
+
from these projects is included. Expected outcomes are our own.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
sql-safe-mcp
|
|
14
|
+
------------
|
|
15
|
+
Repository: https://github.com/proprock/sql-safe-mcp
|
|
16
|
+
Commit: 9dd2a696318f03b01e1f4c44d422ce6bc4214fe7
|
|
17
|
+
Files: tests/security/corpus/{pii,structure,syntax,resources}.yaml
|
|
18
|
+
Taken: 300 cases -> bench/corpus/sql_safe_mcp_{pii,structure,syntax,resources}.yaml
|
|
19
|
+
License: MIT
|
|
20
|
+
|
|
21
|
+
MIT License
|
|
22
|
+
|
|
23
|
+
Copyright (c) 2026 Anton Padapryhara
|
|
24
|
+
|
|
25
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
26
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
27
|
+
in the Software without restriction, including without limitation the rights
|
|
28
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
29
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
30
|
+
furnished to do so, subject to the following conditions:
|
|
31
|
+
|
|
32
|
+
The above copyright notice and this permission notice shall be included in all
|
|
33
|
+
copies or substantial portions of the Software.
|
|
34
|
+
|
|
35
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
36
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
37
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
38
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
39
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
40
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
41
|
+
SOFTWARE.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
DataCharter (govbench-v1)
|
|
45
|
+
-------------------------
|
|
46
|
+
Repository: https://github.com/datacharter/datacharter
|
|
47
|
+
Commit: a7cb14e538d86eb16ad639a9d0799e9206cabfcf (tag v0.44.0)
|
|
48
|
+
Files: src/datacharter/agent/govbench_v1.json
|
|
49
|
+
(SHA-256 bf135e5d3a22be733b7f27da5e5c3292fc549fc4ae1a52ddce6794f5c6744131),
|
|
50
|
+
docs/govbench.md
|
|
51
|
+
Taken: the 28 attack queries of govbench-v1 and their ids -> bench/corpus/govbench.yaml,
|
|
52
|
+
adapted: their tables and columns rewritten against the bench world, the
|
|
53
|
+
expected outcomes our own. No code is included. The repository has no NOTICE
|
|
54
|
+
file at that commit.
|
|
55
|
+
License: Apache License, Version 2.0 (the same text as LICENSE in this repository)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
sanitized-db-mcp
|
|
59
|
+
----------------
|
|
60
|
+
Repository: https://github.com/evvy-bio/sanitized-db-mcp
|
|
61
|
+
Commit: c1144d8e80bb00727bedf4a39f9630da7dba1d3c
|
|
62
|
+
Files: sanitized_db_mcp/tests/test_pentest.py (PT_* categories)
|
|
63
|
+
Taken: 90 cases with SQL -> bench/corpus/sanitized_db_mcp.yaml
|
|
64
|
+
(PT_CONN and PT_AUD inspect that project's code and carry no SQL)
|
|
65
|
+
License: MIT
|
|
66
|
+
|
|
67
|
+
MIT License
|
|
68
|
+
|
|
69
|
+
Copyright (c) 2026 ruminaider
|
|
70
|
+
|
|
71
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
72
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
73
|
+
in the Software without restriction, including without limitation the rights
|
|
74
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
75
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
76
|
+
furnished to do so, subject to the following conditions:
|
|
77
|
+
|
|
78
|
+
The above copyright notice and this permission notice shall be included in all
|
|
79
|
+
copies or substantial portions of the Software.
|
|
80
|
+
|
|
81
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
82
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
83
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
84
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
85
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
86
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
87
|
+
SOFTWARE.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
Article
|
|
91
|
+
-------
|
|
92
|
+
Yevhen Piotrovskyi, "Controlling PII Disclosure in Database MCP Connectors",
|
|
93
|
+
American Impact Review (2026), doi:10.66308/air.e2026067,
|
|
94
|
+
https://americanimpactreview.com/article/e2026067
|
|
95
|
+
|
|
96
|
+
The article does not publish its attack list. bench/corpus/article.yaml is our
|
|
97
|
+
reconstruction of a 17-attack suite from the techniques the article names (section
|
|
98
|
+
5.3), written as our own cases; it is not the article's attack list, and no text of
|
|
99
|
+
the article is reproduced. The leak oracle (bench/oracle.py) follows the article's
|
|
100
|
+
design: an oracle sharing no code with the gateway, matching canaries in
|
|
101
|
+
5-character windows after hex and base64 decoding.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
mcp-db-results-anonymizer
|
|
105
|
+
-------------------------
|
|
106
|
+
Repository: https://github.com/dnjfr/mcp-db-results-anonymizer
|
|
107
|
+
Tag: v1.0.1 (commit 6aa6ae33467d4a0b4deda544540ea7c645756eee)
|
|
108
|
+
Files: config.example.yaml
|
|
109
|
+
Taken: the column-name pattern lists of its `detection` section ->
|
|
110
|
+
bench/adapters/config/db_results_anonymizer.yaml, as its docs tell users
|
|
111
|
+
to copy that template; no code is included.
|
|
112
|
+
License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
mcp-server-conceal
|
|
116
|
+
------------------
|
|
117
|
+
Repository: https://github.com/gbrigandi/mcp-server-conceal
|
|
118
|
+
Tag: v0.1.0 (commit d98466772c7d686ddeb979f3d130a07aa3a30090)
|
|
119
|
+
Files: README.md, section "Configuration"
|
|
120
|
+
Taken: the regular expressions of its `[detection.patterns]` table ->
|
|
121
|
+
bench/adapters/config/conceal.toml, as its README gives them for users'
|
|
122
|
+
configuration files; no code is included.
|
|
123
|
+
License: MIT
|
|
124
|
+
|
|
125
|
+
MIT License
|
|
126
|
+
|
|
127
|
+
Copyright (c) 2025 Gianluca Brigandi
|
|
128
|
+
|
|
129
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
130
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
131
|
+
in the Software without restriction, including without limitation the rights
|
|
132
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
133
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
134
|
+
furnished to do so, subject to the following conditions:
|
|
135
|
+
|
|
136
|
+
The above copyright notice and this permission notice shall be included in all
|
|
137
|
+
copies or substantial portions of the Software.
|
|
138
|
+
|
|
139
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
140
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
141
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
142
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
143
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
144
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
145
|
+
SOFTWARE.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
Independent sets (bench/external/)
|
|
149
|
+
----------------------------------
|
|
150
|
+
|
|
151
|
+
The independent-sets benchmark (`uv run poe bench-external`) downloads the sets below
|
|
152
|
+
at run time into a local cache, by a pinned address and SHA-256 (bench/external/
|
|
153
|
+
sources.py). None of their questions, queries or data is in this repository. Our
|
|
154
|
+
markings (bench/external/decl/*.yaml) name the sets' databases, tables and columns, and
|
|
155
|
+
quote SecureSQL's security conditions verbatim to match its samples; the markings
|
|
156
|
+
themselves are ours.
|
|
157
|
+
|
|
158
|
+
Spider 1.0
|
|
159
|
+
Tao Yu et al., "Spider: A Large-Scale Human-Labeled Dataset for Complex and
|
|
160
|
+
Cross-Domain Semantic Parsing and Text-to-SQL Task", EMNLP 2018.
|
|
161
|
+
https://yale-lily.github.io/spider (spider_data.zip, dev set and its databases)
|
|
162
|
+
License: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
|
|
163
|
+
|
|
164
|
+
BIRD Mini-Dev
|
|
165
|
+
Jinyang Li et al., "Can LLM Already Serve as A Database Interface? A BIg Bench for
|
|
166
|
+
Large-Scale Database Grounded Text-to-SQLs", NeurIPS 2023.
|
|
167
|
+
https://github.com/bird-bench/mini_dev (minidev.zip, SQLite questions and databases)
|
|
168
|
+
License: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
|
|
169
|
+
|
|
170
|
+
SecureSQL
|
|
171
|
+
Yanqi Song et al., "SecureSQL: Evaluating Data Leakage of Large Language Models as
|
|
172
|
+
Natural Language Interfaces to Databases", Findings of EMNLP 2024.
|
|
173
|
+
Repository: https://github.com/JacobiSong/SecureSQL
|
|
174
|
+
Commit: f00ba46378e43373fcbbfcdc9f8eca7299228845 (data.json)
|
|
175
|
+
Taken: the security conditions quoted in bench/external/decl/*.yaml
|
|
176
|
+
License: Apache License, Version 2.0 (the same text as LICENSE in this repository)
|