Skip to content

new: bruteforce detection for a single account based on Event 4625#6085

Open
Hydra2113 wants to merge 2 commits into
SigmaHQ:masterfrom
Hydra2113:rule/bruteforce-single-account-4625
Open

new: bruteforce detection for a single account based on Event 4625#6085
Hydra2113 wants to merge 2 commits into
SigmaHQ:masterfrom
Hydra2113:rule/bruteforce-single-account-4625

Conversation

@Hydra2113

Copy link
Copy Markdown

Summary of the Pull Request

Adds a new Sigma correlation rule (event_count) that detects brute-force authentication against a single Windows account. It counts failed logon events (EventID 4625) grouped by TargetUserName, TargetDomainName and IpAddress,
and triggers when more than 4 failures occur for the same account from the same source within a 5-minute window. The purpose of this rule is to quickly get a base for detecting brute force activity on windows accounts and adjusting based on the noise in your specific environment.

The referenced base rule (failed_logon_attempts_4625) is included in the same file via the --- separator, as recommended when a base rule exists only to support a correlation rule.

Validation performed locally:

  • python tests/test_logsource.py → OK
  • python tests/test_rules.py → OK
  • sigma check --fail-on-error --fail-on-issues --validation-config tests/sigma_cli_conf.yml <rule>0 errors, 0 issues
  • Converts cleanly to Splunk SPL via sigma convert -t splunk -p splunk_windows.

Changelog

new: Brute Force Authentication Attempts For Single Account

Example Log Event

N/A. This PR adds a new rule and is not a false-positive fix. For reference, the detection consumes standard Windows Security 4625 (failed logon) events, e.g:

EventID: 4625
TargetUserName: jsmith
TargetDomainName: CORP
IpAddress: 10.10.5.23
LogonType: 3
Status: 0xC000006A

SigmaHQ Rule Creation Conventions

  • This PR follows the SigmaHQ rule creation conventions (validated with sigma check against the repository's validation config).

Hydra2113 and others added 2 commits June 26, 2026 13:00
Adds a Sigma correlation rule (event_count) that detects more than 4 failed
logon attempts (EventID 4625) for a single account from a single source within
a 5 minute window, grouped by TargetUserName, TargetDomainName and IpAddress.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add required metadata (status, description, author, date, level) to the base rule
- Rename file with the required 'correlation_' prefix

Passes: sigma check --fail-on-error --fail-on-issues with the repo validation config.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added Rules Review Needed The PR requires review Windows Pull request add/update windows related rules labels Jun 26, 2026
@Hydra2113 Hydra2113 changed the title Rule/bruteforce single account 4625 new: bruteforce detection for a single account based on Event 4625 Jun 26, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @Hydra2113 👋

It looks like this is your first pull request on the Sigma rules repository!

Please make sure to read the SigmaHQ conventions to make sure your contribution is adhering to best practices and has all the necessary elements in place for a successful approval.

Thanks again, and welcome to the Sigma community! 😃

If you want to engage more with the community for official support, general discussions or announcements:

👉 Join our Discord server

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

Labels

Review Needed The PR requires review Rules Windows Pull request add/update windows related rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant