Open n0isegat3 opened 1 year ago
Thank you for your feedback. This has been routed to the support team for assistance.
The command automatically followed on "NextLink" until there was no data, as the debug log showed.
The question is why the second request returned an empty array while there was still data. I suspect this is a bug of the service.
I have tested the REST API directly with skipToken taken from nextLink and it returns empty array as well. It looks like an issue in REST API.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @amirke.
Author: | n0isegat3 |
---|---|
Assignees: | - |
Labels: | `Service Attention`, `bug`, `customer-reported`, `SecurityInsights` |
Milestone: | - |
Hello everyone, any update on this please?
I'll try to reach out to security insights team through internal channels.
Service team reviewed the issue and opened a bug - service team start investigating and work on the fix.
Hi @n0isegat3, We investigated the issue and it appears that there’s indeed a bug with the getList Indicators API. We will work on fixing it. We do, however, have an alternative API that you could use. That API doesn’t have this bug and it returns the exact same result: https://learn.microsoft.com/en-us/rest/api/securityinsights/stable/threat-intelligence-indicator/query-indicators?tabs=HTTP
Hi @n0isegat3, We investigated the issue and it appears that there’s indeed a bug with the getList Indicators API. We will work on fixing it. We do, however, have an alternative API that you could use. That API doesn’t have this bug and it returns the exact same result: https://learn.microsoft.com/en-us/rest/api/securityinsights/stable/threat-intelligence-indicator/query-indicators?tabs=HTTP
Hi @moranraz , any update on this? And what is more important - the "queryIndicators" API method does not work as well. It's not returning any objects after calling the nextlink. So currently I don't have any working way how to get TI from Microsoft Sentinel programmatically.
Was this ever resolved? I'm still getting an identical "nextLink" response and the same result set each time I use nextLink, including the nextLink response.
We investigated the issue and it appears that there’s indeed a bug with the getList Indicators API. We will work on fixing it. We do, however, have an alternative API that you could use. That API doesn’t have this bug and it returns the exact same result: https://learn.microsoft.com/en-us/rest/api/securityinsights/stable/threat-intelligence-indicator/query-indicators?tabs=HTTP
Any progress on this issue?
I am having the same problems. Is there any update on this issue?
Any update on this issue? @moranraz
Hi, please use the following API instead: https://learn.microsoft.com/en-us/rest/api/securityinsights/threat-intelligence/query?view=rest-securityinsights-2024-04-01-preview&tabs=HTTP the previous API will soon be deprecated.
thank you @moranraz, I'm able to get Indicators with the nextLink using that new method.
However, the nextLink is always returned even when all of the indicators have been queried, resulting in an endless loop.
example: I have 799 indicators - it grabs the first 500, then also returns a nextLink to query the next set, it grabs the next 299, but then it gives me a nextLink and keeps going even past the 799 indicators mark. It loops back around
should the nextLink property not return once all the indicators have been queried?
Description
When there is more then 100 TI indicators in Microsoft Sentinel, Get-AzSentinelThreatIntelligenceIndicator returns only 100 and does not return NextLink property, so we cannot use SkipToken parameter to gather more TI indicators.
Issue script & Debug output
Environment data
Module versions
Error output