PluginBench
Skill
Pass
Audit score 90

affiliate-fraud-detection

mbfinotti/partnerships-skills

Detect and investigate fraudulent affiliate activity with rule sets, hold windows, and escalation paths.

What is affiliate-fraud-detection?

This skill helps affiliate program managers build detection rules to flag fraudulent partner activity—cookie stuffing, fake leads, self-referral rings, and bot traffic—across B2B SaaS and B2C ecommerce programs. Use it when suspicious affiliate traffic, invalid clicks, or unusually high-performing partners appear, even if fraud isn't explicitly mentioned.

  • Rank four control levers (hold window, detection rules, clawback clauses, new-partner terms) by value, effort, compliance cost, and efficiency for your program
  • Derive traffic-quality baselines and write detection rules for GIVT (general invalid traffic) and SIVT (sophisticated invalid traffic) patterns
  • Distinguish legitimate low-incrementality partners (coupon, cashback, retargeting) from actual fraud
  • Design investigation and escalation workflows with commission holds and clawbacks
  • Separate B2B lead-gen fraud signals from B2C click-timing and chargeback patterns

How to install affiliate-fraud-detection

npx skills add https://github.com/mbfinotti/partnerships-skills --skill affiliate-fraud-detection
Prerequisites
  • Access to affiliate transaction data (clicks, conversions, commissions, chargebacks)
  • Ability to configure hold windows or payment delays on your affiliate platform
  • Legal review capacity if implementing clawback clauses or cross-account identity rules
Claude Code
Cursor
Windsurf
Cline

How to use affiliate-fraud-detection

  1. 1.Interview your program: platform constraints, team capacity, partner roster size, and existing controls (postbacks, fraud analyst, chargeback reserve)
  2. 2.Re-rank the four control levers (hold window, detection rules, clawback clauses, new-partner terms) against your constraints
  3. 3.Set a hold/validation window of 30-90 days if your platform supports it—this alone eliminates >70% of fraud
  4. 4.Derive traffic-quality baselines from your own data; label every threshold with its source (vendor rule, academic result, or your baseline)
  5. 5.Write detection rules for GIVT (bots, data-center IPs, non-browser agents) and SIVT (cookie stuffing, adware, hijacked devices) patterns
  6. 6.Separate B2B and B2C signals: B2C fraud surfaces in click-timing and chargebacks within hours-to-days; B2B fraud surfaces in downstream conversion rates weeks later
  7. 7.Design an investigation workflow: flag suspicious partners, hold commissions, gather evidence, and escalate with clawback authority if warranted
  8. 8.Treat low-incrementality coupon, cashback, and retargeting partners as legitimate repricing problems, not fraud

Use cases

Good for
  • An affiliate's conversion rate suddenly spikes 3x; investigate whether it's cookie stuffing, self-referral rings, or legitimate traffic-quality improvement
  • Set a 30-90 day hold window before paying commissions to eliminate 70%+ of fraud without detection rules
  • Design clawback clauses and negative-balance carry-forward for programs exposed to chargebacks on high-ticket or subscription sales
  • Flag form-fill fraud in B2B lead-gen by tracking downstream conversion rates weeks after submission
  • Audit a partner roster under 20 affiliates by hand inspection rather than statistical outlier detection
Who it's for
  • Affiliate program managers and partnership leads
  • Fraud analysts and compliance teams
  • SaaS and ecommerce revenue operations
  • Network operators and platform compliance roles

affiliate-fraud-detection FAQ

Should I build detection rules before setting a hold window?

No. Set the hold window first—a 30-90 day payment delay eliminates >70% of fraud without any detection algorithm. Then build rules to identify which partners to investigate during the hold period.

What's the difference between GIVT and SIVT?

GIVT (general invalid traffic) is caught by routine filtering: known bots, data-center IPs, non-browser user agents. SIVT (sophisticated invalid traffic) requires advanced analytics: hijacked devices, adware, cookie stuffing. Both need corroboration.

How do I separate real fraud from legitimate low-incrementality partners?

Coupon, cashback, loyalty, extension, retargeting, and brand-search partners are legitimate by default. Treat them as repricing problems, not fraud. Only flag partners whose traffic patterns show observable tells: cookie-drop timing, chargeback spikes, or fake form-fills with zero downstream conversion.

Can I use vendor fraud-detection claims as industry benchmarks?

No. Label every numeric threshold with its source: vendor rule of thumb, academic result, or a baseline you derive from your own data. The famous '17% of affiliate traffic is fake' figure is single-vendor marketing with circular citation. Avoid it.

What if my platform can't configure a hold window?

Delete that control from your plan and say so explicitly. Your remaining levers are detection rules, new-partner terms, and clawback clauses. Promote clawback clauses to the top if you sell subscriptions, high-ticket goods, or have already paid out on chargebacks.

Full instructions (SKILL.md)

Source of truth, from mbfinotti/partnerships-skills.


name: affiliate-fraud-detection description: Build the detection rule set an affiliate program manager uses to flag fraudulent affiliate activity, plus the investigation and escalation path behind it - cookie stuffing, fake lead and form-fill fraud, self-referral rings, traffic-quality baselines, commission holds and clawbacks, and separating real fraud from legitimate low-incrementality coupon or cashback partners. Covers B2B SaaS lead-gen and B2C ecommerce programs. Use whenever the user mentions affiliate fraud, suspicious affiliate traffic, invalid clicks or leads, bot traffic, or an affiliate whose numbers look too good, even if they never say fraud. Do NOT use for consumer refer-a-friend gaming - use mbfinotti/partnerships-skills@referral-abuse-guardrails instead. license: MIT metadata: author: Maya-Beth Finotti version: "1.1.1"

Affiliate Fraud Detection

Build the rule set a program owner uses to flag fraudulent affiliate activity, then investigate and escalate it. This is a defensive skill: it protects programs from being defrauded, and describes each fraud pattern only to the depth needed to recognize it.

No canonical affiliate-fraud detection framework exists. The only ratified standard is the IAB/MRC invalid-traffic split, an ad-measurement standard the affiliate industry borrows rather than one written for affiliate programs:

  • GIVT - caught by routine list filtration: known bots, data-center IPs, non-browser user agents.
  • SIVT - needs advanced analytics and corroboration: hijacked devices, adware, cookie stuffing.

The PMA's Toolbar and Software Industry Standard is a voluntary, non-binding proposal, not a ratified standard. Force-fit no other framework.

The single highest-leverage control is a commission hold/validation window of 30-90 days, not a detection algorithm. The strongest independent evidence agrees: Edelman's research (related to Edelman & Brandi, JMR 2015) found delaying affiliate payments by two to four months could eliminate more than 70% of fraud without decreasing profit.

Control Leverage

Four controls compete for the hours before the next payout cycle. Rank them before writing a single rule.

  • value (most first): hold window > clawback clause set > detection rule set > new-partner terms
  • effort (most first): clawback clause set > detection rule set > new-partner terms == hold window
  • compliance cost (most first): clawback clause set > hold window == new-partner terms > detection rule set
  • efficiency (best first): hold window > detection rule set > new-partner terms > clawback clause set
ControlWhat it buysWhat it costs
Hold/validation window, 30-90 daysMost fraudulent commissions never leave the account - the >70%-of-fraud result above, at no cost to profitAn hour: one platform setting, reversible the day it changes. Alters terms a partner already accepted, so it carries a notice obligation
Detection rule set (this skill's deliverable)Names which partner to act on and produces evidence an enforcement action can stand onA week to derive baselines and write rules, then a standing triage job. Near-zero compliance cost until a rule reads cross-account identity data, which inherits the [LEGAL REVIEW] gate
New/high-risk partner terms (net-60/90, stricter filters)Narrows exposure to the cohort that produces most first-incident fraudAn hour, and tied with the hold window on both effort and exposure for a real reason: same settings page, same person, same reversibility, same notice obligation - only the edited field differs
Clawback + negative-balance carry-forward + chargeback reserveThe only control that recovers money already paid, and the sole cover for the 120-540 day chargeback tail no hold window reachesA quarter: legal drafting and partner re-assent, barely reversible once shipped. Clawing back a paid commission without these clauses is itself a breach

Set the hold window first, then build the rule set; a program missing both has no working control however good its detection gets.

The efficiency order starves the clawback clause set - top of the value axis, bottom of the ratio, so it loses every round. Promote it above everything else when the program sells subscriptions, high-ticket, or delayed-delivery goods, or has already paid out on a chargeback: there, the only control that touches money already gone is the one the ratio ranks last.

Re-Rank Before Delivering

Every ordering in this skill is a default, not a law. It shifts with the program and with who executes it, so re-rank it against what the Interview told you:

  • The platform cannot configure a hold window → delete that rung from the deliverable and say so. A ruled-out control parked at the bottom of a plan comes back as scope. What remains is rule set > new-partner terms > clawback clause set, and the clawback clauses stop being optional.
  • Nobody has review hours → the 24-48h review under Hold & Investigate never happens. Route the rule set to Watch plus one monthly batch review, and let the hold window carry the program.
  • The roster is small enough to read by hand, roughly under 20 partners → 2-SD outlier math and per-event scoring are false precision on that sample. Inspect the partner list and skip the statistical rungs.
  • The user already owns something the order assumes away - server-side postbacks, a fraud analyst, a standing chargeback reserve - promote whatever that asset makes cheap.

Ground Rules

  • Recognize, never perpetrate: state the observable tell each pattern leaves in program data; write no evasion or how-to-build detail.
  • Label every numeric threshold with its provenance: vendor/agency rule of thumb, academic result, or a baseline the user derives from their own data. Never present a vendor heuristic as an industry constant.
  • Warn off headline loss statistics: the famous "17% of affiliate traffic is fake / $3.4B" figure is single-vendor marketing with circular citation.
  • Treat low incrementality as a repricing problem, never as fraud. Coupon, cashback, loyalty, extension, retargeting, and brand-search partners are legitimate by default.
  • Keep B2B and B2C signals separate. Say explicitly when a rule applies to both.
    • B2C fraud: a stolen-attribution sale, visible in click-timing, cookie-drop, and chargeback signals within hours-to-days.
    • B2B lead-gen fraud: a fake form-fill whose worthlessness surfaces weeks later in downstream rates.
  • Never assume the network does the policing: networks earn a share of commission volume, so their compliance is reactive - it acts on evidence-backed complaints, not brand-specific surveillance.
  • Expect AI-generated synthetic traffic to degrade behavioral heuristics (session duration, scroll depth); treat recent vendor detection-efficacy claims as unverified and weight server-side and downstream-outcome signals instead.

Interview

Ask before building anything:

  • One question per message.
  • Multiple-choice where possible.
  • Skip anything already answered.

Ask the first three questions below before any of the rest: the controls diverge by two orders of magnitude in time-to-effect and effort, and the answers decide the order everything downstream is delivered in.

  • By when must this rule set be protecting money - the next payout cycle, or a quarter out? A cycle puts the whole load on the hold window and band assignment and rules the clawback clause set out of scope; a quarter puts contract changes back on the table.
  • One-off cleanup of a partner you already suspect, or a standing control that compounds? One-off promotes the dossier and enforcement path and skips baseline derivation; standing promotes baselines, monitoring cadence, and the KPI loop.
  • Effort ceiling: how many review hours per week, who can amend partner terms, and who signs off on suspending a partner? No review capacity collapses Hold & Investigate into Watch; no contract authority deletes the clawback rung outright.
  • Program size: how many active affiliates, and roughly what monthly commission spend?
  • B2B lead-gen, B2C ecommerce, or both?
  • Which partner types and traffic sources are permitted: coupon, cashback, loyalty, browser extensions, paid search (brand bidding allowed?), email?
  • Tracking and attribution: last-click? Cookie window length? Client-side pixel or server-side postback?
  • Commission validation/hold window today, if any? Is clawback contractually authorized (negative-balance carry-forward, chargeback reserve)?
  • Any historical fraud incidents? What happened, and was any commission recovered?
  • Exactly which data can you query: click logs, conversion records, IP/device data, CRM lead outcomes, refund/chargeback records?

Workflow

  1. Run the Interview; collect every answer the rule set depends on.
  2. Confirm the scope boundary: this rule set flags illegitimate activity. Payout math, contract clauses, and refer-a-friend gaming belong to sibling skills (see Reference).
  3. Rank the four controls against those answers using Control Leverage above, then fix the money mechanics before writing a single rule. A rule set sitting on a 14-day hold window with no clawback authority flags fraud the program cannot act on.
  4. Derive baselines from at least 90 days of the user's own per-affiliate data: conversion rate, click-to-conversion time, refund/chargeback rate, and for B2B the lead-to-qualified and lead-to-demo-show rates. Read references/detection-signals.md for the signal catalogue and starting thresholds.
  5. Map the program's fraud surface from references/fraud-taxonomy.md: which patterns the permitted partner types and tracking setup actually expose it to.
  6. Draft the rule set in the Output Shape below: one row per rule, each carrying signal, threshold with provenance, severity band, and mandated action.
  7. Add false-positive protections from references/false-positives-and-incrementality.md: exclude legitimate checkout-moment partner behavior from fraud rules and route non-incrementality suspicions to holdout/geo testing instead.
  8. Attach the operating procedure from references/investigation-and-enforcement.md: monitoring cadence, evidence collection, dossier, escalation ladder, appeals, and clawback mechanics.
  9. Backtest against the Pass Threshold below; tune thresholds and iterate until both halves hold.
  10. Present the rule set section by section for user validation; deliver the full artifact with dossier template and KPI plan. Ground it in a matching worked example from references/worked-examples.md.
  11. If your harness has persistent memory, memorize the derived baselines, decided thresholds, and permitted-partner decisions so a later run starts from them instead of re-deriving.

Output Shape

Deliver a rule set where every rule reads: signal → threshold (with provenance tag) → severity band → mandated action. Three bands, listed below in efficiency order rather than severity order:

  • value (most first): Suspend & Escalate > Hold & Investigate > Watch
  • effort (most first): Suspend & Escalate > Hold & Investigate > Watch
  • compliance cost (most first): Suspend & Escalate > Hold & Investigate > Watch
  • efficiency (best first): Hold & Investigate > Watch > Suspend & Escalate

The first three axes agree, which is exactly why the fourth decides: severity buys more the further up the ladder the response climbs and costs more at the same rate, so the band that stops the money for hours of reversible work wins.

  • Hold & Investigate (ladder tier 2) - auto-throttle new commissions to zero pending review, open a dossier, cross-functional review within 24-48 hours. Throttling preserves evidence an instant ban destroys. Costs hours per case: the throttle is one switch, the review is two people's attention for a day or two. Withholding a commission is a contractual act but a reversible one - pay it and the partner is whole. Highest ratio of the three, and the source of the evidence the band above needs.
  • Watch (ladder tier 1) - log the flag, keep paying, review at the weekly triage. For soft anomalies and first offenses of minor rules. Near-zero cost: a log line and a slot in a meeting that already happens, nothing withheld, no relationship damage, nothing to appeal. Protects nothing on its own, and earns its place only by feeding Hold & Investigate.
  • Suspend & Escalate (ladder tier 3) - suspend the account, reverse violation-period commissions, forward the dossier to network compliance and, where warranted, legal review. Costs a week per case plus the partner relationship outright: dossier completion, sign-off, network filing, appeal handling. Least reversible and most exposed of the three - suspension can breach published terms, and an unfounded fraud allegation is its own liability.

Assign a new rule to Hold & Investigate by default. Move it down to Watch when the signal alone has a plausible legitimate cause; move it up to Suspend & Escalate only on confirmed technical evidence, stolen-card chargebacks, or reoffense after a warning.

The efficiency order starves Suspend & Escalate: a program ranking by ratio alone throttles forever and terminates nobody, and a ring that learns the program never bans simply absorbs the throttles. Promote it whenever confirmed-fraud rate or reversed-commission share climbs quarter over quarter, and whenever a case has to survive network compliance, where a throttle carries no weight.

Every band assignment carries the false-positive caveat inline: name the legitimate behavior that could trip the rule and the check that separates it.

Each investigation opens a dossier with these fields: affiliate ID and network/platform ID; rule(s) triggered with timestamps; baseline vs observed values; evidence artifacts (cookie-drop reproduction steps, redirect-chain capture, timestamped screenshots, server-log excerpts); financial exposure (commissions held, paid, at risk); declared traffic source vs observed referrers; prior warnings and history; recommended action with reviewer name; appeal status and deadline.

Pass Threshold

Judge the rule set on its detection rate and false-positive rate as a pair - every credible source tracks catch rate and false-positive rate together, never catch rate alone.

  • Backtest against historical confirmed incidents and a random sample of flagged and unflagged partners reviewed manually.
  • Pass when both hold: at least 80% of known incidents fire at Hold & Investigate or above, and at most 5% of sampled flags are false positives.
  • Provenance of the pair: published fraud-ops checklists converge on a >80% catch target with a low-single-digit false-positive ceiling; the academic ceiling for a simple rule is Snyder & Kanich's two-feature timing classifier at ~2-second thresholds - 93.3% accuracy, 1.5% false positive, 5.2% false negative (Journal of Cybersecurity 2016). These are calibration anchors, not industry constants.
  • No incident history to backtest against? Say so in the deliverable and schedule the threshold as a first-quarterly-review gate on sampled flags.
  • Iterate thresholds until both halves pass; if they cannot, the deliverable states which data or history is missing rather than shipping an untested rule set.

Common Failure Modes

DefectConsequenceFix
Fraud rules fire on legitimate coupon/cashback/loyalty last-click behaviorTerminates real partners; legal and relationship damageClassify partner types; route incrementality doubts to holdout/geo tests, not enforcement
Over-blocking on untuned vendor thresholdsReal partners churn; program revenue dropsDerive own baselines from 90 days of data; vendor numbers are starting points only
Validation window shorter than chargeback windowStolen-card commissions paid out are unrecoverableClawback + negative-balance carry-forward + chargeback reserve in the contract
B2C click-timing rules applied to B2B lead-gen (or vice versa)False positives in B2B; missed fake form-fills; missed B2C attribution theftSplit the rule set by motion; B2B leans on downstream rates
Trusting the network to police the programFraud runs until an outsider complainsOwn the monitoring; send evidence dossiers to the network, expect nothing unprompted
Treating a vendor benchmark as the program's baselineThresholds miscalibrated in both directionsProvenance-tag every number; replace with derived baselines
Instant ban on first flagEvidence destroyed; no dossier survives for network/legal escalationAuto-throttle to zero pending review; ban only after the dossier is complete

KPIs

  • Track: flagged rate, confirmed-fraud rate, false-positive rate from sampled review, reversed-commission share, recovered spend.
  • Report to leadership in commission-loss dollars saved and recovered - never vague risk language.
  • Escalate the program itself when confirmed-fraud rate or reversed-commission share climbs materially quarter over quarter: revisit hold windows, partner vetting, and tooling.

Invocation Examples

  • "We run a B2B SaaS partner program paying $150 per qualified lead - sales says half the leads from two new affiliates never answer the phone. Build me detection rules."
  • "Our ecommerce affiliate program just ate $12K in chargebacks traced to one affiliate's 'sales'. Set up a fraud rule set and an investigation process before we pay the next cycle."
  • "Audit our affiliate traffic quality: 60% of commissions go to coupon extensions and I can't tell poaching from fraud."

Reference

  • mbfinotti/partnerships-skills@affiliate-payout-audit - accuracy of legitimate-activity payouts; this skill flags illegitimate activity upstream.
  • mbfinotti/partnerships-skills@affiliate-program-terms - write prohibited-tactics clauses and enforcement ladder into the contract - this skill detects operational violations.
  • mbfinotti/partnerships-skills@affiliate-commission-structure - reprice non-incremental partners; repricing is that skill's job, not enforcement's.
  • mbfinotti/partnerships-skills@referral-abuse-guardrails - consumer refer-a-friend gaming - this skill covers professional-affiliate traffic and commission fraud.