-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #517 from opencybersecurityalliance/config-cleaning
entity identifier config and multiple fixes
- Loading branch information
Showing
13 changed files
with
158 additions
and
123 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
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
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,70 +1,26 @@ | ||
# syntax default values | ||
language: | ||
default_variable: "_" | ||
default_sort_order: "desc" | ||
default_datasource_schema: "stixshifter" | ||
default_analytics_schema: "python" | ||
|
||
# how a Kestrel session is executed | ||
session: | ||
cache_directory_prefix: "kestrel-session-" # under system temp directory | ||
local_database_path: "local.db" | ||
log_path: "session.log" | ||
show_execution_summary: true | ||
|
||
# whether/how to prefetch all records/observations for entities | ||
prefetch: | ||
|
||
# enable/disable prefetch for command | ||
# | ||
# If prefetch is enabled, Kestrel will send additional queries to the data | ||
# source to search for related records regarding entities retrieved from the | ||
# user-specified pattern, collecting more complete information (attributes, | ||
# connections to other entities) of the entities from different records. | ||
switch_per_command: | ||
get: true | ||
find: true | ||
|
||
# declare the list of entity types to not prefetch | ||
# | ||
# This can be used when a user finds prefetch hinders the performance with | ||
# large amount of results for one or more generic type of entities. For | ||
# example, the data source may have millions of records containing | ||
# `C:\Windows\SYSTEM32\ntdll.dll` touched by all Windows processes in a short | ||
# amount of time. Executing a Kestrel command `f = FIND file LINKED p` will | ||
# retrieve the file from a process and then start prefetch to gain | ||
# information/connections of the file from all processes. Retrieval of | ||
# millions records will likely result in a performance issue, thus the user | ||
# can put `file` in this list to disable prefetch for it. | ||
excluded_entities: | ||
- | ||
# - file | ||
# - user-account | ||
# - x-oca-asset | ||
|
||
# Detailed logic to identify the same process from different records is more | ||
# complex than many data source query language can express, so Kestrel | ||
# retrieves potential same process candidate records and perform fine-grained | ||
# process identification in Kestrel with these parameters. | ||
process_identification: | ||
pid_but_name_changed_time_begin_offset: -5 # seconds | ||
pid_but_name_changed_time_end_offset: 5 # seconds | ||
pid_and_name_time_begin_offset: -3600 # seconds | ||
pid_and_name_time_end_offset: 3600 # seconds | ||
pid_and_ppid_time_begin_offset: -3600 # seconds | ||
pid_and_ppid_time_end_offset: 3600 # seconds | ||
pid_and_name_and_ppid_time_begin_offset: -86400 # seconds | ||
pid_and_name_and_ppid_time_end_offset: 86400 # seconds | ||
|
||
# option when generating STIX query | ||
stixquery: | ||
timerange_start_offset: -300 # seconds | ||
timerange_stop_offset: 300 # seconds | ||
support_id: false # STIX 2.0 does not support unique ID | ||
|
||
# debug options | ||
debug: | ||
env_var: "KESTREL_DEBUG" # debug mode if the environment variable exists | ||
cache_directory_prefix: "kestrel-" # under system temp directory | ||
session_exit_marker: "session.exited" | ||
maximum_exited_session: 3 | ||
cache_directory_path: "~/kestrel-debug-session" # put in user's home directory by default | ||
|
||
# default identifier attribute(s) of an entity across all datasource interfaces | ||
# if multiple attributes are specified, logic AND will be added in between | ||
# each datasource interface config could have the same section to override this | ||
entity_identifier: | ||
file: "hashes[?algorithm_id == 3]" # sha256 | ||
group: uid | ||
process: uid | ||
endpoint: ip | ||
device: ip | ||
src_endpoint: | ||
- ip | ||
- port | ||
dst_endpoint: | ||
- ip | ||
- port | ||
certificate: serial_number | ||
user: uid |
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
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
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
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
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
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
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.