GitHub

Fake Authentication Overlay

Detects full-viewport credential overlays and off-brand sign-in controls

Detects full-viewport fixed high-z-index iframe overlays or sign-in controls that send credentials to an off-brand host — a credential-harvesting overlay pattern.

Rule IDintegrity/fake-auth-overlay
CategorySite Integrity
ScopePage
Severitywarning
Weight8/10

How it works

Two patterns trip this rule:

  1. A full-viewport, fixed, high-z-index iframe pinned to a corner (the injected #google-auth overlay from the real incident). A normal fixed cookie banner won’t match — it lacks the viewport-filling dimensions.
  2. A “Sign in with <brand>” control whose link target is neither the brand’s real host nor your own origin (i.e. where the credentials would actually go).

A lone overlay signal is reported as info. It escalates to a failure only when another compromise signal corroborates on the same page.

Solution

A full-viewport, fixed, high-z-index iframe that covers the page, or a ‘Sign in with Google/Microsoft’ control whose target is not the brand’s real domain, is a credential-harvesting overlay. If you did not build it, your site is likely compromised: remove the overlay markup/script, audit recently modified files, and rotate credentials. Legitimate sign-in always targets the provider’s own host (accounts.google.com, login.microsoftonline.com).

Enable / Disable

Disable this rule

squirrel.toml
toml
[rules]
disable = ["integrity/fake-auth-overlay"]

Disable all Site Integrity rules

squirrel.toml
toml
[rules]
disable = ["integrity/*"]

Enable only this rule

squirrel.toml
toml
[rules]
enable = ["integrity/fake-auth-overlay"]
disable = ["*"]

Type to search…

↑↓ navigate open esc close