Skip to content

Commit 205a288

Browse files
ti_google_threat_intelligence: update default initial interval (elastic#16145)
API specifications for Google Threat Lists changed the availability time range of generated lists from one hour to two hours back. Default initial intervals have been updated to align with that requirement.
1 parent 865e1db commit 205a288

File tree

33 files changed

+67
-62
lines changed

33 files changed

+67
-62
lines changed

packages/ti_google_threat_intelligence/_dev/build/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Elastic Agent must be installed. For more details, check the Elastic Agent [inst
5757
- An API key will be used to authenticate your request.
5858
- **Time Selection of Initial Interval and Interval**:
5959
- Users need to specify the **initial interval** and **interval** in an hourly format, such as **2h**, **3h**, etc.
60-
**Note:** Please make sure both initial interval and interval are in hours and greater than 1 hour.
60+
**Note:** Please make sure both initial interval and interval are in hours and the initial interval is greater than 2 hours.
6161

6262
### Enabling the integration in Elastic:
6363

@@ -163,7 +163,7 @@ These transforms are automatically started to populate `Threat Intelligence`, `A
163163

164164
## Troubleshooting
165165

166-
1. If you see an error like `Package 2025031310 is not available until 2025-03-13 at 11:00 UTC because of privacy policy.`, ensure that your initial interval and interval are set in hours and are greater than one hour.
166+
1. If you see an error like `Package 2025031310 is not available until 2025-03-13 at 11:00 UTC because of privacy policy.`, ensure that your initial interval and interval are set in hours and the initial interval is greater than two hours.
167167
2. If events are not appearing in the transformed index, check if transforms are running without errors. If you encounter issues, refer to [Troubleshooting transforms](https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-troubleshooting.html).
168168
3. If detection rules take longer to run, ensure you have specified index patterns and applied queries to make your source events more specific.
169169
**Note:** More events in index patterns mean more time needed for detection rules to run.

packages/ti_google_threat_intelligence/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.8.0"
3+
changes:
4+
- description: Update default initial interval for threat list data streams to account for the API's 2-hour delay in data availability.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/16145
27
- version: "0.7.0"
38
changes:
49
- description: Add ingest pipeline references to the transforms.

packages/ti_google_threat_intelligence/data_stream/cryptominer/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ program: |
3333
?"query": has(state.query) ? optional.of([state.query]) : optional.none(),
3434
"limit": ["4000"],
3535
"x-tool": ["Elastic"],
36-
"User-Agent": ["v0.6.1"], // Keep this in sync with 'version' in package level manifest.yml.
36+
"User-Agent": ["v0.8.0"], // Keep this in sync with 'version' in package level manifest.yml.
3737
}.format_query()
3838
).with({
3939
"Header": {

packages/ti_google_threat_intelligence/data_stream/cryptominer/manifest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ streams:
1313
multi: false
1414
required: true
1515
show_user: true
16-
default: 1h
17-
description: How far back to pull Cryptominer events from the Google Threat Intelligence API. It must be set greater than 1 hour due to API limitations, with supported units being h.
16+
default: 2h
17+
description: How far back to pull Cryptominer events from the Google Threat Intelligence API. Must be at least 2h because the API has a 2-hour delay in data availability. Supported units are h.
1818
- name: interval
1919
type: text
2020
title: Interval
21-
description: Duration between consecutive requests to the Google Threat Intelligence API. It must be set to a value greater than 1 hour due to API limitations, with supported units being h.
21+
description: Duration between consecutive requests to the Google Threat Intelligence API. It must be set to a value greater than 1 hour as threat lists are generated hourly and the API returns errors when requesting data prematurely. Supported units are h.
2222
default: 1h
2323
multi: false
2424
required: true

packages/ti_google_threat_intelligence/data_stream/first_stage_delivery_vectors/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ program: |
3333
?"query": has(state.query) ? optional.of([state.query]) : optional.none(),
3434
"limit": ["4000"],
3535
"x-tool": ["Elastic"],
36-
"User-Agent": ["v0.6.1"], // Keep this in sync with 'version' in package level manifest.yml.
36+
"User-Agent": ["v0.7.0"], // Keep this in sync with 'version' in package level manifest.yml.
3737
}.format_query()
3838
).with({
3939
"Header": {

packages/ti_google_threat_intelligence/data_stream/first_stage_delivery_vectors/manifest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ streams:
1313
multi: false
1414
required: true
1515
show_user: true
16-
default: 1h
17-
description: How far back to pull First Stage Delivery Vectors events from the Google Threat Intelligence API. It must be set greater than 1 hour due to API limitations, with supported units being h.
16+
default: 2h
17+
description: How far back to pull First Stage Delivery Vectors events from the Google Threat Intelligence API. Must be at least 2h because the API has a 2-hour delay in data availability. Supported units are h.
1818
- name: interval
1919
type: text
2020
title: Interval
21-
description: Duration between consecutive requests to the Google Threat Intelligence API. It must be set to a value greater than 1 hour due to API limitations, with supported units being h.
21+
description: Duration between consecutive requests to the Google Threat Intelligence API. It must be set to a value greater than 1 hour as threat lists are generated hourly and the API returns errors when requesting data prematurely. Supported units are h.
2222
default: 1h
2323
multi: false
2424
required: true

packages/ti_google_threat_intelligence/data_stream/infostealer/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ program: |
3333
?"query": has(state.query) ? optional.of([state.query]) : optional.none(),
3434
"limit": ["4000"],
3535
"x-tool": ["Elastic"],
36-
"User-Agent": ["v0.6.1"], // Keep this in sync with 'version' in package level manifest.yml.
36+
"User-Agent": ["v0.7.0"], // Keep this in sync with 'version' in package level manifest.yml.
3737
}.format_query()
3838
).with({
3939
"Header": {

packages/ti_google_threat_intelligence/data_stream/infostealer/manifest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ streams:
1313
multi: false
1414
required: true
1515
show_user: true
16-
default: 1h
17-
description: How far back to pull Infostealer events from the Google Threat Intelligence API. It must be set greater than 1 hour due to API limitations, with supported units being h.
16+
default: 2h
17+
description: How far back to pull Infostealer events from the Google Threat Intelligence API. Must be at least 2h because the API has a 2-hour delay in data availability. Supported units are h.
1818
- name: interval
1919
type: text
2020
title: Interval
21-
description: Duration between consecutive requests to the Google Threat Intelligence API. It must be set to a value greater than 1 hour due to API limitations, with supported units being h.
21+
description: Duration between consecutive requests to the Google Threat Intelligence API. It must be set to a value greater than 1 hour as threat lists are generated hourly and the API returns errors when requesting data prematurely. Supported units are h.
2222
default: 1h
2323
multi: false
2424
required: true

packages/ti_google_threat_intelligence/data_stream/ioc_stream/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ program: |
4141
"Header": {
4242
"x-apikey": [state.access_token],
4343
"x-tool": ["Elastic"],
44-
"User-Agent": ["v0.6.1"], // Keep this in sync with 'version' in package level manifest.yml.
44+
"User-Agent": ["v0.7.0"], // Keep this in sync with 'version' in package level manifest.yml.
4545
}
4646
}).do_request().as(resp, resp.StatusCode == 200 ?
4747
resp.Body.decode_json().as(body, {

packages/ti_google_threat_intelligence/data_stream/iot/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ program: |
3333
?"query": has(state.query) ? optional.of([state.query]) : optional.none(),
3434
"limit": ["4000"],
3535
"x-tool": ["Elastic"],
36-
"User-Agent": ["v0.6.1"], // Keep this in sync with 'version' in package level manifest.yml.
36+
"User-Agent": ["v0.7.0"], // Keep this in sync with 'version' in package level manifest.yml.
3737
}.format_query()
3838
).with({
3939
"Header": {

0 commit comments

Comments
 (0)