File Event Queries - V2 (DEPRECATED)
Warning
Incydr functionality is deprecated. Use the resources at https://developer.code42.com/ instead.
- class py42.sdk.queries.fileevents.v2.file_event_query.FileEventQuery(*args, **kwargs)
Bases:
BaseQueryHelper class for building V2 Code42 Forensic Search queries.
A FileEventQuery instance’s
all()andany()take one or moreFilterGroupobjects to construct a query that can be passed to theFileEventService.search()method.all()returns results that match all of the provided filter criteria,any()will return results that match any of the filters.For convenience, the
FileEventQueryconstructor does the same asall().Usage example:
email_filter = EmailSender.is_in(["test.user@example.com", "test.sender@example.com"]) exposure_filter = ExposureType.exists() query = FileEventQuery.all(email_filter, exposure_filter)
Saved Searches
Important
Make sure to set the optional argument use_v2=True on saved search functions to get V2 file event data and queries.
- class py42.services.savedsearch.SavedSearchService(connection, file_event_service)
Bases:
BaseServiceA service to interact with saved search APIs.
- execute(search_id, page_number=None, page_size=None, use_v2=False)
Executes a saved search for given search Id, returns up to the first 10,000 events.
- Parameters:
search_id (str) – Unique search Id of the saved search.
page_number (int, optional) – The consecutive group of results of size page_size in the result set to return. Defaults to None.
page_size (int, optional) – The maximum number of results to be returned. Defaults to None.
use_v2 (bool) – Flag to use v2 file events and saved searches. Defaults to False.
- Returns:
- get(use_v2=False)
Fetch details of existing saved searches.
The existing data model for file events and saved searches is deprecated. To use the updated data model for file events, update your settings. Retrieving saved searches with V2 settings enabled will convert existing saved search queries to the V2 data model. Existing V1 queries that cannot be properly converted will be excluded from the response.
- Parameters:
use_v2 (bool) – Flag to use v2 file events and saved searches. Defaults to False.
- Returns:
- get_by_id(search_id, use_v2=False)
Fetch the details of a saved search by its given search Id.
The existing data model for file events and saved searches is deprecated. To use the updated data model for file events, update your settings. Retrieving saved searches with V2 settings enabled will convert existing saved search queries to the V2 data model. Existing V1 queries that cannot be properly converted will be excluded from the response.
- Parameters:
search_id (str) – Unique search Id of the saved search.
use_v2 (bool) – Flag to use v2 file events and saved searches. Defaults to False.
- Returns:
- get_query(search_id, page_number=None, page_size=None, use_v2=False)
Get the saved search in form of a query(py42.sdk.queries.fileevents.file_event_query).
- Parameters:
search_id (str) – Unique search Id of the saved search.
page_number (int, optional) – The consecutive group of results of size page_size in the result set to return. Defaults to None.
page_size (int, optional) – The maximum number of results to be returned. Defaults to None.
use_v2 (bool) – Flag to use v2 file events and saved searches. Defaults to False.
- Returns:
py42.sdk.queries.fileevents.v2.file_event_query.FileEventQuery
- search_file_events(search_id, page_number=None, page_size=None, use_v2=False)
Alias method for
execute(). Executes a saved search for given search Id, returns up to the first 10,000 events.- To view more than the first 10,000 events:
pass the
search_idtoget_query()pass the resulting query (
FileEventQuery) tosearch_all_file_events(), use that method as normal.
- Parameters:
search_id (str) – Unique search Id of the saved search.
page_number (int, optional) – The consecutive group of results of size page_size in the result set to return. Defaults to None.
page_size (int, optional) – The maximum number of results to be returned. Defaults to None.
use_v2 (bool) – Flag to use v2 file events and saved searches. Defaults to False.
- Returns:
Filter Classes
The following classes construct filters for file event queries. Each filter class corresponds to a file event detail.
Call the appropriate class method on your desired filter class with the value you want to match and it will return a
FilterGroup object that can be passed to FileEventQuery’s all() or any() methods to create complex queries
that match multiple filter rules.
Example:
To search for events observed for certain set of documents, you can use the file.Name and file.MD5 filter classes to
construct FilterGroups that will search for matching filenames or (in case someone renamed the sensitive file) the
known MD5 hashes of the files:
from py42.sdk.queries.fileevents.v2 import *
filename_filter = File.Name.is_in(['confidential_plans.docx', 'confidential_plan_projections.xlsx'])
md5_filter = File.MD5.is_in(['133765f4fff5e3038b9352a4d14e1532', 'ea16f0cbfc76f6eba292871f8a8c794b'])
Destination Filters
- class py42.sdk.queries.fileevents.v2.filters.destination.Category
Bases:
FileEventFilterStringField,ChoicesV2 filter class that filters events based on the category of the file event destination.
- Available options are provided as class attributes:
destination.category.CLOUD_STORAGEdestination.category.DEVICEdestination.category.EMAILdestination.category.MESSAGINGdestination.category.MULTIPLE_POSSIBILITIESdestination.category.SOCIAL_MEDIAdestination.category.SOURCE_CODE_REPOSITORYdestination.category.UNCATEGORIZEDdestination.category.UNKNOWNdestination.category.BUSINESS_INTELLIGENCE_TOOLSdestination.category.CIVIL_SERVICESdestination.category.CLOUD_COMPUTINGdestination.category.CODING_TOOLSdestination.category.CONTRACT_MANAGEMENTdestination.category.CRM_TOOLSdestination.category.DESIGN_TOOLSdestination.category.E_COMMERCEdestination.category.FILE_CONVERSION_TOOLSdestination.category.FINANCIAL_SERVICESdestination.category.HEALTHCARE_AND_INSURANCEdestination.category.HR_TOOLSdestination.category.IMAGE_HOSTINGdestination.category.IT_SERVICESdestination.category.JOB_LISTINGSdestination.category.LEARNING_PLATFORMSdestination.category.MARKETING_TOOLSdestination.category.PDF_MANAGERdestination.category.PHOTO_PRINTINGdestination.category.PRODUCTIVITY_TOOLSdestination.category.PROFESSIONAL_SERVICESdestination.category.REAL_ESTATEdestination.category.SALES_TOOLSdestination.category.SEARCH_ENGINEdestination.category.SHIPPINGdestination.category.SOFTWAREdestination.category.TRAVELdestination.category.WEB_HOSTING
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.EmailRecipients
Bases:
QueryFilterStringFieldV2 filter class that filters events based on the email’s recipient list (applies to email events only).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.EmailSubject
Bases:
QueryFilterStringFieldV2 filter class that filters events based on the email’s subject (applies to email events only).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.IpAddress
Bases:
FileEventFilterStringFieldV2 filter class that filters events by public (WAN) IP address of the destination device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.Name
Bases:
QueryFilterStringFieldV2 filter class that filters events based on the destination name.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.OperatingSystem
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the operating system of the destination device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.PrintJobName
Bases:
FileEventFilterStringFieldV2 filter class that filters events by print job name.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.PrintedFilesBackupPath
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the printed file backup path.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.PrinterName
Bases:
FileEventFilterStringFieldV2 filter class that filters events by printer name.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.PrivateIpAddress
Bases:
FileEventFilterStringFieldV2 filter class that filters events by private (LAN) IP address of the destination device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaBusType
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the bus type of the connected hardware as reported by the operating system (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaCapacity
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the capacity of the connected hardware as reported by the operating system (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaMediaName
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the name of the removable media (as reported by the vendor/device, usually very similar to RemovableMediaName) involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaName
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the name of the removable media involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaPartitionID
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the unique identifier assigned (by the operating system) to the removable media involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaSerialNumber
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the serial number of the connected hardware as reported by the operating system (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaVendor
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the vendor of the removable media device involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.RemovableMediaVolumeName
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the name of the formatted volume (as reported by the operating system) of the removable media device involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.TabTitleErrors
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on destination tab title errors (for ‘browser or other app’ events).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.TabTitles
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the name of all the browser tabs or application windows that were open when a browser or other app event occurred (applies to
read by browser or other appevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.TabUrlErrors
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on destination tab URL Errors (for ‘browser or other app’ events).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.TabUrls
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on all the URLs of the browser tabs at the time the file contents were read by the browser (applies to
read by browser or other appevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.destination.UserEmail
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the signed in user email of the destination device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
Event Filters
- class py42.sdk.queries.fileevents.v2.filters.event.Action
Bases:
FileEventFilterStringField,ChoicesV2 filter class that filters events based on event action.
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.event.Id
Bases:
FileEventFilterStringFieldV2 filter class that filters events by event ID.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.event.Inserted
Bases:
FileEventFilterTimestampFieldV2 filter class that filters events based on the timestamp of when the event was actually added to the event store (which can be after the event occurred on the device itself).
value must be a POSIX timestamp. (see the Dates section of the Basics user guide for details on timestamp arguments in py42)
- classmethod in_range(start_value, end_value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis in range between the providedstart_valueandend_value.- Parameters:
start_value (str or int or float or datetime) – The start value used to filter results.
end_value (str or int or float or datetime) – The end value used to filter results.
- Returns:
- classmethod on_or_after(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._term` is on or after the provided ``value.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_or_before(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis on or before the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_same_day(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis within the same calendar day as the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod within_the_last(value)
Returns a
FilterGroupthat is useful for finding results where the keyself._termis a timestamp-related term, such asEventTimestamp._term, andvalueis one of it’s accepted values, such as one of the values inEventTimestamp.choices().- Parameters:
value (str) – The value used to filter file events.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.event.Observer
Bases:
FileEventFilterStringField,ChoicesV2 filter class that filters events by event observer.
- Available event observer types are provided as class attributes:
event.Observer.ENDPOINTevent.Observer.GOOGLE_DRIVEevent.Observer.ONE_DRIVEevent.Observer.BOXevent.Observer.GMAILevent.Observer.OFFICE_365
- Example::
filter = Event.Observer.is_in([event.Observer.ENDPOINT, event.Observer.BOX])
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
Bases:
FileEventFilterStringFieldV2 filter class that filters events by share type.
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
Returns a
FilterGroupto find events where filter data exists.- Returns:
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
File Filters
- class py42.sdk.queries.fileevents.v2.filters.file.Category
Bases:
FileEventFilterStringField,ChoicesV2 filter class that filters events by category of the observed file.
- Available file categories are provided as class attributes:
file.Category.AUDIOfile.Category.DOCUMENTfile.Category.EXECUTABLEfile.Category.IMAGEfile.Category.PDFfile.Category.PRESENTATIONfile.Category.SCRIPTfile.Category.SOURCE_CODEfile.Category.SPREADSHEETfile.Category.VIDEOfile.Category.VIRTUAL_DISK_IMAGEfile.Category.ZIP
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.CategoryByBytes
Bases:
FileEventFilterStringFieldV2 filter class that filters event by the category (by bytes) of the observed file
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.CategoryByExtension
Bases:
FileEventFilterStringFieldV2 filter class that filters event by the category (by bytes) of the observed file
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Classification
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the classification of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.CloudDriveId
Bases:
FileEventFilterStringFieldV2 filter class that filters event by the cloud drive ID of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Created
Bases:
FileEventFilterTimestampFieldV2 filter class that filters events by the creation timestamp of the observed file.
- classmethod in_range(start_value, end_value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis in range between the providedstart_valueandend_value.- Parameters:
start_value (str or int or float or datetime) – The start value used to filter results.
end_value (str or int or float or datetime) – The end value used to filter results.
- Returns:
- classmethod on_or_after(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._term` is on or after the provided ``value.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_or_before(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis on or before the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_same_day(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis within the same calendar day as the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod within_the_last(value)
Returns a
FilterGroupthat is useful for finding results where the keyself._termis a timestamp-related term, such asEventTimestamp._term, andvalueis one of it’s accepted values, such as one of the values inEventTimestamp.choices().- Parameters:
value (str) – The value used to filter file events.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Directory
Bases:
FileEventFilterStringFieldV2 filter class that filters events by directory of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.DirectoryId
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the directory ID of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Id
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the ID of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.MD5
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the MD5 hash of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.MimeTypeByBytes
Bases:
FileEventFilterStringFieldV2 filter class that filters event by the mime type (by bytes) of the observed file
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.MimeTypeByExtension
Bases:
FileEventFilterStringFieldV2 filter class that filters event by the mime type (by extension) of the observed file
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Modified
Bases:
FileEventFilterTimestampFieldV2 filter class that filters events by the modification timestamp of the observed file.
- classmethod in_range(start_value, end_value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis in range between the providedstart_valueandend_value.- Parameters:
start_value (str or int or float or datetime) – The start value used to filter results.
end_value (str or int or float or datetime) – The end value used to filter results.
- Returns:
- classmethod on_or_after(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._term` is on or after the provided ``value.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_or_before(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis on or before the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_same_day(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis within the same calendar day as the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod within_the_last(value)
Returns a
FilterGroupthat is useful for finding results where the keyself._termis a timestamp-related term, such asEventTimestamp._term, andvalueis one of it’s accepted values, such as one of the values inEventTimestamp.choices().- Parameters:
value (str) – The value used to filter file events.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Name
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the name of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Owner
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the owner of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.SHA256
Bases:
FileEventFilterStringFieldV2 filter class that filters events by SHA256 hash of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Size
Bases:
FileEventFilterTimestampFieldV2 filter class that filters events by size in bytes of the observed file.
Size
valuemust be bytes.- classmethod in_range(start_value, end_value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis in range between the providedstart_valueandend_value.- Parameters:
start_value (str or int or float or datetime) – The start value used to filter results.
end_value (str or int or float or datetime) – The end value used to filter results.
- Returns:
- classmethod on_or_after(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._term` is on or after the provided ``value.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_or_before(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis on or before the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_same_day(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis within the same calendar day as the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod within_the_last(value)
Returns a
FilterGroupthat is useful for finding results where the keyself._termis a timestamp-related term, such asEventTimestamp._term, andvalueis one of it’s accepted values, such as one of the values inEventTimestamp.choices().- Parameters:
value (str) – The value used to filter file events.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.file.Url
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the URL of the observed file.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
Process Filters
- class py42.sdk.queries.fileevents.v2.filters.process.Executable
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the process name involved in the exposure (applies to
read by browser or other appevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.process.Owner
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the process owner that was involved in the exposure (applies to
read by browser or other appevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
Report Filters
- class py42.sdk.queries.fileevents.v2.filters.report.Count
Bases:
FileEventFilterStringField,FileEventFilterComparableFieldV2 filter class that filters events by the record count of the report.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod greater_than(value)
Returns a
FilterGroupto find events where filter data is greater than the provided value.- Parameters:
value (str or int or float) – The value used to filter file events.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod less_than(value)
Returns a
FilterGroupto find events where filter data is less than than the provided value.- Parameters:
value (str or int or float) – The value used to filter file events.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.report.Description
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the description of the report.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.report.Headers
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the header(s) of the report.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.report.ID
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the ID of the report.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.report.Name
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the name of the report.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.report.Type
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the type of the report.
- Available options are provided as class attributes:
- attr:
report.Type.AD_HOC
- attr:
report.Type.SAVED
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
Risk Filters
- class py42.sdk.queries.fileevents.v2.filters.risk.Indicators
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the type of risk indicator.
- Available options are provided as class attributes:
risk.Indicators.FileCategories.AUDIOrisk.Indicators.FileCategories.DOCUMENTrisk.Indicators.FileCategories.EXECUTABLErisk.Indicators.FileCategories.IMAGErisk.Indicators.FileCategories.PDFrisk.Indicators.FileCategories.PRESENTATIONrisk.Indicators.FileCategories.SCRIPTrisk.Indicators.FileCategories.SOURCE_CODErisk.Indicators.FileCategories.SPREADSHEETrisk.Indicators.FileCategories.VIDEOrisk.Indicators.FileCategories.VIRTUAL_DISK_IMAGErisk.Indicators.FileCategories.ZIPrisk.Indicators.UserBehavior.FILE_MISMATCHrisk.Indicators.UserBehavior.OFF_HOURSrisk.Indicators.UserBehavior.REMOTErisk.Indicators.UserBehavior.FIRST_DESTINATION_USErisk.Indicators.UserBehavior.RARE_DESTINATION_USErisk.Indicators.UserBehavior.CONTRACTrisk.Indicators.UserBehavior.DEPARTINGrisk.Indicators.UserBehavior.ELEVATED_ACCESSrisk.Indicators.UserBehavior.FLIGHT_RISKrisk.Indicators.UserBehavior.HIGH_IMPACTrisk.Indicators.UserBehavior.HIGH_RISKrisk.Indicators.UserBehavior.PERFORMANCE_CONCERNSrisk.Indicators.UserBehavior.POOR_SECURITY_PRACTICESrisk.Indicators.UserBehavior.SUSPICIOUS_SYSTEM_ACTIVITYrisk.Indicators.CloudStorageUploads.AMAZON_DRIVErisk.Indicators.CloudStorageUploads.BAIDU_NET_DISK_UPLOADrisk.Indicators.CloudStorageUploads.BOXrisk.Indicators.CloudStorageUploads.CRASHPLAN_UPLOADrisk.Indicators.CloudStorageUploads.DRAKE_PORTALS_UPLOADrisk.Indicators.CloudStorageUploads.DROPBOXrisk.Indicators.CloudStorageUploads.FILE_DOT_IO_UPLOADrisk.Indicators.CloudStorageUploads.FILESTACK_UPLOADrisk.Indicators.CloudStorageUploads.GOOGLE_DRIVErisk.Indicators.CloudStorageUploads.OPEN_TEXT_HIGHTAIL_UPLOADrisk.Indicators.CloudStorageUploads.ICLOUDrisk.Indicators.CloudStorageUploads.MEGArisk.Indicators.CloudStorageUploads.ONEDRIVErisk.Indicators.CloudStorageUploads.SECURE_FIRM_PORTAL_UPLOADrisk.Indicators.CloudStorageUploads.SHAREFILE_UPLOADrisk.Indicators.CloudStorageUploads.SMART_VAULT_UPLOADrisk.Indicators.CloudStorageUploads.SUGAR_SYNC_UPLOADrisk.Indicators.CloudStorageUploads.WE_TRANSFER_UPLOADrisk.Indicators.CloudStorageUploads.ZOHOrisk.Indicators.EmailServiceUploads.ONESIXTHREE_DOT_COMrisk.Indicators.EmailServiceUploads.ONETWOSIX_DOT_COMrisk.Indicators.EmailServiceUploads.AOLrisk.Indicators.EmailServiceUploads.COMCASTrisk.Indicators.EmailServiceUploads.FASTMAIL_UPLOADrisk.Indicators.EmailServiceUploads.GMAILrisk.Indicators.EmailServiceUploads.GMX_UPLOADrisk.Indicators.EmailServiceUploads.ICLOUDrisk.Indicators.EmailServiceUploads.LYCOS_UPLOADrisk.Indicators.EmailServiceUploads.MAIL_DOT_COM_UPLOADrisk.Indicators.EmailServiceUploads.OUTLOOKrisk.Indicators.EmailServiceUploads.PROTONMAILrisk.Indicators.EmailServiceUploads.QQMAILrisk.Indicators.EmailServiceUploads.SINA_MAILrisk.Indicators.EmailServiceUploads.SOHU_MAILrisk.Indicators.EmailServiceUploads.TUTANOTA_UPLOADrisk.Indicators.EmailServiceUploads.YAHOOrisk.Indicators.EmailServiceUploads.ZIX_UPLOADrisk.Indicators.EmailServiceUploads.ZOHO_MAILrisk.Indicators.ExternalDevices.AIRDROPrisk.Indicators.ExternalDevices.SALESFORCE_DOWNLOADrisk.Indicators.ExternalDevices.REMOVABLE_MEDIAIndicators.CloudDataExposures.PUBLIC_CORPORATE_BOXIndicators.CloudDataExposures.PUBLIC_CORPORATE_GOOGLE_DRIVEIndicators.CloudDataExposures.PUBLIC_CORPORATE_ONEDRIVEIndicators.CloudDataExposures.SENT_CORPORATE_GMAILIndicators.CloudDataExposures.SENT_CORPORATE_OFFICE365Indicators.CloudDataExposures.SHARED_CORPORATE_BOXIndicators.CloudDataExposures.SHARED_CORPORATE_GOOGLE_DRIVEIndicators.CloudDataExposures.SHARED_CORPORATE_ONEDRIVErisk.Indicators.FileConversionToolUploads.CLOUD_CONVERT_UPLOADrisk.Indicators.FileConversionToolUploads.COMPRESS_JPEG_UPLOADrisk.Indicators.FileConversionToolUploads.FREE_CONVERT_UPLOADrisk.Indicators.FileConversionToolUploads.HEIC_TO_JPEG_UPLOADrisk.Indicators.FileConversionToolUploads.TINY_PNG_UPLOADrisk.Indicators.MessagingServiceUploads.DISCORD_UPLOADrisk.Indicators.MessagingServiceUploads.FACEBOOK_MESSENGERrisk.Indicators.MessagingServiceUploads.GOOGLE_MESSAGES_UPLOADrisk.Indicators.MessagingServiceUploads.GOOGLE_CHAT_UPLOADrisk.Indicators.MessagingServiceUploads.GOOGLE_HANGOUTS_UPLOADrisk.Indicators.MessagingServiceUploads.MICROSOFT_TEAMSrisk.Indicators.MessagingServiceUploads.SLACKrisk.Indicators.MessagingServiceUploads.TELEGRAM_UPLOADrisk.Indicators.MessagingServiceUploads.WEBEX_UPLOADrisk.Indicators.MessagingServiceUploads.WE_CHAT_UPLOADrisk.Indicators.MessagingServiceUploads.WHATSAPPrisk.Indicators.MessagingServiceUploads.ZOOM_UPLOADrisk.Indicators.Other.OTHER_DESTINATIONrisk.Indicators.Other.UNKNOWN_DESTINATIONrisk.Indicators.PdfManagerUploads.ADOBE_ACROBAT_UPLOADrisk.Indicators.PdfManagerUploads.COMBINE_PDF_UPLOADrisk.Indicators.PdfManagerUploads.FREE_PDF_CONVERT_UPLOADrisk.Indicators.PdfManagerUploads.I_LOVE_PDF_UPLOADrisk.Indicators.PdfManagerUploads.JPG2_PDF_UPLOADrisk.Indicators.PdfManagerUploads.PDF24_TOOLS_UPLOADrisk.Indicators.PdfManagerUploads.PDF_ESCAPE_UPLOADrisk.Indicators.PdfManagerUploads.PDF_FILLER_UPLOADrisk.Indicators.PdfManagerUploads.PDF_SIMPLI_UPLOADrisk.Indicators.PdfManagerUploads.SEJDA_UPLOADrisk.Indicators.PdfManagerUploads.SMALL_PDF_UPLOADrisk.Indicators.PdfManagerUploads.SODA_PDF_UPLOADrisk.Indicators.ProductivityToolUploads.ADOBE_UPLOADrisk.Indicators.ProductivityToolUploads.CANVA_UPLOADrisk.Indicators.ProductivityToolUploads.EVERNOTE_UPLOADrisk.Indicators.ProductivityToolUploads.FIGMA_UPLOADrisk.Indicators.ProductivityToolUploads.GOOGLE_KEEP_UPLOADrisk.Indicators.ProductivityToolUploads.GOOGLE_JAMBOARD_UPLOADrisk.Indicators.ProductivityToolUploads.IMAGE_COLOR_PICKER_UPLOADrisk.Indicators.ProductivityToolUploads.KAPWING_UPLOADrisk.Indicators.ProductivityToolUploads.MIRO_UPLOADrisk.Indicators.ProductivityToolUploads.MONDAY_UPLOADrisk.Indicators.ProductivityToolUploads.MURAL_UPLOADrisk.Indicators.ProductivityToolUploads.NOTION_UPLOADrisk.Indicators.ProductivityToolUploads.OVERLEAF_UPLOADrisk.Indicators.ProductivityToolUploads.PHOTOPEA_UPLOADrisk.Indicators.ProductivityToolUploads.PIXLR_UPLOADrisk.Indicators.ProductivityToolUploads.REMOVE_DOT_BG_UPLOADrisk.Indicators.ProductivityToolUploads.TRELLO_UPLOADrisk.Indicators.ProductivityToolUploads.VEED_UPLOADrisk.Indicators.SocialMediaUploads.FOUR_CHAN_UPLOADrisk.Indicators.SocialMediaUploads.FACEBOOKrisk.Indicators.SocialMediaUploads.IMGUR_UPLOADrisk.Indicators.SocialMediaUploads.LINKEDINrisk.Indicators.SocialMediaUploads.ODNOKLASSNIKI_UPLOADrisk.Indicators.SocialMediaUploads.OK_UPLOADrisk.Indicators.SocialMediaUploads.QZONE_UPLOADrisk.Indicators.SocialMediaUploads.REDDITrisk.Indicators.SocialMediaUploads.STACK_OVERFLOW_UPLOADrisk.Indicators.SocialMediaUploads.TUMBLR_UPLOADrisk.Indicators.SocialMediaUploads.TWITCH_UPLOADrisk.Indicators.SocialMediaUploads.TWITTERrisk.Indicators.SocialMediaUploads.VIMEO_UPLOADrisk.Indicators.SocialMediaUploads.VK_UPLOADrisk.Indicators.SocialMediaUploads.WEIBO_UPLOADrisk.Indicators.SocialMediaUploads.YOU_TUBE_UPLOADrisk.Indicators.CodeRepositoryUploads.BITBUCKET_UPLOADrisk.Indicators.CodeRepositoryUploads.COLABORATORY_UPLOADrisk.Indicators.CodeRepositoryUploads.GITHUBrisk.Indicators.CodeRepositoryUploads.GITLABrisk.Indicators.CodeRepositoryUploads.GOOGLE_APPS_SCRIPT_UPLOADrisk.Indicators.CodeRepositoryUploads.GOOGLE_CLOUD_SHELL_UPLOADrisk.Indicators.CodeRepositoryUploads.SOURCE_FORGErisk.Indicators.CodeRepositoryUploads.STASHrisk.Indicators.WebHostingUploads.GIT_HUB_PAGES_UPLOADrisk.Indicators.WebHostingUploads.GOOGLE_SITES_UPLOADrisk.Indicators.WebHostingUploads.WIX_UPLOADrisk.Indicators.WebHostingUploads.WORD_PRESS_UPLOAD
- class CloudDataExposures
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class CloudStorageUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class CodeRepositoryUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class EmailServiceUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class ExternalDevices
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class FileCategories
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class FileConversionToolUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class MessagingServiceUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class Other
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class PdfManagerUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class ProductivityToolUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class SocialMediaUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class UserBehavior
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- class WebHostingUploads
Bases:
Choices- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.risk.IndicatorsWeight
Bases:
QueryFilterStringField,FileEventFilterComparableFieldV2 filter class that filters events by the risk indicator weight.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod greater_than(value)
Returns a
FilterGroupto find events where filter data is greater than the provided value.- Parameters:
value (str or int or float) – The value used to filter file events.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod less_than(value)
Returns a
FilterGroupto find events where filter data is less than than the provided value.- Parameters:
value (str or int or float) – The value used to filter file events.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.risk.Score
Bases:
QueryFilterStringField,FileEventFilterComparableFieldV2 filter class that filters events by risk score.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod greater_than(value)
Returns a
FilterGroupto find events where filter data is greater than the provided value.- Parameters:
value (str or int or float) – The value used to filter file events.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod less_than(value)
Returns a
FilterGroupto find events where filter data is less than than the provided value.- Parameters:
value (str or int or float) – The value used to filter file events.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.risk.Severity
Bases:
FileEventFilterStringField,ChoicesV2 filter class that filters events by risk severity.
- Available options are provided as class attributes:
risk.Severity.LOWrisk.Severity.MODERATErisk.Severity.HIGHrisk.Severity.CRITICALrisk.Severity.NO_RISK_INDICATED
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.risk.TrustReason
Bases:
QueryFilterStringField,ChoicesV2 filter class that filters events based on the trust reason for the activity.
- Available options are provided as class attributes:
- attr:
risk.TrustReason.TRUSTED_DOMAIN_BROWSER_URL
- attr:
risk.TrustReason.TRUSTED_BROWSER_URL_PATH
- attr:
risk.TrustReason.TRUSTED_DOMAIN_BROWSER_TAB_TITLE
- attr:
risk.TrustReason.TRUSTED_BROWSER_TAB_INFOS
- attr:
risk.TrustReason.TRUSTED_DOMAIN_EMAIL_RECIPIENT
- attr:
risk.TrustReason.TRUSTED_DOMAIN_CLOUD_SYNC_USERNAME
- attr:
risk.TrustReason.TRUSTED_SLACK_WORKSPACE
- attr:
risk.TrustReason.EVENT_PAIRING_SERVICE_MATCH
- attr:
risk.TrustReason.EVENT_PAIRING_SERVICE_ENDPOINT_MATCH
- attr:
risk.TrustReason.DOWNLOAD_TO_A_MANAGED_DEVICE
- attr:
risk.TrustReason.SHARED_WITH_TRUSTED_USERS
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.risk.Trusted
Bases:
QueryFilterBooleanFieldV2 filter class that filters events based on whether activity can be trusted.
- classmethod is_false()
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis False.- Returns:
- classmethod is_true()
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis True.- Returns:
Source Filters
- class py42.sdk.queries.fileevents.v2.filters.source.Category
Bases:
FileEventFilterStringField,ChoicesV2 filter class that filters events based on source category.
- Available options are provided as class attributes:
source.Category.BUSINESS_TOOLSsource.Category.CLOUD_STORAGEsource.Category.DEVICEsource.Category.EMAILsource.Category.MESSAGINGsource.Category.MULTIPLE_POSSIBILITIESsource.Category.SOCIAL_MEDIAsource.Category.SOURCE_CODE_REPOSITORYsource.Category.UNCATEGORIZEDsource.Category.UNKNOWNsource.category.BUSINESS_INTELLIGENCE_TOOLSsource.category.CIVIL_SERVICESsource.category.CLOUD_COMPUTINGsource.category.CODING_TOOLSsource.category.CONTRACT_MANAGEMENTsource.category.CRM_TOOLSsource.category.DESIGN_TOOLSsource.category.E_COMMERCEsource.category.FILE_CONVERSION_TOOLSsource.category.FINANCIAL_SERVICESsource.category.HEALTHCARE_AND_INSURANCEsource.category.HR_TOOLSsource.category.IMAGE_HOSTINGsource.category.IT_SERVICESsource.category.JOB_LISTINGSsource.category.LEARNING_PLATFORMSsource.category.MARKETING_TOOLSsource.category.PDF_MANAGERsource.category.PHOTO_PRINTINGsource.category.PRODUCTIVITY_TOOLSsource.category.PROFESSIONAL_SERVICESsource.category.REAL_ESTATEsource.category.SALES_TOOLSsource.category.SEARCH_ENGINEsource.category.SHIPPINGsource.category.SOFTWAREsource.category.TRAVELsource.category.WEB_HOSTING
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.Domain
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the domain of the source device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.EmailFrom
Bases:
QueryFilterStringFieldV2 filter class that filters events based on the display name of the email’s sender, as it appears in the “From:” field in the email (applies to email events only).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.EmailSender
Bases:
QueryFilterStringFieldV2 filter class that filters events based on the email’s sender (applies to email events only).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.IpAddress
Bases:
FileEventFilterStringFieldV2 filter class that filters events by public (WAN) IP address of the source device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.Name
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on source name.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.OperatingSystem
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the operating system of the source device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.PrivateIpAddress
Bases:
FileEventFilterStringFieldV2 filter class that filters events by private (LAN) IP address of the source device.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaBusType
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the bus type of the connected hardware as reported by the operating system (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaCapacity
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the capacity of the connected hardware as reported by the operating system (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaMediaName
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the name of the removable media (as reported by the vendor/device, usually very similar to RemovableMediaName) involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaName
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the name of the removable media involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaPartitionID
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the unique identifier assigned (by the operating system) to the removable media involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaSerialNumber
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the serial number of the connected hardware as reported by the operating system (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaVendor
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the vendor of the removable media device involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.RemovableMediaVolumeName
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on the name of the formatted volume (as reported by the operating system) of the removable media device involved in the exposure (applies to
removable mediaevents only).- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.TabTitleErrors
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on source tab title errors (for ‘browser or other app’ events).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.TabTitles
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on source tab titles (for ‘browser or other app’ events).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.TabUrlErrors
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on source tab URL Errors (for ‘browser or other app’ events).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.source.TabUrls
Bases:
FileEventFilterStringFieldV2 filter class that filters events based on source tab URLs (for ‘browser or other app’ events).
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
Timestamp Filters
- class py42.sdk.queries.fileevents.v2.filters.timestamp.Timestamp
Bases:
FileEventFilterTimestampField,ChoicesV2 filter class that filters events based on the timestamp of the event that occurred.
Available event timestamp constants are provided as class attributes, These constants should be used only with class method within_the_last:
timestamp.Timestamp.FIFTEEN_MINUTEStimestamp.Timestamp.ONE_HOURtimestamp.Timestamp.THREE_HOURStimestamp.Timestamp.TWELVE_HOURStimestamp.Timestamp.ONE_DAYtimestamp.Timestamp.THREE_DAYStimestamp.Timestamp.SEVEN_DAYStimestamp.Timestamp.FOURTEEN_DAYStimestamp.Timestamp.THIRTY_DAYS
- Example::
filter = timestamp.Timestamp.within_the_last(EventTimestamp.SEVEN_DAYS)
- classmethod choices()
Returns attribute values for the given class.
- Returns:
A list containing the attribute values of the given class.
- Return type:
(list)
- classmethod in_range(start_value, end_value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis in range between the providedstart_valueandend_value.- Parameters:
start_value (str or int or float or datetime) – The start value used to filter results.
end_value (str or int or float or datetime) – The end value used to filter results.
- Returns:
- classmethod on_or_after(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._term` is on or after the provided ``value.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_or_before(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis on or before the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod on_same_day(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis within the same calendar day as the providedvalue.- Parameters:
value (str or int or float or datetime) – The value used to filter results.
- Returns:
- classmethod within_the_last(value)
Returns a
FilterGroupthat is useful for finding results where the keyself._termis a timestamp-related term, such asEventTimestamp._term, andvalueis one of it’s accepted values, such as one of the values inEventTimestamp.choices().- Parameters:
value (str) – The value used to filter file events.
- Returns:
User Filters
- class py42.sdk.queries.fileevents.v2.filters.user.DeviceUid
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the device UID of the actor.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.user.Email
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the Code42 user email of the actor.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns:
- class py42.sdk.queries.fileevents.v2.filters.user.Id
Bases:
FileEventFilterStringFieldV2 filter class that filters events by the Code42 user ID of the actor.
- classmethod eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termequals the providedvalue.- Parameters:
value (str) – The value to match on.
- Returns:
- classmethod exists()
Returns a
FilterGroupto find events where filter data exists.- Returns:
- classmethod is_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis in the providedvalue_list.- Parameters:
value_list (list) – The list of values to match on.
- Returns:
- classmethod not_eq(value)
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termdoes not equal the providedvalue.- Parameters:
value (str) – The value to exclude on.
- Returns:
- classmethod not_exists()
Returns a
FilterGroupto find events where filter data does not exist.- Returns:
- classmethod not_in(value_list)
Returns a
FilterGroupthat is useful for finding results where the value with the keyself._termis not in the providedvalue_list.- Parameters:
value_list (list) – The list of values to exclude on.
- Returns: