Repository navigation
Added Linux tagging rules for the SSH connection end and invalid user events #5339 - #5343
Merged
joachimmetz merged 1 commit intoOct 11, 2026
Merged
Conversation
… events log2timeline#5339 logout also selects syslog:ssh:closed_connection events of an authenticated user and login_failed also selects syslog:ssh:invalid_user events, the data types added by log2timeline#5340. Tests and the tagging rules documentation follow. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Follow-up to #5340 for #5339: two
tag_linux.txtrules for the data types it added.Change
plaso/data/tag_linux.txt:logoutalso selectsdata_type is 'syslog:ssh:closed_connection' AND is_authenticated == 1:the end of a connection whose user had authenticated (
Disconnected from user …andTimeout, client not responding from user …). The pamsession closedline of the samesession keeps its rule, so a session end carries the label twice, as a log-in already does
with
syslog:ssh:loginand the pamsession openedline (Add Linux tagging rules for structured SSH, audit, vsftpd, su, apt and logind events #5217).login_failedalso selectsdata_type is 'syslog:ssh:invalid_user': theInvalid user …record sshd writes once per connection for a name that does not resolve, before the
Failed … for invalid userrecords that the existing rule already labels per attempt.tests/data/tag_linux.py: one check per rule, in the form of the existing ones.docs/sources/user/Tagging-Rules.md: an entry for each rule with a captured example; thelogoutsection, which had no description, now lists its rules.Verified
auth.logcaptures used for Extend syslog SSH record handling to connection end and invalid user messages #5339 (3,467 lines, OpenSSH 10.2p1) with therules of
mainand with this change:logout489 → 730,login_failed24 → 28, every otherlabel unchanged (
login495,session_start259,session_stop245,application_execution421,
shutdown3).tests.data.tag_linux: 22 tests;utils/check_tagging_file.pyover the three shipped files:no findings.
Backward compatibility
Two rules added; no rule changed or removed.
Checklist:
🤖 Generated with Claude Code