Template Reuse Detection for Fabricated Paystubs Across Applications
One altered paystub is explainable. The same template, employer string, and deduction ordering across unrelated applicants is not. How to build explainable cross-application clustering.
A reviewer opens a short run of income uploads from unrelated applicants. Different names, different claimed employers, different cities. Every stub is legible, the gross-to-net math works, the year-to-date column reconciles with the current period, and each one clears on its own. Disposition recorded, case closed, queue moves on.
Then someone notices that all of those PDFs carry the same producer string, the same embedded font subset, and the same deduction label ordering: medical, dental, vision, 401k, in that exact sequence, under employers that have no payroll relationship with each other.
Template reuse detection is how you catch that pattern: fingerprint every uploaded income document at ingest, store the fingerprint as a queryable field, cluster uploads by structural artifacts across applications rather than within a single case, and route the cluster, not the document, to a human reviewer. The individual stub is explainable. The shared generator is the signal. Marketplace verification rules are written around resolving an inconsistency between attested income and trusted data sources on a per-case basis [1][2], and federal audit work on eligibility verification has focused on whether submitted documentation was actually checked and resolved [4]. Both pressures push review toward per-document disposition. Fabrication tooling went the other direction.
The Paystub That Passes Every Single-Document Check
Per-document review asks one question: does this upload substantiate the attested amount? That is the right question under the verification rules, which require the exchange to make a reasonable effort to resolve an inconsistency, notify the consumer, and allow a period to submit satisfactory documentation before proceeding on available information [1]. HealthCare.gov's consumer-facing guidance mirrors that framing, telling people what to send and by when [3]. Nothing in that flow asks whether the file has siblings.
That gap is where generated stubs live. A fabrication tool is not trying to fool a forensic examiner on one document. It is trying to produce output that survives a per-document look, repeatedly, at volume. Clean arithmetic is cheap to generate. Internal consistency is cheap to generate. What is expensive to vary is the generator itself, because the person using it has no reason to change the template between submissions.
So the unit of review has to shift from the document to the cluster, without disturbing the regulatory path. A cluster does not determine eligibility. It is an inconsistency signal that justifies requesting additional documentation and comparing attestation against trusted data sources under the existing verification process [1][2]. The determination still happens through the normal route, with the normal notice and submission period, and with a human recording the reasoning.
This layer sits on top of per-upload forensics, not instead of it. If you have not built the single-document layer yet, start with the companion guide on document forensics for fabricated paystubs and SEP letters and come back to clustering once ingest is extracting something stable.
What a Fabrication Generator Leaves Behind
Split the evidence into two buckets: the container and the payload.
Container artifacts come from how the file was made, not what it says. PDF producer and creator strings. Embedded font subsets and their subset tags. XMP and document-info creation and modification timestamps. Page geometry and object positioning. Image compression signatures on any rasterized region. The file hash itself, for exact duplicates passed between applicants.
Payload artifacts come from the text layer. Employer name and address strings, normalized for case and punctuation. EIN when present. Pay-period cadence. The relationship between year-to-date and current-period figures. Rounding behavior on tax and benefit lines. Deduction labels and, critically, their ordering. Net-to-gross ratios across the cluster.
Here is the counterintuitive part that changes how reviewers read these files: clean arithmetic is a reuse signal, not an authenticity signal. Real payroll systems produce correct math, and so do generators. What real payroll systems also produce is variation, because different processors format differently, different employers carry different benefit lines, and different states withhold differently. A group of stubs that is arithmetically perfect while being structurally identical under unrelated employers is describing a tool, not a labor market.
The lowest-noise indicator I have seen is timestamp divergence. Metadata creation timestamps that cluster inside a narrow window while the claimed issuance dates spread across months is hard to explain benignly. A stub issued in March does not get its PDF created in the same minute as a stub issued in July unless something regenerated both.
Signal-to-Artifact Table: What Each Match Actually Proves
No single feature in this table is a finding. Reviewers should never cite one row as the basis for a disposition. The value is in combination, and in the column that most teams skip: the benign explanation you have to rule out first.
| Signal | How it is computed | What it proves alone | What it proves in a cluster | Rule out first |
|---|---|---|---|---|
| PDF producer and creator string | Read from document-info and XMP at ingest, exact and normalized match | Nothing. Common libraries appear everywhere | Shared generation tooling across unrelated applicants | Large payroll processors and self-service portals using one library |
| Embedded font subset | Hash of subset tag plus glyph set per font resource | Weak. Font reuse is ordinary | Same document template, not just same library | Common corporate fonts and OS-default embedding |
| Layout geometry similarity | Vector of object positions and page boxes, scored against cluster centroid | Weak alone, template-level when paired with font match | A specific template instance in repeated use | Vendor-issued stub formats |
| Deduction label set and ordering | Ordered list of benefit and withholding labels from the text layer | Nothing by itself | Same authoring source under differing claimed employers | Multi-employer clients of one processor |
| Normalized employer string or EIN | Case, punctuation, and suffix normalization, then exact and fuzzy match | Possible shared employer | Shell-employer reuse when address or EIN is unverifiable | Genuine common employers in one metro |
| Repeated wage and YTD figures | Exact match on gross, net, and YTD across applicants | Coincidence at hourly rates | Copy-paste fabrication when paired with structural match | Standard hourly rates at the same employer |
| Upload session and device traits | Session, IP range, and device fingerprint tied to upload event | Nothing. Shared networks are normal | Coordinated submission when identities are unrelated | Navigator offices, libraries, shared household networks |
Read the table as a scoring frame rather than a checklist. A cluster that matches on producer string alone belongs in a suppression bucket. A cluster matching font subset, layout geometry, and deduction ordering while employer strings vary is the one that deserves a reviewer and a documentation request under the verification process [1].
Feature Design and Tunable Clustering Thresholds
Compute fingerprints at ingest, never at review. If the fingerprint is calculated when a reviewer opens the case, the queue can only be ordered by arrival date. If it is calculated on upload, the queue can be ordered by evidence quality, which is the whole point of the outstanding verification queue triage workflow that sits downstream of this.
Cluster on structure first and identity second. Group by container and layout artifacts, then measure how far applicant identity diverges inside the group. That ordering matters because identity-first grouping finds households and known associates, which you already catch. Structure-first grouping finds the tool.
# Stage A: exact-match blocking (cheap, high precision)
block_key = sha256(file_hash) # exact duplicate files
or norm(producer_string + creator) # same generation tooling
or font_subset_digest # same template fonts
# Stage B: similarity scoring inside each block
for group in blocks:
if allowlisted_processor(group) or allowlisted_employer(group):
suppress(group, reason="KNOWN_VENDOR_PATTERN")
continue
score = w1 * layout_vector_similarity(group)
+ w2 * label_order_match(group)
+ w3 * employer_string_divergence(group)
+ w4 * metadata_timestamp_tightness(group)
+ w5 * identity_divergence(group)
if (distinct_applicants(group) >= MIN_APPLICANTS
and matched_signal_count(group) >= MIN_SIGNALS
and score >= CLUSTER_THRESHOLD):
emit_cluster(group,
reason_codes=matched_features(group),
score_breakdown=per_feature_contributions(group),
threshold_version=ACTIVE_THRESHOLD_VERSION)Thresholds belong to the program, not the vendor. Minimum cluster size, minimum distinct applicants, and minimum matched-signal count are policy choices tied to your review capacity and your tolerance for consumer friction. Set them explicitly, version them, and record which threshold version was applied to each cluster so a case opened in one enrollment period can be explained later under the rules in force at the time.
Every cluster must carry reason codes listing the matched features and their contribution to the score. If a reviewer cannot read why the cluster formed without opening a model, the output is not usable in a case file. That is the same discipline described in the guide on referral-grade evidence and audit trails.
False Positives You Will Create If You Skip This Step
Legitimate payroll vendors produce structurally identical stubs at enormous scale. A shared processor template across unrelated applicants is the expected state of the world, not a finding. If your clustering flags it, you have built an employer-size detector.
Common employers compound the problem. In one metro area, a large hospital system, a grocery chain, and a logistics warehouse will generate repeated employer strings, repeated job titles, and genuinely identical wage figures for hourly roles at the same pay rate. Two unrelated applicants can legitimately submit stubs with the same gross, the same net, and the same deduction set.
Assister equipment is the third trap. Navigator and certified application counselor offices scan documents on shared hardware, which stamps identical scanner metadata and compression signatures across uploads from honest, unrelated consumers who happened to get help in the same place. Punishing that pattern punishes the outreach channel.
The test that separates the two worlds is divergence direction:
- Vendor or employer pattern: structure holds constant *and* employer string plus EIN hold constant, while applicants, wages, and pay dates vary. Suppress.
- Assister pattern: container artifacts from scanning hold constant, while producer strings, templates, employers, and applicants all vary. Suppress, and tag the submission channel.
- Fabrication pattern: structure holds constant while the claimed employer varies, and metadata timestamps cluster tighter than the claimed issuance dates. Review.
- Copy-paste pattern: the file hash or the exact wage figures repeat under different applicant identifiers. Review, and check for reused document images under different names, which is a synthetic-identity indicator as much as an income one.
That last point connects two layers. Reused document artifacts across unrelated identities belong in the same pattern view as shared addresses, phone numbers, and device signals, which is how synthetic identity and SSN reuse detection treats evidence. Federal identity guidance separates resolution to a unique identity from validation of the evidence and verification that the evidence belongs to the person presenting it [5]. Template reuse is a validation failure signal, and it should feed the identity view rather than sit in a silo.
Packaging a Cluster for a Human Reviewer
Route clusters, not documents. The reviewer screen should show sibling uploads side by side, the shared fingerprint fields highlighted, the differing applicant and application identifiers, and the verification correspondence history for each case in the group. If the reviewer has to open separate cases in separate tabs to see the pattern, the pattern will not get recorded.
The reviewer worksheet is short and ordered:
- Confirm the benign explanations in the signal table were ruled out, and name which one was tested.
- Confirm the applicants are unrelated by household, address history, and contact details.
- Verify the claimed employers against available data and note what the source returned, including a null result [2].
- Record the written rationale, the disposition, and the active threshold version in the case record, so the cluster can be explained under the inconsistency-resolution process in force when it formed [1].
Store reviewer reasoning beside the machine signals, in the same case record, with the same retention. The score is an input. The human determination is the decision, and no adverse eligibility or coverage action should rest on a cluster score alone. The regulatory path still runs through notice, a documentation request, and the submission period [1][3].
Dispositions should come from a controlled vocabulary, not free text. Four are enough to start: suppress as vendor or channel pattern, request additional documentation, escalate for broker-pattern review, refer for investigation. Escalation for broker-pattern review matters because an income template reused across applications that also share a producer identifier is a different problem than a consumer with a bad stub. Agents and brokers assisting with marketplace enrollment operate under registration and agreement requirements, including documented consumer consent [6][8], which makes the producer identifier a checkable field on every application touch. For vocabulary design, see the guide on disposition codes for completeness and authenticity evidence.
Implementation Walkthrough: From Ingest to Referral Packet
The build order that works, in sequence:
- Ingest fingerprinting. Extract container and payload artifacts on upload and write them to queryable fields. This is the only phase that must come first, because nothing downstream works without stored fingerprints.
- Blocking and similarity scoring. Stage A exact matching, then Stage B scoring with a visible per-feature breakdown.
- Allowlist suppression. Known processors and known employers filtered before clusters reach a queue, with a scheduled allowlist audit and a named owner.
- Cluster review. Sibling view, worksheet, controlled dispositions, written rationale stored with the signals.
- Referral assembly. Immutable export of the case bundle.
- Feedback into ingest rules. Confirmed fabrication templates scored at upload so the same generator does not re-enter the queue unflagged.
The referral bundle needs the original files with their hashes, the extracted metadata for each, the fingerprint comparison that formed the cluster, the applicant and application identifiers in the group, the verification correspondence history, and the reviewer determination with the threshold version. Export it as one immutable package. A Medicaid Fraud Control Unit or a CMS referral reviewer should be able to reconstruct how the cluster formed without access to your production system.
Cross-connect the layers while you are there. Shared uploads appearing under multiple producer identifiers suggest coordinated activity worth a pass through broker ring detection with graph analytics. Clusters that span marketplace and Medicaid records should be reconciled as coverage date spans rather than point-in-time snapshots, since retroactive determinations and lagged terminations manufacture false overlaps [2][10]. Interstate matching infrastructure exists to surface people receiving assistance in more than one state, and a hit there is a residency question to verify, not an automatic finding [9].
Detectory's document forensics and program-integrity scoring are built around this shape of work: fingerprints computed at ingest, clusters formed with readable reason codes, suppression lists under program control, and a case queue whose output is a referral packet rather than a score. Human review stays in front of every adverse action.
FAQ and What to Start Tracking This Week
Is template reuse enough for a referral? No. It is an inconsistency signal that justifies requesting additional documentation and comparing attestation against trusted data sources under the verification process [1][2]. A referral needs the cluster plus the documentation outcome plus the reviewer determination.
Can this work without storing original files? Partially. You can cluster on extracted fingerprints alone, but a referral packet without the original files and their hashes is much weaker evidence. Store originals if your retention policy allows it.
How do we handle clusters that span marketplace and Medicaid? Normalize identity keys, including verified SSN where available through authoritative consent-based verification [7], reconcile coverage as date spans, and strip timing artifacts before a reviewer sees the case [10]. Our note on duplicate coverage review covers the span logic.
What if the template belongs to a real payroll vendor? Then the structural match is expected and the signal has to come from elsewhere: metadata timestamp tightness, employer string divergence under a constant template, or wage figures that repeat exactly across unrelated applicants.
One action to take today. Write PDF producer, creator, and XMP timestamps to a queryable field for every income upload. It is a small pipeline change, and it is the prerequisite for everything above.
One signal to track this week. Count distinct applicants per producer-string plus layout-hash pair, excluding allowlisted processors, and watch the top of that list. Nothing else on the fingerprint list will tell you more per unit of effort.
Go back to that short run of cleared paystubs from the opening. Nothing in any single file was wrong. What the cluster view would have shown is one template, one font subset, one deduction ordering, and metadata timestamps minutes apart, sitting under employers that had never shared a payroll system. That is not a document problem. It is a question nobody asked, because nobody had the field to query.
References
[1] eCFR, 45 CFR 155.315 - Verification process related to eligibility for enrollment in a QHP through the Exchange. https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-B/part-155/subpart-D/section-155.315
[2] eCFR, 45 CFR 155.320 - Verification process related to eligibility for insurance affordability programs. https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-B/part-155/subpart-D/section-155.320
[3] HealthCare.gov - How to confirm (verify) your information. https://www.healthcare.gov/verify-information/
[4] U.S. Government Accountability Office - Health Insurance Marketplaces: Observations on Eligibility Verification (GAO-16-29). https://www.gao.gov/products/gao-16-29
[5] NIST Special Publication 800-63A, Digital Identity Guidelines: Enrollment and Identity Proofing. https://pages.nist.gov/800-63-3/sp800-63a.html
[6] CMS Marketplace - Agents and Brokers. https://www.cms.gov/marketplace/agents-brokers
[7] Social Security Administration - Consent Based Social Security Number Verification (CBSV). https://www.ssa.gov/cbsv/
[8] eCFR, 45 CFR 155.220 - Ability of States to permit agents and brokers to assist qualified individuals, qualified employers, or qualified employees enrolling in QHPs. https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-B/part-155/subpart-C/section-155.220
[9] HHS Administration for Children and Families - Public Assistance Reporting Information System (PARIS). https://acf.gov/css/outreach-material/public-assistance-reporting-information-system-paris
[10] Medicaid.gov - Eligibility Policy. https://www.medicaid.gov/medicaid/eligibility-policy/index.html