Skip to main content
Challenge

Secure Point-of-Sale Contactless Payment Gateways with LangChain and Garak

Retail contactless payment switches face prompt injection and transactional data exposure threats when integrating LLM-assisted features. Build a LangChain payment security agent and evaluate its defenses using Garak vulnerability scanners to maintain 100% compliance with PCI-DSS agentic guidelines.

CybersecurityHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Develop a LangChain transaction guardrail agent and stress-test its vulnerability surface against adversary probes using the Garak evaluation framework.

Delivery guide

How work is evaluated

Evaluation

Executes automated Garak attack suites against the LangChain contactless gateway agent.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

Zero PAN Exposure Test

Ensures no payment tokens are revealed under injection attacks.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

Jailbreak Block Rate

Ratio of blocked injection attempts. • target: 1 • range: 0.99-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Construct a LangChain agent using LangGraph to process EMV contactless payment payloads safely.

  • Configure Garak vulnerability probes to test for payment token exfiltration via prompt injection.

  • Implement prompt sanitization and output validation chains to block untrusted terminal payloads.

  • Generate PCI-DSS compliance vulnerability reports automatically.

Resources and assets

Reference links and supporting material

Dataset notes

Adversarial POS terminal payload dataset containing merchant description injection strings.

Challenge setup

Executes automated Garak attack suites against the LangChain contactless gateway agent.

Challenge input

Terminal merchant narrative containing adversarial jailbreak strings

LangChain

Builds structured transaction analysis flows.

Garak

Scans for LLM security vulnerabilities and prompt injection paths.

Evaluated output

JSON report detailing pass/fail status per security probe

Evaluation checks
  • Ensures no payment tokens are revealed under injection attacks.
  • Ratio of blocked injection attempts. • target: 1 • range: 0.99-1
Configured evaluation evidence
  • Benchmark: GarakPOSBench
  • Jailbreak Block Rate target: 100%
  • 1 public reference case
Configured runtime
  • Python execution harness
  • Python sandbox (unavailable on Versalist)

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • Langchain · Required
  • LangChain · Optional
Reward / Eval
  • Garak · Optional
Safety / Guardrails
  • Garak · Optional
Orchestration
  • Langchain · Required
  • LangChain · Optional

Evaluation contract

  • Zero PAN Exposure Test · Weight 1
  • Jailbreak Block Rate · Weight 1

Metrics

  • Jailbreak Block Rate · Target 1

Benchmarks

  • GarakPOSBench
  • security

Reference cases

  • 1 public reference case

Workflow tasks

  1. Task 1

    Input: Terminal merchant narrative containing adversarial jailbreak strings

    Output: JSON report detailing pass/fail status per security probe

    Execution harness: Python

Evaluation tools

  • LangChain · Agent Framework
  • Garak · AI Vulnerability Scanner

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Secure Point-of-Sale Contactless Payment Gateways with LangChain and Garak