secubox-openwrt/package/secubox/secubox-app-auth-logger/files/openwrt-luci-auth.yaml
CyberMind-FR e62919eec7 refactor(packages): Rename and reorganize SecuBox packages
- Rename crowdsec-firewall-bouncer to secubox-app-cs-firewall-bouncer
- Rename secubox-auth-logger to secubox-app-auth-logger
- Delete secubox-crowdsec-setup (merged into other packages)
- Fix circular dependencies in luci-app-secubox-crowdsec
- Fix dependency chain in secubox-app-crowdsec-bouncer
- Add consolidated get_overview API to crowdsec-dashboard
- Improve crowdsec-dashboard overview performance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 10:42:52 +01:00

26 lines
960 B
YAML

# CrowdSec Parser for SecuBox Auth Logger
# Parses authentication failures from LuCI/uhttpd and SSH (OpenSSH/Dropbear)
# Format: secubox-auth[pid]: authentication failure for <user> from <ip> via <service>
name: secubox/openwrt-luci-auth
description: "Parse SecuBox auth failure logs for LuCI and SSH"
filter: "evt.Line.Labels.type == 'secubox-auth'"
onsuccess: next_stage
nodes:
- grok:
# Parse the full line: secubox-auth[pid]: authentication failure for <user> from <ip> via <service>
pattern: "secubox-auth\\[%{INT:pid}\\]: (?i)authentication failure for %{USERNAME:user} from %{IP:source_ip} via %{WORD:service}"
apply_on: Line.Raw
statics:
- meta: log_type
value: auth_failure
- meta: service
expression: evt.Parsed.service
- meta: source_ip
expression: evt.Parsed.source_ip
- meta: username
expression: evt.Parsed.user
- parsed: program
value: secubox-auth