Skip to content

Commit

Permalink
Merge pull request #13 from hilt86/main
Browse files Browse the repository at this point in the history
documents github monitor analytic
  • Loading branch information
tomchop authored Dec 21, 2024
2 parents f399daa + ea89621 commit f67c6de
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/docs/plugins/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "Plugin configuration"
date: 2024-12-21
draft: false
cascade: { type: "docs" }
weight: 99
---

Documentation on different plugin's configuration options.

- [Github Monitor](githubmonitor)
Binary file added content/docs/plugins/github-monitor-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions content/docs/plugins/githubMonitor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Github Monitor
date: 2024-12-17T12:00:00
draft: false
weight: 1
---

1. Create a Github token at https://github.com/settings/tokens
2. Pop that in `yeti.conf`
3. Create a an indicator with the following essential details :
* query text : (see [query template](#query-template) below)
* query type : `github`
* diamond model : depends on context

![Example of the Github Monitor settings](github-monitor-example.png)

Here are some gotchas:

* The query type won't show up in the list - you need to type it in
* The query text isn't really documented outside of the code for this plugin.
The example in the code is missing an inverted comma.
* You need to fill in the diamond model field.

#### Query Template

```json
[
{
"type": "code",
"query": "CVE-2024-49138 poc"
}
]
```

0 comments on commit f67c6de

Please sign in to comment.