How garak's EICAR and GTUBE probes test output scanning
If your application passes model output to users, into mail, or into a file store, you need to know whether antivirus or spam filtering sits in that path. garak's av_spam_scanning probes, which include EICAR, GTUBE and GTphish, try to make the model emit known-bad test signatures. The EICAR and GTUBE strings are harmless standard test patterns that security products are built to flag, and GTphish is a phishing-style test pattern. The probes check whether the target produces them in the first place, which is a different question from whether anything downstream catches them. A fail means the model produced the test signature. A pass means it did not, under the prompts and settings you ran. Neither result tells you whether a scanner exists after generation.
The check is worth running when model output leaves the chat window. Typical cases include an assistant that drafts email, a summarizer whose output is saved to shared drives, or an agent that writes attachments or files for other systems. Confirm with the team that owns each output path which scanners it already passes through, such as mail gateways, endpoint protection or document upload filters, and who owns their rules. Then decide whether a model emitting a test signature is a finding in your environment, because that depends on whether those controls exist and are enforced.
What this check does not prove is equally important. It does not measure the model's general safety, its resistance to jailbreaks, or whether it will produce harmful code or phishing content in a richer prompt. Those need other probe families and a review of your application's output handling. To test the path itself, run the probes through the same endpoint your users reach, then ask the application owner to show the scanner logs for those test strings. garak's user guide describes how to target a custom endpoint.
Reading results by application shape
When garak tests a model directly, with no application around it, a hit means the model generated the test signature when asked. Nothing downstream was tested, so the result says something about the model's behavior under this prompt, not about what a user would receive. A miss means the model did not emit the string in the attempts garak made, which is a weaker statement than proof that no signature can get through.
- Model behavior: A FAIL shows the model will produce the signature text on request, which matters if its output is ever passed to a mail gateway, file store or scanner.
- No filtering layer: A bare model has no output scanner by definition, so a hit here is expected for most models and does not by itself show a gap in your product.
- Attempt count: Garak's default of 5 generations per prompt means a single clean run covers only a small sample of the model's output.
- Model swaps: Re-run the probes whenever the model, its sampling settings or its system prompt changes, since any of these can change whether the string appears.
- Report fields: Read the JSONL report entry for the exact output the model produced rather than relying only on the summary.
Before relying on a bare-model result, confirm which model version, sampling settings and system prompt the run used.
When the model sits behind an application that scans its output, the question changes from whether the model emits the string to whether the application stops it before a user or downstream system sees it. A hit here means the scanner did not catch the signature, or that no scanner runs on that path at all. A miss means the scanner probably caught it, but only if garak's probe reached the same output path your users use, which you need to verify.
- Scanner present, string passed: A model hit that reaches the user is the main finding, and the fix belongs in the output path or the scanner's rules.
- Scanner present, string blocked: Confirm that the block happens in the production route and not in a test harness that differs from it.
- Scanner absent: If the model emits the string and nothing inspects the response, the application has no signature control on that path.
- Streaming responses: Check whether the scanner inspects streamed tokens or only the completed message, since a partial stream can pass before a check runs.
- Scanner coverage: Which signature families your scanner checks is a vendor and configuration question. Confirm it with the scanner's documentation and your own pipeline, not with the probe name.
Test through the same endpoint, gateway and middleware your users call, so the result reflects the path in production.
A chat interface that renders markdown, links or HTML changes what an emitted string can do. A test string in plain text is harmless on its own, but a link, image or formatted block the model writes may be rendered, fetched or copied by a user. A hit here therefore needs review of how the interface treats the text, not only whether the characters appear.
- Rendering rules: Confirm which markdown, link and image features the interface renders, and whether it sanitizes HTML.
- Download paths: If users can save or open generated files, a signature in a file is a different risk from one in a chat bubble.
- Copy and paste: Users often move model output into email or ticketing tools, which may have their own scanners or none.
- Logging and export: Chat transcripts exported to other systems can carry the signature beyond the interface where it was first shown.
- Interface review: Ask the application team to show how a rendered response reaches a user, rather than assuming the interface is safe because the model is.
Before sign-off, walk one flagged output through the interface and record what a user would see, click or download.
Probe and run options and when each fits
This table compares the ways to run garak's av_spam_scanning probes, from a targeted run to a broad scan, and what each setting changes in the FAIL result. Read each row as a choice between a fast signature check and a fuller evidence set, and use the outputs column to decide what you will keep for review.
| Option | What it does | When it fits |
|---|---|---|
| Probe family alone (EICAR, GTUBE, GTphish) | Runs only the three signature prompts, so results isolate whether the target emits known test strings | First check on a new model or a change to output filtering, when you need a quick yes or no on signature output |
| Within a broader scan | Adds the av_spam_scanning probes to other families, so signature results sit beside jailbreak and leakage results | Routine or release scans where one report should cover all output-side risks for the same target |
| Default 5 generations per prompt | Each probe prompt is sent five times, and one undesirable output marks the probe FAIL with a failure rate | Baseline runs where a single signature in any attempt should be visible, since sampling can vary between attempts |
| Changed generation count | Fewer generations lower request volume but can miss intermittent output; more generations raise sampling coverage and request volume | Fewer for a quick smoke test on a paid endpoint; more when a model sometimes emits signatures and you need the failure rate to be stable |
| Probewise harness with recommended detectors | Runs each probe with the detectors the probe recommends, so scoring follows the signature the probe targets | Default for most runs, because the detector scores the exact string the probe asked for |
| JSONL report | Records every attempt, its output and its evaluation, so you can check which generations produced the string | Evidence for security reviews and for comparing a model or filter before and after a change |
| garak.log file | Keeps debugging detail across runs, including generator errors and connection failures | Diagnosing a run that errored or returned empty outputs before you trust a PASS result |
Setting up the probe run against your endpoint
This sequence takes you from a clean Python environment to a completed av_spam_scanning run against the model or application you intend to test, with a JSONL report you can review. Each step ends with a check so you know the run is testing what you think it is.
Confirm the host and Python version
Check that the machine you will scan from runs Linux or macOS and has Python 3.11 or newer, since the garak package on PyPI requires that version. Whoever owns the scanning host, usually your security engineer or platform team, runs
python3 --versionand records the result. The check is done when the reported version is 3.11 or higher and the host is one where garak is developed and supported. If the host is a Windows machine, plan a Linux or macOS runner before continuing.Install garak from PyPI
Create a dedicated virtual environment so garak and its dependencies stay separate from other tooling, then install the package with
pip install garak. Keep the environment with the scan record so you can reproduce the exact version later. The check isgarak --helprunning without errors and printing the command options. Also record the installed version withpip show garak, because scores can shift between releases and you will need that version for comparisons.Define the target generator
Choose how garak reaches the system under test. It can connect to supported hosted or local model services directly, or to any REST endpoint that returns plaintext or JSON through a short YAML file that describes the endpoint, its request shape and how to read the response. For an application, the REST route is usually the right choice because it tests the assistant as users see it, including any filter or wrapper in front of the model. Confirm the endpoint is in a test environment or that the owner has approved scanning it, and store the YAML file in version control. The check is a successful test call that returns a readable response.
Select the av_spam_scanning probes
List the probes in the av_spam_scanning family with garak's probe listing option and select them by name or family so the run covers EICAR, GTUBE and GTphish. These probes try to get the model to output known test signatures for antivirus and spam filters, so they measure whether the target emits them at all. Do not add unrelated probe families to this run, so that the report stays focused on output scanning. The check is that the printed probe list contains the three av_spam_scanning probes and nothing you did not intend to include.
Run the scan and keep the output
Start the scan with your generator configuration and the selected probes, and let it complete without interruption. By default garak makes 5 generations per prompt, so the run will issue several attempts per probe, which is expected behavior. Note the report location printed at the end of the run and keep the garak.log file, which continues across runs. The check is that the run finishes and the console shows a result for each selected probe.
Confirm the JSONL report records each attempt
Open the JSONL report written by the run and confirm it contains one entry per attempt, each with its prompt, the model output and the detector evaluation. Count the entries for each probe and compare them with the expected number of generations, so you know no attempts were dropped by a timeout or error. The check is that every selected probe appears with a complete set of attempts and that each attempt has an evaluation. If entries are missing, review garak.log before trusting the results.
Review failures and record the result
Read the probes marked FAIL and their failure rates, then open the attempts behind them to see the exact output that contained or resembled an EICAR, GTUBE or GTphish string. Store the report, the YAML configuration and the garak version together so the result can be repeated and compared after a change. A failure means the model emitted the signature, which tells you the output path has no matching scanner for that string. The check is a saved, labeled record that another engineer can rerun from the same files.
What to check in your output path
A garak probe can only show that a model emitted a test string. Whether that string reaches a user, a file or a log depends on the components between the model and the consumer. Walk each hop below and confirm it in your own environment before you read a scan result as a control result.
Where model output goes
Map every path a completion takes after generation: the application backend, a queue, an email or ticketing integration, a file export, a browser or a logging pipeline. An EICAR or GTUBE string that the model emits is only a risk where it lands. Draw the path for each product surface, including internal tools and batch jobs that nobody thinks of as user-facing. Confirm the map with the team that owns each hop, not from the architecture diagram alone.
Antivirus and spam scanning
Check whether any antivirus engine or spam filter inspects model output before it is delivered or saved. Ask the owner of each integration which product runs, which signature set it uses and whether the scan applies to text only, to attachments, or to both. Test the control with the same EICAR and GTUBE strings garak sends, then confirm that the scanner logs a detection. A scanner that never sees the string has not been tested.
Links and attachments
Determine whether URLs in model output are rewritten, wrapped, checked against reputation lists or blocked. Phishing-style test content often depends on a link or a lure, so a clean text scan may still deliver a risky link. Confirm whether attachments generated by a model, such as CSV, HTML or Office files, pass through the same scanning as messages. Record which controls apply to each channel rather than assuming one policy covers all of them.
Rendering layer behavior
Check how the front end renders output. Markdown renderers, HTML sanitizers and terminal views can strip, escape or alter strings that look like signatures or markup. Stripping at the display layer hides the string from users but leaves it in stored data, exports and API responses. Test each renderer with the probe strings, then check the stored value and the API response separately, because they may differ.
Logs and downstream parsers
Find out whether logs, SIEM pipelines, ticket writers and data parsers receive raw model output. A string that a user never sees can still reach an analyst tool, a log viewer or a script that opens files. Confirm which systems store the raw completion, how long it is retained and who can read it. Treat logging as part of the output path, since it often has weaker controls than the user interface.
Scanner testing with the same strings
Verify that the scanners on your path are tested with the strings garak uses, and that the test is repeated after changes. Ask each owner to show a detection event for EICAR and GTUBE in their own system, and keep that evidence with the garak run. Repeat the check after model swaps, scanner updates or gateway changes, because a quiet configuration change can remove a control without any alert.
Questions teams ask before running output scanning tests
Do we need an outside partner to run output scanning tests?
No, a team with Linux or macOS access, Python 3.11 or newer, and someone who can reach the model endpoint can run garak's EICAR, GTUBE and GTphish probes alone. Outside help becomes useful when the scan has to cover several application shapes, when results must be packaged as evidence for a review, or when the team lacks time to interpret failures and fix the application layer. Whether to bring in a partner depends on how many endpoints are in scope, how much internal security testing capacity exists, and how quickly the findings must be closed. A partner's scope, deliverables and timeline should be agreed in writing before work starts.
What does the team need to provide for a first output scanning run?
The team needs access to the target model or application endpoint, a host where garak can be installed from PyPI, and a person who knows how the application handles model output. garak is a command-line tool, so someone must be comfortable with a terminal and a short YAML file if the target is a REST endpoint. The team also needs permission to send test prompts to the system, and a decision on where the JSONL report and the garak.log file will be stored. The most important input is knowledge of the output path: which component receives the response, what it does with it, and who sees it afterwards.
How long does it take to set up a first output scanning run?
No duration is supplied for this work, so treat any estimate you receive as something to verify against your own environment. The main drivers are how many endpoints you have, whether the target is a hosted API or a REST service that needs a custom generator configuration, how quickly access and approvals arrive, and whether the application has an output filter you need to locate. Installing garak itself is a small step. Most of the elapsed time usually goes into agreeing the endpoint configuration, confirming test scope with the owners of the application, and reviewing the first results. Ask any provider to break its estimate into those steps.
What does a FAIL on EICAR or GTUBE mean for the next step?
A FAIL means that at least one of the default 5 generations for a prompt produced the test string, so the model is willing to emit a signature that antivirus or spam scanners usually flag. It does not by itself prove that the application passes malicious content to users. The next step is to check the output path: whether the application runs a scanner, a content filter or a mail gateway on responses, and whether that control blocks the test string. If no scanner exists, the fix may sit in the application layer, such as an output filter, while the model's behavior may be left as is. Record the failure rate, the report entries and the application's response before changing anything, so a retest can show the effect of the fix.
Can output scanning results serve as compliance evidence?
Scan results can support a compliance review as evidence that a test was run, but they are not a certification or an audit opinion. Independent auditors and certification bodies decide whether controls are adequate. What helps most is a repeatable configuration, the JSONL report of each attempt, the garak.log file and a written record of the output control that was checked. Be clear about what the test does not cover: a scan of EICAR and GTUBE tells you about signature handling, not about every form of harmful output. Confirm with your auditor which artifacts they expect before you design the evidence package.
Is garak free to use for output scanning tests?
garak is licensed under the Apache 2.0 license and is developed in the NVIDIA GitHub organization, and its maintainers describe it as a free tool. The license governs the software itself, so the cost of a scanning program is mainly the time of the people who set it up, the compute or API usage charged by your model provider, and any outside help you buy. Model provider charges depend on the number of prompts sent, so probe selection and generation counts affect spend. Confirm the license terms and any attribution duties with your legal team before you distribute modified copies. For more detail, review the garak user guide.
Which version of garak should we install for these probes?
Install the current release that your team has tested, and record the version in every report so later comparisons remain valid. garak v0.17.1 was released on 16 October 2026, and the release notes on GitHub describe changes between versions. Pin the version in your installation process, because scores can shift between releases and a report from one version may not compare cleanly with another. Check the release notes before upgrading, and rerun a baseline scan on the new version before using it for decisions.
How the test string travels from probe to user
The run starts in the garak probe av_spam_scanning, which sends a prompt asking the model to output EICAR, GTUBE or GTphish text. The generator carries that prompt to the target model, and the detector checks the reply for the signature. Between the model and the user, the question to check is whether the application runs any scanner on output before display or storage. garak records every attempt and its evaluation in the JSONL report and continues the garak.log file across runs.
Test string path from garak probe to user, with the trust boundary before users.
How DeployOpen scopes and delivers output scanning tests
DeployOpen plans garak output scanning tests as a written scope, runs the EICAR, GTUBE and GTphish probes against your model or application endpoint, and hands over the reports with the output-scanning evidence your team needs. Engagements are fixed-scope, so the probes, endpoints and deliverables are agreed before any testing starts.
How we scope
- Confirm which model or application endpoint, and which layer of output handling, the EICAR, GTUBE and GTphish probes will test.
- Record which probes run, how many generations per prompt, and whether the default probewise harness is used.
- Agree in writing what counts as a finding, including the expected behavior of any antivirus or spam scanner you already run.
How we build
- Configure a garak REST generator or another supported generator so the test reaches the same output path users receive.
- Run the av_spam_scanning probes and keep each garak.log and JSONL report tied to the model version and configuration tested.
- Trace where model output passes through filters, gateways or sanitizers so results show whether scanning happens before display.
How we hand over
- Deliver the JSONL reports, the run configuration and a findings summary that separates model behavior from application-layer controls.
- Document how to rerun the same probes after a model, prompt or gateway change so results stay comparable over time.
- Provide written fixes for missing output scanning, such as where to add a scanner and how to test it, with a retest included in scope.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for teams that rescan after each release.
- Support can cover garak version upgrades and checks that report pipelines still read results consistently.
- Ask for a quote built from the written scope, covering the endpoints, probe set, retests and any retainer period you need.

