Why scanning a non-English LLM app in English misses risk
A scan run only in English tells you how the model behaves when English prompts arrive, and nothing reliable about how it behaves when a user writes in another language. Consider a support assistant that serves customers in several languages. Its English refusals may be consistent, while its behavior in a language that is less common in its training data may differ. Because the scan only exercises the prompts garak sends, a clean English result does not cover the other languages your users write in. Treat the language list as part of the scan scope, and confirm it with the team that owns the product before the first run.
garak's translation support addresses this gap by translating the keywords and triggers that its probes and detectors rely on, so that a non-English target can be tested with prompts and judged against matching terms. The run is configured with run.target_lang and a langproviders setting that names the translation service. Translation covers the probe and detector vocabulary, so teams need it when the model's refusal or detection logic depends on words in the target language. Teams that serve only English users, or whose target model has no meaningful output in another language, have less reason to enable it. Confirm the languages your model accepts and produces with the model's documentation or your own evaluation before choosing the target language.
The scan covers only what the target model accepts and produces. If the model does not understand a language, or answers it in English, the translated prompts test a narrower behavior than the label suggests, and a pass may reflect that limit rather than safe behavior. Record the target language, the translation provider and the model version with each report so that results can be read later. Translation can also add significant run time, and remote services such as DeepL, NVIDIA Riva and Google Cloud Translation need API keys, so ask the team who will operate the scan to confirm those dependencies before scheduling it. Plan a separate run per language you serve, and review the translated prompts for a sample of cases with a native speaker.
Translation providers and when each fits
This table compares the translation options garak can use for probe and detector keywords, plus the low-resource language buff. Read each row against your data classification and network boundary, since the data path and key requirements decide which option your environment can accept. The main takeaway is that local Hugging Face models keep translation inside your infrastructure, while remote services add API keys, data egress and added run time.
| Option | Data path | API key and run-time impact | Fit for sensitive or air-gapped environments |
|---|---|---|---|
| Hugging Face opus-mt (Helsinki-NLP) | Runs locally from model files you download and host | No API key; run time depends on local hardware and translation volume | Strong fit when model files are approved and staged in advance |
| Hugging Face m2m100 (facebook) | Runs locally from model files you download and host | No API key; larger model, so expect more memory and slower translation | Strong fit, provided the model files pass your supply chain checks |
| DeepL | Sends keyword and trigger text to DeepL's remote service | API key required; translation adds run time per request | Poor fit for restricted data unless your policy permits external processing |
| NVIDIA Riva | Depends on where you deploy Riva; a self-hosted instance keeps text on your network | Requires a Riva service and credentials; setup effort is higher than a key alone | Workable when Riva runs inside your boundary; confirm the deployment model first |
| Google Cloud Translation | Sends keyword and trigger text to Google Cloud | Requires a Google Cloud project and API key; translation adds run time | Poor fit for air-gapped hosts and for restricted data without an approved contract |
| Low-resource languages buff (LRLBuff) | Alters the prompt before it reaches the target; no translation service call | No key needed; adds prompt variants and therefore scan time | Fits any environment, since it runs inside garak and the target |
| Translation of keywords (any provider) | Translated terms are used for detectors and triggers, so output must be checked | Each remote call is billed or limited by the provider; confirm rate limits | Validate translated triggers in your language before trusting results |
Setting up a translated garak scan
This sequence takes a team from a clean install to a reviewed, small translated garak run against a model or application that serves users in another language. It produces a verified endpoint, a working translation configuration and a first report that shows whether the setup is trustworthy before a full scan.
Install garak from PyPI
Create a dedicated virtual environment on a Python 3.11 or newer interpreter, then install garak from PyPI with pip. Pin the version you intend to use in your scan records so later reruns stay comparable. The PyPI package requires Python 3.11 or newer, and garak is developed on Linux and macOS, so confirm your host falls within that. Check that the garak command runs and prints its help output before you continue.
Test the endpoint manually in the target language
Before any automated run, send a few prompts written in the target language to the endpoint by hand, using curl or the same client your users use. Confirm the model answers in that language, that the response format matches what your REST generator configuration will parse, and that any system prompt or guardrail behaves as expected. Record one or two sample exchanges. If the model replies in English or fails to parse, fix the endpoint first, because garak will report those failures as model weaknesses.
Choose the translation provider
Decide which translation backend garak will use for probe and detector keywords and triggers. The supported options are Hugging Face models (Helsinki-NLP opus-mt and facebook m2m100), DeepL, NVIDIA Riva and Google Cloud Translation. Local Hugging Face models avoid sending data to an outside service, while remote services need API keys and bring their own data handling terms, which your privacy and procurement teams should review. Confirm the language pair you need is supported by the provider you select before writing configuration.
Configure run.target_lang and langproviders
Write a garak configuration file that sets run.target_lang to your target language code and defines the chosen provider under langproviders. Keep the file in version control next to your other scan configuration so the translation settings are reviewable. Run garak with the config and check the startup output to confirm it loaded the language provider and the target language without errors. If the provider does not load, the most common cause is a missing dependency or an unsupported language code, so verify both against the garak translation reference.
Supply API keys through the environment
For DeepL, Riva or Google Cloud Translation, store credentials as environment variables in the shell or secrets manager that launches the scan, and never write them into the YAML file or the command line. Confirm the variables are visible to the garak process without printing their values, for example by checking that the provider initializes. Restrict the key to translation use and to the smallest billing scope you can. Keys left in shell history or committed to a repository are a common exposure path for scan hosts.
Run a small probe subset first
Start with a narrow probe selection, one or two probe families relevant to your application, and a low generation count, so the run finishes quickly and the translation overhead is visible. Translation can add significant run time, so note how long this small run takes before you widen the scope. Confirm the run reaches the endpoint and produces attempts in the target language rather than English fallback text. Use the same probe selection in later runs so the first results remain a baseline.
Review garak.log and the JSONL report
Open garak.log and check for provider errors, dropped translations, endpoint timeouts and detector warnings. Then open the JSONL report and confirm each attempt contains the translated prompt and the model's response in the target language, and that the detector evaluations are present for every attempt. Look for empty responses or detector outputs that do not match the language, because these indicate a setup problem rather than a finding. Only when the log is clean and the report content is readable should you expand to a full scan.
Limits to confirm before trusting multilingual results
A translated garak run tests more than the model. Its results also depend on the translation provider, the keyword lists garak uses and the way prompts are rewritten before they reach the endpoint. Confirm each of the points below before you present a multilingual score as evidence.
Translation quality for the target language
Probe prompts and detector keywords are machine translated, so a weak translation can change what a probe actually asks. Ask your in-house linguists or a native-speaking reviewer to read a sample of translated probe prompts and the matching detector triggers in the target language. Check that a prompt still reads as the attack it was meant to be, and record which translation service and version produced the set. A mistranslated attack can pass or fail for reasons unrelated to the model.
Translation support docsKeyword coverage in detectors
Many detectors look for specific words or strings in the model's reply. When the keywords were written in English and translated, the translated list may miss the synonyms, inflections or script variants that speakers of your language actually use. Ask the garak maintainers or your linguists which keyword lists were translated and which were not. Test a few known-bad replies in your language by hand to see whether the detector flags them. A silent miss here looks like a clean result.
Translated probes versus real user phrasing
A translated English attack is a proxy for an attack, not a copy of how users or attackers write in your language. Idioms, code switching, slang, mixed scripts and politeness forms change how a request is framed, and a literal translation may not reflect them. Ask your product or support team to supply examples of real user messages in the target language, then compare them with the probe prompts. Treat the gap as a known limit in the report, not as proof of coverage.
Run time added by translation
Translation runs before testing, and remote services add network latency, per-request limits and cost. Local Hugging Face models avoid API fees but need compute and time to load. Ask your vendor or provider for its rate limits, character quotas and billing terms before you plan a scan. Schedule a timed pilot on a small probe set so you can estimate the full run and avoid cutting the scan short during a release window.
Translation support docsKey handling for remote translation services
DeepL, NVIDIA Riva and Google Cloud Translation each need an API key. Confirm with your security team where those keys are stored, who can read them and whether they are rotated. Confirm with the provider whether submitted prompts and replies are retained or used for training under your contract. Probe text can include sensitive attack content, so the data flow should be reviewed before the first run.
Low-resource buff changes the prompts
The low-resource languages buff, LRLBuff, rewrites prompts before garak sends them to the model. The results therefore test a transformed prompt, not the original probe text. Read the buff source in the garak repository to see which languages and transformations it applies, and confirm with the garak maintainers whether it fits your user population. Record the buff in every run configuration so a later comparison does not mix transformed and untransformed results.
LRLBuff sourceQuestions teams ask before scanning multilingual apps
Is garak free to use for multilingual scanning?
Yes, garak is free to use under the Apache 2.0 license, and its maintainers describe it as a free tool. The software cost is zero, but a multilingual scan has other costs. Translation through DeepL, NVIDIA Riva or Google Cloud Translation is a paid service billed by the provider, and the Hugging Face translation models (Helsinki-NLP opus-mt and facebook m2m100) run on hardware you supply. Your team or a partner also pays for the effort to set up the endpoint, choose target languages, review results and rerun after fixes. Ask any quote to separate tool cost, translation provider cost, compute and labor.
How much does translation add to garak run time?
Translation can add significant run time, because garak translates probe and detector keywords and triggers for each language you target. The effect grows with the number of languages, the number of probes and the translation backend you choose. Remote services also add network latency and rate limits. Ask for a timed pilot on one language and one probe family before you commit to a full language matrix, then extrapolate from that measured run rather than from a generic estimate.
What must our team provide before a multilingual scan starts?
Three inputs usually decide whether the scan can start on schedule:
- Endpoint access: a test deployment of the application or model that accepts and returns the languages in scope, with credentials and a documented request format.
- Language reviewers: native speakers who can judge whether a flagged response is actually undesirable in that language, since detectors and translations do not always preserve meaning.
- API keys and accounts: keys for any remote translation service you select, plus a budget owner who approves usage.
Confirm rate limits and data handling terms for each provider, because translated prompts leave your environment when a remote service is used.
Which translation provider should we choose for garak?
Choose based on data handling, language coverage and cost, not on speed alone. Local Hugging Face models keep prompts inside your environment but need compute and tuning for each language pair. DeepL, NVIDIA Riva and Google Cloud Translation are hosted services that need API keys and send text to the provider. Confirm with each provider whether it retains submitted text, where it is processed and whether it covers your target languages. Your security or privacy team should approve the choice before any production-like prompts are translated.
How does probe volume affect the cost of a scan?
Cost follows the number of model calls, and that number multiplies quickly. Each language multiplies the prompts, each probe multiplies them again, and generations per prompt multiply the calls further. garak makes 5 generations per prompt by default, and a probe is marked FAIL when any attempt produces undesirable output. Reducing generations or narrowing the probe set lowers call volume but can hide intermittent failures, so keep the default for any scan that informs a release decision. Ask the quote to state the language count, probe set and generations used.
Can our own team run garak on multilingual applications?
Yes, a team with Python experience can run garak itself. The PyPI package requires Python 3.11 or newer, and garak is developed on Linux and macOS, so plan your host accordingly. Your team will need to configure a REST generator for your endpoint with a short YAML file, set the target language and translation provider, and read the JSONL report. The harder part is judging results in each language, which usually needs native speakers. A partner can take on setup, reviewer coordination and reporting when those skills or hours are not available internally.
When should we hire a partner for multilingual garak testing?
Consider a partner when the scan must produce evidence for a release, customer review or audit, when the application serves several languages with different reviewers, or when the endpoint is complex. A fixed-scope engagement sets scope, deliverables and timelines in writing before work starts, so you know what is covered. DeployOpen plans and runs security testing, including AI and agent security, and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Ask for a written scope that names the languages, probes, translation provider and reviewer responsibilities.
Does the low-resource languages buff need separate testing?
Yes, treat it as its own test. garak ships a low-resource languages buff (LRLBuff) that alters prompts before they are sent, which can expose weaknesses that standard-language prompts do not. Because the buff changes inputs, its results are not interchangeable with plain translated runs. Review the buff's source in the garak repository to confirm what it changes, then include it as a distinct scan with its own baseline and reviewer checks.
What to decide before the first multilingual scan
Start by deciding which languages matter, based on the users your application actually serves and the languages the model is expected to handle well. garak's translation support works on the probe and detector keywords and triggers, so a language only gets meaningful coverage if the target model accepts and produces it. Pull the language list from your product analytics, support tickets and contracts, then confirm with the product owner which languages are in scope for release. Record the list before configuring anything, because run.target_lang and the provider settings follow directly from it. A scan that covers English and a language the model handles poorly will tell you little about the users who matter most.
Next, decide whether prompts, model outputs and translated keywords can leave your environment. The translation providers in garak's translation support include Hugging Face models (Helsinki-NLP opus-mt and facebook m2m100), DeepL, NVIDIA Riva and Google Cloud Translation. The remote services need API keys, which means a data processing review, a vendor agreement check and a decision on where keys are stored. If your policy rules out external calls, a local Hugging Face translation model is the likely path, and it must be downloaded and hosted in advance on a host with no outbound access. Ask your security and legal teams to sign off on the specific provider, not on translation in general. Also confirm that the target endpoint itself, which garak will hit with attack prompts, is allowed to receive those prompts in each language.
Then decide who reads the results. Automated detectors judge many attempts, but a person who reads the target language must review the flagged and borderline outputs, because a translated detector can misjudge refusals, idioms and mixed-language replies. Name that reviewer, agree a sample size for manual review and define what the review decides, such as whether a FAIL is a real weakness or a false positive. Also decide whether the low-resource languages buff (LRLBuff), which alters prompts before they are sent, belongs in this run or in a separate one, so that results are not mixed. Finally, plan for time: translation can add significant run time, so schedule the first multilingual scan with that in mind and confirm the expected duration with your own test runs.
How DeployOpen scopes multilingual garak testing
DeployOpen plans multilingual garak testing as a fixed-scope engagement, starting from the languages your users write in and the endpoint they reach. The work runs inside your own infrastructure, so translation services, API keys and scan output stay under your control.
How we scope
- Agree in writing which languages, models and application endpoints the multilingual scan will cover before work starts
- Confirm whether translation runs on local Hugging Face models or a remote service such as DeepL, Riva or Google Cloud Translation
- Record the time budget, API key ownership and rate limits that the translation choice will add to each run
How we build
- Configure garak's target language and translation providers so probe and detector keywords match each language in scope
- Set up the REST or other generator that reaches the full application, including any system prompt and guard in front of the model
- Add the low-resource languages buff only to the runs where it matches the scoped user population, and record which buffs were used
How we hand over
- Deliver the run configuration files, translation settings and scan commands so your team can repeat the scans
- Provide written findings per language with the JSONL reports and garak.log output, and a plain account of detector limits
- Document where translated detectors may miss content, so reviewers know which results need a native speaker to check
How we support
- Offer ongoing support and scheduled rescans as a retainer after the first scan and handover
- Plan rescans after model, prompt or translation provider changes so results remain comparable across language sets
- Confirm with your team which native-speaker reviewers will check flagged outputs before any scan is treated as final

