-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[abnormal_security] Update pagination termination condition (#10860)
Update the pagination termination condition for the threat data stream so that pagination stops whenever nextPageNumber is not found in the response body. This should apply to both the /v1/threats and /v1/threats/:id endpoints.
- Loading branch information
1 parent
db5288a
commit c577fbb
Showing
7 changed files
with
33 additions
and
86 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
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
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 |
---|---|---|
|
@@ -45,22 +45,22 @@ | |
} | ||
}, | ||
"agent": { | ||
"ephemeral_id": "3cfaa9dc-bca8-4e29-a807-77b68709b731", | ||
"id": "7aaba523-565c-4597-bc42-59135436336b", | ||
"name": "docker-fleet-agent", | ||
"ephemeral_id": "b66f399f-ba1c-4fe5-af82-9ca7a0204545", | ||
"id": "e2eadaf0-613d-41d9-913c-96125e06487a", | ||
"name": "elastic-agent-55334", | ||
"type": "filebeat", | ||
"version": "8.13.0" | ||
}, | ||
"data_stream": { | ||
"dataset": "abnormal_security.threat", | ||
"namespace": "37330", | ||
"namespace": "45319", | ||
"type": "logs" | ||
}, | ||
"ecs": { | ||
"version": "8.11.0" | ||
}, | ||
"elastic_agent": { | ||
"id": "7aaba523-565c-4597-bc42-59135436336b", | ||
"id": "e2eadaf0-613d-41d9-913c-96125e06487a", | ||
"snapshot": false, | ||
"version": "8.13.0" | ||
}, | ||
|
@@ -88,7 +88,7 @@ | |
], | ||
"dataset": "abnormal_security.threat", | ||
"id": "2260288475997441000", | ||
"ingested": "2024-08-08T06:53:48Z", | ||
"ingested": "2024-08-23T05:40:07Z", | ||
"kind": "enrichment", | ||
"original": "{\"abxMessageId\":2260288475997441000,\"abxPortalUrl\":\"https://portal.abnormalsecurity.com/home/threat-center/remediation-history/3456765434567654\",\"attachmentCount\":0,\"attachmentNames\":[],\"attackStrategy\":\"Unknown Sender\",\"attackType\":\"Spam\",\"attackVector\":\"Link\",\"attackedParty\":\"Employee (Other)\",\"autoRemediated\":true,\"ccEmails\":[],\"fromAddress\":\"[email protected]\",\"fromName\":\"john\",\"impersonatedParty\":\"None / Others\",\"internetMessageId\":\"\\u003cAZz8NUMEST-qmuz77_koic@example\\u003e\",\"isRead\":false,\"postRemediated\":false,\"receivedTime\":\"2024-07-17T23:25:38Z\",\"recipientAddress\":\"[email protected]\",\"remediationStatus\":\"Auto-Remediated\",\"remediationTimestamp\":\"2024-07-17T23:25:45.73564Z\",\"replyToEmails\":[],\"returnPath\":\"[email protected]\",\"senderDomain\":\"example.com\",\"senderIpAddress\":\"81.2.69.142\",\"sentTime\":\"2024-07-17T23:25:29Z\",\"subject\":\"YoU.have.𝗪𝟬0𝗡𝗡 a K0baIt 215-piece_ToooI_Set_Noo0wW..#GBOB\",\"summaryInsights\":[\"Abnormal Email Body HTML\",\"Invisible characters found in Email\",\"Suspicious Link\",\"Unusual Sender\",\"Unusual Sender Domain\"],\"threatId\":\"bf255f2d-a2ad-3f50-5075-fdcc24308bbd\",\"toAddresses\":[\"[email protected]\"],\"urlCount\":1,\"urls\":[\"https://www.example.com/\"]}", | ||
"reference": "https://portal.abnormalsecurity.com/home/threat-center/remediation-history/3456765434567654", | ||
|
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 |
---|---|---|
|
@@ -498,22 +498,22 @@ An example event for `threat` looks as following: | |
} | ||
}, | ||
"agent": { | ||
"ephemeral_id": "3cfaa9dc-bca8-4e29-a807-77b68709b731", | ||
"id": "7aaba523-565c-4597-bc42-59135436336b", | ||
"name": "docker-fleet-agent", | ||
"ephemeral_id": "b66f399f-ba1c-4fe5-af82-9ca7a0204545", | ||
"id": "e2eadaf0-613d-41d9-913c-96125e06487a", | ||
"name": "elastic-agent-55334", | ||
"type": "filebeat", | ||
"version": "8.13.0" | ||
}, | ||
"data_stream": { | ||
"dataset": "abnormal_security.threat", | ||
"namespace": "37330", | ||
"namespace": "45319", | ||
"type": "logs" | ||
}, | ||
"ecs": { | ||
"version": "8.11.0" | ||
}, | ||
"elastic_agent": { | ||
"id": "7aaba523-565c-4597-bc42-59135436336b", | ||
"id": "e2eadaf0-613d-41d9-913c-96125e06487a", | ||
"snapshot": false, | ||
"version": "8.13.0" | ||
}, | ||
|
@@ -541,7 +541,7 @@ An example event for `threat` looks as following: | |
], | ||
"dataset": "abnormal_security.threat", | ||
"id": "2260288475997441000", | ||
"ingested": "2024-08-08T06:53:48Z", | ||
"ingested": "2024-08-23T05:40:07Z", | ||
"kind": "enrichment", | ||
"original": "{\"abxMessageId\":2260288475997441000,\"abxPortalUrl\":\"https://portal.abnormalsecurity.com/home/threat-center/remediation-history/3456765434567654\",\"attachmentCount\":0,\"attachmentNames\":[],\"attackStrategy\":\"Unknown Sender\",\"attackType\":\"Spam\",\"attackVector\":\"Link\",\"attackedParty\":\"Employee (Other)\",\"autoRemediated\":true,\"ccEmails\":[],\"fromAddress\":\"[email protected]\",\"fromName\":\"john\",\"impersonatedParty\":\"None / Others\",\"internetMessageId\":\"\\u003cAZz8NUMEST-qmuz77_koic@example\\u003e\",\"isRead\":false,\"postRemediated\":false,\"receivedTime\":\"2024-07-17T23:25:38Z\",\"recipientAddress\":\"[email protected]\",\"remediationStatus\":\"Auto-Remediated\",\"remediationTimestamp\":\"2024-07-17T23:25:45.73564Z\",\"replyToEmails\":[],\"returnPath\":\"[email protected]\",\"senderDomain\":\"example.com\",\"senderIpAddress\":\"81.2.69.142\",\"sentTime\":\"2024-07-17T23:25:29Z\",\"subject\":\"YoU.have.𝗪𝟬0𝗡𝗡 a K0baIt 215-piece_ToooI_Set_Noo0wW..#GBOB\",\"summaryInsights\":[\"Abnormal Email Body HTML\",\"Invisible characters found in Email\",\"Suspicious Link\",\"Unusual Sender\",\"Unusual Sender Domain\"],\"threatId\":\"bf255f2d-a2ad-3f50-5075-fdcc24308bbd\",\"toAddresses\":[\"[email protected]\"],\"urlCount\":1,\"urls\":[\"https://www.example.com/\"]}", | ||
"reference": "https://portal.abnormalsecurity.com/home/threat-center/remediation-history/3456765434567654", | ||
|
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