> For the complete documentation index, see [llms.txt](https://docs.talsec.app/appsec-articles/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.talsec.app/appsec-articles/fraud-intelligence-reports/hirudo-the-android-banking-trojan-that-patches-the-banks-own-app-and-how-talsec-stops-it.md). Agents can also search and read this documentation through its [MCP server](https://docs.talsec.app/appsec-articles/~gitbook/mcp).

# Hirudo: the Android banking trojan that patches the bank's own app — and how Talsec stops it

Hirudo removes the genuine banking app, installs a re-signed copy and blinds its security checks from inside. How it works and where Talsec breaks the chain.

**Classification** TLP:CLEAR\
**Updated** 19 Nov 2026\
**Prepared by** Talsec Threat Intelligence & Anti-fraud Services

![Infographic: Hirudo lures the victim with a decoy app, installs a RAT, swaps the genuine banking app for a re-signed clone whose own checks lie, and moves money from the victim's session](https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2Fol5a7zHBPQLG9NcdlrPz%2Fhirudo-hero-wide-v2.svg?alt=media\&token=42c1fd55-08c9-44a2-9aba-f5432ba91fcd)

## TLDR

Hirudo is an Android banking RAT, first detailed by ThreatFabric on 14 October 2026. It doesn't draw a fake screen over the banking app. It **uninstalls the genuine app and installs a re-signed copy** of it, with a hooking engine loaded by one injected line of code.

Running inside the bank's own process, that engine makes the app's own checks lie: signature verification, accessibility enumeration, screen-capture protection, key attestation and Play Integrity. Any security decision the app makes about itself can no longer be trusted.

Talsec can break the chain in two places: [**`Malware Detection`**](https://docs.talsec.app/premium-products/product/malware-detection) **can flag the dropper and the RAT before the swap, if the banking app is opened in that window**, and [**`AppiCrypt®`**](https://docs.talsec.app/premium-products/product/appicrypt) moves the integrity decision to the bank's server, where Hirudo's hooks don't reach.

## Contents

1. [Threat snapshot](#id-1.-threat-snapshot)
2. [Why it matters for banking apps](#id-2.-why-it-matters-for-banking-apps)
3. [Attack vector](#id-3.-attack-vector)
4. [TTPs: MITRE ATT\&CK mapping](#id-4.-ttps-mitre-att-and-ck-mapping)
5. [Talsec coverage report](#id-5.-talsec-coverage-report)
6. [Recommendations for banks, wallets and payment apps](#id-6.-recommendations-for-banks-wallets-and-payment-apps)
7. [Indicators of compromise](#id-7.-indicators-of-compromise)

{% hint style="info" %}
**Status (Oct 2026)**

Active campaign. Ready-made clones exist for **8 banking apps from 7 Indonesian banks**; the code also references targets in **China, India, Mexico, Morocco and Thailand**, and its fake checkout screens carry Malaysian bank and wallet branding in eight languages. No affected bank has been named publicly.

Talsec [**`Malware Detection`**](https://docs.talsec.app/premium-products/product/malware-detection) flagged Hirudo in a Talsec lab test on 19 October 2026.
{% endhint %}

***

## 1. Threat snapshot

| Component                    | Role · class                     | What it does                                                                                                                                                 | Talsec signal                                                                                                                                                                           | Severity              |
| ---------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| **Dropper**                  | Stage 1 · *loader*               | Working decoy app (shopping, adult video, short drama) from a fake Play page. Loads real content in a WebView and side-loads the RAT behind a fake "update". | `onMalware` · `installSource` + `suspiciousPermission`                                                                                                                                  | **High**: entry point |
| **Hirudo RAT**               | Stage 2 · *remote-access trojan* | Separate companion app. Accessibility, SMS, overlays, WebRTC screen stream, cameras. Removes the genuine bank app and installs the clone.                    | `onMalware` · [**`RASP+`**](https://docs.talsec.app/premium-products/product/rasp) accessibility                                                                                        | **Critical**          |
| **Patched bank app (clone)** | Stage 3 · *trojanized client*    | Same package name and version as the genuine app, re-signed with a public Android test key. One line in the `Application` class loads the hook engine.       | [**`AppiCrypt®`**](https://docs.talsec.app/premium-products/product/appicrypt) verdict on the server · [**`RASP+`**](https://docs.talsec.app/premium-products/product/rasp) integrity\* | **Critical**          |
| **Hook engine**              | In-process · *defense evasion*   | YAHFA (Java methods) and Dobby (native functions). Arms only when the RAT drops a trigger file, so an idle clone reveals little.                             | [**`RASP+`**](https://docs.talsec.app/premium-products/product/rasp) hook and tamper detection\*                                                                                        | **Critical**          |
| **Operator back-office**     | C2                               | Holds credentials, device records and financial profiles; a panel seen in August 2026 already held thousands of entries.                                     | Threat intelligence · IOC blocklists                                                                                                                                                    | **High**              |

\* Expected inside the patched clone; to be verified on a live Hirudo sample (see [Section 5](#id-5.-talsec-coverage-report)).

No CVE is involved. Every capability comes from the victim tapping through prompts that look like app updates.

***

## 2. Why it matters for banking apps

### The app the customer opens is not the app you shipped

{% columns %}
{% column %}

#### What the patched app reports about itself

* Signature **matches** the bank's certificate
* **No** accessibility services running
* Screens **protected** from capture
* Key attestation **valid**
* Play Integrity verdict **passed**

Every check the app runs on itself answers **all clear**.
{% endcolumn %}

{% column %}

#### What is actually true on the device

* The app is **re-signed with a public test key**
* The RAT's **Accessibility service** controls the screen
* `FLAG_SECURE` is **stripped**; the screen is streamed over WebRTC
* Attestation is **re-signed with a leaked keybox** already on Google's revocation list
* Play Integrity requests are **relayed over plain HTTP** to an operator server that returns a verdict

None of this reaches a backend that trusts the client's own answer.
{% endcolumn %}
{% endcolumns %}

{% hint style="warning" %}
**Client-side checks alone are not enough.** Hirudo's hooks run in the same process as the bank's code, so any check whose result the app evaluates for itself can be made to pass. A control holds only if its verdict is **verified on the server**, or if it fires **before the genuine app is replaced**.
{% endhint %}

***

## 3. Attack vector

### Ten steps from a social-media ad to money moved from the victim's own session

Steps 1–5 happen once per device. Steps 6–10 run inside the patched app whenever the operator wants.

![Hirudo kill chain: lure and dropper, RAT installed, genuine app uninstalled, patched clone installed, hooks armed, checks blinded, credentials taken, SMS and OTP read, screen and camera streamed, fraud. Each step with its MITRE ATT\&CK technique and the Talsec signal that can break it](https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2F058MOUtIvZUouhIFOho5%2Fhirudo-attack-chain.svg?alt=media)

{% stepper %}
{% step %}

### Lure and dropper

A social-media ad leads to a fake Play page for a shopping app (**Shopora**), an adult-video app (**1V1 X**) or short-drama apps (**ZoyaTV**, **KoiShort**). The app works: it loads real content in a WebView. In the background it checks whether the RAT is installed.
{% endstep %}

{% step %}

### RAT installed

If not, the dropper shows a fake in-app "update" and side-loads the Hirudo RAT as a **second app**. The victim is talked into enabling its Accessibility service. Typical lures are repeated full-screen prompts that block the app until the service is enabled, a fake “required to continue” explanation, and an install method that sidesteps Android 13's restricted settings, so users click through the system warning.
{% endstep %}

{% step %}

### Genuine app removed

The RAT detects an installed target bank app, compares its signing certificate with a stored reference and shows a fake "update" prompt. It opens Android's uninstaller for the genuine app **without waiting for the user to tap** and drives it through Accessibility, while the replacement downloads in parallel. The victim can still interrupt this.
{% endstep %}

{% step %}

### Patched clone installed

The replacement keeps the **original package name and version** but is signed with a **public Android test key**. Android won't install a differently signed app over the genuine one, which is why the original had to go first.
{% endstep %}

{% step %}

### Hooks armed

The bank's own code is almost untouched. One line injected into the `Application` class loads a self-contained engine from bundled assets: **YAHFA** replaces Java methods and **Dobby** hooks native functions. The hooks arm only when the RAT drops a shared trigger file.
{% endstep %}

{% step %}

### Checks blinded

Signature check: the genuine certificate is substituted. Accessibility enumeration: an empty list. Screen capture: `FLAG_SECURE` stripped. Key attestation: re-signed with a bundled, leaked keybox. Play Integrity: relayed to an operator server that returns a verdict for the app to accept.
{% endstep %}

{% step %}

### Credentials taken

Payment PINs, login passwords and the device-unlock PIN, password or pattern, captured through a full-screen fake pattern overlay or read from the lock screen through Accessibility.
{% endstep %}

{% step %}

### SMS and OTP read

A **90-day initial SMS scan**, then messages from configured bank and wallet senders: one-time codes included.
{% endstep %}

{% step %}

### Screen and camera

The screen is streamed over **WebRTC**, front and rear camera sessions can be opened, and the operator drives the device in real time.
{% endstep %}

{% step %}

### Fraud

The operator moves money from inside the victim's own banking session, in an app that looks and identifies itself as the bank's.
{% endstep %}
{% endstepper %}

***

## 4. TTPs: MITRE ATT\&CK mapping

{% hint style="info" %}
This mapping is Talsec analysis of the public ThreatFabric research. Technique IDs are from MITRE ATT\&CK for Mobile.
{% endhint %}

| Tactic                   | Technique                                                                                                                                | How Hirudo uses it                                                                                          |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **Initial access**       | <ul><li><code>T1660</code> Phishing</li></ul>                                                                                            | Social-media ads and fake Play pages for decoy apps.                                                        |
| **Defense evasion**      | <ul><li><code>T1407</code> Download New Code at Runtime</li><li><code>T1655</code> Masquerading</li></ul>                                | RAT side-loaded by the dropper; patched clone keeps the bank's package name, version and icon.              |
| **Defense evasion**      | <ul><li><code>T1629.003</code> Impair Defenses: Disable or Modify Tools</li></ul>                                                        | YAHFA + Dobby hooks make the app's signature, accessibility, attestation and Play Integrity checks pass.    |
| **Privilege escalation** | <ul><li><code>T1453</code> Abuse Accessibility Features</li></ul>                                                                        | Drives the uninstaller and installer, hides itself from the app's accessibility query, controls the device. |
| **Execution**            | <ul><li><code>T1516</code> Input Injection</li></ul>                                                                                     | Taps through the uninstall and install dialogs and operates the device remotely.                            |
| **Credential access**    | <ul><li><code>T1417.002</code> GUI Input Capture</li><li><code>T1461</code> Lockscreen Bypass</li></ul>                                  | Fake pattern overlay; unlock PIN, password or pattern captured and reused.                                  |
| **Collection**           | <ul><li><code>T1636.004</code> SMS Messages</li><li><code>T1513</code> Screen Capture</li><li><code>T1512</code> Video Capture</li></ul> | 90-day SMS scan and OTP senders; WebRTC screen stream; front and rear cameras.                              |
| **Command & control**    | <ul><li><code>T1437.001</code> Web Protocols</li></ul>                                                                                   | Operator back-office; Play Integrity requests relayed over plain HTTP.                                      |

***

## 5. Talsec coverage report

### Two places where Hirudo can be stopped: before the swap (if the app is opened), and on the server

Hirudo was built to defeat the checks an app runs on itself through standard Android APIs and Google's attestation services. It was not built against Talsec. Talsec's strongest controls sit where the hooks don't reach: on the device **before** the genuine app is replaced (if the app is opened in that window), and on the bank's **server** after.

![Talsec coverage matrix for Hirudo: for each kill-chain step, which Talsec product helps (Malware Detection, RASP+, App Reputation, AppiCrypt, Risk State API, bank rules), the verdict and what Talsec does. In-clone RASP+ signals are marked as expected, to be verified on a live sample](https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2FiSzCENzzHZgjW0nFjlpo%2Fhirudo-coverage-matrix-v2.svg?alt=media\&token=194522ae-e635-4cba-a7a1-23c1587f7086)

{% columns %}
{% column %}
{% hint style="success" %}
**Coverage verdict**

**Before the swap: conditional.** The dropper and the RAT are separate, sideloaded apps with high-risk permissions. [**`Malware Detection`**](https://docs.talsec.app/premium-products/product/malware-detection) flags them offline, and flagged Hirudo in a Talsec lab test, if the genuine app with Talsec inside is opened before the swap. Checks run only while the app is open, so a customer who never opens it in that window is not covered.

**After the swap: decided on the server.** [**`AppiCrypt®`**](https://docs.talsec.app/premium-products/product/appicrypt) doesn't rely on Play Integrity or key attestation, and its cryptogram is verified by the bank's backend. A relayed verdict or a re-signed attestation doesn't make it valid.
{% endhint %}
{% endcolumn %}

{% column %}
{% hint style="warning" %}
**What still needs verification**

Inside the patched clone, Hirudo's hooks target Android APIs that apps commonly use for these checks, not Talsec. We therefore **expect** [**`RASP+`**](https://docs.talsec.app/premium-products/product/rasp) to keep reporting tampering, hooking, overlays and screen capture from inside a clone of an app that ships Talsec. We have **not yet confirmed this on a live Hirudo clone**; the matrix marks these cells as expected.

Talsec can't stop the OS uninstalling an app, and it can't protect SMS from an app that reads SMS.
{% endhint %}
{% endcolumn %}
{% endcolumns %}

### Talsec Threat Intelligence alert

The Hirudo threat report as Talsec customers see it in the [**`Talsec Portal`**](https://docs.talsec.app/freerasp/freerasp/data-visualisation-portal), under Alerts and Notifications.

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2F5jtuZtAwIBPwVMDDfLKg%2Fimage.png?alt=media&#x26;token=495111c4-2f1f-4e0c-b474-f9ca6694c0b5" alt="Talsec Portal, Alerts and Notifications: Hirudo threat report for Indonesia"><figcaption></figcaption></figure>

### freeRASP or RASP+? What each covers against Hirudo

| Kill-chain step                              | [**`freeRASP`**](https://docs.talsec.app/freerasp/freerasp/introduction)                                                                               | [**`RASP+`**](https://docs.talsec.app/premium-products/product/rasp) / Premium                                                                                                                                                       |
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **1–2 · Dropper and RAT**                    | ⚠️ Offline malware detection (`installSource` + `suspiciousPermission`), configured in code; detects only if the banking app is opened before the swap | ⚠️ Same, plus remotely updatable rules ([**`Talsec Portal`**](https://docs.talsec.app/freerasp/freerasp/data-visualisation-portal)) and online **App Reputation** lookups; detects only if the banking app is opened before the swap |
| **2 · Accessibility misuse**                 | ⚠️ Detects the RAT app by its permissions only                                                                                                         | ⚠️ Untrusted accessibility service reported; **Accessibility Protector** hides sensitive views; detects only if the banking app is opened before the swap                                                                            |
| **4–5 · Clone and hooks**                    | ⚠️ `onAppIntegrity()`, `onHooks()`, `onUnofficialStore()` in the app; result stays on the device                                                       | ✅ Same checks, SDK built per app, **plus** the verdict carried to the server by [**`AppiCrypt®`**](https://docs.talsec.app/premium-products/product/appicrypt)                                                                       |
| **6 · Play Integrity / attestation spoofed** | ❌ No server-side verdict                                                                                                                               | ✅ [**`AppiCrypt®`**](https://docs.talsec.app/premium-products/product/appicrypt) cryptogram, independent of Play Integrity, verified by the backend                                                                                  |
| **7 · Overlays and screen capture**          | ⚠️ `Talsec.blockScreenCapture()`, `onScreenRecording()`; no overlay detection                                                                          | ⚠️ Same, plus **overlay detection** (expected; not yet verified on a live clone)                                                                                                                                                     |
| **9–10 · Fraud from the clone**              | ❌ Signals stay in the app unless you forward them yourself                                                                                             | ✅ [**`AppiCrypt®`**](https://docs.talsec.app/premium-products/product/appicrypt) on transfer endpoints, [**`Risk State API`**](https://docs.talsec.app/premium-products/introduction/overview) at authorisation                      |

{% hint style="info" %}
**Bottom line**

Against Hirudo, any decision taken only inside the app can be turned around by the hooks. [**`freeRASP`**](https://docs.talsec.app/freerasp/freerasp/introduction) can flag the dropper and the RAT before the swap, if the app is opened in that window, which is the most valuable moment. To keep control after the swap, the verdict has to reach your backend in a form the clone can't forge: [**`AppiCrypt®`**](https://docs.talsec.app/premium-products/product/appicrypt), together with [**`RASP+`**](https://docs.talsec.app/premium-products/product/rasp) and [**`Malware Detection`**](https://docs.talsec.app/premium-products/product/malware-detection).
{% endhint %}

***

## 6. Recommendations for banks, wallets and payment apps

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>1 · Flag the dropper and RAT before the swap</strong></td><td><a href="https://docs.talsec.app/premium-products/product/malware-detection"><strong><code>Malware Detection</code></strong></a> with the default configuration (<code>SIDELOADED_ONLY</code>, <code>HIGHEST_CONFIDENCE</code>), permission sets for <code>REQUEST_INSTALL_PACKAGES</code>, <code>BIND_ACCESSIBILITY_SERVICE</code> and SMS. Add the package names below as a blocklist. Report <code>onMalware</code> to the backend, not only to a dialog.</td><td><a href="https://docs.talsec.app/premium-products/product/malware-detection"><em><strong><code>Malware Detection</code></strong></em></a> <em>· App Reputation API</em></td></tr><tr><td><strong>2 · Treat a re-install as a new device</strong></td><td>The clone is a fresh install with a new app instance. Require step-up authentication and re-binding on the first login after a re-install, and keep the device's pre-swap risk state.</td><td><a href="https://docs.talsec.app/premium-products/product/appicrypt"><em><strong><code>AppiCrypt®</code></strong></em></a> <em>·</em> <a href="https://docs.talsec.app/premium-products/introduction/overview"><em><strong><code>Risk State API</code></strong></em></a> <em>· bank rules</em></td></tr><tr><td><strong>3 · Move the integrity decision to the server</strong></td><td>Require a valid <a href="https://docs.talsec.app/premium-products/product/appicrypt"><strong><code>AppiCrypt®</code></strong></a> cryptogram on login, payee-change and transfer endpoints, with the nonce derived from the request body. Don't accept the app's own integrity answer.</td><td><a href="https://docs.talsec.app/premium-products/product/appicrypt"><em><strong><code>AppiCrypt®</code></strong></em></a></td></tr><tr><td><strong>4 · Don't rely on Play Integrity alone</strong></td><td>Hirudo relays Play Integrity and re-signs key attestation with a revoked keybox. If you keep these checks, verify them on the server and check certificate revocation.</td><td><em>Bank backend ·</em> <a href="https://docs.talsec.app/premium-products/product/appicrypt"><em><strong><code>AppiCrypt®</code></strong></em></a></td></tr><tr><td><strong>5 · Protect sensitive screens in the genuine app</strong></td><td><code>Talsec.blockScreenCapture(activity, true)</code>, Accessibility Protector and overlay detection on login, PIN, OTP and confirmation screens. These help only before the swap: a patched clone can strip them, so they are not a control against Hirudo itself.</td><td><a href="https://docs.talsec.app/premium-products/product/rasp"><em><strong><code>RASP+</code></strong></em></a></td></tr><tr><td><strong>6 · Retire SMS OTP for high-risk actions</strong></td><td>Hirudo reads 90 days of SMS. Use an app-bound push or a passkey showing amount and payee; add cooling-off for new payees and velocity limits.</td><td><em>Bank ·</em> <a href="https://docs.talsec.app/premium-products/product/appicrypt"><em><strong><code>AppiCrypt®</code></strong></em></a> <em>binding</em></td></tr></tbody></table>

Integration guides: [RASP+ Android](https://docs.talsec.app/premium-integration-documentations/core-sdk/rasp+/integration-guide/android) · [Malware Detection configuration](https://docs.talsec.app/premium-integration-documentations/enhanced-protection/malware-detection/integration-guide/configuration) · [AppiCrypt® Android](https://docs.talsec.app/premium-integration-documentations/enhanced-protection/appicrypt-r/sdk-integration/android) (Talsec customer login required).

***

## 7. Indicators of compromise

Package names reported by ThreatFabric. Use them as a [**`Malware Detection`**](https://docs.talsec.app/premium-products/product/malware-detection) blocklist; they will change, so keep the behaviour-based rules on.

| Role    | App name | Package name        |
| ------- | -------- | ------------------- |
| Dropper | Shopora  | `com.agbbh.kjdrttt` |
| Dropper | 1V1 X    | `com.onev.vip`      |
| Dropper | KoiShort | `com.koishort.app`  |
| Dropper | ZoyaTV   | `com.zoyatv.app`    |
| RAT     | Hirudo   | `com.zk7qpx.mv9wlt` |
| RAT     | Hirudo   | `com.r9nkvx.qw2mpl` |

A patched bank app keeps the genuine package name. Identify it by its **signing certificate** (a public Android test key) and by its installer (not an official store).

***

## Sources

* ThreatFabric — *Hirudo: From Fake Updates to Patched Banking Apps* (14 Oct 2026): <https://www.threatfabric.com/blogs/hirudo-from-fake-updates-to-patched-banking-apps>
* SecurityWeek — *Novel Android Banking RAT 'Hirudo' Replaces Banking Apps With Trojanized Copies* (15 Oct 2026): <https://www.securityweek.com/novel-android-banking-rat-hirudo-replaces-banking-apps-with-trojanized-copies/>
* The Hacker News — *Hirudo Android Trojan Uses Patched Banking Apps to Bypass Their Built-In Security Checks* (Oct 2026): <https://thehackernews.com/2026/10/hirudo-android-trojan-uses-patched.html>
* Aviatrix Threat Research Center — *Hirudo Android Trojan: Patched Banking Apps* (14 Oct 2026): <https://aviatrix.ai/threat-research-center/hirudo-android-trojan-patched-banking-apps-2026/>
* Talsec Anti-Fraud Intelligence: Hirudo lab test, 19 Oct 2026 (restricted).
* MITRE ATT\&CK for Mobile: <https://attack.mitre.org/matrices/mobile/>

*Protect your Android apps against Hirudo-class threats with* [*RASP+*](https://docs.talsec.app/premium-products/product/rasp)*,* [*AppiCrypt®*](https://docs.talsec.app/premium-products/product/appicrypt) *and* [*Malware Detection*](https://docs.talsec.app/premium-products/product/malware-detection)*, or start with* [*freeRASP*](https://github.com/talsec/Free-RASP-Community)*. Talsec does not distribute or endorse malware; indicators above are summarised from public threat intelligence for defensive purposes.*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.talsec.app/appsec-articles/fraud-intelligence-reports/hirudo-the-android-banking-trojan-that-patches-the-banks-own-app-and-how-talsec-stops-it.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
