File Event Queries - V1 (DEPRECATED)
Warning
Incydr functionality is deprecated. Use the resources at https://developer.code42.com/ instead.
- class py42.sdk.queries.fileevents.file_event_query.FileEventQuery(*args, **kwargs)
Bases:
BaseQueryHelper class for building V1 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
- 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 classmethod 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 FileName and 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:
filename_filter = FileName.is_in(['confidential_plans.docx', 'confidential_plan_projections.xlsx'])
md5_filter = MD5.is_in(['133765f4fff5e3038b9352a4d14e1532', 'ea16f0cbfc76f6eba292871f8a8c794b'])
Event Filters
- util.create_exists_filter_group()
Creates a
FilterGroupto find events where filter data exists. Useful for creatingEXISTSfilters that are not yet supported in py42 or programmatically crafting filter groups.- Parameters:
term (str) – The term of the filter.
- Returns:
- util.create_not_exists_filter_group()
Creates a
FilterGroupto find events where filter data does not exist. Useful for creatingDOES_NOT_EXISTfilters that are not yet supported in py42 or programmatically crafting filter groups.- Parameters:
term (str) – The term of the filter.
- Returns:
- util.create_greater_than_filter_group(value)
Creates a
FilterGroupfor matching file events where the value with keytermis greater than the given value. Useful for creatingGREATER_THANfilters that are not yet supported in py42 or programmatically crafting filter groups.- Parameters:
term (str) – The term of the filter.
value (str or int) – The value used to filter file events.
- Returns:
- util.create_less_than_filter_group(value)
Creates a
FilterGroupfor matching file events where the value with keytermis less than the given value. Useful for creatingLESS_THANfilters that are not yet supported in py42 or programmatically crafting filter groups.- Parameters:
term (str) – The term of the filter.
value (str or int) – The value used to filter file events.
- Returns:
- class py42.sdk.queries.fileevents.filters.event_filter.EventTimestamp
Bases:
FileEventFilterTimestampField,ChoicesV1 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:
EventTimestamp.FIFTEEN_MINUTESEventTimestamp.ONE_HOUREventTimestamp.THREE_HOURSEventTimestamp.TWELVE_HOURSEventTimestamp.ONE_DAYEventTimestamp.THREE_DAYSEventTimestamp.SEVEN_DAYSEventTimestamp.FOURTEEN_DAYSEventTimestamp.THIRTY_DAYS
- Example::
filter = EventTimestamp.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:
- class py42.sdk.queries.fileevents.filters.event_filter.EventType
Bases:
FileEventFilterStringField,ChoicesV1 filter class that filters file events based on event type.
Available event types are provided as class attributes:
EventType.CREATEDEventType.DELETEDEventType.EMAILEDEventType.MODIFIEDEventType.READ_BY_APPEventType.PRINTED
Example:
filter = EventType.isin([EventType.READ_BY_APP, EventType.EMAILED])
- 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.filters.event_filter.InsertionTimestamp
Bases:
FileEventFilterTimestampFieldV1 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.filters.event_filter.Source
Bases:
FileEventFilterStringField,ChoicesV1 filter class that filters events by event source.
- Available source types are provided as class attributes:
Source.ENDPOINTSource.GOOGLE_DRIVESource.ONE_DRIVESource.BOXSource.GMAILSource.OFFICE_365
Example:
filter = Source.is_in([Source.ENDPOINT, Source.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:
- class py42.sdk.queries.fileevents.filters.event_filter.MimeTypeMismatch
Bases:
QueryFilterBooleanFieldV1 filter class that filters events by whether or not a file’s mime type matches its extension type.
- 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:
- class py42.sdk.queries.fileevents.filters.event_filter.OutsideActiveHours
Bases:
QueryFilterBooleanFieldV1 filter class that filters events by whether or not they occurred outside a user’s typical working hours
- 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:
File Filters
- class py42.sdk.queries.fileevents.filters.file_filter.FileCategory
Bases:
FileEventFilterStringField,ChoicesV1 filter class that filters events by category of the file observed.
- Available file categories are provided as class attributes:
FileCategory.AUDIOFileCategory.DOCUMENTFileCategory.EXECUTABLEFileCategory.IMAGEFileCategory.PDFFileCategory.PRESENTATIONFileCategory.SCRIPTFileCategory.SOURCE_CODEFileCategory.SPREADSHEETFileCategory.VIDEOFileCategory.VIRTUAL_DISK_IMAGEFileCategory.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.filters.file_filter.FileName
Bases:
FileEventFilterStringFieldV1 filter class that filters events by the name of the file observed.
- 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.filters.file_filter.FileOwner
Bases:
FileEventFilterStringFieldV1 filter class that filters events by the owner of the file observed.
- 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.filters.file_filter.FilePath
Bases:
FileEventFilterStringFieldV1 filter class that filters events by path of the file observed.
- 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.filters.file_filter.FileSize
Bases:
FileEventFilterComparableFieldV1 filter class that filters events by size of the file observed.
Size
valuemust be bytes.- 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 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:
- class py42.sdk.queries.fileevents.filters.file_filter.MD5
Bases:
FileEventFilterStringFieldV1 filter class that filters events by the MD5 hash of the file observed.
- 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.filters.file_filter.SHA256
Bases:
FileEventFilterStringFieldV1 filter class that filters events by SHA256 hash of the file observed.
- 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:
Device Filters
- class py42.sdk.queries.fileevents.filters.device_filter.DeviceUsername
Bases:
FileEventFilterStringFieldV1 filter class that filters events by the Code42 username of the device that observed the event.
- 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.filters.device_filter.OSHostname
Bases:
FileEventFilterStringFieldV1 filter class that filters events by hostname of the device that observed the event.
- 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.filters.device_filter.PrivateIPAddress
Bases:
FileEventFilterStringFieldV1 filter class that filters events by private (LAN) IP address of the device that observed the event.
- 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.filters.device_filter.PublicIPAddress
Bases:
FileEventFilterStringFieldV1 filter class that filters events by public (WAN) IP address of the device that observed the event.
- 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.filters.device_filter.DeviceSignedInUserName
Bases:
FileEventFilterStringFieldV1 filter class that filters events by signed in user of the device that observed the event.
- 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:
Cloud Filters
- class py42.sdk.queries.fileevents.filters.cloud_filter.Actor
Bases:
FileEventFilterStringFieldV1 filter class that filters events by the cloud service username of the event originator (applies to cloud data source 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 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.filters.cloud_filter.DirectoryID
Bases:
FileEventFilterStringFieldV1 filter class that filters events by unique identifier of the cloud drive or folder where the event occurred (applies to cloud data source 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 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:
QueryFilterBooleanFieldV1 filter class that filters events by the shared status of the file at the time the event occurred (applies to cloud data source events only).
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis False.- Returns:
Returns a
FilterGroupthat is useful for finding results where the value with keyself._termis True.- Returns:
Bases:
FileEventFilterStringFieldV1 filter class that filters events by the list of users who had been granted access to the file at the time of the event (applies to cloud data source events only).
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:
- class py42.sdk.queries.fileevents.filters.cloud_filter.SharingTypeAdded
Bases:
FileEventFilterStringField,ChoicesV1 filter class that filters results to include events where a file’s sharing permissions were changed to a value that increases exposure (applies to cloud data source events only).
- Available options provided as class attributes:
SharingTypeAdded.SHARED_VIA_LINKSharingTypeAdded.IS_PUBLICSharingTypeAdded.OUTSIDE_TRUSTED_DOMAIN
- 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:
Exposure Filters
- class py42.sdk.queries.fileevents.filters.exposure_filter.ExposureType
Bases:
FileEventFilterStringField,ChoicesV1 filter class that filters events based on exposure type.
- Available options are provided as class attributes:
ExposureType.SHARED_VIA_LINKExposureType.SHARED_TO_DOMAINExposureType.APPLICATION_READExposureType.CLOUD_STORAGEExposureType.REMOVABLE_MEDIAExposureType.IS_PUBLIC
- 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.filters.exposure_filter.ProcessName
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.ProcessOwner
Bases:
FileEventFilterStringFieldV1 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:
- class py42.sdk.queries.fileevents.filters.exposure_filter.RemovableMediaName
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.RemovableMediaVendor
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.RemovableMediaMediaName
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.RemovableMediaVolumeName
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.RemovableMediaPartitionID
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.RemovableMediaSerialNumber
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.SyncDestination
Bases:
FileEventFilterStringField,ChoicesV1 filter class that filters events based on the name of the cloud service the file is synced with (applies to
synced to cloud serviceevents only).- Available options are provided as class attributes:
SyncDestination.ICLOUDSyncDestination.BOXSyncDestination.BOX_DRIVESyncDestination.GOOGLE_DRIVESyncDestination.GOOGLE_BACKUP_AND_SYNCSyncDestination.DROPBOXSyncDestination.ONEDRIVE
- 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.filters.exposure_filter.SyncDestinationUsername
Bases:
FileEventFilterStringFieldV1 filter class that filters events based on the username associated with the cloud service the file is synced with (applies to
synced to cloud serviceevents 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.filters.exposure_filter.TabURL
Bases:
FileEventFilterStringFieldV1 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.filters.exposure_filter.WindowTitle
Bases:
FileEventFilterStringFieldV1 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:
Email Filters
- class py42.sdk.queries.fileevents.filters.email_filter.EmailPolicyName
Bases:
QueryFilterStringFieldV1 filter class that filters events based on the email DLP policy that detected this file (applies to emails sent via Microsoft Office 365 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.filters.email_filter.EmailSubject
Bases:
QueryFilterStringFieldV1 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.filters.email_filter.EmailRecipients
Bases:
QueryFilterStringFieldV1 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.filters.email_filter.EmailSender
Bases:
QueryFilterStringFieldV1 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.filters.email_filter.EmailFrom
Bases:
QueryFilterStringFieldV1 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:
Activity Filters
- class py42.sdk.queries.fileevents.filters.activity_filter.TrustedActivity
Bases:
QueryFilterBooleanFieldV1 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:
- class py42.sdk.queries.fileevents.filters.activity_filter.RemoteActivity
Bases:
QueryFilterBooleanFieldV1 filter class that filters events based on whether the activity was remote (took place outside of corporate IP range).
- 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:
Printer Filters
- class py42.sdk.queries.fileevents.filters.print_filter.Printer
Bases:
FileEventFilterStringFieldV1 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.filters.print_filter.PrintJobName
Bases:
FileEventFilterStringFieldV1 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:
Risk Filters
- class py42.sdk.queries.fileevents.filters.risk_filter.RiskIndicator
Bases:
FileEventFilterStringFieldV1 filter class that filters events by risk indicator.
- Available options are provided as class attributes:
RiskIndicator.CloudDataExposures.PUBLIC_CORPORATE_BOXRiskIndicator.CloudDataExposures.PUBLIC_CORPORATE_GOOGLE_DRIVERiskIndicator.CloudDataExposures.PUBLIC_CORPORATE_ONEDRIVERiskIndicator.CloudDataExposures.SENT_CORPORATE_GMAILRiskIndicator.CloudDataExposures.SHARED_CORPORATE_BOXRiskIndicator.CloudDataExposures.SHARED_CORPORATE_GOOGLE_DRIVERiskIndicator.CloudDataExposures.SHARED_CORPORATE_ONEDRIVERiskIndicator.CloudStorageUploads.AMAZON_DRIVERiskIndicator.CloudStorageUploads.BOXRiskIndicator.CloudStorageUploads.DROPBOXRiskIndicator.CloudStorageUploads.GOOGLE_DRIVERiskIndicator.CloudStorageUploads.ICLOUDRiskIndicator.CloudStorageUploads.MEGARiskIndicator.CloudStorageUploads.ONEDRIVERiskIndicator.CloudStorageUploads.ZOHORiskIndicator.CodeRepositoryUploads.BITBUCKETRiskIndicator.CodeRepositoryUploads.GITHUBRiskIndicator.CodeRepositoryUploads.GITLABRiskIndicator.CodeRepositoryUploads.SOURCEFORGERiskIndicator.CodeRepositoryUploads.STASHRiskIndicator.EmailServiceUploads.ONESIXTHREE_DOT_COMRiskIndicator.EmailServiceUploads.ONETWOSIX_DOT_COMRiskIndicator.EmailServiceUploads.AOLRiskIndicator.EmailServiceUploads.COMCASTRiskIndicator.EmailServiceUploads.GMAILRiskIndicator.EmailServiceUploads.ICLOUDRiskIndicator.EmailServiceUploads.MAIL_DOT_COMRiskIndicator.EmailServiceUploads.OUTLOOKRiskIndicator.EmailServiceUploads.PROTONMAILRiskIndicator.EmailServiceUploads.QQMAILRiskIndicator.EmailServiceUploads.SINA_MAILRiskIndicator.EmailServiceUploads.SOHU_MAILRiskIndicator.EmailServiceUploads.YAHOORiskIndicator.EmailServiceUploads.ZOHO_MAILRiskIndicator.ExternalDevices.AIRDROPRiskIndicator.ExternalDevices.REMOVABLE_MEDIARiskIndicator.FileCategories.AUDIORiskIndicator.FileCategories.DOCUMENTRiskIndicator.FileCategories.EXECUTABLERiskIndicator.FileCategories.IMAGERiskIndicator.FileCategories.PDFRiskIndicator.FileCategories.PRESENTATIONRiskIndicator.FileCategories.SCRIPTRiskIndicator.FileCategories.SOURCE_CODERiskIndicator.FileCategories.SPREADSHEETRiskIndicator.FileCategories.VIDEORiskIndicator.FileCategories.VIRTUAL_DISK_IMAGERiskIndicator.FileCategories.ZIPRiskIndicator.MessagingServiceUploads.FACEBOOK_MESSENGERRiskIndicator.MessagingServiceUploads.MICROSOFT_TEAMSRiskIndicator.MessagingServiceUploads.SLACKRiskIndicator.MessagingServiceUploads.WHATSAPPRiskIndicator.Other.OTHERRiskIndicator.Other.UNKNOWNRiskIndicator.SocialMediaUploads.FACEBOOKRiskIndicator.SocialMediaUploads.LINKEDINRiskIndicator.SocialMediaUploads.REDDITRiskIndicator.SocialMediaUploads.TWITTERRiskIndicator.UserBehavior.FILE_MISMATCHRiskIndicator.UserBehavior.OFF_HOURSRiskIndicator.UserBehavior.REMOTERiskIndicator.UserBehavior.FIRST_DESTINATION_USERiskIndicator.UserBehavior.RARE_DESTINATION_USE
- 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 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 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)
- 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.filters.risk_filter.RiskSeverity
Bases:
FileEventFilterStringField,ChoicesV1 filter class that filters events by risk severity.
- Available options are provided as class attributes:
RiskSeverity.LOWRiskSeverity.MODERATERiskSeverity.HIGHRiskSeverity.CRITICALRiskSeverity.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.filters.risk_filter.RiskScore
Bases:
QueryFilterStringField,FileEventFilterComparableFieldV1 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: