Ayzal AIAYZAL .AI
Back to Knowledge Base
Rule Building

Composite Rule Catalog — Ayzal AI FRM

Complete guide to building single, cumulative, velocity, fanout, and composition rules.

Updated 2026-10-19

Composite Rule Catalog & Step Examples

Below are the rules you can build today with the current step types, followed by a detailed breakdown of the step catalog and a real-world application.

Quick Reference: Which Step for What

Detection type Best step(s)
Single row condition field_compare, field_in_range, field_in_list
Two-column compare field_equals, field_mismatch, fuzzy_match, name_email_match
Time-of-day time_of_day
Row count per entity count_total, count_events
Distinct count per entity count_distinct
Shared entity shared_entity
Multi-hop entity_chain
Sum per entity sum_amount, average
Ratio ratio
Outlier amount_spike
Watchlist field_in_list, email_domain_check
Tier trust_tier

Deep Dive: The Entity Chain Rule

The entity_chain step is the most powerful tool for detecting circular fraud rings and multi-hop money laundering.

What it does: It starts with an entity on the current transaction (e.g., a card_fingerprint), follows it to a linked entity (e.g., an email), and then follows that to a third entity (e.g., another card_fingerprint). It counts how many distinct endpoints exist at the end of the path.

Why it matters: Fraudsters use mule networks and circular flows to hide money. A single card might look clean, but if it shares an email with 5 other cards that are all making transfers to each other, an entity_chain rule catches the whole ring.

How to configure it:

  1. Select the step Entity chain A to B to C.
  2. In the Path builder, select the entities in order (e.g., card_fingerprint -> email -> card_fingerprint).
  3. Set Threshold Endpoints to the minimum number of distinct entities required to trigger an alert (e.g., 2).

Example: Circular Ring Detection


A. Card Fraud (CC_TEST / POS)

# Rule Name Steps Fires on
A1 Card testing field_compare status=Failed + count_events entity=card_fingerprint >= 5 in 1h Scripts cycling many cards
A2 Micro-amount card testing field_compare amount <= 5 + count_events entity=card_fingerprint >= 3 in 1h $0.99 auth probes
A3 Card fanout to emails count_distinct source=card_fingerprint target=customer_email >= 3 in 30d One stolen card, many accounts
A4 Email fanout to cards count_distinct source=customer_email target=card_fingerprint >= 3 in 30d One account cycling stolen cards
A5 Shared card across customers shared_entity card_fingerprint >= 3 in 30d Fraud ring sharing a BIN
A6 Geo mismatch + high amount field_mismatch card_issue_country != card_address_country + field_compare amount >= 5000 Cross-border stolen card
A7 Blocked country + prepaid field_in_list card_issue_country list=country + field_compare card_funding=prepaid Sanctioned region, prepaid funding
A8 Name/email mismatch + high risk name_email_match customer_name vs customer_email < 0.4 + field_compare risk_score >= 0.7 Synthetic identity
A9 Multiple cards per customer in 24h count_distinct source=customer_id target=card_fingerprint >= 5 in 24h Account takeover or card testing
A10 Velocity burst on a card count_events entity=card_fingerprint >= 8 in 30min Immediate multi-hit
A11 Dispute ratio per card ratio numerator={status:'disputed'} denominator={status:'paid'} > 0.3 Chargeback farm
A12 Cross-border card + IP mismatch field_mismatch card_issue_country != ip_country + field_in_list ip_country list=country VPN evasion
A13 Blocked card + new email field_in_list card_fingerprint list=card + count_distinct source=customer_email target=card_fingerprint >= 1 Blocklisted instrument reuse
A14 New card, immediate high-value count_events entity=card_fingerprint >= 1 in 1h + field_compare amount >= 10000 Fresh card cloned
A15 Multiple BINs from same device count_distinct source=card_fingerprint target=card_bin >= 4 in 7d BIN walking
A16 BIN walking via device count_distinct source=device_id target=card_bin >= 4 in 24h Single device testing different BINs
A17 Decline velocity on BIN field_compare status='declined' + count_events entity=card_bin >= 20 in 1h BIN range hammered with declines
A18 Micro-auth then high-value field_compare amount <= 1.00 + count_events entity=card_fingerprint >= 2 in 10m + field_compare amount >= 5000 Test $1, then buy $5,000

B. Wallet Fraud

# Rule Name Steps Fires on
B1 Mule pass-through field_compare nature=debit + sum_amount entity=source_account >= 100000 in 7d where_prior_steps=ON + count_total entity=source_account >= 50 in 30d where_prior_steps=ON High-volume drain
B2 Beneficiary fanout field_compare nature=debit + count_distinct source=source_account target=dest_account >= 5 in 30d where_prior_steps=ON One mule, many beneficiaries
B3 Destination fanin field_compare nature=debit + shared_entity dest_account >= 5 sources in 7d Many mules to 1 collector
B4 Round-amount structuring field_compare nature=debit + field_in_range amount 500-10000 + count_events entity=source_account >= 5 in 1h Smurfing
B5 Off-hours burst time_of_day hour 0-5 + count_events entity=source_account >= 3 in 24h Midnight layering
B6 Self-referential loop field_equals source_account=dest_account + count_total entity=source_account >= 5 in 7d Circular flows
B7 Rapid in/out velocity count_events entity=source_account nature=['debit'] >= 10 in 1h + count_events entity=source_account nature=['credit'] >= 10 in 1h Same-hour churn
B8 High value + new destination field_compare amount >= 50000 + count_distinct source=source_account target=dest_account = 1 in 30d First-time large transfer
B9 Amount spike vs baseline amount_spike entity=source_account multiplier=5 lookback=90d Outlier transfer
B10 Trust tier downgrade + burst trust_tier tiers=['Low'] operator=in + count_events entity=source_account >= 5 in 24h Risky tier rapid activity
B11 Multiple source accounts to same dest count_distinct source=dest_account target=source_account >= 4 in 7d Structured collection
B12 Same mobile, multiple accounts count_distinct source=mobile_no target=source_account >= 3 in 30d One person running multiple mules
B13 Debit-only account count_events entity=source_account nature=['debit'] >= 50 in 30d + count_events entity=source_account nature=['credit'] <= 5 in 30d Fund source, not receiver
B14 Ring hub detection shared_entity device_id >= 3 + count_distinct source=device_id target=customer_id >= 4 in 7d One device accessing multiple accounts
B15 Circular fund flow entity_chain path=[source_account, dest_account, source_account] + sum_amount >= 10000 in 24h Money loops back to origin
B16 Dormant account activation trust_tier = 'Dormant' + count_events entity=customer_id >= 1 in 1h + shared_entity ip_address >= 5 Dormant accounts activate from same IP

C. AML / Money Laundering

# Rule Name Steps Fires on
C1 High-risk country transfer field_in_list dest_country list=country + field_compare amount >= 10000 Sanctioned/risky corridor
C2 Structuring below threshold field_in_range amount 9000-9999 + count_events entity=source_account >= 3 in 24h Just-below-CTR pattern
C3 Layered chain entity_chain path=[source_account, dest_account, source_account_2] threshold_endpoints=3 Multi-hop laundering
C4 New account, large flow trust_tier tiers=['New'] operator=in + sum_amount entity=source_account >= 100000 in 30d Account warming
C5 Round-trip entity_chain path=[source_account, dest_account, source_account] threshold_endpoints=2 Funds returning
C6 Cross-border + cash field_in_list country list=country + field_compare channel='branch' Cash-out in risky region
C7 Beneficiary in sanctioned list field_in_list dest_account list=customer + field_in_list dest_country list=country Known bad actor
C8 Same-day credit to debit matching count_events entity=source_account nature=['credit'] >= 5 in 6h + count_events entity=source_account nature=['debit'] >= 5 in 6h Same-window mule
C9 Unusual hour + sanctioned destination time_of_day hour 22-6 + field_in_list dest_country list=country Evasion timing
C10 Multiple accounts same beneficiary count_distinct source=dest_account target=source_account >= 10 in 30d Collection hub
C11 Spike + cross-border amount_spike multiplier=3 + field_mismatch source_country != dest_country Sudden international outflow
C12 Ratio credits/debits near 1 ratio numerator={nature:'debit'} denominator={nature:'credit'} between 0.9 and 1.1 + count_total entity=source_account >= 20 Classic mule signature

D. Identity / Synthetic Fraud

# Rule Name Steps Fires on
D1 Name vs email mismatch name_email_match name=customer_name email=customer_email < 0.4 Stolen credentials
D2 Disposable email + high amount email_domain_check customer_email in=[mailinator, guerrillamail] + field_compare amount >= 5000 Fake account
D3 Card name differs from card holder fuzzy_match card_name vs account_holder_name < 0.5 Third-party card use
D4 Address mismatch + dispute field_mismatch card_address_zip != billing_zip + field_compare dispute_status='open' Fraud claim after delivery
D5 New email, immediate spend count_events entity=customer_email >= 1 in 1h + field_compare amount >= 5000 Fresh account abuse
D6 Same phone, many identities count_distinct source=mobile_no target=customer_email >= 4 in 30d One actor, multiple personas
D7 Thin file burst count_events entity=ssn >= 3 in 30d + count_distinct source=ssn target=customer_name >= 3 One SSN, multiple names
D8 Disposable email + high velocity email_domain_check customer_email in=[mailinator, guerrillamail] + count_events entity=customer_email >= 5 in 1h Throwaway email, rapid account opening

E. Account Takeover

# Rule Name Steps Fires on
E1 Impossible travel count_distinct source=client_id target=ip_country >= 2 in 1h Two countries in 1h
E2 Password reset + immediate spend field_compare event_type='password_reset' + count_events entity=client_id >= 1 in 24h Reset then purchase
E3 New device + high amount count_events entity=device_id >= 1 in 1h + field_compare amount >= 5000 Fresh device abuse
E4 Failed logins then success field_compare status='Failed' + count_events entity=client_id >= 5 in 1h + field_compare status='Success' Brute force succeeded
E5 Trust tier sudden activity trust_tier tiers=['VIP'] + amount_spike multiplier=10 VIP compromise

F. Policy / Compliance

# Rule Name Steps Fires on
F1 Blocklisted entity reused field_in_list card_fingerprint list=card Any activity on blocked entity
F2 Country sanction + prepaid card field_in_list card_issue_country list=country + field_compare card_funding='prepaid' Sanction evasion
F3 Trust tier breach trust_tier tiers=['Blocked','Low'] + count_total entity=client_id >= 1 Activity on downgraded tier
F4 Manager override frequency field_compare override_by='manager' + count_events entity=client_id >= 5 in 24h Policy abuse

Part 2: Composite steps catalog with examples

Here is a detailed breakdown of every step type, what it does, and how to configure it.

Category: Value Check (Single row filter)

Step What it does Example
Field [op] value (field_compare) Compare one column to a constant amount >= 10000, nature = debit
Field [op] range (field_in_range) Between two values amount between 5000 and 50000
Field value in a fraud list (field_in_list) Field matches a watchlist card_fingerprint in block_card
Transaction hour in range (time_of_day) Hour filter hour between 1 and 5
Email domain in/not in list (email_domain_check) Domain match customer_email domain NOT IN [gmail, yahoo]

Category: Comparison (Two columns on same row)

Step What it does Example
Field A equals Field B (field_equals) Same row equality customer_email = payer_email
Field A differs from Field B (field_mismatch) Same row inequality card_issue_country != card_address_country
Person name vs Email local-part (name_email_match) Fuzzy match name to email JULIA CALDERON vs yogaconjulia@gmail.com
Fuzzy similarity of A vs B (fuzzy_match) Generic string similarity card_name vs statement_descriptor

Category: Entity Count

Step What it does Example
Count all transactions by entity (count_total) Row count per group customer_id has >= 5 txns in 24h
Count events by entity with status (count_events) Filtered count customer_email has 3+ Failed in 24h
Count distinct targets per source (count_distinct) Fanout card_fingerprint linked to 3 distinct emails

Category: Relationship

Step What it does Example
Shared entity used by others (shared_entity) Shared across subjects card_fingerprint shared by 3+ customer_ids
Entity chain A to B to C (entity_chain) Multi-hop traversal card to email to another card

Category: Aggregation

Step What it does Example
Sum of [field] per entity (sum_amount) Cumulative sum source_account: sum(amount) >= 10000 in 24h
Average of field per entity (average) Mean per group customer_id: avg(amount) < 500
Ratio A/B crosses threshold (ratio) Ratio of two counts customer_id: failed/paid > 0.6
Amount spike vs customer average (amount_spike) Outlier detection amount >= 5x customer 90d avg

See It in Your Own Data

Ayzal AI FRM combines composite rules, entity graph detection, and per-product ML models to stop fraud rings before they cash out. Start a free trial and send your first transaction in minutes.

Start Free Trial - NO CC Required