Пример #1
0
def make_fileitem_peinfo_versioninfoitem(key,
                                         value,
                                         condition='is',
                                         negate=False,
                                         preserve_case=False):
    '''
    Create a node for FileItem/PEInfo/VersionInfoList/VersionInfoItem/ + key name
    
    No validation of the key is performed.
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/VersionInfoList/VersionInfoItem/' + key  #XXX: No validation of key done.
    content_type = 'string'
    content = value
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #2
0
def make_eventlogitem_message(message, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for EventLogItem/message
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'EventLogItem'
    search = 'EventLogItem/message'
    content_type = 'string'
    content = message
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #3
0
def make_systemrestoreitem_originalfilename(original_filename, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for SystemRestoreItem/OriginalFileName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'SystemRestoreItem'
    search = 'SystemRestoreItem/OriginalFileName'
    content_type = 'string'
    content = original_filename
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #4
0
def make_serviceitem_servicedllmd5sum(servicedll_md5, condition='is', negate=False):
    '''
    Create a node for ServiceItem/serviceDLLmd5sum
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ServiceItem'
    search = 'ServiceItem/serviceDLLmd5sum'
    content_type = 'md5'
    content = servicedll_md5
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate)
    return IndicatorItem_node
Пример #5
0
def make_serviceitem_servicedll(servicedll, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for ServiceItem/serviceDLL
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ServiceItem'
    search = 'ServiceItem/serviceDLL'
    content_type = 'string'
    content = servicedll
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #6
0
def make_registryitem_valuename(valuename, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for RegistryItem/ValueName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'RegistryItem'
    search = 'RegistryItem/ValueName'
    content_type = 'string'
    content = valuename
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #7
0
def make_registryitem_text(text, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for RegistryItem/Text
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'RegistryItem'
    search = 'RegistryItem/Text'
    content_type = 'string'
    content = text
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #8
0
def make_processitem_sectionlist_memorysection_peinfo_exports_exportedfunctions_string(export_function, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for ProcessItem/SectionList/MemorySection/PEInfo/Exports/ExportedFunctions/string
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/SectionList/MemorySection/PEInfo/Exports/ExportedFunctions/string'
    content_type = 'string'
    content = export_function
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #9
0
def make_hookitem_hookedfunction(hooked_function, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for HookItem/HookedFunction
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'HookItem'
    search = 'HookItem/HookedFunction'
    content_type = 'string'
    content = hooked_function
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #10
0
def make_fileitem_username(file_owner, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for FileItem/Username
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/Username'
    content_type = 'string'
    content = file_owner
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #11
0
def make_fileitem_stringlist_string(file_string, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for FileItem/StringList/string
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/StringList/string'
    content_type = 'string'
    content = file_string
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #12
0
def make_fileitem_streamlist_stream_name(stream_name, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for FileItem/StreamList/Stream/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/StreamList/Stream/Name'
    content_type = 'string'
    content = stream_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #13
0
def make_fileitem_sizeinbytes(filesize, condition='is', negate=False):
    '''
    Create a node for FileItem/SizeInBytes
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/SizeInBytes'
    content_type = 'int'
    content = filesize
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate)
    return IndicatorItem_node
Пример #14
0
def make_fileitem_peinfo_type(type, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for FileItem/PEInfo/Type
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/Type'
    content_type = 'string'
    content = type
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #15
0
def make_hookitem_hookingmodule(hooking_module, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for HookItem/HookingModule
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'HookItem'
    search = 'HookItem/HookingModule'
    content_type = 'string'
    content = hooking_module
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #16
0
def make_processitem_sectionlist_memorysection_name(section_name, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for ProcessItem/SectionList/MemorySection/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/SectionList/MemorySection/Name'
    content_type = 'string'
    content = section_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #17
0
def make_portitem_remoteport(remote_port, condition='is', negate=False):
    '''
    Create a node for PortItem/remotePort
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PortItem'
    search = 'PortItem/remotePort'
    content_type = 'int'
    content = remote_port
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate)
    return IndicatorItem_node
Пример #18
0
def make_processitem_path(path, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for ProcessItem/path
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/path'
    content_type = 'string'
    content = path
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #19
0
def make_prefetchitem_accessedfilelist_accessedfile(accessed_file, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for PrefetchItem/AccessedFileList/AccessedFile
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PrefetchItem'
    search = 'PrefetchItem/AccessedFileList/AccessedFile'
    content_type = 'string'
    content = accessed_file
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #20
0
def make_eventlogitem_eid(eid, condition='is', negate=False):
    '''
    Create a node for EventLogItem/EID
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'EventLogItem'
    search = 'EventLogItem/EID'
    content_type = 'int'
    content = eid
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate)
    return IndicatorItem_node
Пример #21
0
def make_prefetchitem_applicationfilename(application_filename, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for PrefetchItem/ApplicationFileName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PrefetchItem'
    search = 'PrefetchItem/ApplicationFileName'
    content_type = 'string'
    content = application_filename
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #22
0
def make_serviceitem_descriptivename(descriptive_name, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for ServiceItem/descriptiveName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ServiceItem'
    search = 'ServiceItem/descriptiveName'
    content_type = 'string'
    content = descriptive_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #23
0
def make_prefetchitem_applicationfullpath(application_fullpath, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for PrefetchItem/ApplicationFullPath
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PrefetchItem'
    search = 'PrefetchItem/ApplicationFullPath'
    content_type = 'string'
    content = application_fullpath
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #24
0
def make_serviceitem_servicedllsignatureverified(dll_sig_verified, condition='is', negate=False):
    '''
    Create a node for ServiceItem/serviceDLLSignatureVerified
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ServiceItem'
    search = 'ServiceItem/serviceDLLSignatureVerified'
    content_type = 'bool'
    content = dll_sig_verified
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate)
    return IndicatorItem_node
Пример #25
0
def make_processitem_handlelist_handle_name(handle_name, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for ProcessItem/HandleList/Handle/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/HandleList/Handle/Name'
    content_type = 'string'
    content = handle_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #26
0
def make_systeminfoitem_hostname(hostname, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for SystemInfoItem/hostname
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'SystemInfoItem'
    search = 'SystemInfoItem/hostname'
    content_type = 'string'
    content = hostname
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #27
0
def make_processitem_portlist_portitem_remoteip(remote_ip, condition='is', negate=False):
    '''
    Create a node for ProcessItem/PortList/PortItem/remoteIP
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/PortList/PortItem/remoteIP'
    content_type = 'IP'
    content = remote_ip
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate)
    return IndicatorItem_node
Пример #28
0
def make_taskitem_name(name, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for TaskItem/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'TaskItem'
    search = 'TaskItem/Name'
    content_type = 'string'
    content = name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #29
0
def make_driveritem_drivername(driver_name, condition='contains', negate=False, preserve_case = False):
    '''
    Create a node for DriverItem/DriverName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'DriverItem'
    search = 'DriverItem/DriverName'
    content_type = 'string'
    content = driver_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #30
0
def make_fileitem_peinfo_resourceinfolist_resourceinfoitem_name(resource_name, condition='is', negate=False, preserve_case = False):
    '''
    Create a node for FileItem/PEInfo/ResourceInfoList/ResourceInfoItem/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/ResourceInfoList/ResourceInfoItem/Name'
    content_type = 'string'
    content = resource_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case)
    return IndicatorItem_node
Пример #31
0
def make_fileitem_peinfo_petimestamp(compile_time, condition='is', negate=False):
    '''
    Create a node for FileItem/PEInfo/PETimeStamp
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/PETimeStamp'
    content_type = 'date'
    content = compile_time
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate)
    return IndicatorItem_node
Пример #32
0
def make_eventlogitem_eid(eid, condition='is', negate=False):
    '''
    Create a node for EventLogItem/EID
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'EventLogItem'
    search = 'EventLogItem/EID'
    content_type = 'int'
    content = eid
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #33
0
def make_fileitem_sizeinbytes(filesize, condition='is', negate=False):
    '''
    Create a node for FileItem/SizeInBytes
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/SizeInBytes'
    content_type = 'int'
    content = filesize
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #34
0
def make_portitem_remoteport(remote_port, condition='is', negate=False):
    '''
    Create a node for PortItem/remotePort
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PortItem'
    search = 'PortItem/remotePort'
    content_type = 'int'
    content = remote_port
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #35
0
def make_fileitem_md5sum(md5, condition='is', negate=False):
    '''
    Create a node for FileItem/Md5sum
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/Md5sum'
    content_type = 'md5'
    content = md5
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #36
0
def make_serviceitem_pathmd5sum(path_md5, condition='is', negate=False):
    '''
    Create a node for ServiceItem/pathmd5sum
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ServiceItem'
    search = 'ServiceItem/pathmd5sum'
    content_type = 'md5'
    content = path_md5
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #37
0
def make_fileitem_peinfo_digitalsignature_signatureverified(
        sig_verified, condition='is', negate=False):
    '''
    Create a node for FileItem/PEInfo/DigitalSignature/SignatureVerified
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/DigitalSignature/SignatureVerified'
    content_type = 'bool'
    content = sig_verified
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #38
0
def make_fileitem_peinfo_exports_numberoffunctions(function_count,
                                                   condition='is',
                                                   negate=False):
    '''
    Create a node for FileItem/PEInfo/Exports/NumberOfFunctions
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/Exports/NumberOfFunctions'
    content_type = 'int'
    content = function_count
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #39
0
def make_serviceitem_servicedllsignatureverified(dll_sig_verified,
                                                 condition='is',
                                                 negate=False):
    '''
    Create a node for ServiceItem/serviceDLLSignatureVerified
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ServiceItem'
    search = 'ServiceItem/serviceDLLSignatureVerified'
    content_type = 'bool'
    content = dll_sig_verified
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #40
0
def make_processitem_portlist_portitem_remoteip(remote_ip,
                                                condition='is',
                                                negate=False):
    '''
    Create a node for ProcessItem/PortList/PortItem/remoteIP
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/PortList/PortItem/remoteIP'
    content_type = 'IP'
    content = remote_ip
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #41
0
def make_fileitem_peinfo_petimestamp(compile_time,
                                     condition='is',
                                     negate=False):
    '''
    Create a node for FileItem/PEInfo/PETimeStamp
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/PETimeStamp'
    content_type = 'date'
    content = compile_time
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition,
                                                         document,
                                                         search,
                                                         content_type,
                                                         content,
                                                         negate=negate)
    return IndicatorItem_node
Пример #42
0
def make_fileitem_peinfo_detectedentrypointsignature_name(
        entrypoint_name, condition='is', negate=False, preserve_case=False):
    '''
    Create a node for FileItem/PEInfo/DetectedEntryPointSignature/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/DetectedEntryPointSignature/Name'
    content_type = 'string'
    content = entrypoint_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #43
0
def make_fileitem_peinfo_resourceinfolist_resourceinfoitem_name(
        resource_name, condition='is', negate=False, preserve_case=False):
    '''
    Create a node for FileItem/PEInfo/ResourceInfoList/ResourceInfoItem/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/ResourceInfoList/ResourceInfoItem/Name'
    content_type = 'string'
    content = resource_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #44
0
def make_processitem_sectionlist_memorysection_peinfo_exports_exportedfunctions_string(
        export_function, condition='is', negate=False, preserve_case=False):
    '''
    Create a node for ProcessItem/SectionList/MemorySection/PEInfo/Exports/ExportedFunctions/string
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/SectionList/MemorySection/PEInfo/Exports/ExportedFunctions/string'
    content_type = 'string'
    content = export_function
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #45
0
def make_fileitem_peinfo_importedmodules_module_importedfunctions_string(
        imported_function, condition='is', negate=False, preserve_case=False):
    '''
    Create a node for FileItem/PEInfo/ImportedModules/Module/ImportedFunctions/string
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/ImportedModules/Module/ImportedFunctions/string'
    content_type = 'string'
    content = imported_function
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #46
0
def make_processitem_sectionlist_memorysection_name(section_name,
                                                    condition='contains',
                                                    negate=False,
                                                    preserve_case=False):
    '''
    Create a node for ProcessItem/SectionList/MemorySection/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/SectionList/MemorySection/Name'
    content_type = 'string'
    content = section_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #47
0
def make_hookitem_hookingmodule(hooking_module,
                                condition='contains',
                                negate=False,
                                preserve_case=False):
    '''
    Create a node for HookItem/HookingModule
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'HookItem'
    search = 'HookItem/HookingModule'
    content_type = 'string'
    content = hooking_module
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #48
0
def make_processitem_handlelist_handle_name(handle_name,
                                            condition='contains',
                                            negate=False,
                                            preserve_case=False):
    '''
    Create a node for ProcessItem/HandleList/Handle/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/HandleList/Handle/Name'
    content_type = 'string'
    content = handle_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #49
0
def make_fileitem_peinfo_type(type,
                              condition='is',
                              negate=False,
                              preserve_case=False):
    '''
    Create a node for FileItem/PEInfo/Type
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/Type'
    content_type = 'string'
    content = type
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #50
0
def make_prefetchitem_applicationfilename(application_filename,
                                          condition='is',
                                          negate=False,
                                          preserve_case=False):
    '''
    Create a node for PrefetchItem/ApplicationFileName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PrefetchItem'
    search = 'PrefetchItem/ApplicationFileName'
    content_type = 'string'
    content = application_filename
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #51
0
def make_prefetchitem_applicationfullpath(application_fullpath,
                                          condition='contains',
                                          negate=False,
                                          preserve_case=False):
    '''
    Create a node for PrefetchItem/ApplicationFullPath
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PrefetchItem'
    search = 'PrefetchItem/ApplicationFullPath'
    content_type = 'string'
    content = application_fullpath
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #52
0
def make_fileitem_peinfo_detectedanomalies_string(anomaly,
                                                  condition='is',
                                                  negate=False,
                                                  preserve_case=False):
    '''
    Create a node for FileItem/PEInfo/DetectedAnomalies/string
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/PEInfo/DetectedAnomalies/string'
    content_type = 'string'
    content = anomaly
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #53
0
def make_prefetchitem_accessedfilelist_accessedfile(accessed_file,
                                                    condition='contains',
                                                    negate=False,
                                                    preserve_case=False):
    '''
    Create a node for PrefetchItem/AccessedFileList/AccessedFile
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'PrefetchItem'
    search = 'PrefetchItem/AccessedFileList/AccessedFile'
    content_type = 'string'
    content = accessed_file
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #54
0
def make_fileitem_streamlist_stream_name(stream_name,
                                         condition='is',
                                         negate=False,
                                         preserve_case=False):
    '''
    Create a node for FileItem/StreamList/Stream/Name
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/StreamList/Stream/Name'
    content_type = 'string'
    content = stream_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #55
0
def make_processitem_arguments(arguments,
                               condition='contains',
                               negate=False,
                               preserve_case=False):
    '''
    Create a node for ProcessItem/arguments
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'ProcessItem'
    search = 'ProcessItem/arguments'
    content_type = 'string'
    content = arguments
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #56
0
def make_hookitem_hookedfunction(hooked_function,
                                 condition='is',
                                 negate=False,
                                 preserve_case=False):
    '''
    Create a node for HookItem/HookedFunction
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'HookItem'
    search = 'HookItem/HookedFunction'
    content_type = 'string'
    content = hooked_function
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #57
0
def make_dnsentryitem_recordname(dns_name,
                                 condition='contains',
                                 negate=False,
                                 preserve_case=False):
    '''
    Create a node for DnsEntryItem/RecordName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'DnsEntryItem'
    search = 'DnsEntryItem/RecordName'
    content_type = 'string'
    content = dns_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #58
0
def make_fileitem_stringlist_string(file_string,
                                    condition='contains',
                                    negate=False,
                                    preserve_case=False):
    '''
    Create a node for FileItem/StringList/string
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/StringList/string'
    content_type = 'string'
    content = file_string
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #59
0
def make_fileitem_username(file_owner,
                           condition='is',
                           negate=False,
                           preserve_case=False):
    '''
    Create a node for FileItem/Username
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'FileItem'
    search = 'FileItem/Username'
    content_type = 'string'
    content = file_owner
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node
Пример #60
0
def make_driveritem_drivername(driver_name,
                               condition='contains',
                               negate=False,
                               preserve_case=False):
    '''
    Create a node for DriverItem/DriverName
    
    Returns a IndicatorItem represented as an Element node
    '''
    document = 'DriverItem'
    search = 'DriverItem/DriverName'
    content_type = 'string'
    content = driver_name
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(
        condition,
        document,
        search,
        content_type,
        content,
        negate=negate,
        preserve_case=preserve_case)
    return IndicatorItem_node