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
↓ 5 callers
Method
resolve_item_type
Return IoCType determined by ItemExtract. Parameters ---------- item : str Item string Returns
msticpy/context/provider_base.py:353
↓ 5 callers
Function
safe_zip_extract
Safely extract a single zip archive member after path validation. Validates that the member path does not escape dest_dir. Parameters
msticpy/common/archive_utils.py:120
↓ 5 callers
Method
save_to_file
Save current configuration to `file`. Parameters ---------- file : str The file path to save to.
msticpy/config/mp_config_file.py:219
↓ 5 callers
Method
set_control
Set the control stored at `path`.
msticpy/config/mp_config_control.py:126
↓ 5 callers
Method
set_default_workspace
Set the default workspace from workspace name or resource id. Parameters ---------- workspace : Optional[str], optio
msticpy/context/azure/sentinel_core.py:369
↓ 5 callers
Method
set_time
Change the time attributes. Parameters ---------- start : Union[datetime, str] Start time - (must specif
msticpy/nbwidgets/query_time.py:250
↓ 5 callers
Method
show
Make the controls visible.
msticpy/nbwidgets/progress.py:95
↓ 5 callers
Function
timestamps_to_utcdate
Replace Unix timestamps in VT data with Py/pandas Timestamp.
msticpy/context/vtlookupv3/vtlookupv3.py:1215
↓ 5 callers
Method
to_networkx
Return networkx graph of entities. Parameters ---------- graph : nx.Graph, optional Graph to add entitie
msticpy/datamodel/entities/entity.py:553
↓ 5 callers
Method
upload_folder
Upload a folder of files to the data store. Parameters ---------- folder_path : str Path to the folder o
msticpy/data/uploaders/uploader_base.py:48
↓ 5 callers
Function
valid_pyname
Return legal Python identifier, which doesn't collide with builtins. Parameters ---------- identifier : str The input identi
msticpy/common/utility/format.py:46
↓ 4 callers
Method
_add_filter
(self, btn)
msticpy/vis/data_viewer.py:376
↓ 4 callers
Method
_add_incident_or_alert_node
Check what type of entity is passed in and creates relevant graph.
msticpy/vis/entity_graph_tools.py:346
↓ 4 callers
Function
_add_proc_key
Add process/parent key to data. Parameters ---------- data : pd.DataFrame Input data key_name : str The name of
msticpy/transform/proc_tree_build_mde.py:76
↓ 4 callers
Function
_add_related_alert_edge
Add related alert to an existing graph.
msticpy/nbtools/security_alert_graph.py:178
↓ 4 callers
Function
_azs_api_result_to_df
Convert API response to a Pandas dataframe. Parameters ---------- response : httpx.Response A response object from an Azure
msticpy/context/azure/sentinel_utils.py:255
↓ 4 callers
Method
_btn_func
Wrap methods to be called from button events.
msticpy/config/mp_config_file.py:370
↓ 4 callers
Method
_btn_func_no_disp
Wrap methods to be called from button events.
msticpy/config/mp_config_file.py:380
↓ 4 callers
Function
_build_query_string
Build query string for the API request based on the provided data and pd_type. Parameters ---------- data : Any Data to be m
msticpy/context/tiproviders/pulsedive.py:310
↓ 4 callers
Function
_check_is_uuid
(conf_section, key, sec_path)
msticpy/common/pkg_config.py:603
↓ 4 callers
Function
_check_stdlib_path
Check if a module is in the standard library by path.
tools/toollib/import_analyzer.py:500
↓ 4 callers
Method
_check_watchlist_exists
Check whether a Watchlist exists or not. Parameters ---------- watchlist_name : str The Watchlist to che
msticpy/context/azure/sentinel_watchlists.py:427
↓ 4 callers
Function
_extract_entities
Extract all entities from a set and replace $ref elements.
msticpy/datamodel/entities/alert.py:337
↓ 4 callers
Function
_fill_empty_columns
Fill empty columns in the DataFrame.
msticpy/transform/process_tree_utils.py:496
↓ 4 callers
Function
_find_graph_node
Find a node with a given name and type.
msticpy/nbtools/security_alert_graph.py:165
↓ 4 callers
Method
_format_datetime
Return datetime-formatted string.
msticpy/data/drivers/sumologic_driver.py:537
↓ 4 callers
Method
_format_datetime
Return datetime-formatted string. python-openobserve takes datetime or microseconds since epoch as input
msticpy/data/drivers/openobserve_driver.py:396
↓ 4 callers
Method
_g_test
Carry out fishers g test for periodicity. Fisher's g test tests the null hypothesis that the time series is gaussian white noise
msticpy/analysis/polling_detection.py:81
↓ 4 callers
Function
_get_driver_settings
Try to retrieve config settings for OAuth drivers.
msticpy/data/drivers/odata_driver.py:542
↓ 4 callers
Method
_get_param_string
Return text representation of keyword params.
msticpy/init/pivot_core/pivot_pipeline.py:99
↓ 4 callers
Method
_get_select_opts
Get provider options to populate select list.
msticpy/config/ce_provider_base.py:133
↓ 4 callers
Method
_get_settings_for_workspace
Return settings dictionary for workspace settings.
msticpy/context/azure/sentinel_workspaces.py:388
↓ 4 callers
Method
_get_workspaces
Get workspace or workspaces to connect to.
msticpy/data/drivers/azure_monitor_driver.py:437
↓ 4 callers
Method
_lookup_items_async_wrapper
Async wrapper for providers that do not implement lookup_items_async. Parameters ---------- data : Union[pd.DataFram
msticpy/context/provider_base.py:370
↓ 4 callers
Method
_make_mb_request
Request to the malware bazaar api.
msticpy/context/tiproviders/mblookup.py:86
↓ 4 callers
Method
_make_pd_request
Make a request to the PulseDive API with the provided data. Parameters ---------- pd_query : PDQuery Req
msticpy/context/tiproviders/pulsedive.py:208
↓ 4 callers
Function
_match_pkg_to_reqs
Match imports to setup requirements and identify missing requirements.
tools/toollib/import_analyzer.py:557
↓ 4 callers
Function
_print_status
(message: str, *, newline: bool = True)
msticpy/auth/keyvault_client.py:521
↓ 4 callers
Method
_scan_for_iocs
Return IoCs found in the string.
msticpy/transform/iocextract.py:660
↓ 4 callers
Function
_select_api
Return API and login URIs for selected provider type. Validated against Microsoft documentation: MDE Advanced Queries: https://lear
msticpy/data/drivers/mdatp_driver.py:253
↓ 4 callers
Method
add_connection
Add an additional connection for the query provider. Parameters ---------- connection_str : Optional[str], optional
msticpy/data/core/query_provider_connections_mixin.py:107
↓ 4 callers
Method
add_data_source
Add a datasource/query to the store. Parameters ---------- source : QuerySource The source to add. An ex
msticpy/data/core/query_store.py:134
↓ 4 callers
Method
add_ip_cluster
Add a collection of IP Entities to the map. Parameters ---------- ip_entities : Iterable[IpAddress] a it
msticpy/vis/foliummap.py:103
↓ 4 callers
Method
add_observation
Add an observation. Add an observation as an Observation instance or as a set of keyword parameters (see Observation class f
msticpy/analysis/observationlist.py:181
↓ 4 callers
Function
build_process_tree
Build process trees from the process events. Parameters ---------- procs : pd.DataFrame Process events (Windows 4688 or Linu
msticpy/transform/proc_tree_builder.py:32
↓ 4 callers
Function
calc_auto_plot_height
Dynamic calculation of plot height.
msticpy/vis/timeline_common.py:256
↓ 4 callers
Function
check_url
Connect to URL and return response status. Parameters ---------- url : str URL to check Returns ------- UrlResu
tools/toollib/url_checker.py:27
↓ 4 callers
Method
compute_likelihoods_of_sessions
Compute the likelihoods for each of the sessions. Note: If the lengths (number of commands) of the sessions vary a lot, then
msticpy/analysis/anomalous_sequence/model.py:418
↓ 4 callers
Method
compute_setof_params_cond_cmd
Compute likelihood of combinations of params conditional on the cmd. In particular, go through each command from each session and
msticpy/analysis/anomalous_sequence/model.py:339
↓ 4 callers
Method
connect
Connect to data source. Parameters ---------- connection_str : str Connect to a data source
msticpy/data/drivers/local_velociraptor_driver.py:81
↓ 4 callers
Method
connect
Authenticate with the SDK.
msticpy/data/storage/azure_blob_storage.py:49
↓ 4 callers
Function
convert_to_ip_entities
Take in an IP Address string and converts it to an IP Entity. Parameters ---------- ip_str : str A string with a single IP A
msticpy/context/ip_utils.py:99
↓ 4 callers
Method
create_dynamic_summary
Create a Dynamic Summary in the Sentinel Workspace. Parameters ---------- summary : DynamicSummary Dynam
msticpy/context/azure/sentinel_dynamic_summary.py:186
↓ 4 callers
Method
create_indicator
Create a new indicator within the Microsoft Sentinel workspace. Parameters ---------- indicator : str Th
msticpy/context/azure/sentinel_ti.py:115
↓ 4 callers
Function
create_query_source
Create custom query source for testing.
tests/data/drivers/test_azure_kusto_driver.py:489
↓ 4 callers
Function
create_range_tool
Create plot bar to act as as range selector.
msticpy/vis/timeline_common.py:263
↓ 4 callers
Function
create_tool_tips
Create formatting for tool tip columns.
msticpy/vis/timeline_common.py:213
↓ 4 callers
Function
default_max_buffer
Return the max time buffer for a give time unit.
msticpy/nbwidgets/core.py:149
↓ 4 callers
Method
del_value
Delete setting item at `path`.
msticpy/config/mp_config_control.py:116
↓ 4 callers
Method
detect_polling
Detect the time interval which is highly periodic. Runs PeriodogramPollingDetector._detect_polling_arr on the time_column and popula
msticpy/analysis/polling_detection.py:207
↓ 4 callers
Function
df_to_dynamic_summary
r""" Return a single DynamicSummary object from a DataFrame. Parameters ---------- data : pd.DataFrame DataFrame containing a
msticpy/context/azure/sentinel_dynamic_summary_types.py:736
↓ 4 callers
Method
disable_provider
Set the provider as secondary (not used by default). Parameters ---------- providers : Union[str, Iterable[str]
msticpy/context/lookup.py:221
↓ 4 callers
Function
display_timeline_duration
Display a duration timeline of events grouped by one or more columns. Parameters ---------- data : pd.DataFrame Data to plot
msticpy/vis/timeline_duration.py:82
↓ 4 callers
Function
display_timeline_values
Display a timeline of events. Parameters ---------- data : pd.DataFrame DataFrame as a single data set or grouped into indiv
msticpy/vis/timeline_values.py:87
↓ 4 callers
Function
display_timeseries_anomalies
Display time series anomalies visualization. Parameters ---------- data : pd.DataFrame DataFrame as a time series data set r
msticpy/vis/timeseries.py:68
↓ 4 callers
Method
enable_provider
Set the provider(s) as primary (used by default). Parameters ---------- providers : Union[str, Iterable[str]
msticpy/context/lookup.py:186
↓ 4 callers
Function
exec_connect
Mock the connection succeeding.
tests/init/pivot/conftest.py:50
↓ 4 callers
Method
extract_df
Extract IoCs from either a pandas DataFrame. Parameters ---------- data : pd.DataFrame input DataFrame f
msticpy/transform/iocextract.py:454
↓ 4 callers
Function
extract_events_to_df
Extract auditd raw messages into a dataframe. Parameters ---------- data : pd.DataFrame The input dataframe with raw auditd
msticpy/transform/auditdextract.py:273
↓ 4 callers
Method
fit
Build the forest from training data. Parameters ---------- x : np.ndarray input data to train R
msticpy/analysis/outliers.py:230
↓ 4 callers
Method
format_kv_name
Return normalized name for use as a KeyVault secret name.
msticpy/auth/secret_settings.py:142
↓ 4 callers
Method
from_connection_string
Create a WorkstationConfig from a connection string.
msticpy/common/wsconfig.py:284
↓ 4 callers
Method
from_json
Create new DynamicSummary instance from json string or dict.
msticpy/context/azure/sentinel_dynamic_summary_types.py:260
↓ 4 callers
Function
get_aml_user_folder
Return the root of the user folder.
msticpy/init/azure_ml_tools.py:367
↓ 4 callers
Function
get_azure_config_value
Get a config value from Azure section.
msticpy/auth/cloud_mappings.py:162
↓ 4 callers
Function
get_center_geo_locs
Return the geographical center of the geo locations. Parameters ---------- loc_entities : Iterable[GeoLocation] GeoLocation
msticpy/vis/foliummap.py:1066
↓ 4 callers
Function
get_setup_reqs
Return list of extras from setup.py. Parameters ---------- package_root : str The root folder of the package req_file
tools/toollib/import_analyzer.py:216
↓ 4 callers
Function
get_ti_select_options
Get SelectItem options for TI data.
msticpy/vis/ti_browser.py:60
↓ 4 callers
Function
get_wgt_ctrl
Return widget appropriate to value type of `var_name`. Parameters ---------- setting_path : str The setting path (parent pat
msticpy/config/ce_common.py:303
↓ 4 callers
Method
get_workspace_details_from_url
Return workspace settings from portal URL. Parameters ---------- portal_url : str URL from Sentinel Azur
msticpy/context/azure/sentinel_workspaces.py:68
↓ 4 callers
Method
get_workspace_settings_by_name
Return the workspace ID given workspace name. Parameters ---------- workspace_name : str Workspace name
msticpy/context/azure/sentinel_workspaces.py:230
↓ 4 callers
Method
host_filter
Return a KQL host filter clause derived from the alert properties. :param operator='==': the operator to use in the filter claus
msticpy/nbtools/security_base.py:373
↓ 4 callers
Function
import_sentinel_queries
Create list of SentinelQuery attr objects. Parameters ---------- yaml_files : dict Dictionary mapping query file addresses t
msticpy/data/drivers/sentinel_query_reader.py:183
↓ 4 callers
Method
is_keyring_available
Test if valid keyring backend is available. Returns ------- bool True if Keyring has a usable backend, F
msticpy/auth/keyring_client.py:110
↓ 4 callers
Function
is_not_empty
Return True if the test_object is not None or empty.
msticpy/common/utility/format.py:77
↓ 4 callers
Method
lookup_items
Lookup a collection of items. Parameters ---------- data : Union[pd.DataFrame, Mapping[str, str], Iterable[str]]
msticpy/context/lookup.py:429
↓ 4 callers
Function
plot_matrix
Plot data as an intersection matrix. Parameters ---------- data : pd.DataFrame The data to plot. x : str Column
msticpy/vis/matrix_plot.py:73
↓ 4 callers
Method
populate_ctrl_values
Populate control at `path` from settings at `path`.
msticpy/config/mp_config_control.py:163
↓ 4 callers
Method
populate_query_dropdown
Populate the query dropdown widget. Parameters ---------- change : Any The change event.
msticpy/config/query_editor.py:492
↓ 4 callers
Method
predict
Predict anomaly labels (-1 for outliers, 1 for inliers). Parameters ---------- x : np.ndarray input data
msticpy/analysis/outliers.py:363
↓ 4 callers
Function
refang_ioc
Return observable with removed de-fanging elements. Parameters ---------- ioc : str The observable to re-fang. ioc_type
msticpy/common/utility/format.py:125
↓ 4 callers
Method
remove_pivot_funcs
Remove pivot functions from one or all entities. Parameters ---------- entity : str entity class name or
msticpy/init/pivot.py:407
↓ 4 callers
Method
set_secret
Set a secret in the keyring group. Parameters ---------- secret_name : str Name of the secret se
msticpy/auth/keyring_client.py:77
↓ 4 callers
Method
to_html
Return the item as HTML string.
msticpy/datamodel/entities/alert.py:312
↓ 4 callers
Function
validate_queries_file_structure
Test if query files have a valid structure.
tests/data/queries/test_query_files.py:18
↓ 4 callers
Function
widget_to_py
Adjust type and format of value returned from `ctrl.value`. Parameters ---------- ctrl : Union[widgets.Widget, SettingsControl]
msticpy/config/ce_common.py:119
↓ 3 callers
Method
__execute_query
Run query with pagination enabled. Parameters ---------- body: dict[str, Any] Body of the HTTP Request
msticpy/data/drivers/cybereason_driver.py:501
↓ 3 callers
Method
_add_highest_pri_match
(iocs_found: dict, current_match: str, current_def: IoCPattern)
msticpy/transform/iocextract.py:723
↓ 3 callers
Method
_add_invalid_input_result
Add a result row to indicate an invalid submission. Parameters ---------- observable : str The IoC obser
msticpy/context/vtlookupv3/vtlookup.py:786
↓ 3 callers
Method
_add_paths
(self, full_path, file_name=None)
msticpy/datamodel/entities/file.py:160
← previous
next →
201–300 of 3,664, ranked by callers