
أداة لتبسيط عملية البحث عن IOCs.
أداة لتبسيط عملية البحث عن تجزئات الملفات وعناوين IP وغيرها من مؤشرات الاختراق (IOCs).
pip install ioccheck
يمكنك أيضاً تشغيل الكود مباشرة
git clone https://github.com/ranguli/ioccheck && cd ioccheck
poetry install
قم بتعبئة ~/.config/ioccheck/credentials بإدخال لكل خدمة لديك بيانات اعتماد لها:
[virustotal]
api_key=YOUR_API_KEY_HERE
[malwarebazaar]
api_key=YOUR_API_KEY_HERE
[shodan]
api_key=YOUR_API_KEY_HERE
[twitter]
consumer_key=YOUR_API_KEY_HERE
consumer_secret=YOUR_API_KEY_HERE
access_token=YOUR_API_KEY_HERE
access_secret=YOUR_API_KEY_HERE
➜ ioccheck 275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f
جارٍ التحقق من التجزئة 275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f.
[*] خوارزمية التجزئة:
SHA256
[*] رابط VirusTotal:
https://virustotal.com/gui/file/275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f/
[*] اكتشافات VirusTotal:
61 محركًا (81%) اكتشف هذا الملف.
╒══════════════╤════════════╤═══════════════════════════════╕
│ مضاد الفيروسات │ تم الكشف │ النتيجة │
╞══════════════╪════════════╪═══════════════════════════════╡
│ Malwarebytes │ لا │ │
├──────────────┼────────────┼───────────────────────────────┤
│ Avast │ نعم │ EICAR Test-NOT virus!!! │
├──────────────┼────────────┼───────────────────────────────┤
│ ClamAV │ نعم │ Win.Test.EICAR_HDB-1 │
├──────────────┼────────────┼───────────────────────────────┤
│ Kaspersky │ نعم │ EICAR-Test-File │
├──────────────┼────────────┼───────────────────────────────┤
│ BitDefender │ نعم │ EICAR-Test-File (not a virus) │
├──────────────┼────────────┼───────────────────────────────┤
│ Paloalto │ لا │ │
├──────────────┼────────────┼───────────────────────────────┤
│ TrendMicro │ نعم │ Eicar_test_file │
├──────────────┼────────────┼───────────────────────────────┤
│ FireEye │ نعم │ EICAR-Test-File (not a virus) │
├──────────────┼────────────┼───────────────────────────────┤
│ Sophos │ نعم │ EICAR-AV-Test │
├──────────────┼────────────┼───────────────────────────────┤
│ Microsoft │ نعم │ Virus:DOS/EICAR_Test_File │
├──────────────┼────────────┼───────────────────────────────┤
│ McAfee │ نعم │ EICAR test file │
├──────────────┼────────────┼───────────────────────────────┤
│ Fortinet │ نعم │ EICAR_TEST_FILE │
├──────────────┼────────────┼───────────────────────────────┤
│ AVG │ نعم │ EICAR Test-NOT virus!!! │
╘══════════════╧════════════╧═══════════════════════════════╛
[*] سمعة VirusTotal:
3392
إنشاء تجزئة
>>> from ioccheck import Hash
>>> from ioccheck.services import VirusTotal
>>> eicar = Hash("275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f")
>>> # What kind of hash is this?
>>> print(eicar.hash_type)
SHA256
البحث عن تجزئة
>>> # With no arguments, check() tries all supported services. API keys grabbed from ~/.ioccheck by default.
>>> eicar.check()
>>> # Alternatively:
>>> eicar.check(services=VirusTotal, config_path=/foo/bar/.ioccheck)
التحقق من تجزئة
>>> # Check the VirusTotal report to see if Sophos detects our hash
>>> eicar.reports.virustotal.get_detections(engines=["Sophos"])
{'Sophos': {'category': 'malicious', 'engine_name': 'Sophos', 'engine_version': '1.0.2.0', 'result': 'EICAR-AV-Test', 'method': 'blacklist', 'engine_update': '20210314'}}
>>> # What is this hash known as?
>>> print(eicar.reports.virustotal.name)
'eicar.com-2224'
>>> # How many AV engines are detecting this hash?
>>> eicar.reports.virustotal.detection_count
60
>>> # Just show me the VirusTotal API response!
>>> eicar.reports.virustotal.api_response
<vt.object.Object file 275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f>