Skip to content

fix(exim-logs): make set_id optional in failed-auth pattern#1835

Open
dvlinuxx-max wants to merge 1 commit into
crowdsecurity:masterfrom
dvlinuxx-max:fix/exim-optional-set-id
Open

fix(exim-logs): make set_id optional in failed-auth pattern#1835
dvlinuxx-max wants to merge 1 commit into
crowdsecurity:masterfrom
dvlinuxx-max:fix/exim-optional-set-id

Conversation

@dvlinuxx-max

@dvlinuxx-max dvlinuxx-max commented Jun 24, 2026

Copy link
Copy Markdown

Exim omits the (set_id=...) field when server_set_id is unset or the auth data cannot be parsed, e.g.:
login authenticator failed for (U8kjDR) [IP]: 535 Incorrect authentication data

The grok pattern required (set_id=...), so these brute-force failures were never parsed and the source IPs were never banned. This makes the trailing set_id group optional. Existing log lines that include set_id still match and still populate target_user, so current parser tests are unaffected.

Closes #978

Description

Checklist

  • I have read the contributing guide
  • I have tested my changes locally
  • For new parsers or scenarios, tests have been added
  • I have run the hub linter and no issues were reported (see contributing guide)
  • Automated tests are passing
  • AI was used to generate any/all content of this PR

Exim omits the (set_id=...) field when server_set_id is unset or the auth data cannot be parsed, e.g.:
  login authenticator failed for (U8kjDR) [IP]: 535 Incorrect authentication data

The grok pattern required (set_id=...), so these brute-force failures were never parsed and the source IPs were never banned. This makes the trailing set_id group optional. Existing log lines that include set_id still match and still populate target_user, so current parser tests are unaffected.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect regular expression in crowdsecurity/exim-logs

1 participant