Skip to content

security/form-captcha: recognise honeypot fields and downgrade to info #2228

Description

@nc9

Source: MCP feedback fb_269 (run 01M80JE7W30AJ595722XGJCQXW, popwall.com.au), second half.

Seen. security/form-captcha flags forms that use a honeypot plus a fill-time guard (no CAPTCHA, by policy).

Expected. Detect common honeypot patterns (an off-screen or hidden input with tabindex="-1" and autocomplete="off") and downgrade to info with wording that names the honeypot. Related: #696 (FormShield recognised as protection).

Where. packages/rules/src/security/form-captcha.ts.

Acceptance Criteria

  • Fixture: a form with an off-screen tabindex=-1 autocomplete=off input is reported as info, not a warning/error.
  • A form with no protection signal still reports as before.
  • The rule doc lists the honeypot heuristic.

nik

Activity

  1. added
    enhancement
    size: S
    rules
    on Nov 22, 2026
  2. added theissue type on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions