-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add other AI providers #34 * fix loglevel * use DEBUG log for exceptions * change info to debug * add --ai_settings_extractions and --ai_settings_relationships #55 * fix build error * clearer ai_setting error * adding env markdown * Update README.md * updating tests to match new AI modes * updating aimodel settings * cleaning up doc files * fix relationship_mode not getting considered before throwing ai_settings_relationships is required * updating gemini * fixing docs for multiple ai extraction providers * fixing legacy paths in docs --------- Co-authored-by: David G <[email protected]>
- Loading branch information
1 parent
6095983
commit 31f7e3d
Showing
20 changed files
with
2,152 additions
and
1,805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Environment file info | ||
|
||
If you're running in production, you should set these securely. | ||
|
||
However, if you just want to experiment, set the following values | ||
|
||
## AI Settings | ||
|
||
* `INPUT_TOKEN_LIMIT`: `15000` | ||
* (REQUIRED IF USING AI MODES) Ensure the input/output token count meets requirements and is supported by the model selected. Will not allow files with more than tokens specified to be processed | ||
* `TEMPERATURE`: `0.0` | ||
* The temperature value ranges from 0 to 2, with lower values indicating greater determinism and higher values indicating more randomness in responses. | ||
* `OPENAI_API_KEY`: YOUR_API_KEY | ||
* (REQUIRED IF USING OPENAI MODELS IN AI MODES) get it from https://platform.openai.com/api-keys | ||
* `ANTHROPIC_API_KEY`: YOUR_API_KEY | ||
* (REQUIRED IF USING ANTHROPIC MODELS IN AI MODES) get it from https://console.anthropic.com/settings/keys | ||
* `GOOGLE_API_KEY`: | ||
* (REQUIRED IF USING GOOGLE GEMINI MODELS IN AI MODES) get it from the Google Cloud Platform (making sure the Gemini API is enabled for the project) | ||
|
||
## BIN List | ||
|
||
* `BIN_LIST_API_KEY`: BLANK | ||
* for enriching credit card extractions needed for extracting credit card information. You get an API key here https://rapidapi.com/trade-expanding-llc-trade-expanding-llc-default/api/bin-ip-checker | ||
|
||
## CTIBUTLER | ||
|
||
Obstracts requires [ctibutler](https://github.com/muchdogesec/ctibutler) to lookup ATT&CK, CAPEC, CWE, ATLAS, and locations in blogs | ||
|
||
* `CTIBUTLER_HOST`: `'http://host.docker.internal:8006'` | ||
* If you are running CTI Butler locally, be sure to set `'http://host.docker.internal:8006'` in the `.env` file otherwise you will run into networking errors. | ||
|
||
## VULMATCH FOR CVE AND CPE LOOKUPS | ||
|
||
Obstracts requires [vulmatch](https://github.com/muchdogesec/vulmatch) to lookup CVEs and CPEs in blogs | ||
|
||
* `VULMATCH_HOST`: `'http://host.docker.internal:8005'` | ||
* If you are running vulmatch locally, be sure to set `'http://host.docker.internal:8005'` in the `.env` file otherwise you will run into networking errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
INPUT_TOKEN_LIMIT=50 # [REQUIRED] for AI modes. keep in mind the token limit for selected model (which includes both input AND output tokens). For example, if your input limit is 50,000 characters, this could incur up to 25,000 tokens. Assuming your selected model allows for 64,000 tokens, you will therefore be able to obtain an output of over 39,000 tokens. | ||
OPENAI_API_KEY= # [REQUIRED IF USING AI MODES] get it from https://platform.openai.com/api-keys | ||
OPENAI_MODEL=gpt-4 # [REQUIRED IF USING AI MODES] choose an OpenAI model of your choice. Ensure the input/output token count meets requirements (and adjust INPUT_TOKEN_LIMIT accordingly). List of models here: https://platform.openai.com/docs/models | ||
BIN_LIST_API_KEY= #[OPTIONAL] needed for extracting credit card information | ||
## CTIBUTLER FOR ATT&CK, CAPEC, AND CWE LOOKUPS | ||
CTIBUTLER_HOST= # [REQUIRED] e.g. http://localhost:8006/ | ||
CTIBUTLER_APIKEY= #[OPTIONAL] if using https://app.ctibutler.com | ||
## VULMATCH FOR CVE AD CPE LOOKUPS | ||
VULMATCH_HOST= # [REQUIRED] e.g. http://localhost:8005/ | ||
VULMATCH_APIKEY= #[OPTIONAL] if using https://app.vulmatch.com | ||
## AI Settings | ||
INPUT_TOKEN_LIMIT= | ||
OPENAI_API_KEY= | ||
ANTHROPIC_API_KEY= | ||
GOOGLE_API_KEY= | ||
TEMPERATURE= | ||
## BIN LIST | ||
BIN_LIST_API_KEY= | ||
## CTIBUTLER | ||
CTIBUTLER_HOST= | ||
## VULMATCH | ||
VULMATCH_HOST= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.