sudo cscli collections install crowdsecurity/amavisInstalls 2 parsers and 1 scenario.
View Amavis - Bruteforce Protection →sudo cscli parsers install crowdsecurity/amavis-logsThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
onsuccess: next_stagename: crowdsecurity/amavis-logsdescription: "Parse amavis logs"filter: "evt.Parsed.program == 'amavis'"pattern_syntax:AMAVIS_MESSAGEID: "Message-ID: <%{DATA:amavis_message-id}>"AMAVIS_SIZE: "size: %{POSINT:amavis_size}"AMAVIS_TESTS: 'Tests: \[%{DATA:amavis_tests}\]'AMAVIS_FROM: "From: %{DATA:amavis_header_from}"AMAVIS_HITS: "Hits: %{NUMBER:amavis_hits}"AMAVIS_QUARANTINE: "quarantine: %{NOTSPACE:amavis_quarantine}"AMAVIS_SUBJECT: 'Subject: "%{DATA:amavis_subject}"'AMAVIS_KV: "((%{AMAVIS_MESSAGEID}|%{AMAVIS_SIZE}|%{AMAVIS_TESTS}|%{AMAVIS_FROM}|%{AMAVIS_HITS}|%{AMAVIS_QUARANTINE}|%{AMAVIS_SUBJECT}|%{DATA}), )*"AMAVIS: '\(%{DATA:amavis_id}\) %{WORD:amavis_action} %{NOTSPACE:amavis_category}( \(%{DATA:amavis_match}\))( \{%{DATA:amavis_acions}\})?, \[(IPv6:)?%{IP:amavis_relay_ip}\]:%{POSINT:src_port} \[(IPv6:)?%{IP:amavis_amavis_origin_ip}\] <%{DATA:amavis_from}> -> <%{DATA:amavis_to}>, %{AMAVIS_KV}%{POSINT:amavis_elapsedtime} ms'grok:name: "AMAVIS"apply_on: messagestatics:- meta: servicevalue: amavis- meta: log_typevalue: "amavis"- meta: source_ipexpression: "evt.Parsed.amavis_relay_ip"- meta: amavis_categoryexpression: "evt.Parsed.amavis_category"- meta: amavis_matchexpression: "evt.Parsed.amavis_match"
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
This parser detects logs generated when a message is blocked by amavis:
1Feb 23 04:55:57 xyz amavis[4051607]: (4051607-09) Blocked INFECTED (Porcupine.Phishing.55542.UNOFFICIAL) {DiscardedInbound,Quarantined}, [192.168.0.1]:1434 [192.168.0.1] <someone1@something1.com> -> <someon2@something2.com>, quarantine: 2/virus-26W2lJY63nCZ, Queue-ID: 83B741009CD35, Message-ID: <20240223075525.8CD9941B67@xxx.xxx.shop>, mail_id: 26W2lJY63nCZ, Hits: -, size: 28646, 104 ms