|
| 1 | +{ |
| 2 | + "tool": "LogLens", |
| 3 | + "input": "tests/fixtures/report_contracts/journalctl_short_full/input.log", |
| 4 | + "input_mode": "journalctl_short_full", |
| 5 | + "timezone_present": true, |
| 6 | + "parser_quality": { |
| 7 | + "total_lines": 16, |
| 8 | + "parsed_lines": 14, |
| 9 | + "unparsed_lines": 2, |
| 10 | + "parse_success_rate": 0.8750, |
| 11 | + "top_unknown_patterns": [ |
| 12 | + {"pattern": "sshd_connection_closed_preauth", "count": 1}, |
| 13 | + {"pattern": "sshd_timeout_or_disconnection", "count": 1} |
| 14 | + ] |
| 15 | + }, |
| 16 | + "parsed_event_count": 14, |
| 17 | + "warning_count": 2, |
| 18 | + "finding_count": 3, |
| 19 | + "event_counts": [ |
| 20 | + {"event_type": "ssh_failed_password", "count": 4}, |
| 21 | + {"event_type": "ssh_accepted_password", "count": 1}, |
| 22 | + {"event_type": "ssh_invalid_user", "count": 3}, |
| 23 | + {"event_type": "ssh_failed_publickey", "count": 1}, |
| 24 | + {"event_type": "pam_auth_failure", "count": 1}, |
| 25 | + {"event_type": "session_opened", "count": 1}, |
| 26 | + {"event_type": "sudo_command", "count": 3} |
| 27 | + ], |
| 28 | + "findings": [ |
| 29 | + { |
| 30 | + "rule": "brute_force", |
| 31 | + "subject_kind": "source_ip", |
| 32 | + "subject": "203.0.113.10", |
| 33 | + "event_count": 5, |
| 34 | + "window_start": "2026-03-10 08:11:22", |
| 35 | + "window_end": "2026-03-10 08:18:05", |
| 36 | + "usernames": [], |
| 37 | + "summary": "5 failed SSH attempts from 203.0.113.10 within 10 minutes." |
| 38 | + }, |
| 39 | + { |
| 40 | + "rule": "multi_user_probing", |
| 41 | + "subject_kind": "source_ip", |
| 42 | + "subject": "203.0.113.10", |
| 43 | + "event_count": 5, |
| 44 | + "window_start": "2026-03-10 08:11:22", |
| 45 | + "window_end": "2026-03-10 08:18:05", |
| 46 | + "usernames": ["admin", "deploy", "guest", "root", "test"], |
| 47 | + "summary": "203.0.113.10 targeted 5 usernames within 15 minutes." |
| 48 | + }, |
| 49 | + { |
| 50 | + "rule": "sudo_burst", |
| 51 | + "subject_kind": "username", |
| 52 | + "subject": "alice", |
| 53 | + "event_count": 3, |
| 54 | + "window_start": "2026-03-10 08:21:00", |
| 55 | + "window_end": "2026-03-10 08:24:15", |
| 56 | + "usernames": [], |
| 57 | + "summary": "alice ran 3 sudo commands within 5 minutes." |
| 58 | + } |
| 59 | + ], |
| 60 | + "warnings": [ |
| 61 | + {"line_number": 15, "reason": "unrecognized auth pattern: sshd_connection_closed_preauth"}, |
| 62 | + {"line_number": 16, "reason": "unrecognized auth pattern: sshd_timeout_or_disconnection"} |
| 63 | + ] |
| 64 | +} |
0 commit comments