MCPcopy Create free account

hub / github.com/microsoft/msticpy / functions

Functions3,664 in github.com/microsoft/msticpy

Functionquery_collection
Return a QueryCollection instance.
tests/config/test_query_editor.py:204
Functionquery_defaults
Return a QueryDefaults object.
tests/config/test_query_editor.py:58
Functionquery_editor
Return a QueryEditor instance.
tests/config/test_query_editor.py:213
Methodquery_help
Print help for `query_name`. Parameters ---------- query_name : str The name of the query.
msticpy/data/core/query_provider_utils_mixin.py:250
Functionquery_metadata
Return a QueryMetadata instance.
tests/config/test_query_editor.py:158
Methodquery_names
Return list of family.query in the store. Returns ------- Iterable[str] List of queries
msticpy/data/core/query_store.py:102
Methodquery_params
Query parameters derived from alert. Returns ------- dict(str, str) -- Dictionary of parameter names
msticpy/nbwidgets/select_alert.py:321
Methodquery_params
Query parameters derived from alert. Returns ------- Dict[str, Any] Dictionary of parameter name
msticpy/nbtools/security_alert.py:62
Methodquery_params
Query parameters derived from alert. Returns ------- Dict[str, Any] Dictionary of parameter names/values
msticpy/nbtools/security_base.py:264
Methodquery_params
Query parameters derived from alert. Returns ------- Dict[str, Any] Dictionary of parameter name
msticpy/nbtools/security_event.py:62
Methodquery_params
Return dict of query parameters. These parameters are sourced in the object implementing this method. Returns
msticpy/data/core/query_defns.py:166
Functionquery_prov
Test fixture to create query provider.
tests/vis/test_query_browser.py:20
Functionquery_provider
Query provider.
tests/context/test_tiprovider_kql.py:150
Methodquery_time
Return the default QueryTime control for queries.
msticpy/data/core/data_providers.py:232
Methodquery_with_results
Mock query_with_results.
tests/context/test_tiprovider_kql.py:117
Methodquery_with_results
Test method.
tests/data/test_query_source.py:53
Methodquery_with_results
()
tests/data/test_dataqueries.py:717
Methodquery_with_results
Return query with fake results.
msticpy/data/drivers/local_osquery_driver.py:189
Methodquery_with_results
Return query with fake results.
msticpy/data/drivers/local_velociraptor_driver.py:168
Methodquery_with_results
Execute query string and return DataFrame plus native results. Parameters ---------- query : str The que
msticpy/data/drivers/driver_base.py:219
Methodquery_with_results
Execute query string and return DataFrame plus native results. Parameters ---------- query : str The que
msticpy/data/drivers/mordor_driver.py:165
Methodquery_with_results
Execute query string and return DataFrame of results. Parameters ---------- query : str Query to execute
msticpy/data/drivers/elastic_driver.py:145
Methodquery_with_results
Return query with fake results.
msticpy/data/drivers/local_data_driver.py:144
Methodquery_with_results
Place holder.Not used.
msticpy/data/drivers/prismacloud_driver.py:1114
Methodquery_with_results
Execute query string and return DataFrame of results. Parameters ---------- query : str Query to execute
msticpy/data/drivers/splunk_driver.py:323
Methodquery_with_results
Execute query string and return DataFrame of results. Parameters ---------- query : str The kql query to
msticpy/data/drivers/cybereason_driver.py:834
Methodquery_with_results
Execute query string and return DataFrame of results. Parameters ---------- query : str Query to execute
msticpy/data/drivers/sumologic_driver.py:517
Methodquery_with_results
Execute query string and return DataFrame of results. Parameters ---------- query : str Query to execute
msticpy/data/drivers/openobserve_driver.py:376
Functionrarest_window_session
Find and compute likelihood of the rarest window of `window_len` in the session. Parameters ---------- session: List[Cmd] li
msticpy/analysis/anomalous_sequence/utils/cmds_params_values.py:538
Functionrarest_window_session
Find and compute the likelihood of the rarest window of `window_len` in the session. Parameters ---------- session: List[Cmd]
msticpy/analysis/anomalous_sequence/utils/cmds_params_only.py:408
Functionrarest_window_session
Find and compute likelihood of the rarest window in the session. Parameters ---------- session: List[str] list of commands (
msticpy/analysis/anomalous_sequence/utils/cmds_only.py:278
Functionread_query_response
Read query file.
tests/data/drivers/test_azure_monitor_driver.py:51
Functionread_schema
Read schema file.
tests/data/drivers/test_azure_monitor_driver.py:38
Functionread_schema
Read a mock schema file for testing.
tests/data/drivers/test_azure_search_driver.py:30
Functionrefresh_keyring
Refresh local keyring secrets cache from Key Vault.
msticpy/common/provider_settings.py:165
Methodrefresh_token
Refresh the authentication token.
msticpy/data/drivers/prismacloud_driver.py:397
Methodregister_pivot_providers
Register pivot functions from configuration file. Parameters ---------- pivot_reg_path : str Path to con
msticpy/init/pivot.py:330
Methodregister_pivots
Register pivot functions for a Provider. Parameters ---------- pivot_reg : PivotRegistration Pivot regis
msticpy/context/provider_base.py:425
Methodregister_pivots
Register pivot functions for the TI Provider. Parameters ---------- pivot_reg : PivotRegistration Pivot
msticpy/context/tiproviders/ti_provider_base.py:354
Methodrelationships
Return relationships dict.
tests/context/test_vtlookupv3.py:83
Methodreload_provider_settings
Reload provider settings from config.
msticpy/context/lookup.py:329
Functionremove_common_items
Remove rows from input DataFrame. Parameters ---------- data : pd.DataFrame Input dataframe columns : list[str]
msticpy/analysis/outliers.py:622
Methodrender_vt_graph
Display a VTGraph in a Jupyter Notebook. Parameters ---------- graph_id: Graph ID width
msticpy/context/vtlookupv3/vtlookupv3.py:1139
Functionreplace_in_query
Replace a parameter in a query string with a formatted string. Parameters ---------- param_name : str The name of the parame
msticpy/config/query_editor.py:343
Methodrequired_columns
Return columns required for Init.
msticpy/transform/proc_tree_schema.py:72
Methodrequired_params
Return the set of parameters with no default values. Returns ------- Iterable[dict] List of parameters
msticpy/data/core/query_source.py:187
Methodreset_changed_data
Reset changed data flag.
msticpy/config/query_editor.py:267
Methodreset_changed_data
Reset changed data flag.
msticpy/config/query_editor.py:724
Functionreset_ipython_exception_handler
Remove MSTICPy custom exception handler.
msticpy/init/nbinit.py:930
Methodreset_timespan
Reset the time range used to [now - 1day] - [now].
msticpy/init/pivot.py:321
Methodresolve_cloud_alias
Return match of cloud alias or name.
msticpy/auth/cloud_mappings.py:237
Methodresolve_ioc_type
Return IoCType determined by IoCExtract. Parameters ---------- observable : str IoC observable string
msticpy/context/tiproviders/ti_provider_base.py:332
Methodresource_id
Return the resource ID for the workspace.
msticpy/context/azure/sentinel_utils.py:64
Methodresource_manager
Return the resource manager URI.
msticpy/auth/cloud_mappings.py:285
Methodresult
(self)
tests/auth/test_provider_secrets.py:145
Methodresult_to_df
Return DataFrame representation of Lookup response. Parameters ---------- item_lookup : pd.DataFrame Out
msticpy/context/lookup.py:503
Methodresults
(self, **kwargs)
tests/data/drivers/test_splunk_driver.py:89
Functionrgd
Pytest fixture to create ResourceGraphDriver for other tests.
tests/data/drivers/test_resource_graph_driver.py:97
Functionrisky_cmd_line
Detect patterns of risky commands in syslog messages. Risky patterns are defined in a json format file. Parameters ---------- e
msticpy/transform/cmd_line.py:39
Functionrisky_sudo_sessions
Detect if a sudo session occurs at the point of a suspicious event. Parameters ---------- sudo_sessions: dict Dictionary of
msticpy/analysis/syslog_utils.py:193
Methodrun
Run a pivot function on the current DataFrame. Parameters ---------- func : Callable[..., pd.DataFrame]
msticpy/init/pivot_core/pivot_pd_accessor.py:54
Methodrun_cell_magic
Mock run_cell_magic.
tests/context/test_tiprovider_kql.py:126
Methodsandbox_id
Return sandbox ID of detonation.
msticpy/context/vtlookupv3/vtfile_behavior.py:164
Functionsave_folder
Query Provider fixture.
tests/data/drivers/test_mordor_driver.py:42
Methodsave_map
Save the map to `path`. Parameters ---------- path: str File path to save the current map
msticpy/vis/foliummap.py:276
Functionsave_to_cell
Msticpy SaveToCell IPython magic extension. Parameters ---------- line : str, optional Line contents, by
msticpy/init/nbmagics.py:207
Methodsaved_searches
Mock method.
tests/data/drivers/test_splunk_driver.py:128
Methodschema
Return current data schema of connection. Returns ------- Dict[str, Dict] Data schema of current connect
tools/mp_demo_data.py:110
Methodschema
Mock schema property.
tests/context/test_tiprovider_kql.py:72
Methodschema
Return current data schema of connection. Returns ------- Dict[str, Dict] Data schema of current connect
msticpy/data/core/query_provider_utils_mixin.py:88
Methodschema
Return current data schema of connection. Returns ------- Dict[str, Dict] Data schema of current connect
msticpy/data/drivers/local_osquery_driver.py:133
Methodschema
Return current data schema of connection. Returns ------- dict[str, dict] Data schema of current connect
msticpy/data/drivers/azure_monitor_driver.py:271
Methodschema
Return current data schema of connection. Returns ------- Dict[str, Dict] Data schema of current connect
msticpy/data/drivers/local_velociraptor_driver.py:96
Methodschema
Return current data schema of connection. Returns ------- Dict[str, Dict] Data schema of current connect
msticpy/data/drivers/driver_base.py:166
Methodschema
Return current data schema of connection. Returns ------- Dict[str, Dict] Data schema of current connect
msticpy/data/drivers/local_data_driver.py:86
Methodschema
Return schema for current database.
msticpy/data/drivers/azure_kusto_driver.py:251
Methodschema_tables
Return list of tables in the data schema of the connection. Returns ------- List[str] Tables in the of c
tools/mp_demo_data.py:123
Methodschema_tables
Return list of tables in the data schema of the connection. Returns ------- List[str] Tables in the of c
msticpy/data/core/query_provider_utils_mixin.py:101
Functionscore_and_visualise_sessions
Model sessions and then produces an interactive timeline visualisation plot. In particular, the sessions are modelled using a sliding window
msticpy/analysis/anomalous_sequence/anomalous.py:150
Functionscreenshot
Get a screenshot of a url with Browshot. Parameters ---------- url : str The url a screenshot is wanted for. api_key : s
msticpy/context/domain_utils.py:57
Methodsearch_items
Return searchable metadata and query for all queries.
msticpy/data/core/query_store.py:120
Functionsearch_name
Display matching modules as list or HTML table. Parameters ---------- pattern : str Substring or regular expression
msticpy/common/utility/package.py:243
Methodsecrets
Return the list of secret names from the vault.
msticpy/auth/keyvault_client.py:276
Methodselected_columns
Return a list of Bokeh column definitions for the DataFrame.
msticpy/vis/data_viewer_panel.py:209
Methodselected_columns
Return the selected columns.
msticpy/vis/data_viewer.py:215
Methodselected_dset
Return the ID of the selected data set.
msticpy/vis/mordor_browser.py:92
Methodselected_items
Return a list of the selected items. If the input list is a list of tuples, this returns a list of the selected tuples.
msticpy/nbwidgets/select_subset.py:110
Methodselected_values
Return list of selected values. If the input list is a list of tuples, this returns a list of values of the items.
msticpy/nbwidgets/select_subset.py:126
Functionsent_loader
Generate MicrosoftSentinel instance for testing.
tests/context/azure/sentinel_test_fixtures.py:48
Functionsentinel_inst_loader
Generate MicrosoftSentinel for testing.
tests/context/azure/test_sentinel_core.py:112
Functionsentinel_loader
Generate MicrosoftSentinel for testing.
tests/context/azure/test_sentinel_dynamic_summary.py:259
Functionsentinel_qry_prov
Return initialized query provider.
tests/data/test_dataqueries.py:633
Methodservice_queries
Return queries retrieved from the service after connecting. Returns ------- Tuple[Dict[str, str], str] D
msticpy/data/drivers/driver_base.py:236
Methodservice_queries
Return dynamic queries available on connection to service. Returns ------- Tuple[Dict[str, str], str] Di
msticpy/data/drivers/splunk_driver.py:342
Functionsessionize_data
Sessionize the input data. In particular, the resulting dataframe will have 1 row per session. It will contain the following columns: th
msticpy/analysis/anomalous_sequence/sessionize.py:27
MethodsetUp
Setup test.
tests/nbtools/test_security_event.py:27
MethodsetUp
Setup test.
tests/nbtools/test_security_alert.py:191
MethodsetUp
Create keyring for tests.
tests/auth/test_provider_secrets.py:153
MethodsetUp
Intialize test.
tests/data/test_query_source.py:72
MethodsetUp
Test initialization.
tests/data/test_dataqueries.py:106
← previousnext →2,701–2,800 of 3,664, ranked by callers