packagetypesimport"time"// LogEvent represents a standardized honeypot event.typeLogEventstruct{// Time is the timestamp of the event.Timestring`json:"time,omitempty"`// Type is the type of honeypot (e.g., "ssh", "telnet", "packetlogger", "http").TypeHoneypotType`json:"type"`// Event is the specific event type (e.g., "auth_attempt", "connection", "request").EventHoneypotEvent`json:"event"`// RemoteAddr is the remote IP address.RemoteAddrstring`json:"remote_addr,omitempty"`// RemotePort is the remote port number.RemotePortuint16`json:"remote_port,omitempty"`// DstPort is the destination port number.DstPortuint16`json:"dst_port,omitempty"`// Additional fields are stored in Fields map for flexibility.Fieldsmap[string]any`json:"fields,omitempty"`}typeLogErrorEventstruct{EventstringErrorerrorArgs[]any}typeLogInfoEventstruct{EventstringMessagestringArgs[]any}typeTagstringconst(TagBotnetTag="botnet"TagPortScanTag="port_scan"TagPingScanTag="ping_scan"TagHighTrafficTag="high_traffic"TagAuthAttemptTag="auth_attempt"TagMalwareTag="malware"TagInfoStealingTag="info_stealing")typeHoneypotEventstringconst(EventAuthAttemptHoneypotEvent="auth_attempt"EventRequestHoneypotEvent="request"EventICMPPacketHoneypotEvent="icmp_packet"EventTCPPacketHoneypotEvent="tcp_packet"EventUDPPacketHoneypotEvent="udp_packet"EventDNSQueryHoneypotEvent="dns_query"EventTLSHandshakeHoneypotEvent="tls_handshake")typeHoneypotTypestringconst(HoneypotTypeSSHHoneypotType="ssh"HoneypotTypeFTPHoneypotType="ftp"HoneypotTypeRDPHoneypotType="rdp"HoneypotTypeHTTPHoneypotType="http"HoneypotTypeSMTPHoneypotType="smtp"HoneypotTypeTelnetHoneypotType="telnet"HoneypotTypeSIPHoneypotType="sip"HoneypotTypePacketLoggerHoneypotType="packetlogger"HoneypotTypeDNSHoneypotType="dns")typeBlocklistEntrystruct{IDint`json:"id,omitempty"`Addressstring`json:"address"`Timestamptime.Time`json:"timestamp"`Expirestime.Time`json:"expires"`Reasonstring`json:"reason"`}