Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MISP feed - Update Query documentation #27713

Merged
merged 7 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
3 changes: 3 additions & 0 deletions Packs/FeedMISP/Integrations/FeedMISP/FeedMISP.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ def fetch_indicators(client: Client,
else:
params_dict = build_params_dict(tags, attribute_type)

if limit and limit not in params_dict:
params_dict['limit'] = limit

response = client.search_query(params_dict)
indicators_iterator = build_indicators_iterator(response, url)
added_indicators_iterator = update_indicators_iterator(indicators_iterator, params_dict, is_fetch)
Expand Down
2 changes: 1 addition & 1 deletion Packs/FeedMISP/Integrations/FeedMISP/FeedMISP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ script:
script: '-'
type: python
subtype: python3
dockerimage: demisto/python3:3.10.11.61265
dockerimage: demisto/python3:3.10.12.63474
fromversion: 5.5.0
tests:
- MISPfeed Test
Expand Down
19 changes: 19 additions & 0 deletions Packs/FeedMISP/Integrations/FeedMISP/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,22 @@ Gets indicators from the feed.

#### Human Readable Output
Retrieved 7 indicators.

## Additional Information
If you experience a timeout error while fetching indicators, the following query configuration may be helpful for you.

You can configure the feed to return results from the last 24 hours as shown below:
```json
{
"returnFormat": "json",
"type": {
"OR": []
},
"tags": {
"OR": []
},
"last":"24h"
}
```

Both of the above queries can be modified however you would like depending on your specific use case. Additional information can be found here https://www.misp-project.org/openapi/#tag/Attributes/operation/restSearchAttributes
7 changes: 7 additions & 0 deletions Packs/FeedMISP/ReleaseNotes/1_0_23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#### Integrations

##### MISP Feed

- Documentation and metadata improvements.
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
2 changes: 1 addition & 1 deletion Packs/FeedMISP/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "MISP Feed",
"description": "Indicators feed from MISP",
"support": "xsoar",
"currentVersion": "1.0.22",
"currentVersion": "1.0.23",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down