MCPcopy Index your code

hub / github.com/microsoft/msticpy / functions

Functions3,664 in github.com/microsoft/msticpy

↓ 7 callersFunctioncurrent_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 callersFunctiondf_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 callersFunctionget_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 callersMethodimport_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 callersMethodinstantiate_entity
Class factory to return entity from raw dictionary representation. Parameters ---------- raw_entity : Mapping[str, A
msticpy/datamodel/entities/entity.py:474
↓ 7 callersFunctionlazy_import
Return the importing module and a callable for lazy importing. Parameters ---------- importer_name: str The module performin
msticpy/lazy_importer.py:18
↓ 7 callersMethodlist
(self)
tests/auth/test_provider_secrets.py:118
↓ 7 callersFunctionload_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 callersMethodlookup_iocs
Lookup Threat Intelligence reports for a collection of IoCs in active providers. Parameters ---------- data : Union[
msticpy/context/tilookup.py:136
↓ 7 callersMethodquery
Execute OpenObserve query and retrieve results. Parameters ---------- query : str OpenObserve query to e
msticpy/data/drivers/openobserve_driver.py:278
↓ 7 callersMethodquery_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 callersFunctionrefresh_config
Re-read the config settings.
msticpy/common/pkg_config.py:110
↓ 7 callersFunctionsafe_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 callersMethodsave_parameter
Save currently edited parameter.
msticpy/config/query_editor.py:312
↓ 7 callersFunctionsearch_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 callersFunctionsel_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 callersMethodupload_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 callersFunction_add_new_query
(query_editor, arg1, arg2)
tests/config/test_query_editor.py:218
↓ 6 callersFunction_calc_split_ranges
Return a list of time ranges split by `split_delta`.
msticpy/data/core/query_provider_connections_mixin.py:508
↓ 6 callersMethod_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 callersFunction_check_required_key
(conf_section, key, sec_path)
msticpy/common/pkg_config.py:591
↓ 6 callersMethod_ensure_timezone_aware
Ensure datetime is timezone-aware, defaulting to UTC if naive.
msticpy/nbwidgets/query_time.py:238
↓ 6 callersMethod_format_datetime_display
Format datetime for display, ensuring UTC timezone.
msticpy/nbwidgets/query_time.py:244
↓ 6 callersMethod_get_incident_id
Get an incident ID. Parameters ---------- incident : str An incident identifier Returns
msticpy/context/azure/sentinel_incidents.py:462
↓ 6 callersFunction_get_mssg
(value, path)
msticpy/config/mp_config_control.py:450
↓ 6 callersFunction_get_named_control
(edit_comp, name)
tests/config/test_item_editors.py:359
↓ 6 callersFunction_get_named_control
Get the control with matching name.
msticpy/config/ce_azure_sentinel.py:289
↓ 6 callersFunction_get_pkg_from_path
Generate module name variants from a file path.
tools/toollib/import_analyzer.py:522
↓ 6 callersMethod_get_select_opts
Get provider options to populate select list.
msticpy/config/ce_azure_sentinel.py:146
↓ 6 callersFunction_is_none_and_not_required
(value, val_type, val_opts)
msticpy/config/mp_config_control.py:454
↓ 6 callersMethod_item_not_found_df
( cls: type[Self], vt_type: str, observable: str, )
msticpy/context/vtlookupv3/vtlookupv3.py:1171
↓ 6 callersFunction_layout
Layout creation for widgets.
msticpy/vis/data_viewer.py:220
↓ 6 callersFunction_normalize_to_utc
(time_stamp: dt.datetime)
msticpy/analysis/syslog_utils.py:238
↓ 6 callersFunction_parse_query
Translate query or subquery.
msticpy/data/sql_to_kql.py:205
↓ 6 callersFunction_patch_qry_prov
(patcher)
tests/context/azure/test_sentinel_workspaces.py:393
↓ 6 callersFunction_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 callersMethod_series_to_list
(series: pd.Series)
msticpy/context/tiproviders/kql_base.py:415
↓ 6 callersMethodadd_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 callersMethodadd_parameter
Add a new parameter.
msticpy/config/query_editor.py:283
↓ 6 callersMethodadd_query_filter
Add an expression to the query attach filter.
msticpy/data/drivers/driver_base.py:268
↓ 6 callersMethodadd_summary_items
Add list of DynamicSummaryItems replacing existing list. Parameters ---------- data : Union[Iterable[DynamicSummaryI
msticpy/context/azure/sentinel_dynamic_summary_types.py:406
↓ 6 callersFunctionbuild_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 callersMethodcompute_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 callersMethodconnect
Connect to data source. Parameters ---------- connection_str : str Connect to a data source
msticpy/data/drivers/local_osquery_driver.py:116
↓ 6 callersMethodconnect
Connect to Sumologic via sumologic-sdk. Parameters ---------- connection_str : Sumologic API url endpoin
msticpy/data/drivers/sumologic_driver.py:74
↓ 6 callersFunctiondisplay_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 callersFunctionexec_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 callersMethodexec_query
Execute simple query string. Parameters ---------- query : str [description] Returns --
tools/mp_demo_data.py:170
↓ 6 callersMethodfilter_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 callersMethodget_driver_property
Return value or KeyError from driver properties.
msticpy/data/drivers/driver_base.py:290
↓ 6 callersFunctionget_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 callersFunctionis_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 callersFunctionpreprocess_observable
Preprocess and check validity of observable against declared IoC type. Parameters ---------- observable : _type_ the value o
msticpy/context/preprocess_observable.py:336
↓ 6 callersMethodquery_with_results
Test method.
tests/data/test_dataqueries.py:65
↓ 6 callersMethodread_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 callersFunctionread_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 callersMethodset_provider_state
Set a dict of providers to primary/secondary. Parameters ---------- prov_dict : dict[str, bool] Dictiona
msticpy/context/lookup.py:256
↓ 6 callersMethodupload_df
Upload a Pandas DataFrame to the data store. Parameters ---------- data : pd.DataFrame The DataFrame to
msticpy/data/uploaders/uploader_base.py:66
↓ 5 callersMethod_add_entity_node
Add an Entity to the graph.
msticpy/vis/entity_graph_tools.py:353
↓ 5 callersFunction_add_test_param
(editor)
tests/config/test_query_editor.py:66
↓ 5 callersFunction_box_layout
(width="95%")
msticpy/init/pivot_core/pivot_browser.py:38
↓ 5 callersFunction_check_config
Check if an iteam is present in a config.
msticpy/data/drivers/odata_driver.py:578
↓ 5 callersMethod_check_environment
Check environment against known names.
msticpy/data/core/data_providers.py:154
↓ 5 callersFunction_core_html
()
tests/vis/test_code_view.py:63
↓ 5 callersFunction_create_tar_gz_bytes
Create an in-memory tar.gz archive.
tests/common/test_archive_utils.py:59
↓ 5 callersFunction_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 callersMethod_get_api
Return the latest avaliable API version for the resource. Parameters ---------- resource_id: str, optional
msticpy/context/azure/azure_data.py:640
↓ 5 callersFunction_get_event_loop
Return the current event loop, or create a new one.
msticpy/data/core/query_provider_connections_mixin.py:496
↓ 5 callersMethod_get_items
Get items from the API.
msticpy/context/azure/sentinel_utils.py:81
↓ 5 callersFunction_get_piv_attrs
(entity)
tests/init/pivot/test_pivot.py:224
↓ 5 callersMethod_handle_connection_error
Handle general connection errors.
msticpy/data/drivers/prismacloud_driver.py:430
↓ 5 callersFunction_make_sync
Wait for an async call, making it sync.
msticpy/context/vtlookupv3/vtlookupv3.py:102
↓ 5 callersMethod_raise_qry_except
(err: Exception, mssg: str, action: str | None = None)
msticpy/data/drivers/sumologic_driver.py:366
↓ 5 callersFunction_verify_column
Verify individual column.
msticpy/transform/network.py:136
↓ 5 callersMethodconnect
Connect to data source. Parameters ---------- connection_str : str | WorkspaceConfig | None Connection s
msticpy/data/drivers/azure_monitor_driver.py:181
↓ 5 callersMethodconnect
Connect to oauth data source. Parameters ---------- connection_str: Optional[str], optional Connect to a
msticpy/data/drivers/odata_driver.py:126
↓ 5 callersFunctiondefault_auth_methods
Get the default (all) authentication options.
msticpy/auth/cloud_mappings.py:171
↓ 5 callersFunctiondefault_before_after
Return default before and after bounds for a TimeUnit.
msticpy/nbwidgets/core.py:164
↓ 5 callersFunctionformat_endpoint
Format an endpoint with "/" if needed .
msticpy/auth/cloud_mappings.py:62
↓ 5 callersMethodget
(self, res_group, vault_name)
tests/auth/test_provider_secrets.py:121
↓ 5 callersFunctionget_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 callersMethodget_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 callersMethodget_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 callersFunctionget_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 callersMethodget_resource_id_from_url
Return resource ID components from Sentinel portal URL.
msticpy/context/azure/sentinel_workspaces.py:58
↓ 5 callersMethodget_secret
Retrieve a secret from the Vault. Parameters ---------- secret_name : str Name of the secret Re
msticpy/auth/keyvault_client.py:280
↓ 5 callersMethodget_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 callersMethodget_storage_service
Return linked storage service (named) or default storage.
msticpy/init/azure_synapse_tools.py:413
↓ 5 callersFunctionget_tick_formatter
Return tick formatting for different zoom levels.
msticpy/vis/timeline_common.py:413
↓ 5 callersMethodget_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 callersFunctionhash_string
Hash a simple string. Parameters ---------- input_str : str The input string Returns ------- str The ob
msticpy/data/data_obfus.py:34
↓ 5 callersMethodlist_available_providers
Print a list of builtin providers with optional usage. Parameters ---------- show_query_types : bool, optional
msticpy/context/lookup.py:715
↓ 5 callersMethodmake_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 callersMethodparse
Parse string or numeric value to ResultSeverity. Parameters ---------- value : Any ResultSeverity, str o
msticpy/context/tiproviders/result_severity.py:35
↓ 5 callersFunctionparse_time_unit
Return the TimeUnit enum matching the input string.
msticpy/nbwidgets/core.py:134
↓ 5 callersMethodplot
Plot a graph of entities. Parameters ---------- hide : bool, optional Set true to not display the graphi
msticpy/vis/entity_graph_tools.py:81
↓ 5 callersFunctionplot_ref_line
Add a reference marker line and label at `ref_time`.
msticpy/vis/timeline_common.py:321
↓ 5 callersMethodquery
Execute query string and return DataFrame of results. Parameters ---------- query : str The query to exe
msticpy/data/drivers/odata_driver.py:102
↓ 5 callersMethodquery
Execute query string and return DataFrame of results. Parameters ---------- query : str The query to exe
msticpy/data/drivers/azure_kusto_driver.py:408
↓ 5 callersMethodreload_pivots
Load or reload Pivot functions from environment and/or providers list. Parameters ---------- namespace : Dict[str, A
msticpy/init/pivot.py:84
← previousnext →101–200 of 3,664, ranked by callers