Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/msticpy
/ functions
Functions
3,664 in github.com/microsoft/msticpy
⨍
Functions
3,664
◇
Types & classes
443
↳
Endpoints
149
↓ 7 callers
Function
current_config_path
Return the path of the current config file, if any. Returns ------- Optional[str] path of the current config file
msticpy/common/pkg_config.py:92
↓ 7 callers
Function
df_to_networkx
Create a networkx graph from a DataFrame. Parameters ---------- data : pd.DataFrame Input data source_col : str C
msticpy/transform/network.py:26
↓ 7 callers
Function
get_process
Return the process event as a Series. Parameters ---------- procs : pd.DataFrame Process events (with process tree metadata)
msticpy/transform/process_tree_utils.py:91
↓ 7 callers
Method
import_query_file
Import a yaml data source definition. Parameters ---------- query_file : str Path to the file to import
tools/mp_demo_data.py:135
↓ 7 callers
Method
instantiate_entity
Class factory to return entity from raw dictionary representation. Parameters ---------- raw_entity : Mapping[str, A
msticpy/datamodel/entities/entity.py:474
↓ 7 callers
Function
lazy_import
Return the importing module and a callable for lazy importing. Parameters ---------- importer_name: str The module performin
msticpy/lazy_importer.py:18
↓ 7 callers
Method
list
(self)
tests/auth/test_provider_secrets.py:118
↓ 7 callers
Function
load_queries_from_yaml
Load a YAML file into a QueryCollection. Parameters ---------- yaml_file : Union[str, Path] The path to the YAML file to loa
msticpy/config/query_editor.py:996
↓ 7 callers
Method
lookup_iocs
Lookup Threat Intelligence reports for a collection of IoCs in active providers. Parameters ---------- data : Union[
msticpy/context/tilookup.py:136
↓ 7 callers
Method
query
Execute OpenObserve query and retrieve results. Parameters ---------- query : str OpenObserve query to e
msticpy/data/drivers/openobserve_driver.py:278
↓ 7 callers
Method
query_with_results
Execute the query via the /search endpoint and return a DataFrame + result status. Parameters ---------- query : str
msticpy/data/drivers/azure_search_driver.py:113
↓ 7 callers
Function
refresh_config
Re-read the config settings.
msticpy/common/pkg_config.py:110
↓ 7 callers
Function
safe_tar_extract
Safely extract a single tar archive member after path validation. Validates that the member path does not escape dest_dir and rejects sy
msticpy/common/archive_utils.py:75
↓ 7 callers
Method
save_parameter
Save currently edited parameter.
msticpy/config/query_editor.py:312
↓ 7 callers
Function
search_mdr_data
Return IDs for items matching terms. Parameters ---------- mdr_data : Dict[str, MordorEntry] Mordor dataset terms : str,
msticpy/data/drivers/mordor_driver.py:803
↓ 7 callers
Function
sel_fmt
Return a dictionary with layout and style for a select widget. Parameters ---------- width : str, optional The width of the
msticpy/config/query_editor.py:101
↓ 7 callers
Method
upload_file
Upload a file to the data store. Parameters ---------- file_path : str Path to the file to upload
msticpy/data/uploaders/uploader_base.py:32
↓ 6 callers
Function
_add_new_query
(query_editor, arg1, arg2)
tests/config/test_query_editor.py:218
↓ 6 callers
Function
_calc_split_ranges
Return a list of time ranges split by `split_delta`.
msticpy/data/core/query_provider_connections_mixin.py:508
↓ 6 callers
Method
_check_client
Check required client is present, if not create it. Parameters ---------- client_name : str The name of
msticpy/context/azure/azure_data.py:973
↓ 6 callers
Function
_check_required_key
(conf_section, key, sec_path)
msticpy/common/pkg_config.py:591
↓ 6 callers
Method
_ensure_timezone_aware
Ensure datetime is timezone-aware, defaulting to UTC if naive.
msticpy/nbwidgets/query_time.py:238
↓ 6 callers
Method
_format_datetime_display
Format datetime for display, ensuring UTC timezone.
msticpy/nbwidgets/query_time.py:244
↓ 6 callers
Method
_get_incident_id
Get an incident ID. Parameters ---------- incident : str An incident identifier Returns
msticpy/context/azure/sentinel_incidents.py:462
↓ 6 callers
Function
_get_mssg
(value, path)
msticpy/config/mp_config_control.py:450
↓ 6 callers
Function
_get_named_control
(edit_comp, name)
tests/config/test_item_editors.py:359
↓ 6 callers
Function
_get_named_control
Get the control with matching name.
msticpy/config/ce_azure_sentinel.py:289
↓ 6 callers
Function
_get_pkg_from_path
Generate module name variants from a file path.
tools/toollib/import_analyzer.py:522
↓ 6 callers
Method
_get_select_opts
Get provider options to populate select list.
msticpy/config/ce_azure_sentinel.py:146
↓ 6 callers
Function
_is_none_and_not_required
(value, val_type, val_opts)
msticpy/config/mp_config_control.py:454
↓ 6 callers
Method
_item_not_found_df
( cls: type[Self], vt_type: str, observable: str, )
msticpy/context/vtlookupv3/vtlookupv3.py:1171
↓ 6 callers
Function
_layout
Layout creation for widgets.
msticpy/vis/data_viewer.py:220
↓ 6 callers
Function
_normalize_to_utc
(time_stamp: dt.datetime)
msticpy/analysis/syslog_utils.py:238
↓ 6 callers
Function
_parse_query
Translate query or subquery.
msticpy/data/sql_to_kql.py:205
↓ 6 callers
Function
_patch_qry_prov
(patcher)
tests/context/azure/test_sentinel_workspaces.py:393
↓ 6 callers
Function
_read_config_file
Read a yaml config definition file. Parameters ---------- config_file : str Path to yaml config file Returns ------
msticpy/common/pkg_config.py:247
↓ 6 callers
Method
_series_to_list
(series: pd.Series)
msticpy/context/tiproviders/kql_base.py:415
↓ 6 callers
Method
add_link
Add a link between 2 nodes on the graph. Parameters ---------- source : str Name of node to link from
msticpy/vis/entity_graph_tools.py:257
↓ 6 callers
Method
add_parameter
Add a new parameter.
msticpy/config/query_editor.py:283
↓ 6 callers
Method
add_query_filter
Add an expression to the query attach filter.
msticpy/data/drivers/driver_base.py:268
↓ 6 callers
Method
add_summary_items
Add list of DynamicSummaryItems replacing existing list. Parameters ---------- data : Union[Iterable[DynamicSummaryI
msticpy/context/azure/sentinel_dynamic_summary_types.py:406
↓ 6 callers
Function
build_and_show_process_tree
Build process tree from data and plot a tree. Parameters ---------- data : pd.DataFrame Window process creation or Linux Aud
msticpy/vis/process_tree.py:91
↓ 6 callers
Method
compute_rarest_windows
Find the rarest window and corresponding likelihood for each session. In particular, uses a sliding window approach to find the rare
msticpy/analysis/anomalous_sequence/model.py:510
↓ 6 callers
Method
connect
Connect to data source. Parameters ---------- connection_str : str Connect to a data source
msticpy/data/drivers/local_osquery_driver.py:116
↓ 6 callers
Method
connect
Connect to Sumologic via sumologic-sdk. Parameters ---------- connection_str : Sumologic API url endpoin
msticpy/data/drivers/sumologic_driver.py:74
↓ 6 callers
Function
display_timeline
Display a timeline of events. Parameters ---------- data : Union[dict, pd.DataFrame] Either dict of data sets to plo
msticpy/vis/timeline.py:99
↓ 6 callers
Function
exec_notebook
Run a notebook. Parameters ---------- nb_path : str | Path Path to the notebook to run out_dir : str | Path | None, opti
tests/unit_test_lib.py:141
↓ 6 callers
Method
exec_query
Execute simple query string. Parameters ---------- query : str [description] Returns --
tools/mp_demo_data.py:170
↓ 6 callers
Method
filter_cols
Filter output columns matching names in `cols` expression(s). Parameters ---------- cols : Union[str, Iterable[str]]
msticpy/init/pivot_core/pivot_pd_accessor.py:213
↓ 6 callers
Method
get_driver_property
Return value or KeyError from driver properties.
msticpy/data/drivers/driver_base.py:290
↓ 6 callers
Function
get_ip_type
Validate value is an IP address and determine IPType category. (IPAddress category is e.g. Private/Public/Multicast). Parameters --
msticpy/context/ip_utils.py:229
↓ 6 callers
Function
is_valid_uuid
Return true if `uuid_str` is a value GUID/UUID. Parameters ---------- uuid_str : str String to test Returns -------
msticpy/common/utility/format.py:21
↓ 6 callers
Function
preprocess_observable
Preprocess and check validity of observable against declared IoC type. Parameters ---------- observable : _type_ the value o
msticpy/context/preprocess_observable.py:336
↓ 6 callers
Method
query_with_results
Test method.
tests/data/test_dataqueries.py:65
↓ 6 callers
Method
read_secret
Return the secret value. Parameters ---------- secret_object : Any If it is a func, call and return the
msticpy/auth/secret_settings.py:200
↓ 6 callers
Function
read_yaml_files
Create dictionary mapping query file paths with the yaml file text each contains. Parameters ---------- parent_dir : str Dir
msticpy/data/drivers/sentinel_query_reader.py:153
↓ 6 callers
Method
set_provider_state
Set a dict of providers to primary/secondary. Parameters ---------- prov_dict : dict[str, bool] Dictiona
msticpy/context/lookup.py:256
↓ 6 callers
Method
upload_df
Upload a Pandas DataFrame to the data store. Parameters ---------- data : pd.DataFrame The DataFrame to
msticpy/data/uploaders/uploader_base.py:66
↓ 5 callers
Method
_add_entity_node
Add an Entity to the graph.
msticpy/vis/entity_graph_tools.py:353
↓ 5 callers
Function
_add_test_param
(editor)
tests/config/test_query_editor.py:66
↓ 5 callers
Function
_box_layout
(width="95%")
msticpy/init/pivot_core/pivot_browser.py:38
↓ 5 callers
Function
_check_config
Check if an iteam is present in a config.
msticpy/data/drivers/odata_driver.py:578
↓ 5 callers
Method
_check_environment
Check environment against known names.
msticpy/data/core/data_providers.py:154
↓ 5 callers
Function
_core_html
()
tests/vis/test_code_view.py:63
↓ 5 callers
Function
_create_tar_gz_bytes
Create an in-memory tar.gz archive.
tests/common/test_archive_utils.py:59
↓ 5 callers
Function
_extract_pkg_specs
Extract package specifications from requirements strings. Parameters ---------- pkg_specs : list[str] List of requirement sp
tools/toollib/import_analyzer.py:426
↓ 5 callers
Method
_get_api
Return the latest avaliable API version for the resource. Parameters ---------- resource_id: str, optional
msticpy/context/azure/azure_data.py:640
↓ 5 callers
Function
_get_event_loop
Return the current event loop, or create a new one.
msticpy/data/core/query_provider_connections_mixin.py:496
↓ 5 callers
Method
_get_items
Get items from the API.
msticpy/context/azure/sentinel_utils.py:81
↓ 5 callers
Function
_get_piv_attrs
(entity)
tests/init/pivot/test_pivot.py:224
↓ 5 callers
Method
_handle_connection_error
Handle general connection errors.
msticpy/data/drivers/prismacloud_driver.py:430
↓ 5 callers
Function
_make_sync
Wait for an async call, making it sync.
msticpy/context/vtlookupv3/vtlookupv3.py:102
↓ 5 callers
Method
_raise_qry_except
(err: Exception, mssg: str, action: str | None = None)
msticpy/data/drivers/sumologic_driver.py:366
↓ 5 callers
Function
_verify_column
Verify individual column.
msticpy/transform/network.py:136
↓ 5 callers
Method
connect
Connect to data source. Parameters ---------- connection_str : str | WorkspaceConfig | None Connection s
msticpy/data/drivers/azure_monitor_driver.py:181
↓ 5 callers
Method
connect
Connect to oauth data source. Parameters ---------- connection_str: Optional[str], optional Connect to a
msticpy/data/drivers/odata_driver.py:126
↓ 5 callers
Function
default_auth_methods
Get the default (all) authentication options.
msticpy/auth/cloud_mappings.py:171
↓ 5 callers
Function
default_before_after
Return default before and after bounds for a TimeUnit.
msticpy/nbwidgets/core.py:164
↓ 5 callers
Function
format_endpoint
Format an endpoint with "/" if needed .
msticpy/auth/cloud_mappings.py:62
↓ 5 callers
Method
get
(self, res_group, vault_name)
tests/auth/test_provider_secrets.py:121
↓ 5 callers
Function
get_defn_or_default
Return the type and options (or a default) for the setting definition. Parameters ---------- defn : Optional[Tuple[str, dict]]
msticpy/config/ce_common.py:409
↓ 5 callers
Method
get_file_paths
Return list of data file links. Returns ------- List[Dict[str, str]] list of dictionaries describing fil
msticpy/data/drivers/mordor_driver.py:481
↓ 5 callers
Method
get_object
Return the full VT object as a DataFrame. Parameters ---------- vt_id : str The ID of the object
msticpy/context/vtlookupv3/vtlookupv3.py:834
↓ 5 callers
Function
get_or_create_mpc_section
Return (and create if it doesn't exist) a settings section. Parameters ---------- mp_controls : MpConfigControls The MP Conf
msticpy/config/ce_common.py:431
↓ 5 callers
Method
get_resource_id_from_url
Return resource ID components from Sentinel portal URL.
msticpy/context/azure/sentinel_workspaces.py:58
↓ 5 callers
Method
get_secret
Retrieve a secret from the Vault. Parameters ---------- secret_name : str Name of the secret Re
msticpy/auth/keyvault_client.py:280
↓ 5 callers
Method
get_service_of_type
Return the first linked service of specific `svc_type`. Parameters ---------- svc_type : str Service Typ
msticpy/init/azure_synapse_tools.py:335
↓ 5 callers
Method
get_storage_service
Return linked storage service (named) or default storage.
msticpy/init/azure_synapse_tools.py:413
↓ 5 callers
Function
get_tick_formatter
Return tick formatting for different zoom levels.
msticpy/vis/timeline_common.py:413
↓ 5 callers
Method
get_workspace_settings
Return resolved workspace settings from workspace ID or resource ID. Parameters ---------- workspace_id : Optional[s
msticpy/context/azure/sentinel_workspaces.py:185
↓ 5 callers
Function
hash_string
Hash a simple string. Parameters ---------- input_str : str The input string Returns ------- str The ob
msticpy/data/data_obfus.py:34
↓ 5 callers
Method
list_available_providers
Print a list of builtin providers with optional usage. Parameters ---------- show_query_types : bool, optional
msticpy/context/lookup.py:715
↓ 5 callers
Method
make_pivot_shortcut
Add a shortcut to a pivot function to the class. Parameters ---------- func_name : str The name of sourc
msticpy/datamodel/entities/entity.py:633
↓ 5 callers
Method
parse
Parse string or numeric value to ResultSeverity. Parameters ---------- value : Any ResultSeverity, str o
msticpy/context/tiproviders/result_severity.py:35
↓ 5 callers
Function
parse_time_unit
Return the TimeUnit enum matching the input string.
msticpy/nbwidgets/core.py:134
↓ 5 callers
Method
plot
Plot a graph of entities. Parameters ---------- hide : bool, optional Set true to not display the graphi
msticpy/vis/entity_graph_tools.py:81
↓ 5 callers
Function
plot_ref_line
Add a reference marker line and label at `ref_time`.
msticpy/vis/timeline_common.py:321
↓ 5 callers
Method
query
Execute query string and return DataFrame of results. Parameters ---------- query : str The query to exe
msticpy/data/drivers/odata_driver.py:102
↓ 5 callers
Method
query
Execute query string and return DataFrame of results. Parameters ---------- query : str The query to exe
msticpy/data/drivers/azure_kusto_driver.py:408
↓ 5 callers
Method
reload_pivots
Load or reload Pivot functions from environment and/or providers list. Parameters ---------- namespace : Dict[str, A
msticpy/init/pivot.py:84
← previous
next →
101–200 of 3,664, ranked by callers