View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009639 | Taler | exchange | public | 2025-03-19 16:53 | 2026-09-07 13:56 |
| Reporter | Florian Dold | Assigned To | Florian Dold | ||
| Priority | normal | Severity | feature | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Target Version | 1.7 | ||||
| Summary | 0009639: spec and implement transaction risk monitoring [4h] | ||||
| Description | What we likely need for this is: * batch jobs that compute risk metrics (possibly caching metrics from previous run for perf) and stores HIGH_RISK_TRANSACTION property + to_investigate flag for account * How/where is this implemented? In the exchange via C code or via external script that connects to the DB and runs SQL? * Maybe SQL queries are enough? Do we need any logic other than that? Anything else? | ||||
| Tags | compliance | ||||
|
|
9d280c23b..91a67046e contains a first implementation, including a TOPS-customization for the TOPS AML-investigation trigger. The code is completely *untested* (to the point of possibly crashing once Postgres tries to run it), but should give a good idea of the design. Todo: - proper spec/design document - test it :-) Note that it also soft-depends on Oec's branch being merged first, as that'll make it easy to get the deposited amounts properly. |
|
|
DD59 now exists, and Oec's branch was merged. Final touches & testing are left! |
|
|
This is largely done, except I don't have a good way to trigger the TOPS rule and thus cannot test that reasonably well right now. Florian: can you build us an integration test where: 0) System is configured with KYC (for deposit/aggregate/bank accounts, so you can trigger that) 1) taler-exchange-dbinit -e tops is run to setup the DB (with TOPS statistics + TmeR monitoring) 2) deposits happen and KYC is triggered 3) KYC is satisfied and the account is opened and allowed to keep going (we only to TmeR on "open accounts") 4) then timetravel to + 2 months, and in that future deposit 2x of what was previously deposited (raises suspicion) 5) check if to_investigate was set / AML officer was tasked to investigate |
|
|
commit c77b2b130866d395b05bd428e09a6316f7d6cf79 (HEAD -> master, origin/master, origin/HEAD) Author: Florian Dold <dold@taler.net> Date: Mon Sep 7 12:37:13 2026 +0200 taler-harness: cover TOPS transaction risk monitoring Install TOPS, establish a deposit baseline and open an account through KYC. Advance the exchange clock by two months and exercise deposits below and above the volume threshold, including repeated deposits after an investigation starts. Issue: https://bugs.taler.net/n/9639 commit 6a358f5b9238fe1cf7ef513922a6b81b2db26901 Author: Florian Dold <dold@taler.net> Date: Mon Sep 7 12:36:52 2026 +0200 taler-harness: allow exchange database customizations in dbinit Accept an optional customization name and pass it to taler-exchange-dbinit with separate command arguments. Issue: https://bugs.taler.net/n/9639 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-03-19 16:53 | Florian Dold | New Issue | |
| 2025-03-19 16:53 | Florian Dold | Status | new => assigned |
| 2025-03-19 16:53 | Florian Dold | Assigned To | => Christian Grothoff |
| 2025-03-19 16:56 | Florian Dold | Description Updated | |
| 2025-03-19 16:57 | Florian Dold | Description Updated | |
| 2025-03-25 12:35 | Christian Grothoff | Note Added: 0024303 | |
| 2025-03-25 12:36 | Christian Grothoff | Relationship added | parent of 0009371 |
| 2025-03-28 06:49 | Christian Grothoff | Note Added: 0024325 | |
| 2025-03-29 15:31 | Christian Grothoff | Note Added: 0024332 | |
| 2025-03-29 15:31 | Christian Grothoff | Assigned To | Christian Grothoff => Florian Dold |
| 2025-04-17 22:13 | Christian Grothoff | Tag Attached: compliance | |
| 2025-05-07 21:40 | oec | Relationship deleted | parent of 0009371 |
| 2025-05-08 22:16 | Christian Grothoff | Relationship added | child of 0008155 |
| 2025-06-05 13:46 | Florian Dold | Summary | spec and implement transaction risk monitoring => spec and implement transaction risk monitoring [4h] |
| 2025-07-30 00:18 | Christian Grothoff | Target Version | 1.0 stretch goals => 1.4 |
| 2025-12-08 11:44 | Christian Grothoff | Target Version | 1.4 => 1.6 |
| 2026-01-26 07:30 | Christian Grothoff | Severity | minor => feature |
| 2026-02-04 22:34 | Christian Grothoff | Status | assigned => confirmed |
| 2026-02-04 22:34 | Christian Grothoff | Target Version | 1.6 => 1.7 |
| 2026-02-07 12:39 | Christian Grothoff | Relationship deleted | child of 0008155 |
| 2026-09-07 12:45 | Florian Dold | Note Added: 0029916 | |
| 2026-09-07 13:56 | Florian Dold | Status | confirmed => resolved |
| 2026-09-07 13:56 | Florian Dold | Resolution | open => fixed |