Skip to content

add crs observation and dashboard monitoring - #74

Merged
mangyan1 merged 3 commits into
developfrom
feat/crs-detection-dashboard
Oct 3, 2026
Merged

mangyan1 merged 3 commits into
developfrom
feat/crs-detection-dashboard

Conversation

@mangyan1

@mangyan1 mangyan1 commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Enable OWASP CRS observation explicitly with installer v1.65 --update --enable-crs. Existing high-confidence AppSec rules keep blocking; CRS runs out of band and retains native observation alerts while suppressing CRS scenario events. Install only the CRS rule package, preserve Hub-managed files and ordinary-update choices, and reject custom acquisition layouts that need operator review.

The existing CrowdSec WAF tab separates installer configuration from observed CRS matches, reports attack-pattern rule hits with readable families, and distinguishes disabled, unverified, unavailable, stale and in-band states. Exclude CRS diagnostic counters from observation totals and avoid duplicating CRS observations in the other-rules list. Match counts are neither unique requests nor bans.

Security scope: setup-npmplus.sh adds the policy and bumps the atomic safe-update wrapper to v6 so the bouncer config is snapshotted and restored with CrowdSec state. Backend CrowdSec configuration/metrics helpers expose only non-secret values; the existing admin gate, fixed metrics URL and response limits remain. No dependency or database migration is added. README, operations guidance and changelog describe opt-in and upstream compatibility checks.

Validation: 214 backend tests, schema validation, 23 frontend tests, TypeScript, production build and strict per-package Biome; Linux recovery/key-migration/CRS/upstream-sync contracts and ShellCheck; negative verification of observation separation, stale status, configuration, scenario suppression, reconfiguration preservation and rollback pins. Isolated systemd/Docker probes confirm benign 200, .env 403, SQLi/XSS/RCE observation alerts and no IP ban after repeated XSS probes, including a test with the upstream behavioral-ban scenario installed. Real-browser fixture and actual Docker UI checks cover desktop and phones. All PR checks pass, including final-image scanning, browser security, both installer variants and Debian restore. Actual failed-update rollback, backup/restore and controlled restart preserve CRS and existing enforcement.

@mangyan1
mangyan1 marked this pull request as ready for review October 3, 2026 02:05
@mangyan1
mangyan1 merged commit 4bac99a into develop Oct 3, 2026
18 checks passed
@mangyan1
mangyan1 deleted the feat/crs-detection-dashboard branch October 3, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant