Hulo Global home
For Vendure Vendure edition: for Vendure 3.5+ shops, installed with npm. Also available for WordPress: Fraud Prevention for WordPress
For Vendure

Fraud Prevention for Vendure: user manual

Overview

Fraud Prevention risk-scores every order server-side the moment it is placed. There is no storefront integration to add and nothing a fraudster can bypass by skipping your checkout JavaScript — the assessment runs inside Vendure on OrderPlacedEvent.

Weighted signals roll up to a 0–100 score:

  • Velocity — orders per IP per hour/day, orders per email identity per day, daily spend per identity. Emails are canonicalised first: x+1@gmail.com, x+2@gmail.com and x.y@gmail.com count as one identity.
  • Lists — your manual allow/block entries plus daily-synced threat feeds (FireHOL Level 1, Spamhaus DROP, Tor exit nodes, ~3,500 disposable-email domains). CIDR ranges are matched properly.
  • Payment behaviour — failed/declined payment attempts from the same IP within the hour, and the card checks from the issuer: AVS postcode/address, a failed CVC check, and card country different from billing.
  • Order shape — value ceilings, first-order-high-value, high-risk countries (your list).

Per-channel thresholds decide the outcome: below the review threshold the order flows normally; in hold mode (free) a block-level order is refused before the charge; in enforce mode (licensed) an order at or above the review threshold is held for review, and at the block threshold the customer is additionally told the order is being verified. Every assessment is written to a filterable audit log. Signal weights, thresholds, lists, the simulator and lookup are free (see Free and licensed).

Install

One package, one line of config. Tables are created automatically on boot.

# 1. Install yarn add @huloglobal/vendure-plugin-fraud-prevention # 2. Register in vendure-config.ts import { FraudPreventionPlugin } from '@huloglobal/vendure-plugin-fraud-prevention'; export const config: VendureConfig = { plugins: [ FraudPreventionPlugin.init({ publicBaseUrl: 'https://shop.example.com', licenceKey: process.env.HULO_LICENCE_KEY_FRAUD_PREVENTION, }), ], }; # 3. Admin UI — add to your compileUiExtensions extensions array: FraudPreventionPlugin.uiExtensions

Orders need an IP for the IP-based signals — store it in the Order.customFields.ip custom field at checkout.

IP intelligence (VPN, proxy and hosting detection, IP country vs billing country) is opt-in: switch it on under Settings → IP intelligence and paste your own ip-api.com Pro key. Lookups go over HTTPS to pro.ip-api.com; private and reserved addresses are never sent, and answers are cached for 30 days.

Modes & thresholds

Each channel runs in one of four modes:

  • Off — orders are still scored and logged as shadow, so you can see what protection would have caught; nothing else happens.
  • Monitor — every order scored and logged; risky orders flagged but never held. The recommended starting point: watch the Activity tab for a week, then tune.
  • Hold (free) — every shop order is scored when it moves to ArrangingPayment, before any payment is taken. A block-level score, or an address in its failed-payment cooldown, is refused with a neutral message and logged as refused. Admin draft orders are never refused, and the check fails open on any internal error.
  • Enforce (licensed) — everything Hold does, plus: orders scoring ≥ the review threshold open a case in the Review queue and licence keys / downloads wait for approval. Orders ≥ the block threshold also email the customer that the order is under verification. Without a licence, enforce works as hold.

Defaults: review at 40, block at 70. The status sentence at the top of the admin page always describes, in plain English, exactly what the current configuration will do.

Review queue

With a licence or during the evaluation, held orders land in the Review queue with their score, the exact signals that fired (with per-signal point contributions), customer identity and age.

  • Approve — releases fulfilment and captures any authorised payment; the customer gets your approved-order email.
  • Reject — cancels the order and notifies the customer with your rejection email (refund timeline + a human-appeal path in the default copy). Add notes; everything is audited.

Customer messages are templates, per channel: held / approved / rejected each have an editable subject + body with {{orderCode}}, {{firstName}}, {{supportEmail}} and {{reviewHours}} variables, live preview and reset-to-default (Settings tab). A per-channel policy decides when held customers are told: never, block-level only (default), or always.

Ops alerts (licensed, monitor-mode alerts included) fan out to every channel you configure — Slack, Discord, Microsoft Teams, Telegram, and a generic JSON webhook signed with HMAC-SHA256 (X-Hulo-Signature) for custom integrations. Held, approved, rejected and auto-released cases all ping.

Fulfilment hold integration: if your fulfilment is custom, gate it with one call:

import { FraudPreventionService } from '@huloglobal/vendure-plugin-fraud-prevention'; const held = new Set(await this.fraudService.heldOrderIds()); // open + rejected cases if (held.has(orderId)) continue; // wait for a human if (!(await this.fraudService.isAssessed(orderId))) continue; // not scored yet, try again shortly

For fulfilment outside Vendure, the HTTP fulfilment gate (licensed) answers GET /fraud-prevention/gate/:orderId with releasable, and GET /fraud-prevention/held with the order ids never to fulfil.

Lists & threat feeds

Two manual lists ride on top of the feeds:

  • Allowlist — emails, email domains or IPs that bypass every check. Add your test accounts and key B2B customers here.
  • Blocklist — manual bans: emails, domains, IPs, or CIDR ranges.

Built-in threat feeds

These sync automatically every night at 03:00 (licensed installs) and can also be synced on demand from the Lists tab. All are free, reputable public sources:

FeedWhat it coversTypeSource
FireHOL Level 1High-confidence malicious IPs & ranges (attacks, spam, C2), aggregated from dozens of sources — the safest IP feed to enforce.IP / CIDRiplists.firehol.org
Spamhaus DROPHijacked and leased netblocks used by professional spammers and cybercriminals.CIDR rangesspamhaus.org/drop
Tor exit nodesLive Tor exit relays — legitimate for privacy, but a common origin for card testing.IPcheck.torproject.org
Disposable email domains~3,500 throwaway / temporary-mailbox providers (mailinator, guerrillamail, …).Email domaincommunity list

Other feeds you can layer in

Add your own feeds. In the Lists tab, paste any public line-based blocklist URL (one entry per line, # comments ignored), pick its type (IP, CIDR range, email or email-domain), and it syncs nightly alongside the built-ins and is matched exactly the same way — CIDR ranges included. Some popular options:

FeedWhat it coversSource
FireHOL Level 2–4Progressively broader IP reputation — higher coverage, higher false-positive risk. Try in monitor mode first.iplists.firehol.org
IPsumDaily aggregate of IPs seen attacking honeypots, ranked by how many lists flag each one.github.com/stamparm/ipsum
blocklist.deIPs reported for SSH / mail / web attacks in the last 48 hours.lists.blocklist.de
Emerging Threats — compromised IPsKnown-compromised hosts, updated frequently.rules.emergingthreats.net
StopForumSpamEmails & IPs tied to spam sign-up abuse — useful against fake-account fraud.stopforumspam.com
AbuseIPDBCommunity-reported abusive IPs with a confidence score (free API key).abuseipdb.com
Roll out safely: start any new feed in monitor mode and watch the Activity tab for a few days before enforcing. Broad IP feeds occasionally catch shared carrier-grade NAT or corporate-proxy addresses that real customers sit behind, so it pays to see the hits before they can hold an order.

Simulator

Free. The Simulate tab runs the full assessment for a hypothetical order — email, IP, value, country, first-time-customer flag — against live data (velocity counts your real recent orders) and shows the signal-by-signal score breakdown. Nothing is logged and nothing is held. Use it to sanity-check threshold changes before switching a channel to enforce.

Free and licensed

Every new installation has every feature on for its first 14 days, with no card and no licence key. After that the plugin keeps running in its free tier for as long as you like; a licence keeps the licensed features on. If a licence lapses, the licensed features stop and nothing is deleted: settings and data are kept, and a key switches them back on.

Free tier

  • A risk score and its signals on every order, unpaid ones included, a failed CVC check and card country different from billing among them
  • Allow and block lists, custom signal weights, the simulator and customer lookup
  • Hold mode: block-level orders refused before the charge
  • Order limits in each order's own currency
  • The activity log with the retention you set, and a risk column on the orders list
  • A notice when a misconfigured proxy hides your customers' IP addresses
  • Extension events for your own code
  • IP intelligence, opt-in, with your own ip-api.com Pro key

Licensed (and the first 14 days)

  • Enforce mode with the review queue; approving captures the payment
  • The HTTP fulfilment gate
  • Threat feeds (FireHOL, Spamhaus, Tor, disposable e-mail) and your own feed URLs
  • E-mail and chat alerts, monitor-mode alerts included
  • The weekly report and set-up checklist

Buy a monthly, annual (two months free) or lifetime licence from the plugin page, or click Subscribe (or Buy lifetime) on the licence banner of the plugin's admin page: checkout opens in a new tab and the key installs itself within a minute, renewals included. Already have a key? Paste it into the same banner (Activate), no redeploy, or set HULO_LICENCE_KEY_FRAUD_PREVENTION; the environment key wins when both are present.