Testing output scanning with garak's EICAR and GTUBE probes

garak's av_spam_scanning probes ask a model to emit EICAR, GTUBE and GTphish test strings, showing whether anything downstream scans model output before users see it.

On this page

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.

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.

OptionWhat it doesWhen it fits
Probe family alone (EICAR, GTUBE, GTphish)Runs only the three signature prompts, so results isolate whether the target emits known test stringsFirst 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 scanAdds the av_spam_scanning probes to other families, so signature results sit beside jailbreak and leakage resultsRoutine or release scans where one report should cover all output-side risks for the same target
Default 5 generations per promptEach probe prompt is sent five times, and one undesirable output marks the probe FAIL with a failure rateBaseline runs where a single signature in any attempt should be visible, since sampling can vary between attempts
Changed generation countFewer generations lower request volume but can miss intermittent output; more generations raise sampling coverage and request volumeFewer 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 detectorsRuns each probe with the detectors the probe recommends, so scoring follows the signature the probe targetsDefault for most runs, because the detector scores the exact string the probe asked for
JSONL reportRecords every attempt, its output and its evaluation, so you can check which generations produced the stringEvidence for security reviews and for comparing a model or filter before and after a change
garak.log fileKeeps debugging detail across runs, including generator errors and connection failuresDiagnosing 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.

  1. 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 --version and 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.

  2. 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 is garak --help running without errors and printing the command options. Also record the installed version with pip show garak, because scores can shift between releases and you will need that version for comparisons.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.