English
php
waf
security
false-positives
rule-tuning
borna
shinobi-apps-framework
Self-tuning WAF rules in PHP: automatic false-positive decay without disabling rules
RuleTuningService: weekly FP-rate analysis via blocked-then-manually-unblocked signal, FP_RATE_THRESHOLD=0.5, MIN_SAMPLE_SIZE=10, DECAY_AMOUNT=10, FLOOR_SCORE=25. Stale rules (0 hits in REVIEW_DAYS=30) flagged for admin review — never auto-disabled. Atomic applyTuning() in DB transaction with security_borna_rules_history audit trail. revertRule() restores original_score.