pub struct AttackEvent {Show 16 fields
pub event_id: String,
pub timestamp: String,
pub category: String,
pub subcategory: String,
pub matched_payload: String,
pub full_payload: String,
pub method: String,
pub path: String,
pub severity: Severity,
pub mitre_id: Option<String>,
pub simulated_response: u16,
pub attacker_ip: String,
pub user_agent: String,
pub headers: HashMap<String, String>,
pub session_id: Option<String>,
pub confidence: f64,
}Available on crate feature
react-honeypot only.Expand description
An individual detected attack event.
Fields§
§event_id: StringUnique event ID (UUIDv4-style timestamp-based).
timestamp: StringISO-8601 timestamp.
category: StringAttack category (e.g. “sqli”, “xss”, “ssrf”).
subcategory: StringSub-category or specific technique.
matched_payload: StringThe matched payload/pattern excerpt.
full_payload: StringFull incoming payload (truncated for storage).
method: StringHTTP method used.
path: StringRequest path/endpoint targeted.
severity: SeveritySeverity assessment.
mitre_id: Option<String>MITRE ATT&CK technique ID.
simulated_response: u16The honeypot’s simulated response code.
attacker_ip: StringIP address of the attacker.
user_agent: StringRaw User-Agent header.
headers: HashMap<String, String>All captured headers (sanitized).
session_id: Option<String>Session tracking ID (cookie or fingerprint).
confidence: f64Confidence score (0.0–1.0) that this is an actual attack.
Trait Implementations§
Source§impl Clone for AttackEvent
impl Clone for AttackEvent
Source§fn clone(&self) -> AttackEvent
fn clone(&self) -> AttackEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttackEvent
impl Debug for AttackEvent
Source§impl<'de> Deserialize<'de> for AttackEvent
impl<'de> Deserialize<'de> for AttackEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AttackEvent
impl RefUnwindSafe for AttackEvent
impl Send for AttackEvent
impl Sync for AttackEvent
impl Unpin for AttackEvent
impl UnsafeUnpin for AttackEvent
impl UnwindSafe for AttackEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more