Skip to content

Backend: Referral fraud / sybil scoring and throttling #764

Description

@joelpeace48-cell

Context

/campaigns/:id/referrals tracks referrals but there is no fraud scoring. Referral programs attract
sybil/self-referral abuse that drains rewards.

Scope

  • Heuristic risk score per referral (velocity, shared device/IP fingerprint, circular graphs, new-account bursts).
  • Throttle/hold high-risk referrals for review; feed confirmed fraud into the contract clawback path.
  • Configurable thresholds + admin review queue.

Acceptance criteria

  • Obvious sybil patterns (rings, self-referral, IP bursts) are flagged and held, not auto-rewarded.

Verification

  • Tests with crafted referral graphs assert correct scoring and hold/release behaviour.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardarea: backendBackend API (Node/Express)difficulty: expertDeep expertise, 2+ weeksjavascriptPull requests that update javascript codepriority: highHigh-priority, high-impact worksecuritySecurity hardening and scanningstellarStellar/Soroban integration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions