Repository navigation
Conversation
- ssh_failed_password: an IPv6 source must match - ssh_bruteforce: a 6-in-25s burst from 2001:db8::7 must alert, grouped by the IPv6 address like any IPv4 source - tests for `python -m detlab.scan` (file, stdin, --year, skipped-line count and exit codes); scan.py coverage 71% -> 98% The IPv6 cases also run through the Wazuh logtest workflow, which checks that Wazuh's built-in sshd decoder extracts IPv6 srcip for the correlation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FQvnacbQuWZv9PUmgednWt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test-only changes from a review of the repo. It was already in good shape, so this closes two gaps.
from (\S+) port), but no sample exercised it. A related tool (logsleuth) turned out to silently drop IPv6 attackers, so it's worth pinning here too:ssh_failed_password: failed password from2001:db8::7→ matchssh_bruteforce: 6 failures from2001:db8::7within 25 s → alert, grouped by the IPv6 addressdetlab.scanCLI tests: a newtests/test_scan_cli.pycovers file input, stdin (-),--year, the skipped-line count and the exit codes.scan.pycoverage goes from 71% to 98%.No rule or engine changes.
Testing
pytestpasses (119 tests), andruff check,ruff format --checkandpython -m detlab.coverage --checkare clean.sigma checkneeds to download MITRE ATT&CK data, which the dev sandbox's network blocked. This PR changes no rule files.srcipfor the correlation. If it fails, that's a genuine gap in the Wazuh rules to discuss, not something to paper over withwazuh_skip.Not changed (owner's call)
All 11 rules are still
status: experimental. Promoting them totestorstabledepends on how long they've run against real data, so I left that to you.🤖 Generated with Claude Code
https://claude.ai/code/session_01FQvnacbQuWZv9PUmgednWt
Generated by Claude Code