sudo cscli collections install mstilkerich/bind9Installs 1 parser and 1 scenario.
View BIND9 - DNS Protection →sudo cscli parsers install mstilkerich/bind9-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.
---filter: "Upper(evt.Parsed.program) == 'NAMED'"#debug: trueonsuccess: next_stagepattern_syntax:BIND9_TIMESTAMP_DATE: '%{MONTHDAY:ts_d}-%{MONTH:ts_m}-%{YEAR:ts_y}'BIND9_TIMESTAMP_TIMEMS: '\d{3}'BIND9_TIMESTAMP_TIME: '%{TIME:ts_t}\.%{BIND9_TIMESTAMP_TIMEMS:ts_ms}'BIND9_TIMESTAMP: '%{BIND9_TIMESTAMP_DATE} %{BIND9_TIMESTAMP_TIME}'# categories: security, client, update-security, etc.BIND9_CATEGORY: '[a-z]+'BIND9_SEVERITY: '[a-z]+'BIND9_PREFIX: '^(%{BIND9_TIMESTAMP:timestamp} )?(%{BIND9_CATEGORY}: )?(%{BIND9_SEVERITY}: )?client (@0x[0-9a-fA-F]+ )?%{IP:remote_addr}#%{POSINT:remote_port}.*: 'name: mstilkerich/bind9description: "Parse bind9 logs"nodes:# When multiple grok patterns are specified, only the first matching one is applied- grok:pattern: '^%{BIND9_PREFIX}zone transfer .* (?:denied|\(NOTAUTH\))\s*$'apply_on: message- grok:pattern: '^%{BIND9_PREFIX}bad zone transfer request: ''\S+/IN'': non-authoritative zone (?:denied|\(NOTAUTH\))\s*$'apply_on: message- grok:pattern: '^%{BIND9_PREFIX}(?:view (?:internal|external): )?query(?: \(cache\))? .* (?:denied|\(NOTAUTH\)).*$'apply_on: messagestatics:- meta: servicevalue: bind9- meta: log_typevalue: bind9_denied- meta: source_ipexpression: "evt.Parsed.remote_addr"- target: evt.StrTime # convert time format for dateparse-enrichexpression: "{Jan:'01',Feb:'02',Mar:'03',Apr:'04',May:'05',Jun:'06',Jul:'07',Aug:'08',Sep:'09',Oct:'10',Nov:'11',Dec:'12'}[evt.Parsed.ts_m]+ '/' + evt.Parsed.ts_d+ '/' + evt.Parsed.ts_y+ ' ' + evt.Parsed.ts_t"
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
This bind9 parser supports logs in separate bind9 log files as well as syslog
entries. When logging to separate bind9 log files directly with bind9, the
print-time setting should be enabled, otherwise no timestamp will be
available.
This parser currently detects the following security events of bind9:
To configure data acquisition from a bind9 log file, set the type to named:
1---2filenames:3 - /var/log/named/security.log4labels:5 type: named
Inspired by fail2ban named-refused.