fix(ui): surface attacker date_hdr in mail table and drawer
MailDrawer was reading fields.date / from_addr / message_id — all wrong; actual log field names are date_hdr, from_hdr, message_id_hdr, to_hdr. The mail table in AttackerDetail showed only DECNET capture time and used from_addr instead of from_hdr. Add a DATE (attacker) column so the attacker- supplied Date header (including timezone) is visible at a glance — useful for correlating campaigns like the Tiscali run where IPs used distinct TZs (+0800 vs -0700).
This commit is contained in:
@@ -81,9 +81,9 @@ const MailDrawer: React.FC<MailDrawerProps> = ({ decky, storedAs, fields, onClos
|
||||
}
|
||||
};
|
||||
|
||||
const recipients = Array.isArray(fields.rcpts)
|
||||
? fields.rcpts.join(', ')
|
||||
: (typeof fields.rcpts === 'string' ? fields.rcpts : null);
|
||||
const recipients = fields.to_hdr
|
||||
|| (Array.isArray(fields.rcpts) ? fields.rcpts.join(', ') : null)
|
||||
|| (typeof fields.rcpts === 'string' ? fields.rcpts : null);
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -156,10 +156,10 @@ const MailDrawer: React.FC<MailDrawerProps> = ({ decky, storedAs, fields, onClos
|
||||
HEADERS
|
||||
</h3>
|
||||
<Row label="Subject" value={fields.subject} />
|
||||
<Row label="From" value={fields.from_addr ?? fields.from} />
|
||||
<Row label="From" value={fields.from_hdr || fields.from_addr || fields.from} />
|
||||
<Row label="To" value={recipients} />
|
||||
<Row label="Date" value={fields.date} />
|
||||
<Row label="Message-ID" value={fields.message_id} />
|
||||
<Row label="Date" value={fields.date_hdr || fields.date} />
|
||||
<Row label="Message-ID" value={fields.message_id_hdr || fields.message_id} />
|
||||
<Row label="Mail from" value={fields.mail_from} />
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user