def get_embedded_yara(self, iocid):
ioc_obj = self.iocs[iocid]<EOL>ids_to_process = set([])<EOL>signatures = '<STR_LIT>'<EOL>for elem in ioc_obj.top_level_indicator.xpath('<STR_LIT>'):<EOL><INDENT>signature = elem.findtext('<STR_LIT>')<EOL>signatures = signatures + '<STR_LIT:\n>' + signature<EOL><DEDENT>if signatures:<EOL><INDENT>signatures += '<STR_LIT:\n>'<EOL><DEDENT>return signatures<EOL>
Extract YARA signatures embedded in Yara/Yara indicatorItem nodes.
This is done regardless of logic structure in the OpenIOC.