Human button click or browser autofill submission
Even near-instant form completions using Chrome :autofill followed by clicking the submit button (isTrusted true, active user activation) pass cleanly.
BotRefund's form guard detects programmatic, untrusted form submissions lacking user activation or editing—while intentionally sparing fast browser autofill.
A capture-phase guard tracks genuine keydown, focusin, input, change, and paste activity across <form> elements. On submission, it flags an anomaly only when the submit event is untrusted (script-dispatched rather than user-triggered), navigator.userActivation is inactive, and no typing or editing occurred despite visible non-autofill fields changing from their defaults.
Separately, keyboard timing telemetry monitors for unrealistically fast typing where average key-press dwell time falls under 20 ms.
Real shoppers frequently click an ad, allow Chrome or a password manager like 1Password to autofill email and address fields instantly, and submit in under a second. Older raw time-to-submit cutoffs risked flagging those fast human autofill checkouts.
Requiring an untrusted submission event together with absent user activation and zero editing catches automated DOM form-injection scripts cleanly without penalizing fast human autofill.
Even near-instant form completions using Chrome :autofill followed by clicking the submit button (isTrusted true, active user activation) pass cleanly.
Populating visible fields via JavaScript and calling form.submit() without user activation, keystrokes, or trusted clicks triggers the form-injection alert.
Forensic significance: Active form-integrity indicator targeting programmatic DOM stuffing; fast human autofill and normal button clicks are explicitly preserved.