pkill ossec-integratord/var/ossec/bin/ossec-integratord -fdd
2019/06/07 10:37:54 ossec-integratord[38167] integrator.c:131 at OS_IntegratorD(): DEBUG: sending new alert.
2019/06/07 10:37:54 ossec-integratord[38167] integrator.c:263 at OS_IntegratorD(): DEBUG: file /tmp/virustotal-1559896674--327569001.alert was written.
2019/06/07 10:37:54 ossec-integratord[38167] integrator.c:389 at OS_IntegratorD(): DEBUG: Running: /var/ossec/integrations/virustotal /tmp/virustotal-1559896674--327569001.alert xxxxxxxapikeyxxxx debug
2019/06/07 10:37:55 ossec-integratord[38167] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:37:54 CEST 2019: # Starting
2019/06/07 10:37:55 ossec-integratord[38167] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:37:54 CEST 2019: # API Key
...
2019/06/07 10:37:55 ossec-integratord[38167] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:37:54 CEST 2019: 1:virustotal:{"virustotal": {"permalink": "https://www.virustotal.com/file/275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f/analysis/1559896527/", "sha1": "3395856ce81f2b7382dee72602f798b642f14140", "malicious": 1, "source": {"alert_id": "1559896673.57793", "sha1": "3395856ce81f2b7382dee72602f798b642f14140", "file": "/root/prueba/eicar.com.txt", "md5": "44d88612fea8a8f36de82e1278abb02f"}, "positives": 61, "found": 1, "total": 62, "scan_date": "2019-06-07 08:35:27"}, "integration": "virustotal"}
2019/06/07 10:37:55 ossec-integratord[38167] integrator.c:414 at OS_IntegratorD(): DEBUG: Command ran successfully** Alert 1559896675.58318: mail - virustotal,gdpr_IV_35.7.d,
2019 Jun 07 10:37:55 ubuntu1710->virustotal
Rule: 87105 (level 12) -> 'VirusTotal: Alert - /root/prueba/eicar.com.txt - 61 engines detected this file'
{"virustotal": {"permalink": "https://www.virustotal.com/file/275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f/analysis/1559896527/", "sha1": "3395856ce81f2b7382dee72602f798b642f14140", "malicious": 1, "source": {"alert_id": "1559896673.57793", "sha1": "3395856ce81f2b7382dee72602f798b642f14140", "file": "/root/prueba/eicar.com.txt", "md5": "44d88612fea8a8f36de82e1278abb02f"}, "positives": 61, "found": 1, "total": 62, "scan_date": "2019-06-07 08:35:27"}, "integration": "virustotal"}
virustotal.permalink: https://www.virustotal.com/file/275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f/analysis/1559896527/
virustotal.sha1: 3395856ce81f2b7382dee72602f798b642f14140
virustotal.malicious: 1
virustotal.source.alert_id: 1559896673.57793
virustotal.source.sha1: 3395856ce81f2b7382dee72602f798b642f14140
virustotal.source.file: /root/prueba/eicar.com.txt
virustotal.source.md5: 44d88612fea8a8f36de82e1278abb02f
virustotal.positives: 61
virustotal.found: 1
virustotal.total: 62
virustotal.scan_date: 2019-06-07 08:35:27
integration: virustotal2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:00:28 UTC 2019: # File location
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord:
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:00:28 UTC 2019: /tmp/virustotal-1559901627-1936916424.alert
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord:
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:00:28 UTC 2019: # Processing alert
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord:
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:00:28 UTC 2019: {u'full_log': u"File 'c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip' was added.\n", u'timestamp': u'2019-06-07T10:00:26.607+0000', u'agent': {u'ip': u'192.168.15.166', u'id': u'003', u'name': u'DESKTOP-DJ7F955'}, u'syscheck': {u'attrs_after': [u'ARCHIVE'], u'sha1_after': u'bec1b52d350d721c7e22a6d4bb0a92909893a3ae', u'size_after': u'308', u'uid_after': u'S-1-5-21-709713298-3484327148-2998407370-1001', u'event': u'added', u'mtime_after': u'2019-06-07T10:00:24', u'uname_after': u'wAdmin', u'path': u'c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip', u'win_perm_after': [{u'name': u'SYSTEM', u'allowed': [u'DELETE', u'READ_CONTROL', u'WRITE_DAC', u'WRITE_OWNER', u'SYNCHRONIZE', u'FILE_READ_DATA', u'FILE_WRITE_DATA', u'FILE_APPEND_DATA', u'FILE_READ_EA', u'FILE_WRITE_EA', u'FILE_EXECUTE', u'FILE_READ_ATTRIBUTES', u'FILE_WRITE_ATTRIBUTES']}, {u'name': u'Administrators', u'allowed': [u'DELETE', u'READ_CONTROL', u'WRITE_DAC', u'WRITE_OWNER', u'SYNCHRONIZE', u'FILE_READ_DATA', u'FILE_WRITE_DATA', u'FILE_APPEND_DATA', u'FILE_READ_EA', u'FILE_WRITE_EA', u'FILE_EXECUTE', u'FILE_READ_ATTRIBUTES', u'FILE_WRITE_ATTRIBUTES']}, {u'name': u'wAdmin', u'allowed': [u'DELETE', u'READ_CONTROL', u'WRITE_DAC', u'WRITE_OWNER', u'SYNCHRONIZE', u'FILE_READ_DATA', u'FILE_WRITE_DATA', u'FILE_APPEND_DATA', u'FILE_READ_EA', u'FILE_WRITE_EA', u'FILE_EXECUTE', u'FILE_READ_ATTRIBUTES', u'FILE_WRITE_ATTRIBUTES']}], u'sha256_after': u'e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397', u'md5_after': u'e4968ef99266df7c9a1f0637d2389dab'}, u'manager': {u'name': u'server'}, u'rule': {u'firedtimes': 1, u'description': u'Alert: Added content on monitorized directory', u'level': 16, u'groups': [u'windows'], u'mail': True, u'id': u'100009'}, u'decoder': {u'name': u'syscheck_new_entry'}, u'id': u'1559901626.134618', u'location': u'syscheck'}
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord:
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:00:28 UTC 2019: {'virustotal': {'permalink': u'https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/', 'sha1': u'bec1b52d350d721c7e22a6d4bb0a92909893a3ae', 'malicious': 1, 'source': {'alert_id': u'1559901626.134618', 'sha1': u'bec1b52d350d721c7e22a6d4bb0a92909893a3ae', 'file': u'c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip', 'md5': u'e4968ef99266df7c9a1f0637d2389dab'}, 'positives': 54, 'found': 1, 'total': 63, 'scan_date': u'2019-06-05 07:36:22'}, 'integration': 'virustotal'}
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord:
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord: Fri Jun 07 10:00:28 UTC 2019: 1:[003] (DESKTOP-DJ7F955) 192.168.15.166->virustotal:{"virustotal": {"permalink": "https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "malicious": 1, "source": {"alert_id": "1559901626.134618", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "file": "c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip", "md5": "e4968ef99266df7c9a1f0637d2389dab"}, "positives": 54, "found": 1, "total": 63, "scan_date": "2019-06-05 07:36:22"}, "integration": "virustotal"}
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:399 at OS_IntegratorD(): DEBUG: integratord:
2019/06/07 10:00:29 ossec-integratord[5615] integrator.c:414 at OS_IntegratorD(): DEBUG: Command ran successfully
** Alert 1559901489.133347: mail - windows
2019 Jun 07 09:58:09 (DESKTOP-DJ7F955) 192.168.15.166->syscheckRule: 100009 (level 16) -> 'Alert: Added content on monitorized directory'File 'c:\users\wadmin\downloads\eicar_com.zip' was added2019/06/07 14:44:20 ossec-testrule: INFO: Started (pid: 38789).
ossec-testrule: Type one log per line.
{"virustotal": {"permalink": "https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "malicious": 1, "source": {"alert_id": "1559901626.134618", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "file": "c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip", "md5": "e4968ef99266df7c9a1f0637d2389dab"}, "positives": 54, "found": 1, "total": 63, "scan_date": "2019-06-05 07:36:22"}, "integration": "virustotal"}
**Phase 1: Completed pre-decoding.
full event: '{"virustotal": {"permalink": "https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "malicious": 1, "source": {"alert_id": "1559901626.134618", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "file": "c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip", "md5": "e4968ef99266df7c9a1f0637d2389dab"}, "positives": 54, "found": 1, "total": 63, "scan_date": "2019-06-05 07:36:22"}, "integration": "virustotal"}'
timestamp: '(null)'
hostname: 'ubuntu1710'
program_name: '(null)'
log: '{"virustotal": {"permalink": "https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "malicious": 1, "source": {"alert_id": "1559901626.134618", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "file": "c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip", "md5": "e4968ef99266df7c9a1f0637d2389dab"}, "positives": 54, "found": 1, "total": 63, "scan_date": "2019-06-05 07:36:22"}, "integration": "virustotal"}'
**Phase 2: Completed decoding.
decoder: 'json'
virustotal.permalink: 'https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/'
virustotal.sha1: 'bec1b52d350d721c7e22a6d4bb0a92909893a3ae'
virustotal.malicious: '1'
virustotal.source.alert_id: '1559901626.134618'
virustotal.source.sha1: 'bec1b52d350d721c7e22a6d4bb0a92909893a3ae'
virustotal.source.file: 'c:\users\wadmin\downloads\eicarcom2 (1).zip'
virustotal.source.md5: 'e4968ef99266df7c9a1f0637d2389dab'
virustotal.positives: '54'
virustotal.found: '1'
virustotal.total: '63'
virustotal.scan_date: '2019-06-05 07:36:22'
integration: 'virustotal'
**Phase 3: Completed filtering (rules).
Rule id: '87105'
Level: '12'
Description: 'VirusTotal: Alert - c:\users\wadmin\downloads\eicarcom2 (1).zip - 54 engines detected this file'
**Alert to be generated.<group name="windows">
<rule id="100009" level="16"> <if_sid>554</if_sid> <description>Alert: Added content on monitorized directory</description> </rule>
</group>**Phase 2: Completed decoding.
decoder: 'json'
<!--- JSON Decoders- Copyright (C) 2015-2019, Wazuh Inc.- April 21, 2017.-- This program is a free software; you can redistribute it- and/or modify it under the terms of the GNU General Public- License (version 2) as published by the FSF - Free Software- Foundation.-->
<decoder name="json"> <prematch>^{\s*"</prematch> <plugin_decoder>JSON_Decoder</plugin_decoder></decoder>
<decoder name="pnp_device_id"> <parent>json</parent> <regex>USBSTOR#Disk&Ven_(\S*)&Prod_(\S*)&Rev_(\.*)#(\S*)&0#\S*\s</regex> <order>usb.vendor, usb.product, usb.rev, usb.serial_number</order></decoder>
<decoder name="pnp_device_id_2"> <parent>json</parent> <regex>USBSTOR#Disk&Ven_(\S*)&Prod_(\S*)&Rev_(\.*)#(\S*)&0#\S*\s</regex> <order>usb.vendor, usb.product, usb.rev, usb.serial_number</order></decoder>{"virustotal": {"permalink": "https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "malicious": 1, "source": {"alert_id": "1559901626.134618", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "file": "c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip", "md5": "e4968ef99266df7c9a1f0637d2389dab"}, "positives": 54, "found": 1, "total": 63, "scan_date": "2019-06-05 07:36:22"}, "integration": "virustotal"}
**Phase 1: Completed pre-decoding. full event: '{"virustotal": {"permalink": "https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "malicious": 1, "source": {"alert_id": "1559901626.134618", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "file": "c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip", "md5": "e4968ef99266df7c9a1f0637d2389dab"}, "positives": 54, "found": 1, "total": 63, "scan_date": "2019-06-05 07:36:22"}, "integration": "virustotal"}' timestamp: '(null)' hostname: 'risk-server' program_name: '(null)' log: '{"virustotal": {"permalink": "https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "malicious": 1, "source": {"alert_id": "1559901626.134618", "sha1": "bec1b52d350d721c7e22a6d4bb0a92909893a3ae", "file": "c:\\users\\wadmin\\downloads\\eicarcom2 (1).zip", "md5": "e4968ef99266df7c9a1f0637d2389dab"}, "positives": 54, "found": 1, "total": 63, "scan_date": "2019-06-05 07:36:22"}, "integration": "virustotal"}'
**Phase 2: Completed decoding. decoder: 'json' virustotal.permalink: 'https://www.virustotal.com/file/e1105070ba828007508566e28a2b8d4c65d192e9eaf3b7868382b7cae747b397/analysis/1559720182/' virustotal.sha1: 'bec1b52d350d721c7e22a6d4bb0a92909893a3ae' virustotal.malicious: '1' virustotal.source.alert_id: '1559901626.134618' virustotal.source.sha1: 'bec1b52d350d721c7e22a6d4bb0a92909893a3ae' virustotal.source.file: 'c:\users\wadmin\downloads\eicarcom2 (1).zip' virustotal.source.md5: 'e4968ef99266df7c9a1f0637d2389dab' virustotal.positives: '54' virustotal.found: '1' virustotal.total: '63' virustotal.scan_date: '2019-06-05 07:36:22' integration: 'virustotal'
**Phase 3: Completed filtering (rules). Rule id: '87105' Level: '12' Description: 'VirusTotal: Alert - c:\users\wadmin\downloads\eicarcom2 (1).zip - 54 engines detected this file'**Alert to be generated.