CrowdSec Dashboard: - Refactor all views (alerts, bouncers, decisions, overview, settings) - Add soc.css for Security Operations Center styling - Remove 3000+ lines of redundant code CrowdSec Custom Parsers & Scenarios: - Add secubox-gitea parser and bruteforce scenario - Add secubox-haproxy parser and bruteforce scenario - Add secubox-streamlit parser and bruteforce scenario - Add secubox-webapp parser and bruteforce scenario - Update Makefile for new parser/scenario files HAProxy: - Update api.js, backends.js view improvements - Update luci.haproxy RPCD backend - Update haproxyctl helper script Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
# CrowdSec parser for Streamlit logs
|
|
# Parses Streamlit access and connection events
|
|
|
|
onsuccess: next_stage
|
|
name: secubox/streamlit-logs
|
|
description: "Parse Streamlit application logs"
|
|
filter: "evt.Line.Labels.type == 'streamlit' || evt.Line contains 'streamlit'"
|
|
grok:
|
|
pattern: '%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:level} %{GREEDYDATA:message}'
|
|
apply_on: message
|
|
statics:
|
|
- meta: log_type
|
|
value: streamlit
|
|
- meta: service
|
|
value: streamlit
|
|
---
|
|
# Parse Streamlit via HAProxy (401/403 auth failures)
|
|
onsuccess: next_stage
|
|
name: secubox/streamlit-auth-failure
|
|
description: "Parse Streamlit authentication failures via HAProxy"
|
|
filter: "evt.Meta.log_type == 'haproxy' && evt.Parsed.backend contains 'streamlit' && evt.Parsed.http_status in ['401', '403']"
|
|
statics:
|
|
- meta: auth_success
|
|
value: "false"
|
|
- meta: service
|
|
value: streamlit
|
|
---
|
|
# Parse Streamlit WebSocket connection failures
|
|
onsuccess: next_stage
|
|
name: secubox/streamlit-ws-failure
|
|
description: "Parse Streamlit WebSocket connection issues"
|
|
filter: "evt.Line contains 'streamlit' && evt.Line contains 'WebSocket'"
|
|
grok:
|
|
pattern: '%{IP:source_ip}.*WebSocket.*(?:failed|error|closed)'
|
|
apply_on: message
|
|
statics:
|
|
- meta: log_type
|
|
value: streamlit_ws
|