Digest (TL;DR)
Onboarding fraud, also called account opening fraud or new account fraud (NAF), increasingly targets mobile banking channels.
One of the most dangerous vectors is the injection attack: rather than presenting fake evidence to a camera, criminals insert stolen, synthetic, or AI-generated documents and facial evidence directly into the identity-verification pipeline, at any point between capture on the device and validation on the backend.
Because the verification decision is made server-side but the evidence originates client-side, the whole path - app binary, runtime, in-memory processing, request construction, transport, and submission - can be exposed. An attacker who controls one point can reach the backend with evidence that appears legitimate.
Defending against this requires defense-in-depth across the whole pipeline: hardened app binaries, a protected runtime, and a backend that demands cryptographic proof of app and device integrity bound to each specific request. This piece walks you through all three of them.
Introduction
Remote onboarding was built to remove friction, but it also removed the camera’s last advantage. A fraudster no longer needs to hold a forged passport up to a lens: with generative AI they can inject a synthetic document or a deepfake selfie directly into the evidence pipeline, at a point the bank never thought to watch. The accounts opened this way go on to serve credit fraud, money muling, laundering, and sanctions evasion. Or they simply sit as a useful foothold for whatever attack comes next.
At its core this is a structural problem. After all, the verification decision is made on the backend, but the evidence is born on the device itself; and between the camera lens and the backend sits a long chain of capture, processing, and transport. The attacker only needs one of these points along the chain to be unwatched. Put another way, a control that protects just one single point actually protects almost nothing.
Evidence injection and replacement
Attackers can substitute media at every stage of the ID verification pipeline.
Responsibility can be blurred too, because banks approach the challenge of remote onboarding and identity proofing in different ways. Some build and operate much of the stack themselves, including document capture, evidence validation, biometric checks, case management, and fraud decisioning. Others rely heavily on a third-party identity verification provider. These providers typically provide native mobile SDKs and APIs so the bank can embed document capture, selfie or video capture, and result retrieval directly inside the bank’s mobile application and backend services.
A bank that integrates a trusted identity-verification SDK might reasonably assume the check itself is sound. However, it cannot assume that the same vendor is securing the app, the runtime, and the request path that the check depends on. That pipeline, from the camera lens to the backend decision, is the bank’s to defend.
Injection happens in three places: in the app itself, in the running app’s environment, and at the backend that accepts the result. Defending all three, as one system, is what we mean by mobile channel protection. The rest of this piece looks at each one in turn; the attack, why it matters, and how to close the gaps.
The mobile onboarding model
A modern mobile onboarding flow usually has four technical stages:
1. Document capture
The mobile app captures the identity document.
2. Document validation
The backend validates that document evidence, for example through visual inspection, automated document analysis, and data consistency checks.
3. Facial capture and liveness
The app captures facial evidence, usually as a selfie, a video, or a guided challenge sequence, and the verifier tests for presence and liveness.
4. Face matching
The backend validates the facial evidence against the document and the claimed identity.
This is a common camera-based mobile implementation of remote identity proofing, broadly corresponding to the collection, validation and applicant-binding functions described in NIST SP 800-63A-4 and ETSI TS 119 461 V2.1.1 (2025-02).
Account opening fraud in mobile banking has a significant remote identity proofing problem, and the crux of that problem is that while the verification decision may be server-side, the evidence originates client-side.
Even where document validation, liveness analysis, face matching, analytics, and screening all happen on backend systems, the capture, preparation, and transport of the evidence begin on the device.
This means that the trust boundary covers the entire path from camera lens to backend verification, which will be referred to in this guide as the evidence pipeline.
How is an injection attack different from a presentation attack?
Presentation attack
A presentation attack is a front-of-sensor attack. A printed document, a screen replay, a photograph, or another artefact is physically presented to the camera in an attempt to deceive the capture process.
Injection attack
An injection attack involves the attacker interfering with the evidence pipeline and substituting fraudulent data before or during processing. The relevant attack surface therefore extends beyond the lens and into the capture pipeline, the app, the runtime, and the request path. The attacker may replace the camera source, swap buffers in memory, overwrite temporary media files, hook serialisation routines, alter request construction, or replay a previously accepted request.
Protection has to be layered across the whole mobile channel; not because of any single attack but because the channel itself spans the app, its runtime, and the backend, and a trust decision is only as strong as the weakest point along it. Injection makes this concrete, because fraudulent evidence can enter at any point between the camera lens and the backend. As mentioned earlier, a control that guards just one of these points actually guards almost nothing.
Layering answers this challenge in two ways. The first is defense in depth: each mechanism solves a different part of the problem, so that defeating one still leaves others in the way. The second is coverage: a single unprotected point - say a weak class, an unguarded runtime signal, or an unbound request - can be all an attacker needs. Across the whole channel there are binary protections that make the app hard to analyze and modify, runtime protections that make the live environment hard to compromise, and backend protections that make a forged or replayed submission hard to get accepted. Each of them is necessary, but none are enough on their own. The defense has to be as continuous and fluid as modern attacks are.
In most formal standards, an injection attack is substitution or manipulation of evidence within the capture or data flow path, but in operational banking terms, the same attacker objective may also be realised through spoofed clients, request replay, or forged backend submissions.
At Licel, our primary focus within this context is on providing tools and capabilities to prevent injection attacks in this broad sense, covering attacks in which deepfake or other synthetic media is inserted into the evidence pipeline rather than merely presented to the camera, and this is the focus of this section.
Injection attack targets
In ID verification, every trust decision ultimately reduces to an evaluation of received data at the backend. If the attacker can get fraudulent evidence, together with whatever surrounding claims the backend requires for acceptance, through to the backend, then the onboarding process has been compromised, regardless of whether that was achieved through source substitution, runtime hooking, app tampering, replay, forged submission, or some combination of attacks.
In a mobile onboarding journey, the attacker may target any of the following, separately or in combination:
- the document evidence
- the facial evidence
- the app binary or integrated SDK
- the runtime environment
- the capture path
- the transport path
The attacker does not need to control all of them. Controlling one well placed point in the pipeline may be enough.
Camera source
The attacker replaces the real camera source with an attacker-controlled source, such as a virtual camera, emulator-fed sensor stream, or injected media provider.
In-memory frames
The attacker allows the app to invoke the expected capture flow but swaps image or video frames in memory before they are encoded, analyzed, hashed, or transmitted.
Staged media
The attacker overwrites the temporary file, media object, or serialised media output after capture but before submission.
Request construction
The attacker leaves much of the legitimate flow intact but replaces or reshapes the final payload, upload stream, multipart component, evidence reference, or accompanying metadata at the submission boundary.
Transport
The attacker intercepts, proxies, relays, or rewrites evidence and surrounding trust material in transit between the client and the remote service.
Client-to-backend
The attacker constructs or relays an acceptable submission from an illegitimate client, spoofed client, lifted codebase, or other attacker-controlled environment, without relying on the intended capture path to produce the final evidence package.
Integrity signals
The attacker reuses, relays, suppresses, or forges the integrity, freshness, and provenance signals needed for backend acceptance, such as attestation results or request binding material.
This is why image injection goes well beyond ‘camera spoofing’. The attacker can inject before the camera API is called, after the camera API is called, after encoding, at the request construction layer, or in the transport layer itself. Any control strategy that protects only one point in that pipeline is incomplete.
Below, we will discuss some key targets and attack vectors for such image injection methods.
Attack target 1:
app binaries - static analysis, code lifting, and tampering
The mobile app, together with any integrated identity verification SDK, contains the implementation of the evidence pipeline on the device. It invokes the camera, controls document and selfie capture, handles prompts and challenge flow, receives and transforms media, selects serialisation and upload paths, attaches metadata, and may generate or attach the integrity, freshness, and provenance material later used by the backend to decide whether the evidence should be trusted.
That makes the app binary a useful starting point for the attacker. Before attempting runtime hooking, forged submission, or replay, the attacker typically wants to understand how the evidence pipeline is actually implemented.
They may therefore start with static analysis: unpacking the app, decompiling or disassembling it, and mapping out the evidence pipeline.
On both Android and iOS, this process is much simpler and more routine than many assume. On Android, APKs can be unpacked easily, DEX bytecode can be decompiled into readable Java-like code, and native libraries can be analyzed separately. On iOS, attackers work from the app bundle and Mach-O binaries, using disassembly, symbol analysis, and metadata recovery to reconstruct how sensitive flows are implemented.
In both cases, the goal is the same: understand where document capture starts, where selfie or video capture is invoked, where media enters memory, how it is transformed, how provider SDKs are called, and how the final evidence package is assembled.
Static analysis can provide an attacker with insights into:
The evidence capture flow
Which classes and functions invoke the camera, which objects receive image or video data, where temporary media is stored, how media is transformed before submission, and whether there are alternative paths for document capture, selfie capture, retry, fallback, or recovery. Mapping it enables:
- Source substitution - locating where the expected capture source can be replaced with stored, generated, relayed, or virtualized media.
- Buffer substitution - identifying the in-memory objects and method boundaries later targeted with patching or hooks.
- File or object substitution - revealing temporary storage locations, media object lifecycles, serialization boundaries, and resend or retry logic that can be abused to replace evidence after capture but before submission.
The submission model
Which endpoints are used, whether evidence is uploaded directly or by reference, how multipart, chunked, or streamed uploads are assembled, how session state is created and maintained, which values are carried in headers versus bodies, how retries and resumptions are handled, and how the final acceptance-relevant material is packaged. Mapping it enables:
- Submission substitution - showing the attacker exactly where and how to replace or reshape the outgoing evidence package while leaving the rest of the flow intact.
- Transport interception or relay - showing which exchanges are worth proxying, which messages carry evidence versus control material, which values must be preserved across the flow, and how to keep a relayed session coherent while altering selected parts.
- Forged submission - the most significant, because once the submission logic, sequencing rules, required fields, and acceptance-relevant structure are understood, the attacker may no longer need to rely on the intended client path to produce the final evidence package at all. They can instead construct or relay acceptable submissions from a spoofed client, from lifted code, or from some other attacker-controlled environment, reusing only those parts of the legitimate flow that remain necessary.
Trust signals
Where attestation is requested, where nonces, counters, upload handles, or challenge values are introduced, where media digests are computed, where provenance or integrity claims are attached, how those values are bound to the evidence, and whether that binding is checked locally, remotely, or both. Mapping it enables:
- Trust signal manipulation - showing which values can be replayed, which must remain fresh, which are merely present versus actually verified, and which are tied to the session, device, action, or specific evidence payload.
- Transport interception and relay - because the attacker learns which trust signals must be forwarded unchanged, which can be delayed or replayed, and which may be harvested from a genuine client flow and paired with substituted evidence elsewhere.
- Forged submission - distinguishing trust material that must come from a legitimate app instance and trust material from material that can be synthesized, copied, or decoupled from the evidence path.
Why it matters
Taken together, this means that static analysis is not merely reconnaissance for later patching. It is the step that turns the app binary into a map of the evidence pipeline, the submission protocol, and the trust architecture. Once that map exists, the attacker is in a much stronger position to decide whether to tamper with the client directly, instrument it at runtime, relay it through a proxy, or bypass it partially or completely through forged submission.
Once those paths are understood, in many cases, a small number of targeted modifications is enough. The attacker may patch out a branch that forces genuine capture, replace the callback that receives image data, alter the routine that computes a digest or attaches metadata, suppress a blocking condition, or remove the code that ties the ID verification logic to the controls intended to protect it.
The upshot is that a weakly protected binary does not only make direct tampering easier, it also lowers the cost of subsequent attacks. If the attacker can perform this mapping through static analysis, then runtime interference becomes more precise, and forged submission becomes more realistic. The attacker no longer has to guess where to hook, what to replay, or which checks the backend is likely to enforce.
In practical terms, successful binary analysis and tampering can lead to three attack paths:
- Direct modification of the app
The first is direct modification of the app: the attacker patches and repackages the client so that fraudulent media can be injected. - Code lifting
The second is code lifting: the attacker extracts the useful or exploitable logic and reuses it in another client, over which they have more control. - Preparation for dynamic and backend attacks
The third is preparation for dynamic and backend attacks: the attacker uses what was learned statically to devise their runtime hooks, bypasses, interceptions, replays, or spoofed client behaviour with greater precision.
How to make app binaries resilient to static analysis, code lifting, tampering, and image injection attacks
Because static analysis can turn the app binary into a map of the evidence pipeline, the submission model, and the trust architecture, banks should harden and protect the associated code and assets so that from an attacker’s perspective they are hard to analyze, hard to lift, and hard to modify effectively.
This requires more than simple renaming, such as with ProGuard and R8 optimisations. Renaming may remove obvious labels, but it does not meaningfully conceal the evidence pipeline. Obfuscation makes the implementation harder to understand and navigate. Encryption goes further: if the decryption keys and material are not statically recoverable, the most sensitive code and assets are no longer meaningfully available for static analysis. It also adds tamper resistance, because modifying encrypted code or assets directly makes little sense, and because decryption can be made dependent on a protected runtime.
The protection objectives for the app binaries are:
- Protect the evidence pipeline implementation against reverse engineering through static analysis.
The code and assets used for capture, media handling, request construction, trust signal generation, and in-app security controls should be difficult to identify and analyze statically. That includes not just executable code, but also strings, metadata, resources, native libraries, and other structural clues. - Prevent code lifting, patching, and static tampering.
Sensitive parts of the onboarding implementation should not exist in a readable, reusable form inside the application package. Encryption is especially valuable here because it prevents straightforward static inspection and conceals potential targets for tampering. If an attacker wants to patch capture logic, remove checks, or lift code into another client, they are forced to try to find a way to access the code after decryption during runtime, or to decrypt it. - Protect secrets and trust material from static analysis and extraction.
Secrets used for request binding, trust claim generation, or other acceptance-relevant controls should not be recoverable from the package. The same applies to the keys or equivalent material needed to decrypt protected code and assets.
This matters because, for image injection attacks, the attacker’s problem is not just generating fraudulent media. It is determining where to introduce it, what to replace, which checks must be bypassed, and how to do that without breaking the client and/or the trust signals used in server-side decision-making. Strong binary protection makes that preparation phase, and any static tampering attempts, much more difficult.
Encryption can also provide the additional advantage of creating a binding of protected code to a hardened runtime; if encrypted code and assets can only be decrypted by a dedicated runtime component, and that same runtime component also enforces integrity checks and runtime application self-protection mechanisms, the protected assets are not just hidden, they are bound to a secure execution model, making not only tampering, repackaging, and reuse much harder, but also subsequent dynamic and backend attacks.
How to use DexProtector to make app binaries resilient to static analysis, code lifting, and tampering used for image injection attacks
DexProtector is Licel’s flagship mobile application protection tool for Android and iOS, used by banks to build security directly into their mobile apps and embedded SDKs. Implemented automatically in the app build pipeline, it combines obfuscation, encryption, integrity controls, and runtime application self-protection to secure the mobile channel against reverse engineering, tampering, and fraud techniques including image injection attacks.
DexProtector applies obfuscation and encryption to application code and assets, making them harder to inspect, modify, copy, and lift into another application or client. Obfuscation adds obscurity to code structure and semantic anchors and encryption transforms code, strings, and assets into ciphertext that is unreadable to both humans and machines without first being decrypted. Together, they increase the cost and difficulty of reverse engineering through static analysis (i.e. examining the app without running it, for example after decompiling DEX bytecode into readable code), as well as code lifting, secret extraction, patching, and repackaging.
DexProtector also integrates the DexProtector Runtime Engine (DRE), which is responsible for decrypting and resolving protected content when required during the app’s runtime. Since the DRE also implements runtime integrity checks and anti-tampering measures, RASP mechanisms, risk signal collection, and attestation proofs for backend services, obfuscation and encryption ensure that these runtime capabilities can be strongly bound to protected functionality.
DexProtector’s obfuscation and encryption mechanisms should be applied as layered hardening around the parts of the app and any embedded ID verification SDKs that implement the evidence pipeline: capture, media handling, request construction, trust signal generation, and related security controls.
DexProtector capabilities applied here:
As established above, binary protection is necessary but not sufficient. It raises the cost of static analysis and tampering, but injection doesn’t stop at the packaged app. The runtime and backend layers still have to hold as well.
Attack target 2:
App runtime: dynamic analysis, traffic interception, and live manipulation
The attack
Attackers can analyze and modify app behaviour at runtime without first statically tampering with the app binaries.
In practical terms, this means the attacker can let the genuine app and SDK initialize normally, observe where sensitive operations occur, and then alter those operations at the point where media is captured, transformed, bound to trust signals, or prepared for submission.
Runtime interference often builds on insights gained from static analysis, but it does not require them. An attacker may still identify and manipulate sensitive operations dynamically by observing the running process, tracing data flows, hooking functions, and bypassing transport protections. Static protections therefore do not eliminate runtime interference, although they can make it less efficient and less precise.
Runtime interference usually depends on some form of attacker-controlled environment, typically leveraging some combination of:
- Rooted or jailbroken devices
- Emulators
- Custom firmware and ROMs
- Modified system libraries
- Virtual containers
- Debuggers
- Dynamic instrumentation tools
Traffic interception is then commonly performed from that controlled environment using interception proxies or similar tooling.
Runtime interference can serve several attacker goals, enabling them to manipulate:
The evidence capture flow
The attacker can hook the methods that receive camera frames, image buffers, bitmaps, or encoded media objects, and replace them with attacker-controlled content at the point of use. That directly enables source substitution where the apparent camera path is backed by a virtual or relayed source, and buffer substitution where genuine frames are replaced in memory before analysis, hashing, encoding, or submission. If media is staged through temporary objects or files, runtime interference can also enable file or object substitution by changing object contents, redirecting references, or altering the serialisation path just before upload.
The submission path
The attacker can also hook request builders, stream writers, serialisation routines, multipart assemblers, or API client methods so that the outgoing payload, metadata, or evidence references are changed just before transmission. That enables submission substitution without requiring the attacker to discard the rest of the flow, which remains ‘legitimate’.
On an attacker-controlled device, this often extends into live traffic interception. This kind of interception is typically used to analyze the fields, headers, claims, and trust signals. In practice, this allows the attacker not only to observe how evidence and control material are exchanged, but also, in some cases, to alter the final evidence package at the transport boundary while still relying on the genuine app for the parts of the flow that remain necessary.
Trust signals
Runtime interference is especially powerful when the bank or provider relies on integrity, freshness, and provenance signals. The attacker can hook the points where attestation is requested, where nonces or challenge values are inserted, where counters are read, where media digests are computed, and where provenance material is attached to the outgoing submission. That does not necessarily mean every signal can be forged, but it does allow the attacker to observe what is present at runtime, identify what is bound to what, suppress checks that would otherwise fail, relay values unchanged, or pair genuine trust material with substituted evidence elsewhere in the flow.
In practice, this is often what allows the genuine app to be used as an oracle: it performs the steps that still require a legitimate client instance, while runtime hooks alter the evidence path or final submission around those steps.
Why it matters
Taken together, runtime interference is not just hooking in the narrow sense. It enables attacker control over the evidence pipeline. Once the attacker can alter media objects, submission routines, trust signal handling, and local enforcement while the genuine app continues to do useful work, the line between legitimate and attacker-controlled ID verification becomes much harder for the backend to infer from received data alone.
For the bank, the security implication is that runtime protection is not just a mobile app hardening feature. It is part of the trust model for remote onboarding, because it affects whether the app can continue to generate accepted backend inputs after the evidence path or its surrounding controls have already been compromised.
How to make the app runtime resilient to dynamic analysis, traffic interception, and live manipulation used for image injection attacks
Attackers do not need to statically tamper with the app binary in order to interfere with ID verification. They can let the genuine app and SDK initialise normally, then observe and manipulate the live execution path: the points where media is captured, transformed, bound to trust signals, and prepared for submission. Banks therefore need controls that make the runtime environment harder to compromise, harder to instrument, harder to proxy, and harder to use as an oracle for later submission abuse.
The protection objectives for the app runtime are therefore:
- Detect and restrict execution in attacker-controlled environments.
The app should detect and restrict execution and/or server-side processing where there is strong evidence of rooted or jailbroken devices, emulators, custom firmware, modified system libraries, virtual containers, and similarly compromised environments, because those environments make hooking, instrumentation, and live manipulation much easier. High-confidence compromise conditions should trigger restriction of the app’s functioning on the client-side. - Prevent runtime tampering with the evidence pipeline.
The application should actively detect, resist, and respond to debuggers, dynamic instrumentation, runtime hooks, and in-memory modification, substantially reducing the attacker’s ability to manipulate the evidence pipeline without detection. - Protect network traffic against interception and analysis.
Traffic should be protected in transit with strong transport security, and interception should be made harder through public key certificate checks. This matters because it is harder to forge what cannot be clearly observed: if an attacker cannot easily inspect request structure, upload steps, trust claims, and acceptance-relevant fields, their learning loop slows down. - Report prevented attacks to the backend for forensics and containment.
Attack attempts that have already been blocked due to high-confidence signals should still be reported server-side. Those events are useful for post-hoc analysis, fraud investigation, case linking, device or account blacklisting, and wider detection improvement, even if the immediate attack attempt did not succeed. - Report suspicious runtime signals to the backend for real-time decisioning.
Not every relevant signal should cause an immediate client-side block. Lower-confidence indicators, weaker environment signals, inconclusive attestation anomalies, or other unusual conditions should still be collected and evaluated server-side, where they can feed fraud scoring, step-up decisions, review, or post-onboarding monitoring. - Keep the app’s runtime detections and device intelligence continuously up-to-date.
Runtime compromise techniques are constantly being developed and enhanced. Device and threat detections therefore need to stay current, including updates on revoked attestation material, malicious apps, and other emerging threats. Otherwise, the bank will soon be relying on detection capabilities that are far behind attackers’ toolkits. - Bind backend service access to app integrity and runtime trust.
Client-side runtime protections should not terminate at the device. The backend should require proof that a request comes from a genuine, up-to-date app instance running in a trusted — or at least evaluated low-risk — execution environment. In practice, this is done by having a protected runtime or attestation service issue a short-lived cryptographic token only when integrity, runtime protection, and device attestation checks succeed; if that proof is missing or invalid, the backend should deny or restrict service.
This also points to a broader trust model:
- Sensitive client-side operations should only be ‘unlocked’ (through decryption of sensitive code and assets) when the app is in a trustworthy state: the protected code and assets are intact, the app has not been tampered with, repackaged, or re-signed, the runtime environment is not rooted, jailbroken, virtualised, instrumented, or otherwise hostile, and the app process itself is not being debugged, hooked, or manipulated.
- Backend access should then also depend on proof of that same trusted state, so that the server only accepts sensitive requests from genuine app instances running with intact code, in a secure or at least assessed low-risk execution environment, and without detected signs of active process compromise.
- The result is a single chain of trust across the mobile channel: if those trust conditions are not proven, sensitive client-side logic should not execute, and sensitive backend services should not be granted.
This matters because, for image injection attacks, the attacker’s task is not just to generate fraudulent media. It is to interfere with the live app environment, learn which checks matter, suppress the ones that fail, pair substituted evidence with genuine trust material where possible, and still reach the backend with a usable submission. Strong runtime protection makes that live manipulation loop much more difficult.
How to use DexProtector, Licel vTEE, and Alice Threat Intelligence to make the app runtime resilient to dynamic analysis, traffic interception, and live manipulation used for image injection attacks
DexProtector runtime protections, the Licel vTEE, and Alice Threat Intelligence work together to protect mobile apps and backend services against image injection attacks performed during application execution. They combine runtime application self-protection, logical isolation, device attestation, session risk scoring, and continuously updated threat intelligence to detect compromised environments, prevent manipulation of the evidence pipeline, and restrict access from untrusted app instances.
DexProtector Runtime Engine
The DexProtector Runtime Engine, integrated into the app or SDK by DexProtector, provides capabilities to detect and prevent runtime tampering, hooking, instrumentation, debugging, emulators, virtual containers, rooted or jailbroken devices, and other attacker-controlled conditions, in addition to network traffic interception and manipulation through man-in-the-middle attacks. These capabilities make it harder for attackers to replace captured media, modify in-memory objects, bypass security checks, intercept network traffic, or alter the final submission while the genuine app continues operating. High-confidence detections can terminate the app or block the sensitive workflow, while lower-confidence signals can be reported to the backend for risk-based decisioning.
Licel vTEE
The Licel vTEE provides logical isolation and white-box cryptographic services for the most security-critical operations, also enabling robust device binding for user data. This helps prevent attackers from extracting reusable secrets, manipulating client-side calculations, and reproducing valid-looking submissions outside the protected application.
Alice Threat Intelligence
Alice Threat Intelligence receives trusted telemetry and attestation signals from the DexProtector Runtime Engine and uses them for real-time device and session risk scoring. It can report prevented attacks, track suspicious activity, deliver updated malware and risk indicators over the air in real-time, and provide signals to fraud engines, SIEMs, and data lakes.
These capabilities should be applied as layered protection around the app and any embedded ID verification SDKs that implement the evidence pipeline: capture, media handling, request construction, trust signal generation, cryptographic authentication, and final submission.
Relevant capabilities include:
As with the binary layer, runtime protection is necessary but not sufficient. It closes the live-manipulation loop and denies the attacker a compromised environment to work in, but it must be layered with binary protections that make the app harder to analyze and modify in the first place. And a determined attacker can still reach the backend, which has to be ready to reject it. Backend protections that prevent forged submission, replay, rollback, and other server-side abuse are therefore vital. Remember, image injection attacks succeed across the whole mobile channel, so the defenses have to do the same.
Attack target 3:
the backend - forged submission, replay, and rollback
The attack
At the backend, the bank or identity verification provider receives captured media together with the contextual material on which the trust decision depends: session identifiers, nonces, timestamps, app and device integrity signals, attestation results, media digests, upload handles, challenge values, and any other fields used to infer freshness, provenance, and legitimacy.
Once the attacker understands the submission model, they can try to bypass or exploit the backend’s acceptance logic.
In this context, backend-facing abuse can serve several attacker goals.
Forged submission
The attacker attempts to generate a submission that satisfies backend acceptance conditions without following the intended evidence-generation path. This may involve a spoofed client, reusing useful protocol logic from the genuine app, patching the host app or SDK so that trust signals are still generated in a compromised flow, or relaying through a genuine app instance as an oracle while substituting the evidence elsewhere in the pipeline. A forged submission does not need to reproduce the whole onboarding journey. In many cases, it is enough to reproduce only the parts the backend actually enforces. If the backend validates that a token is genuine but does not verify that it is bound to this exact request, this exact payload, and this exact point in time, then valid trust material may be paired with substituted evidence.
Replay
Replay is the reuse of previously valid material rather than full forgery from scratch. Replay may target the media itself, the surrounding trust signals, or both. In practice, that can mean replaying previously accepted document or facial media, reusing stale session identifiers or upload handles, replaying a complete previously captured submission, or replaying one part of the flow such as a valid integrity token while substituting other parts such as the evidence payload. Replay becomes practical when the backend enforces only format and token presence rather than transaction-specific binding and freshness.
Rollback
Here the attacker does not necessarily forge or replay a specific submission. Instead, the attacker uses an older client version whose protections, trust signal handling, or enforcement logic are weaker, easier to bypass, or easier to instrument. If the backend continues to accept that older client version, then newer client-side protections may be irrelevant in practice.
In this threat model, rollback matters because it can reopen attack paths that more recent versions of the app have already made more expensive: weaker anti-tampering, weaker runtime protection, weaker request binding, weaker attestation integration, or weaker enforcement policies. Backend acceptance policy therefore needs to govern not only whether the submission looks valid, but also whether it comes from a still-accepted client version with the required security properties.
Why it matters
Taken together, these attacks target the backend’s trust assumptions. Forged submission exploits gaps between intended and actual enforcement. Replay exploits weak binding and freshness. Rollback exploits failure to retire weaker clients. All three allow an attacker to decouple backend acceptance from the genuine capture event and from the security properties the bank believes are present in the current mobile journey.
For the bank, the security implication is that backend validation is not just a formatting or authentication problem. It is the final enforcement point for the entire evidence pipeline. The backend must decide not only whether the submission is structurally correct, but whether it is fresh, bound to the exact evidence and action, issued under acceptable app and device conditions, and generated by a client version the bank can trust.
How to make the backend resilient to forged submission, replay, and rollback used for image injection attacks
Protecting the server-side begins on the client-side. HTTPS, API keys, and ordinary session tokens alone do not prove that a request came from the genuine app, on a sufficiently trustworthy device, through the intended evidence-handling path. For security-critical operations such as ID verification, the backend needs stronger proof: signals that are specific to the app instance, the device state, the session, the action being performed, and ideally the exact evidence being submitted.
The protection objectives for the backend are therefore:
- Require backend-verifiable proof that the request comes from a genuine and trustworthy client context.
The backend should not rely on ordinary client claims about app integrity, device state, or request legitimacy. Sensitive onboarding endpoints should require proof that the request originates from a genuine app instance, running with intact code, in a trusted or at least assessed low-risk execution environment, and without runtime conditions that materially break the chain of trust. - Bind trust signals to the specific request and action.
Proof of origin is materially weaker if it is not tied to the exact transaction being performed. For high-risk onboarding operations, request legitimacy should be bound to the specific request, the session, and the purpose of the action, so that trust material cannot be obtained in one context and replayed or reused in another. - Bind request legitimacy to the submitted evidence itself.
If request-binding material is not tied to the uploaded media, or to a digest of that media, an attacker may still be able to obtain valid trust signals through a genuine client path and then substitute the payload later. For that reason, provenance and freshness controls should, where possible, be bound not just to the session and action, but also to the exact evidence object being submitted. - Enforce freshness and replay resistance.
The backend should require freshness protection for high-risk onboarding requests, including nonce- or challenge-based validation, expiry enforcement, and single-use or replay-resistant handling of trust assertions and upload-related tokens. The objective is to prevent previously observed requests, assertions, challenge responses, or upload handles from being replayed, rolled back, or reused out of context. - Treat hard trust failures as blocking conditions for high-risk onboarding.
Certain failures should invalidate the request outright. These include missing or invalid provenance where required, failed app identity verification, broken request binding, replayed assertions, and stale or already-used nonces. These are not merely fraud indicators; they are failures of the trust model itself. - Perform server-side risk analysis on lower risk or lower confidence signals.
Not every signal is definitive. Some conditions are lower confidence, lower specificity, or only meaningful in combination with broader context. Those signals should still be collected and evaluated server-side, where they can feed fraud scoring, post-onboarding monitoring, and forensics. The important point is that client-side trust signals should not terminate at the client; they should contribute to backend decisioning. - Make server-side trust decisions resistant to rollback and partial reuse.
The backend should not accept stale trust material, earlier integrity states, or previously valid assertions as though they remain valid indefinitely. Trust should be evaluated in the current request context, with current freshness guarantees, current app identity, current runtime state, and current evidence binding. Otherwise, an attacker may be able to reuse older, cleaner states to support a later manipulated submission.
This matters because, for image injection attacks, the attacker’s problem is not only how to interfere with capture or manipulate the runtime. It is also how to get the backend to accept a submission that appears legitimate despite that interference. Strong backend controls make that much harder by requiring that provenance, integrity, freshness, and evidence binding all survive intact at the point of server-side decision-making.
How to use DexProtector, Licel vTEE, and Alice Threat Intelligence to make the backend resilient to forged submission, replay, and rollback used for image injection attacks
DexProtector, the Licel vTEE, and Alice Threat Intelligence should be used to carry trust from the protected application and runtime into backend decision-making. Together, they enable sensitive services to distinguish requests from genuine, untampered, and sufficiently trusted app instances from forged submissions, replayed requests, outdated application versions, and traffic originating from spoofed or attacker-controlled clients.
Mobile API Protection
DexProtector’s Mobile API Protection provides a built-in mechanism for making backend access conditional on application integrity and runtime trust. After performing application integrity and RASP checks, the DexProtector Runtime Engine generates a short-lived signed DRE Attestation Token in JWT format. The app includes this token in sensitive requests, and the backend validates its signature, expiry, application version, package identity, and other expected claims before accepting the request. Missing, invalid, or stale tokens should be treated as hard trust failures for ID verification and onboarding.
Custom request signing
Where the bank implements its own provenance model, DexProtector and the Licel vTEE should protect the request-signing keys, binding material, and request generation logic. Obfuscation, encryption, logical isolation, and white-box cryptographic services make it harder to extract reusable secrets, transplant signing logic into a spoofed client, or generate valid-looking submissions outside the protected application. Custom signing should be bound to the same application integrity, attestation, device, and runtime checks used to establish trusted client execution.
Request binding and freshness
Whether Mobile API Protection, custom request signing, or both are used, the proof should be bound to the specific request context and validated for freshness server-side. This can include the session, action, challenge or nonce, request identifier, and the submitted media object or its cryptographic digest. The backend should reject reused tokens, replayed assertions, stale challenges, broken request bindings, unsupported app versions, and mismatches between the trust proof, session state, and submitted evidence. This prevents valid trust material captured from one request from being reused for a different image, session, or onboarding action.
Protected upload channels
DexProtector’s Public Key Pinning and/or Certificate Transparency checks should additionally be used to protect evidence upload and submission channels. These controls make interception, traffic analysis, and proxy-assisted manipulation more difficult, complementing server-side validation of integrity, freshness, request binding, application version, device trust, and session risk.
Alice as an independent cross-check
Alice Threat Intelligence can provide a backend cross-check by correlating trust claims presented in application traffic with current device attestation, runtime telemetry, session risk, and threat intelligence. Device and runtime risk signals, or the absence of a session record, can be treated as suspicious conditions and used to trigger blocking, step-up verification, delay, manual review, blacklisting, or investigation. Prevented attacks and lower-confidence runtime indicators can also be retained for case linking, containment, fraud scoring, and improvement of policies.
Backend service should remain conditional on valid, fresh, and contextually bound runtime proof, corroborated where appropriate through Alice, rather than relying solely on the authenticity of the submitted media or on client-side blocking.
Relevant capabilities include:
The backend is the final enforcement point rather than a standalone one. They must be layered with binary protections that make the app harder to analyze and modify, and with runtime protections that make the live execution environment harder to compromise or abuse. Each layer depends on the others.
Injection doesn’t have a single door to lock. There’s a long corridor with doors all the way along it, from the camera, to memory, files, request, transport, and the backend. An attacker only needs one of these doors to be left unguarded. The defense therefore has to run the length of the corridor: integrity built into the app, isolation around its most sensitive operations, and intelligence at the backend that treats trust as something proven on every request, not assumed one at the moment of capture.
That combination across the app, the runtime, and the backend, is what mobile channel protection means in practice. To prevent onboarding fraud, no single layer is sufficient on its own; they each have to work together as one system.
From the camera lens to the backend decision, trust should never be assumed; it must be proven continuously.