PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
defence360agent
/
wordpress
/
__pycache__
/
Editing: incident_collector.cpython-311.pyc
� ���i�@ � �� � d Z ddlZddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z ddlmZ ddlmZ ddlmZmZmZ ej e� � Z G d � d � � Z G d� d� � ZdS ) z1Collector for WordPress CVE protection incidents.� N)�Path)�defaultdict)�WPSite)�get_data_dir)�IncidentFileParser)�upsert_wordpress_incident�bulk_create_wordpress_incidents�build_incident_dictc �h � e Zd ZdZ ddededefd�Zd � Zd ededee ef fd �Z d edefd�ZdS )�IncidentRateLimitera Rate limiter to prevent DoS attacks via incident flooding. Implements per-rule-per-IP rate limiting as per spec: - Maximum 100 incidents for each rule from the same IP within 15 minutes Memory-optimized implementation with bounded entry count using LRU eviction. �d � �'