On-Device Pre-Transfer Scam Shield & Attested Telemetry Architecture for Instant Payment Rails
Abstract
Instant push-payment rails such as Malaysia’s DuitNow settle irreversibly in seconds, giving Authorised Push Payment (APP) and invoice-redirect syndicates a decisive structural advantage. Attackers deceive retail depositors and SME finance teams off-rail—via doctored WhatsApp supplier PDFs, swapped DuitNow QR codes, disguised Android installers, coercive voice notes, and live screen-shared phone coaching—then disperse funds across mule accounts within five to eight minutes of customer authorization.
Waspada AI introduces an on-device pre-transfer scam shield and hardware-attested telemetry architecture that closes this pre-authorization blind spot without uploading customer files to the cloud. Running entirely inside volatile handset and browser memory across iOS Swift 6, Android Kotlin LiteRT, React Native, and WebAssembly—plus an installable zero-upload Civic Scam Scanner PWA—Waspada inspects untrusted payment lures and OS checkout-coercion states before PIN entry. Customer files never leave the device; personal identifiers are scrubbed prior to signing; banks obtain Apple App Attest and Google Play Integrity warning receipts for shared-liability dispute defense; and licensed bank Fraud Desks receive tenant-isolated MONITOR advisories and OASIS STIX 2.1 exports while retaining sole hold and freeze authority.
1. The Pre-Authorization Blind Spot & Cloud Privacy Catch-22
Conventional fraud stacks leave a critical gap between off-platform social engineering and irreversible instant-rail settlement, compounded by strict data-custody rules that prohibit shipping raw customer media to external cloud AI:
- Upstream Carrier Call Tagging Is Blind to Lure Media: Telecom burst-velocity heuristics flag suspicious PSTN call patterns, but have zero visibility into end-to-end encrypted WhatsApp supplier PDFs, tampered DuitNow QR payloads, .opus voice clips, sideloaded .apk packages, or VoIP screen sharing.
- Post-Settlement Velocity Fires After Authorization: Core-banking and interbank rail monitors evaluate transaction hops only after the customer enters their PIN and authorizes the push transfer, forcing fraud teams to chase funds after settlement.
- The Cloud AI Custody Catch-22 (PDPA & BNM RMiT): Uploading customer invoices, chat exports, screenshots, or voice notes to vendor cloud servers triggers severe Personal Data Protection Act (PDPA) and Bank Negara Malaysia Risk Management in Technology (RMiT) data-residency, third-party custody, and breach-exposure barriers.
| Defense Layer | Inspection Window | Artifact & Coercion Visibility | Customer Data Custody |
|---|---|---|---|
| Upstream Carrier Call Tags | Pre-call PSTN signaling | Blind to WhatsApp PDFs, DuitNow QRs, .opus audio & screen sharing | Carrier metadata only |
| Cloud AI Document Scanners | Out-of-band server upload | Inspects uploaded files, blind to live OS call or screen-share state | High PDPA & RMiT risk (raw files leave phone) |
| Post-Settlement Rail Velocity | Post-PIN / post-settlement | Account graph & velocity only; never sees the lure that deceived user | In-house bank ledger |
| Waspada On-Device Shield | Pre-transfer in phone RAM | PDFs, DuitNow QRs, .zip/.apk, .opus voice & binary OS call coercion | 0 bytes uploaded; raw media stays in volatile RAM |
2. Three Client-Side Defenses in Volatile RAM
Unlike generative cloud prompts vulnerable to adversarial OCR text injection, Waspada executes a deterministic client-side pipeline inside volatile device memory, combining three pre-transfer and dispute-grade defenses:
2.1. Pre-Payment Byte Forensics
Before a customer approves a bill, supplier invoice, or QR transfer, Waspada cross-examines the raw file structure and visual emblems directly on mobile silicon and WebAssembly SIMD:
- Supplier PDF Revision & Tamper Forensics: Bounded RFC 1951 stream inspection across up to 10 pages detects incremental cross-reference updates, spliced font-subset islands, baseline coordinate jitter, conflicting payment instructions, and whiteout-covered beneficiary digits.
- DuitNow EMVCo TLV & Emblem Cross-Check: Decodes UTF-8 EMVCo QR payloads locally to verify initiation mode, Tag 54 transaction amounts, and recipient bank or e-wallet BICs against displayed bill text and CrestNet v1 statutory seal vision (0.31 ms Apple Neural Engine p50).
- Zero-Inflate Archive, APK & Voice Guards: Inspects PKZIP, RAR, and binary AndroidManifest headers without decompressing untrusted payloads—flagging disguised .pdf.exe executables and sideloaded accessibility or NFC relay hooks in under 2.9 ms—while a lazy-loaded Whisper INT8 worker transcribes up to 30 seconds of .opus voice lures locally and reclaims 100% of worker heap upon exit.
| Forensic Subsystem | Execution Target | Measured Latency / Size | Verified Assurance & Scope |
|---|---|---|---|
| CrestNet v1 Emblem Vision | Apple ANE Core ML / Web ONNX | 0.31 ms p50 (463 KB) | 0.0% FPR on held-out Malaysian receipts; flags statutory seal spoofing |
| SpanNER v2.1 Entity Pointer | Apple ANE Core ML / Web INT8 | 3.29 ms p50 (14.6 MB) | Sub-4 ms mobile NPU pass; 0.959 regex-off account F1 & 0% false merchant alias |
| PDF Revision & DuitNow TLV | Bounded RFC 1951 + EMVCo Parser | < 40 ms (16 MiB cap) | Catches incremental account edits, Tag 54 mismatches & non-gov QR swaps |
| Archive & APK Header Guard | Zero-inflate PKZIP / RAR / AXML | < 2.9 ms fuzz max | Flags disguised .pdf.exe files and sideloaded accessibility or NFC relay APKs |
| Ephemeral Voice Worker | Lazy Whisper-tiny INT8 WASM | 0 KB cold (37.2 MiB lazy) | 30s audio cap, spoken NRIC scrubbed, 100% worker memory reclaimed post-scan |
| Full End-to-End Scan Envelope | WebGPU + WASM SIMD / Handset RAM | Sub-second / < 261 MiB peak | 10/10 audited PDF, QR, Mandarin UI & whiteout fixtures at 260.9 MiB peak RAM |
2.2. Deterministic Call Coercion Guard
On first-time or high-value transfers across iOS 16+ and Android API 26–36, Waspada evaluates deterministic operating-system telemetry at the checkout boundary: active cellular or VoIP call state, live screen-recording or display-mirroring state, non-system gesture-capable accessibility overlays, and Android 16 Advanced Protection status. By restricting inspection strictly to binary OS states, Waspada captures live Macau-scam and coaching coercion with zero call audio recording, zero keystroke timing, and zero touch-trajectory behavioral biometrics.
2.3. Hardware-Attested Warning Receipts & Golden-Hour Routing
When a pre-transfer warning is displayed, the handset canonicalizes a zero-PII receipt payload under RFC 8785 JSON Canonicalization Scheme (JCS)—verified byte-identical across 500 cross-runtime vectors in TypeScript, Gateway, Swift 6, and Kotlin—and signs the customer’s cancellation or override disposition via server-pinned Apple App Attest X.509 certificate chains (with monotonic replay counters) or Google Play Integrity encrypted JWE tokens. Licensed institutions gain tamper-evident cryptographic proof for shared-liability APP dispute resolution that a specific fraud warning was rendered on genuine hardware prior to authorization.
When a victim inspects an already-completed transfer receipt, Waspada immediately activates Golden-Hour Recovery—surfacing Malaysia’s 24-hour NSRC 997 national scam hotline alongside the sender bank’s verified 24/7 fraud kill-switch number and generating an offline Bahasa Malaysia police-report summary draft in browser memory.
3. Dual-Layer Deployment & One-Way Data Firewall
A single zero-upload forensic engine powers both regulated mobile banking apps and public citizen defense, separated by an architectural one-way data firewall so unauthenticated public usage can never contaminate bank alert queues:
- Surface A — Embedded Bank SDK (iOS Swift 6, Android LiteRT, React Native & Web): Runs inside the licensed bank’s authenticated mobile or web session. Customer KYC records, CIF identifiers, balances, and phone numbers remain inside the bank VPC; outbound telemetry carries only scrubbed destination indicators joined via an opaque partner case token.
- Surface B — Free Civic WhatsApp & DuitNow PWA Scanner (/sandbox/): Installable standalone Progressive Web App (Waspada Scan) with Android Web Share Target support—intercepted locally in phone RAM by a zero-cache Service Worker that ignores all GET requests, stages shared WhatsApp files in 60-second ephemeral IndexedDB memory, and pairs with a zero-buffer cold-start stream drain—plus 1-tap iPhone clipboard scanning and PII-scrubbed family scam warnings.
- Swift 6 ANE / Kotlin LiteRT / RN / Web
- Pre-Transfer Byte & Call Coercion Guard
- RFC 8785 JCS + App Attest / Integrity
- Partner RS256 JWT + Opaque Case Token
- Customer KYC Stays Inside Bank VPC
- Android Share-Target Local RAM Worker
- 1-Tap iPhone & Desktop Clipboard Scan
- 100% Same-Origin Air-Gap (0 Remote CDNs)
- PII-Scrubbed Warning + NSRC 997 Triage
- One-Way Firewall: 0 Bank FMS Writes
- Dual-Layer NFKC/Homoglyph PII Gate (422)
- Per-Row AES-256-GCM DEK/AAD Storage
- Passive RDAP + Keyed Mule Account HMAC
- RSA-SHA256 MONITOR Webhook & STIX 2.1
- Bank Retains Sole Hold / Freeze Authority
One-Way Data Firewall (ADV-005 Boundary) & Zero-CDN Execution: Public civic scans at /sandbox/ execute strictly in local browser memory with zero third-party CDN scripts, fonts, or WASM fetches (eliminating supply-chain script-injection risk) and possess no authentication credential or write path into bank Fraud Management System tables, corroboration counters, or analyst streams. Unauthenticated public submissions can never poison or flood a bank’s operational queue.
4. Tenant-Isolated MONITOR Telemetry & STIX 2.1 Export
Waspada does not operate a shared or unverified cross-bank blocklist pool. Instead, partner telemetry runs as tenant-isolated Fraud Desk intelligence deployable inside the licensed bank’s VPC or dedicated single-tenant gateway:
- Authenticated Partner Ingest & Replay Guard: Every telemetry and attestation request requires a partner-signed RS256 JWT verified against pinned tenant public keys, enforced with Redis-backed single-use token replay caches and per-tenant rate limits.
- Dual-Layer Canonical PII Firewall: Both the client SDK and gateway independently strip invisible Unicode ignorable code points, normalize full-width NFKC digits, and fold Cyrillic and Greek homoglyphs before scrubbing Malaysian NRICs, phone numbers, email addresses, and covered PDF digits—rejecting any non-compliant payload with HTTP 422.
- Envelope Encryption & Epoch-Keyed Mule Digests: Durable alert envelopes are encrypted per row with AES-256-GCM data encryption keys bound via Additional Authenticated Data to the owning tenant, enriched with passive SSRF-safe RDAP domain-registration age lookups (never crawling untrusted URLs), and indexed with peppered HMAC-SHA256 destination account digests carrying explicit rotation epochs so 8–16 digit account numbers cannot be brute-forced.
- MONITOR Disposition & Zero-Lock-In OASIS STIX 2.1 Portability: Every signed FMS webhook and tenant-scoped analyst stream locks action requested to MONITOR in schema and runtime code—ensuring the licensed bank retains sole hold, earmark, and freeze authority. Exporting OASIS STIX 2.1 observable bundles gives bank SIEM and Threat Grid workflows standards-native ingestion without vendor lock-in, and clean portability whenever the bank’s own fraud desk escalates verified cases to NSRC 997 or authorised interbank rails.
{
"type": "bundle",
"id": "bundle--[generated-uuid]",
"objects": [
{
"type": "observed-data",
"first_observed": "2026-11-19T04:00:00Z",
"last_observed": "2026-11-19T04:00:00Z",
"number_observed": 1,
"x_waspada_tenant_scope": "isolated_partner_fms",
"x_waspada_disposition": "advisory",
"x_waspada_action_requested": "MONITOR",
"x_waspada_mule_bank_bic": "[DESTINATION_BIC]"
}
]
}
5. BNM RMiT Alignment & Honest Production Gates
Waspada’s architecture is mapped paragraph-by-paragraph against Bank Negara Malaysia’s Risk Management in Technology (RMiT) policy document—including Appendix 11(2)(b)(viii) suspected-mule transfer detection, cryptographic key lifecycle, tenant isolation, and commercially available VPC software packaging—provided transparently as a CISO review aid rather than a claim of regulatory certification. Institutions validate the stack through a structured 4-week non-blocking shadow pilot:
| Pilot Window | Validation Milestone | Operational Posture | Exit Deliverable |
|---|---|---|---|
| Week 1 | Offline Contract & Air-Gap Check | Staging / 0 live traffic | Verify RSA-SHA256 webhook schemas, RS256 keys & same-origin SDK bundle |
| Weeks 2–3 | Silent Non-Blocking Shadow Run | MONITOR advisory only | Evaluate scrubbed FMS & STIX 2.1 alerts alongside fraud analysts with zero customer friction |
| Week 4 | Recall, Attestation & Risk Readout | Joint CISO & Fraud review | Audit detection recall, RFC 8785 receipts, DPIA inputs & production gate sign-off |
Confirmed Baseline Controls
- 4/4 CI pipelines green across TypeScript, Postgres migrations, Kotlin JVM, and FMS/STIX schema conformance
- Server-pinned Apple App Attest X.509 DER chains and Google Play Integrity JWE verification
- 500/500 RFC 8785 canonical JSON receipt vectors byte-identical across Web, Gateway, Swift 6, and Kotlin
- Dual-layer NFKC/homoglyph PII scrubbing with HTTP 422 gateway fail-closed enforcement
- Strict one-way firewall isolating the public /sandbox/ PWA from tenant bank FMS queues (ADV-005)
Explicit Pre-Production Gates: Prior to enabling customer-blocking production warnings, Waspada schedules (1) an independent human CREST-accredited penetration test letter, (2) a 50-sample physical camera and NPU calibration pass across crinkled and glare-heavy printed invoices, and (3) joint partner PDPA DPIA and live FMS webhook sign-off.
CISO & Developer References
Evaluate Waspada in a 4-week non-blocking shadow pilot.
Verify offline webhook signatures and air-gapped SDK bundles in Week 1, run silent MONITOR telemetry in Weeks 2–3, and review recall plus hardware-attested dispute receipts in Week 4.