def campaign_create(batch_job): batch_job.add_group({ 'name': 'campaign-003', 'type': 'Campaign', 'xid': cleaner._create_xid('Campaign', 'campaign-003'), 'attribute': [{ "displayed": True, "type": "Description", "value": "Example Description" }], 'tag': [{ 'name': 'Example Tag' }] })
def intrusion_set_create(batch_job): batch_job.add_group({ 'name': 'intrusion_set-003', 'type': 'Intrusion Set', 'xid': cleaner._create_xid('Intrusion Set', 'intrusion_set-003'), 'attribute': [{ "displayed": True, "type": "Description", "value": "Example Description" }], 'tag': [{ 'name': 'Example Tag' }] })
def adversary_create(batch_job): batch_job.add_group({ 'name': 'adversary-003', 'type': 'Adversary', 'xid': cleaner._create_xid('Adversary', 'adversary-003'), 'attribute': [{ "displayed": True, "type": "Description", "value": "Example Description" }], 'tag': [{ 'name': 'Example Tag' }] })
def _add_indicator(batch_job, type_, summary): batch_job.add_indicator({ "type": type_, "rating": 5.00, "confidence": 100, "summary": summary, "attribute": [{ "type": "Description", "displayed": True, "value": "Example Description" }], "xid": cleaner._create_xid(type_, summary) })
def document_create(batch_job): batch_job.add_group({ 'name': 'document-003', 'fileName': 'test.txt', 'fileContent': 'Document content', 'type': 'Document', 'xid': cleaner._create_xid('Document', 'document-003'), 'attribute': [{ "displayed": True, "type": "Description", "value": "Example Description" }], 'tag': [{ 'name': 'Example Tag' }] })
def email_create(batch_job): batch_job.add_group({ 'name': 'email-003', 'type': 'Email', 'xid': cleaner._create_xid('Email', 'email-003'), 'attribute': [{ "displayed": True, "type": "Description", "value": "Example Description" }], 'tag': [{ 'name': 'Example Tag' }], 'subject': 'Greetings!', 'header': 'This is just a test', 'body': 'This is just a test' })
def signature_create(batch_job): batch_job.add_group({ 'name': 'signature-003', 'fileName': 'test.snort', 'fileType': 'Snort', 'fileText': 'Signature content', 'type': 'Signature', 'xid': cleaner._create_xid('Signature', 'signature-003'), 'attribute': [{ "displayed": True, "type": "Description", "value": "Example Description" }], 'tag': [{ 'name': 'Example Tag' }] })