Skip to content

Commit 9b34b4e

Browse files
authored
Merge pull request #25 from intelowlproject/advanced_feeds
Add docs for advanced feeds API
2 parents d45c4b5 + 39791df commit 9b34b4e

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

docs/GreedyBear/Api-docs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
### `feeds`
77
:::docs.Submodules.GreedyBear.api.views.feeds
88

9+
### `feeds_advanced`
10+
:::docs.Submodules.GreedyBear.api.views.feeds_advanced
11+
912
### `feeds_pagination`
1013
:::docs.Submodules.GreedyBear.api.views.feeds_pagination
1114

docs/GreedyBear/Usage.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ GreedyBear is created with the aim to collect the information from the TPOTs and
3232
The feeds are reachable through the following URL:
3333

3434
```
35-
https://<greedybear_site>/api/feeds/<feed_type>/<attack_type>/<age>.<format>
35+
https://<greedybear_site>/api/feeds/<feed_type>/<attack_type>/<age>.<format>?<flags>
3636
```
3737

3838
The available feed_type are:
@@ -75,8 +75,36 @@ The available formats are:
7575
- `csv`: CSV-like file (just one line for each IOC)
7676
- `json`: JSON file with additional information regarding the IOCs
7777

78+
The available flags are:
79+
- `exclude_mass_scanners`: if set, IOCs that are known mass scanners will be excluded from the result
80+
81+
Check the [API specification](https://intelowlproject.github.io/docs/GreedyBear/Api-docs/) or the to get all the details about how to use the available APIs.
82+
83+
## Advanced Feeds
84+
85+
For authenticated users, GreedyBear offers an additional API endpoint that provides similar functionality to the Feeds API but with enhanced customization options.
86+
```
87+
https://<greedybear_site>/api/feeds/advanced/?<query_params>
88+
```
89+
90+
The available query parameters are:
91+
92+
- `feed_type`: see [Feeds API](#feeds)
93+
- `attack_type`: see [Feeds API](#feeds)
94+
- `max_age`: Maximum number of days since last occurrence. (default: 3)
95+
- `min_days_seen`: Minimum number of days on which an IOC must have been seen. (default: 1)
96+
- `include_reputation`: `;`-separated list of reputation values to include, e.g. `known attacker` or `known attacker;` to include IOCs without reputation. (default: include all)
97+
- `exclude_reputation`: `;`-separated list of reputation values to exclude, e.g. `mass scanner` or `mass scanner;bot, crawler`. (default: exclude none)
98+
- `feed_size`: Number of IOC items to return. (default: 5000)
99+
- `ordering`: Field to order results by, with optional `-` prefix for descending. (default: `-last_seen`)
100+
- `verbose`: `true` to include IOC properties that contain a lot of data, e.g. the list of days it was seen. (default: `false`)
101+
- `paginate`: `true` to paginate results. This forces the json format. (default: `false`)
102+
- `format`: see [Feeds API](#feeds) (default: `json`)
103+
78104
Check the [API specification](https://intelowlproject.github.io/docs/GreedyBear/Api-docs/) or the to get all the details about how to use the available APIs.
79105

106+
This "Advanced Feeds" API is protected through authentication. Please reach out [Matteo Lodi](https://twitter.com/matte_lodi) or another member of [The Honeynet Project](https://twitter.com/ProjectHoneynet) if you are interested in gain access to this API.
107+
80108
## Enrichment
81109

82110
GreedyBear provides an easy-to-query API to get the information available in GB regarding the queried observable (domain or IP address).

0 commit comments

Comments
 (0)