-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c7479e
commit deb5582
Showing
11 changed files
with
137 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2021-05-18T14:50:30Z", | ||
"action": { | ||
"name": "EVENT", | ||
"outcome": "success", | ||
|
@@ -25,12 +26,7 @@ | |
"top_level_domain": "com" | ||
}, | ||
"email": { | ||
"from": { | ||
"address": [ | ||
"null" | ||
] | ||
}, | ||
"sender": { | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
|
86 changes: 86 additions & 0 deletions
86
Retarus/retarus_email_security/tests/event_header_extra.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"input": { | ||
"message": "{\"version\": \"1.0\", \"host\": \"events.retarus.com\", \"customer\": \"CUSTOMER1\", \"class\": \"EVENT\", \"type\": \"MTA\", \"direction\": \"INBOUND\", \"status\": \"ACCEPTED\", \"ts\": \"2024-12-09 14:08:23 +0100\", \"sourceIp\": \"1.2.3.4\", \"recipient\": \"[email protected]\", \"sender\": \"[email protected]\", \"mimeId\": \"<[email protected]>\", \"rmxId\": \"20210711-145842-xxxxxx-xxxxxx-0@mailin27\", \"metaData\": {\"transportEncryption\": {\"requested\": true, \"established\": true, \"protocol\": \"TLSv1.3\", \"cipherSuite\": \"TLS_AES_256_GCM_SHA384 (256/256 bits)\"}, \"contentEncryption\": false, \"authentication\": {\"spf\": {\"status\": \"pass\", \"details\": \"spf=pass smtp.helo=a48-110.smtp-out.amazonses.com smtp.mailfrom=amazonses.com\", \"dns\": \"v=spf1 ip4:5.6.7.8/22 ip4:9.10.11.12/22 -all\"}, \"dkim\": {\"status\": \"pass\", \"details\": \"dkim=pass reason=\\\"good signature\\\" header.d=amazonses.com [email protected]\", \"selector\": \"ug7nbtf4gccmlpwj322ax3p6ow6yfsug\", \"domain\": \"amazonses.com\"}}, \"header\": {\"subject\": \"Exchange Notification: Password Expiration Notice\", \"from\": \"\\\"example.com - System Manager- Auth(am9obi5kb2VAZXhhbXBsZTMuY29t)example.com\\\" <[email protected]>\"}}, \"subtype\": \"INCOMING\"}" | ||
}, | ||
"expected": { | ||
"message": "{\"version\": \"1.0\", \"host\": \"events.retarus.com\", \"customer\": \"CUSTOMER1\", \"class\": \"EVENT\", \"type\": \"MTA\", \"direction\": \"INBOUND\", \"status\": \"ACCEPTED\", \"ts\": \"2024-12-09 14:08:23 +0100\", \"sourceIp\": \"1.2.3.4\", \"recipient\": \"[email protected]\", \"sender\": \"[email protected]\", \"mimeId\": \"<[email protected]>\", \"rmxId\": \"20210711-145842-xxxxxx-xxxxxx-0@mailin27\", \"metaData\": {\"transportEncryption\": {\"requested\": true, \"established\": true, \"protocol\": \"TLSv1.3\", \"cipherSuite\": \"TLS_AES_256_GCM_SHA384 (256/256 bits)\"}, \"contentEncryption\": false, \"authentication\": {\"spf\": {\"status\": \"pass\", \"details\": \"spf=pass smtp.helo=a48-110.smtp-out.amazonses.com smtp.mailfrom=amazonses.com\", \"dns\": \"v=spf1 ip4:5.6.7.8/22 ip4:9.10.11.12/22 -all\"}, \"dkim\": {\"status\": \"pass\", \"details\": \"dkim=pass reason=\\\"good signature\\\" header.d=amazonses.com [email protected]\", \"selector\": \"ug7nbtf4gccmlpwj322ax3p6ow6yfsug\", \"domain\": \"amazonses.com\"}}, \"header\": {\"subject\": \"Exchange Notification: Password Expiration Notice\", \"from\": \"\\\"example.com - System Manager- Auth(am9obi5kb2VAZXhhbXBsZTMuY29t)example.com\\\" <[email protected]>\"}}, \"subtype\": \"INCOMING\"}", | ||
"event": { | ||
"category": [ | ||
"email" | ||
], | ||
"outcome": "success", | ||
"type": [ | ||
"info" | ||
] | ||
}, | ||
"@timestamp": "2024-12-09T13:08:23Z", | ||
"action": { | ||
"name": "EVENT", | ||
"outcome": "success", | ||
"outcome_reason": "ACCEPTED" | ||
}, | ||
"destination": { | ||
"address": "example.com", | ||
"domain": "example.com", | ||
"registered_domain": "example.com", | ||
"top_level_domain": "com" | ||
}, | ||
"email": { | ||
"from": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
}, | ||
"subject": "Exchange Notification: Password Expiration Notice", | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
} | ||
}, | ||
"observer": { | ||
"hostname": "events.retarus.com", | ||
"product": "Email Security", | ||
"vendor": "Retarus", | ||
"version": "1.0" | ||
}, | ||
"organization": { | ||
"id": "CUSTOMER1" | ||
}, | ||
"related": { | ||
"hosts": [ | ||
"amazonses.com", | ||
"events.retarus.com", | ||
"example.com" | ||
], | ||
"ip": [ | ||
"1.2.3.4" | ||
] | ||
}, | ||
"retarus": { | ||
"class": "EVENT", | ||
"dkim": { | ||
"result": "dkim=pass reason=\"good signature\" header.d=amazonses.com [email protected]" | ||
}, | ||
"email_direction": "INBOUND", | ||
"message_id": "20210711-145842-xxxxxx-xxxxxx-0@mailin27", | ||
"mime_message_id": "<[email protected]>", | ||
"recipient": "[email protected]", | ||
"sender": "[email protected]", | ||
"spf": { | ||
"record": "v=spf1 ip4:5.6.7.8/22 ip4:9.10.11.12/22 -all", | ||
"status": "pass" | ||
}, | ||
"status": "ACCEPTED", | ||
"timestamp": "2024-12-09 14:08:23 +0100", | ||
"type": "MTA" | ||
}, | ||
"source": { | ||
"address": "amazonses.com", | ||
"domain": "amazonses.com", | ||
"ip": "1.2.3.4", | ||
"registered_domain": "amazonses.com", | ||
"top_level_domain": "com" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2021-07-11T12:58:43Z", | ||
"action": { | ||
"name": "EVENT", | ||
"outcome": "success", | ||
|
@@ -30,12 +31,12 @@ | |
"[email protected]" | ||
] | ||
}, | ||
"sender": { | ||
"subject": "This is a test mail", | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
}, | ||
"subject": "This is a test mail" | ||
} | ||
}, | ||
"observer": { | ||
"hostname": "events.retarus.com", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2022-09-12T14:30:58Z", | ||
"action": { | ||
"name": "EVENT", | ||
"outcome": "success", | ||
|
@@ -25,17 +26,12 @@ | |
"top_level_domain": "org" | ||
}, | ||
"email": { | ||
"from": { | ||
"address": [ | ||
"MAILER-DAEMON (Mail Delivery System)" | ||
] | ||
}, | ||
"sender": { | ||
"subject": "Undelivered Mail Returned to Sender", | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
}, | ||
"subject": "Undelivered Mail Returned to Sender" | ||
} | ||
}, | ||
"observer": { | ||
"hostname": "events.retarus.com", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2021-07-11T12:58:43Z", | ||
"action": { | ||
"name": "EVENT", | ||
"outcome": "success", | ||
|
@@ -30,12 +31,12 @@ | |
"[email protected]" | ||
] | ||
}, | ||
"sender": { | ||
"subject": "This is a test mail", | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
}, | ||
"subject": "This is a test mail" | ||
} | ||
}, | ||
"observer": { | ||
"hostname": "events.retarus.com", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2021-10-01T07:00:00Z", | ||
"destination": { | ||
"address": "recipientdomain.fr", | ||
"domain": "recipientdomain.fr", | ||
|
@@ -21,15 +22,15 @@ | |
"email": { | ||
"from": { | ||
"address": [ | ||
"sender <sender@senderdomain.fr>" | ||
"[email protected]" | ||
] | ||
}, | ||
"sender": { | ||
"subject": "This is a subject", | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
}, | ||
"subject": "This is a subject" | ||
} | ||
}, | ||
"observer": { | ||
"hostname": "host.fr", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2018-10-16T12:58:18Z", | ||
"action": { | ||
"name": "THREAT", | ||
"outcome": "failure" | ||
|
@@ -25,12 +26,7 @@ | |
"top_level_domain": "de" | ||
}, | ||
"email": { | ||
"from": { | ||
"address": [ | ||
"null" | ||
] | ||
}, | ||
"sender": { | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2018-10-16T12:58:43Z", | ||
"action": { | ||
"name": "THREAT", | ||
"outcome": "failure" | ||
|
@@ -25,12 +26,7 @@ | |
"top_level_domain": "de" | ||
}, | ||
"email": { | ||
"from": { | ||
"address": [ | ||
"null" | ||
] | ||
}, | ||
"sender": { | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2018-10-16T12:58:56Z", | ||
"action": { | ||
"name": "THREAT", | ||
"outcome": "failure" | ||
|
@@ -25,12 +26,7 @@ | |
"top_level_domain": "de" | ||
}, | ||
"email": { | ||
"from": { | ||
"address": [ | ||
"null" | ||
] | ||
}, | ||
"sender": { | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"info" | ||
] | ||
}, | ||
"@timestamp": "2018-10-16T13:03:43Z", | ||
"action": { | ||
"name": "THREAT", | ||
"outcome": "failure" | ||
|
@@ -25,12 +26,7 @@ | |
"top_level_domain": "de" | ||
}, | ||
"email": { | ||
"from": { | ||
"address": [ | ||
"null" | ||
] | ||
}, | ||
"sender": { | ||
"to": { | ||
"address": [ | ||
"[email protected]" | ||
] | ||
|