Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/mimecast/_dev/deploy/docker/files/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ rules:
Content-Type:
- "application/json"
body: |
{"type":"MTA","data":[{"acc":"ABC123","Sender":"johndoe@example.com","datetime":"2021-11-12T12:15:46+0000","Rcpt":"o365_service_account@example.com","RcptActType":"Jnl","aCode":"fjihpfEgM_iRwemxhe3t_w","Dir":"Internal","RcptHdrType":"Unknown"}]}
{"type":"MTA","data":[{"acc":"ABC123","Sender":"johndoe@example.com","datetime":"2021-11-12T12:15:46+0000","Rcpt":"o365_service_account@example.com","RcptActType":"Jnl","aCode":"fjihpfEgM_iRwemxhe3t_w","Dir":"Internal","RcptHdrType":"Unknown", "Content-Disposition":"attachment; filename=\"jrnl_20211018093329655.json\""}]}
- path: /api/ttp/threat-intel/get-feed
methods: ["POST"]
query_params:
Expand Down
5 changes: 5 additions & 0 deletions packages/mimecast/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "0.0.7"
changes:
- description: Add content-disposition to test mock to properly create sample event from SIEM logs.
type: bugfix
link: https://github.com/elastic/integrations/pull/2739
- version: "0.0.6"
changes:
- description: Add use cases for audit events and update sample events and docs
Expand Down
17 changes: 8 additions & 9 deletions packages/mimecast/data_stream/siem_logs/sample_event.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"@timestamp": "2021-11-12T12:15:46.000Z",
"agent": {
"ephemeral_id": "d60af43e-84dc-4f3b-b6c9-7616ac605053",
"hostname": "docker-fleet-agent",
"id": "1e76e2b6-7664-4905-9a0b-11e1d4dc6fa9",
"ephemeral_id": "c29702e9-3a8f-4e5f-8f99-398c9bf9f434",
"id": "15e6751a-71c9-4027-995c-58dcd862c21d",
"name": "docker-fleet-agent",
"type": "filebeat",
"version": "7.17.0"
"version": "8.0.0"
},
"data_stream": {
"dataset": "mimecast.siem_logs",
Expand All @@ -17,9 +16,9 @@
"version": "8.0.0"
},
"elastic_agent": {
"id": "1e76e2b6-7664-4905-9a0b-11e1d4dc6fa9",
"id": "15e6751a-71c9-4027-995c-58dcd862c21d",
"snapshot": false,
"version": "7.17.0"
"version": "8.0.0"
},
"email": {
"direction": "Internal",
Expand All @@ -35,8 +34,8 @@
"agent_id_status": "verified",
"created": "2021-11-12T12:15:46+0000",
"dataset": "mimecast.siem_logs",
"ingested": "2022-02-22T15:34:56Z",
"original": "{\"Dir\":\"Internal\",\"Rcpt\":\"o365_service_account@example.com\",\"RcptActType\":\"Jnl\",\"RcptHdrType\":\"Unknown\",\"Sender\":\"johndoe@example.com\",\"aCode\":\"fjihpfEgM_iRwemxhe3t_w\",\"acc\":\"ABC123\",\"datetime\":\"2021-11-12T12:15:46+0000\"}",
"ingested": "2022-02-24T09:22:06Z",
"original": "{\"Content-Disposition\":\"attachment; filename=\\\"jrnl_20211018093329655.json\\\"\",\"Dir\":\"Internal\",\"Rcpt\":\"o365_service_account@example.com\",\"RcptActType\":\"Jnl\",\"RcptHdrType\":\"Unknown\",\"Sender\":\"johndoe@example.com\",\"aCode\":\"fjihpfEgM_iRwemxhe3t_w\",\"acc\":\"ABC123\",\"datetime\":\"2021-11-12T12:15:46+0000\"}",
"outcome": "unknown"
},
"input": {
Expand All @@ -46,7 +45,7 @@
"RcptActType": "Jnl",
"RcptHdrType": "Unknown",
"acc": "ABC123",
"log_type": ""
"log_type": "jrnl"
},
"tags": [
"preserve_original_event",
Expand Down
17 changes: 8 additions & 9 deletions packages/mimecast/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,11 @@ An example event for `siem` looks as following:
{
"@timestamp": "2021-11-12T12:15:46.000Z",
"agent": {
"ephemeral_id": "d60af43e-84dc-4f3b-b6c9-7616ac605053",
"hostname": "docker-fleet-agent",
"id": "1e76e2b6-7664-4905-9a0b-11e1d4dc6fa9",
"ephemeral_id": "c29702e9-3a8f-4e5f-8f99-398c9bf9f434",
"id": "15e6751a-71c9-4027-995c-58dcd862c21d",
"name": "docker-fleet-agent",
"type": "filebeat",
"version": "7.17.0"
"version": "8.0.0"
},
"data_stream": {
"dataset": "mimecast.siem_logs",
Expand All @@ -304,9 +303,9 @@ An example event for `siem` looks as following:
"version": "8.0.0"
},
"elastic_agent": {
"id": "1e76e2b6-7664-4905-9a0b-11e1d4dc6fa9",
"id": "15e6751a-71c9-4027-995c-58dcd862c21d",
"snapshot": false,
"version": "7.17.0"
"version": "8.0.0"
},
"email": {
"direction": "Internal",
Expand All @@ -322,8 +321,8 @@ An example event for `siem` looks as following:
"agent_id_status": "verified",
"created": "2021-11-12T12:15:46+0000",
"dataset": "mimecast.siem_logs",
"ingested": "2022-02-22T15:34:56Z",
"original": "{\"Dir\":\"Internal\",\"Rcpt\":\"o365_service_account@example.com\",\"RcptActType\":\"Jnl\",\"RcptHdrType\":\"Unknown\",\"Sender\":\"johndoe@example.com\",\"aCode\":\"fjihpfEgM_iRwemxhe3t_w\",\"acc\":\"ABC123\",\"datetime\":\"2021-11-12T12:15:46+0000\"}",
"ingested": "2022-02-24T09:22:06Z",
"original": "{\"Content-Disposition\":\"attachment; filename=\\\"jrnl_20211018093329655.json\\\"\",\"Dir\":\"Internal\",\"Rcpt\":\"o365_service_account@example.com\",\"RcptActType\":\"Jnl\",\"RcptHdrType\":\"Unknown\",\"Sender\":\"johndoe@example.com\",\"aCode\":\"fjihpfEgM_iRwemxhe3t_w\",\"acc\":\"ABC123\",\"datetime\":\"2021-11-12T12:15:46+0000\"}",
"outcome": "unknown"
},
"input": {
Expand All @@ -333,7 +332,7 @@ An example event for `siem` looks as following:
"RcptActType": "Jnl",
"RcptHdrType": "Unknown",
"acc": "ABC123",
"log_type": ""
"log_type": "jrnl"
},
"tags": [
"preserve_original_event",
Expand Down
2 changes: 1 addition & 1 deletion packages/mimecast/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: mimecast
title: "Mimecast"
version: 0.0.6
version: 0.0.7
license: basic
description: "Fetching logs from Mimecast API and ingest into Elasticsearch"
type: integration
Expand Down