id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
39,700
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/lookyloo/test_expert.py
# SPDX-FileCopyrightText: 2021 Sebastian Waldbauer # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import os import unittest import json import re import intelmq.lib.test as test from intelmq.bots.experts.lookyloo.expert import LookyLooExpertBot EXAMPLE_INPUT = {"__type": "Event", ...
1,529
Python
.py
37
34.027027
129
0.634953
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,701
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/trusted_introducer_lookup/test_expert.py
""" Testing trusted introducer Expert SPDX-FileCopyrightText: 2021 Intelmq Team <intelmq-team@cert.at> SPDX-License-Identifier: AGPL-3.0-or-later """ import unittest import os import requests_mock import intelmq.lib.test as test from intelmq.bots.experts.trusted_introducer_lookup.expert import TrustedIntroducerLook...
2,473
Python
.py
60
34.783333
98
0.675428
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,702
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/abusix/test_expert.py
# SPDX-FileCopyrightText: 2015 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.abusix.expert import AbusixExpertBot EXAMPLE_INPUT = {"__type": "Event", "source.ip": "192.0.43.7", # ican...
2,739
Python
.py
67
30.567164
68
0.56574
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,703
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/ripe/test_expert.py
# SPDX-FileCopyrightText: 2018 Brajneesh Kumar # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing RIPE Expert """ import unittest import requests_mock import intelmq.lib.test as test from intelmq.bots.experts.ripe.expert import RIPEExpertBot EXAMPLE_INPUT = {"__type": "Event", ...
11,509
Python
.py
247
31.736842
121
0.510549
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,704
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/idea/test_expert.py
# SPDX-FileCopyrightText: 2017 Pavel Kácha # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import json import intelmq.lib.test as test from intelmq.bots.experts.idea.expert import IdeaExpertBot from intelmq.lib.harmonization import ClassificationType TEST_INPUT1 = { "__ty...
3,898
Python
.py
95
34.305263
125
0.647136
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,705
test_expert_absolute_after.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_expert_absolute_after.py
# SPDX-FileCopyrightText: 2015 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Event", "classification.type": "unauthorised-inform...
1,018
Python
.py
27
30.703704
80
0.639511
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,706
test_expert_relative_before.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_expert_relative_before.py
# SPDX-FileCopyrightText: 2015 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Event", "classification.type": "unauthorised-inform...
1,063
Python
.py
28
30.892857
80
0.633528
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,707
test_report.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_report.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Report", "raw": "Cg==", ...
1,267
Python
.py
36
26.444444
63
0.583607
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,708
test_extra.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_extra.py
# SPDX-FileCopyrightText: 2017 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Event", "classification.type": "unauthori...
1,381
Python
.py
36
28.805556
80
0.585768
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,709
test_expert_absolute_before.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_expert_absolute_before.py
# SPDX-FileCopyrightText: 2015 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Event", "classification.type": "unauthorised-inform...
1,007
Python
.py
27
30.296296
80
0.638517
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,710
test_empty_string_parameters.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_empty_string_parameters.py
# SPDX-FileCopyrightText: 2021 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot from .test_extra import EXAMPLE_INPUT class TestFilterExpertBot(test.BotTestCase, uni...
1,001
Python
.py
27
29.222222
65
0.623834
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,711
test_paths.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_paths.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Event", "classification.type": "unauthori...
3,531
Python
.py
69
37.594203
90
0.58058
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,712
test_expert_relative_after.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_expert_relative_after.py
# SPDX-FileCopyrightText: 2015 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Event", "classification.type": "unauthorised-inform...
1,460
Python
.py
37
32
123
0.635527
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,713
test_expert_regex_search.py
certtools_intelmq/intelmq/tests/bots/experts/filter/test_expert_regex_search.py
# SPDX-FileCopyrightText: 2016 Dustin Demuth # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.filter.expert import FilterExpertBot EXAMPLE_INPUT = {"__type": "Event", "classification.type": "unauthorised...
1,196
Python
.py
31
29.387097
80
0.589965
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,714
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/url2fqdn/test_expert.py
# SPDX-FileCopyrightText: 2015 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing url2fqdn. """ import unittest import intelmq.lib.test as test from intelmq.bots.experts.url2fqdn.expert import Url2fqdnExpertBot EXAMPLE_INPUT = {"__type": "Event", "source.url":...
2,351
Python
.py
58
31.706897
76
0.591846
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,715
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/threshold/test_expert.py
# SPDX-FileCopyrightText: 2020 Karl-Johan Karlsson # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import os import unittest import intelmq.lib.test as test from intelmq.lib import utils from intelmq.bots.experts.threshold.expert import ThresholdExpertBot EVENT_PATTERN = { 'feed.url': 'fi...
3,396
Python
.py
96
27.875
78
0.612549
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,716
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/csv_converter/test_expert.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.csv_converter.expert import BOT EXAMPLE_INPUT = {"__type": "Event", "source.ip": "93.184.216.34", ...
1,450
Python
.py
35
33.257143
72
0.607397
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,717
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/maxmind_geoip/test_expert.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.experts.maxmind_geoip.expert
226
Python
.py
7
30.428571
52
0.760369
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,718
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/url/test_expert.py
# SPDX-FileCopyrightText: 2023 Filip Pokorn√Ω # # SPDX-License-Identifier: AGPL-3.0-or-later import unittest import intelmq.lib.test as test from intelmq.bots.experts.url.expert import URLExpertBot INPUT = { "test_extracting_ip": { "__type": "Event", "source.url": "http://5.5.5.5/index.html", ...
5,814
Python
.py
148
28.614865
117
0.542301
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,719
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/format_field/test_expert.py
# SPDX-FileCopyrightText: 2019 Brajneesh kumar # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.format_field.expert import FormatFieldExpertBot EXAMPLE_INPUT1 = {"__type": "Event", "time.observation": "...
2,609
Python
.py
58
34.448276
81
0.568272
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,720
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/misp/test_expert.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- from intelmq.bots.experts.misp.expert import MISPExpertBot from intelmq.lib.test import BotTestCase import unittest class TestMISPExpertBot(BotTestCase, unittest.TestCase): @classmethod def ...
376
Python
.py
11
31.454545
58
0.78453
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,721
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/asn_lookup/test_expert.py
# SPDX-FileCopyrightText: 2015 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing asn_lookup with a faked local database """ import unittest import pkg_resources import intelmq.lib.test as test from intelmq.bots.experts.asn_lookup.expert import ASNLookupExpertBot AS...
2,185
Python
.py
55
30.218182
94
0.571024
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,722
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/remove_affix/test_expert.py
""" Remove affix - String cut from string SPDX-FileCopyrightText: 2021 Marius Karotkis <marius.karotkis@gmail.com> SPDX-License-Identifier: AGPL-3.0-or-later """ import unittest import intelmq.lib.test as test from intelmq.bots.experts.remove_affix.expert import RemoveAffixExpertBot EXAMPLE_INPUT = { '__type': '...
2,849
Python
.py
77
32.064935
73
0.659775
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,723
test_expert.py
certtools_intelmq/intelmq/tests/bots/experts/reverse_dns/test_expert.py
# SPDX-FileCopyrightText: 2015 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import unittest import intelmq.lib.test as test from intelmq.bots.experts.reverse_dns.expert import ReverseDnsExpertBot EXAMPLE_INPUT = {"__type": "Event", "source.ip": "192.0.43.7...
3,453
Python
.py
77
33.428571
106
0.551293
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,724
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/rt/test_collector.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ """ import unittest import os import intelmq.lib.test as test import intelmq.lib.utils as utils from intelmq.bots.collectors.rt.collector_rt import RTCollectorBot rt_url = os.getenv('INTELMQ_TE...
5,246
Python
.py
121
31.760331
97
0.549677
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,725
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/opendxl/test_collector.py
# SPDX-FileCopyrightText: 2018 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.opendxl.collector
202
Python
.py
6
31.666667
52
0.804124
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,726
test_collector_url.py
certtools_intelmq/intelmq/tests/bots/collectors/mail/test_collector_url.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing Mail URL collector """ import unittest.mock as mock import unittest import os import requests_mock import intelmq.lib.test as test from intelmq.bots.collectors.mail.collector_mail_url im...
1,957
Python
.py
50
28.3
95
0.56872
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,727
lib.py
certtools_intelmq/intelmq/tests/bots/collectors/mail/lib.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Created on Tue Sep 10 17:10:54 2019 @author: sebastian """ import os from copy import deepcopy if os.getenv('INTELMQ_TEST_EXOTIC'): from imbox.parser import parse_email with open(os.path...
1,802
Python
.py
43
36.511628
88
0.692484
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,728
test_collector_attach.py
certtools_intelmq/intelmq/tests/bots/collectors/mail/test_collector_attach.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing Mail Attach collector """ import os import unittest import unittest.mock as mock import intelmq.lib.test as test from intelmq.bots.collectors.mail.collector_mail_attach import MailAttach...
2,928
Python
.py
71
30.704225
95
0.588752
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,729
test_collector_body.py
certtools_intelmq/intelmq/tests/bots/collectors/mail/test_collector_body.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing Mail Attachment collector """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.mail.collector_mail_body
275
Python
.py
10
25.9
59
0.764259
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,730
test_collector_mas.py
certtools_intelmq/intelmq/tests/bots/collectors/fireeye/test_collector_mas.py
# SPDX-FileCopyrightText: 2021 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later import unittest import pathlib import secrets import requests_mock import intelmq.lib.test as test from intelmq.bots.collectors.fireeye.collector_mas import FireeyeMASCollectorBot RANDSTR = secrets.token_urlsafe(50) ASSET...
2,429
Python
.py
44
50.159091
178
0.729228
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,731
test_collector_amqp.py
certtools_intelmq/intelmq/tests/bots/collectors/amqp/test_collector_amqp.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import json import unittest import intelmq.lib.test as test import intelmq.lib.utils as utils from intelmq.bots.collectors.amqp.collector_amqp import AMQPCollectorBot from intelmq.tests.bots.outputs....
2,421
Python
.py
57
30.315789
83
0.568753
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,732
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/alienvault_otx/test_collector.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing Alienvault OTX collector """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.alienvault_otx.collector
274
Python
.py
10
25.8
59
0.767176
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,733
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/stomp/test_collector.py
# SPDX-FileCopyrightText: 2017 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing stomp collector """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.stomp.collector
256
Python
.py
10
24
50
0.758197
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,734
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/rsync/test_collector.py
# SPDX-FileCopyrightText: 2018 dargen3 # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import tempfile import os import unittest import shutil import intelmq.lib.test as test import intelmq.lib.utils as utils from intelmq.bots.collectors.rsync.collector_rsync import RsyncCollectorBot PATH = os...
1,618
Python
.py
43
30.930233
75
0.64984
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,735
test_collector_stream.py
certtools_intelmq/intelmq/tests/bots/collectors/http/test_collector_stream.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing HTTP Stream collector """ import intelmq.bots.collectors.http.collector_http_stream
217
Python
.py
8
25.875
57
0.772947
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,736
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/http/test_collector.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing HTTP collector """ import datetime import os import unittest import requests_mock import intelmq.lib.test as test import intelmq.lib.utils as utils from intelmq.bots.collectors.http.coll...
6,721
Python
.py
171
28.251462
79
0.542778
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,737
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/eset/test_collector.py
# SPDX-FileCopyrightText: 2020 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later import intelmq.bots.collectors.eset.collector
142
Python
.py
4
34.25
47
0.832117
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,738
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/blueliv/test_collector.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing Blueliv crimeserver collector """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.blueliv.collector_crimeserver
284
Python
.py
10
26.8
64
0.775735
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,739
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/file/test_collector.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing File Collector """ import os import unittest import fcntl import intelmq.lib.test as test import intelmq.lib.utils as utils from intelmq.bots.collectors.file.collector_file import FileCol...
1,903
Python
.py
53
27.924528
105
0.601197
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,740
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/api/test_collector.py
# SPDX-FileCopyrightText: 2018 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing API collector """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): from intelmq.bots.collectors.api.collector_api import APICollectorBot
278
Python
.py
10
26.1
73
0.766038
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,741
test_collector_stream.py
certtools_intelmq/intelmq/tests/bots/collectors/shodan/test_collector_stream.py
# SPDX-FileCopyrightText: 2018 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.shodan.collector_stream
240
Python
.py
9
25
58
0.746725
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,742
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/calidog/test_collector.py
# SPDX-FileCopyrightText: 2018 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later """ Test for the certstream Collector Bot """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.calidog.collector_certstream # This file is a stub.
283
Python
.py
10
26.6
63
0.788889
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,743
test_collector_interflow.py
certtools_intelmq/intelmq/tests/bots/collectors/microsoft/test_collector_interflow.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later """ Test for the Microsoft Azure Collector Bot """ import datetime import unittest import intelmq.lib.test as test from intelmq.bots.collectors.microsoft.collector_interflow import \ MicrosoftInterflowCollectorBot EXP...
1,626
Python
.py
38
34.815789
92
0.665611
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,744
test_collector_azure.py
certtools_intelmq/intelmq/tests/bots/collectors/microsoft/test_collector_azure.py
# SPDX-FileCopyrightText: 2017 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later """ Test for the Microsoft Azure Collector Bot """ import intelmq.bots.collectors.microsoft.collector_azure # This file is a stub.
229
Python
.py
8
27.25
56
0.802752
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,745
test_collector_reports_api.py
certtools_intelmq/intelmq/tests/bots/collectors/shadowserver/test_collector_reports_api.py
# SPDX-FileCopyrightText: 2021 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later import unittest import pathlib import secrets import requests_mock import intelmq.lib.test as test from intelmq.bots.collectors.shadowserver.collector_reports_api import ShadowServerAPICollectorBot RANDSTR = secrets.token...
4,064
Python
.py
74
48.513514
194
0.715113
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,746
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/github_api/test_collector.py
# SPDX-FileCopyrightText: 2019 Tomas Bellus # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing Github API Collectors """ import json import os from unittest import TestCase, main as unittest_main from unittest.mock import MagicMock, patch import intelmq.lib.exceptions as exceptions imp...
6,697
Python
.py
144
39.090278
115
0.67341
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,747
test_collector_twitter.py
certtools_intelmq/intelmq/tests/bots/collectors/twitter/test_collector_twitter.py
# SPDX-FileCopyrightText: 2018 Karel # # SPDX-License-Identifier: AGPL-3.0-or-later """ Test for the Twitter Collector Bot """ import intelmq.bots.collectors.twitter.collector_twitter # This file is a stub.
210
Python
.py
8
24.875
56
0.79397
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,748
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/tcp/test_collector.py
# SPDX-FileCopyrightText: 2018 Edvard Rejthar # # SPDX-License-Identifier: AGPL-3.0-or-later """ Testing TCP collector """ import socket import struct import threading import unittest from multiprocessing import Process from time import sleep import intelmq.lib.test as test import intelmq.lib.utils as utils from inte...
7,110
Python
.py
152
37.828947
344
0.653535
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,749
test_collector.py
certtools_intelmq/intelmq/tests/bots/collectors/misp/test_collector.py
# SPDX-FileCopyrightText: 2020 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Testing MISP collector """ import os if os.environ.get('INTELMQ_TEST_EXOTIC'): import intelmq.bots.collectors.misp.collector
254
Python
.py
10
23.8
49
0.756198
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,750
output.py
certtools_intelmq/intelmq/bots/outputs/rt/output.py
# SPDX-FileCopyrightText: 2020 Marius Urkis # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Request Tracker output bot Creates a ticket in the specified queue Parameters: rt_uri, rt_user, rt_password, verify_cert - RT API endpoint queue - ticket destination queue cf_mapping - mapping attri...
5,941
Python
.py
113
42.628319
275
0.646826
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,751
output.py
certtools_intelmq/intelmq/bots/outputs/restapi/output.py
# SPDX-FileCopyrightText: 2015 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- from typing import Iterable try: import requests except ImportError: requests = None import intelmq.lib.utils as utils from intelmq.lib.bot import OutputBot from intelmq.lib.exceptions import MissingD...
2,456
Python
.py
60
30.533333
83
0.605462
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,752
output.py
certtools_intelmq/intelmq/bots/outputs/files/output.py
# SPDX-FileCopyrightText: 2017 Pavel Kácha # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import errno import io import os import socket import time from os import path from intelmq.lib.bot import OutputBot from intelmq.lib.exceptions import ConfigurationError class FilesOutputBot(OutputBot)...
3,098
Python
.py
73
34.356164
101
0.624834
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,753
output_esm_ip.py
certtools_intelmq/intelmq/bots/outputs/mcafee/output_esm_ip.py
# SPDX-FileCopyrightText: 2018 tux78 # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ ESMOutputBot connects to McAfee Enterprise Security Manager, and updates IP based watchlists Parameters: esm_ip: IP Address of ESM esm_user: username to connect to ESM esm_password: Password of esm_user esm...
2,386
Python
.py
61
30.704918
115
0.626407
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,754
output.py
certtools_intelmq/intelmq/bots/outputs/udp/output.py
# SPDX-FileCopyrightText: 2016 pedromreis # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import socket import unicodedata import intelmq.lib.utils as utils from intelmq.lib.bot import OutputBot class UDPOutputBot(OutputBot): """Send events to a UDP server, e.g. a syslog daemon""" fie...
1,981
Python
.py
50
31.8
96
0.624217
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,755
output.py
certtools_intelmq/intelmq/bots/outputs/amqptopic/output.py
# SPDX-FileCopyrightText: 2016 Pedro Reis # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import ssl from intelmq.lib.bot import OutputBot from intelmq.lib.exceptions import MissingDependencyError try: import pika except ImportError: pika = None class AMQPTopicOutputBot(OutputBot): ...
6,142
Python
.py
131
34.908397
138
0.61446
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,756
output.py
certtools_intelmq/intelmq/bots/outputs/blackhole/output.py
# SPDX-FileCopyrightText: 2018 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- from intelmq.lib.bot import OutputBot class BlackholeOutputBot(OutputBot): "Discard messages" def process(self): self.receive_message() self.acknowledge_message() BOT = Bl...
337
Python
.py
11
26.909091
47
0.74375
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,757
output.py
certtools_intelmq/intelmq/bots/outputs/rpz_file/output.py
""" RPZ file output SPDX-FileCopyrightText: 2021 Marius Karotkis <marius.karotkis@gmail.com> SPDX-License-Identifier: AGPL-3.0-or-later """ from datetime import datetime import os from collections import defaultdict from pathlib import Path from intelmq.lib.bot import OutputBot RPZ_INDICATOR_MAP = { "source.fqd...
6,194
Python
.py
143
33.160839
221
0.558653
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,758
output.py
certtools_intelmq/intelmq/bots/outputs/stomp/output.py
# SPDX-FileCopyrightText: 2016 Mauro Silva # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- try: import stomp except ImportError: stomp = None from intelmq.lib.bot import OutputBot from intelmq.lib.mixins import StompMixin class StompOutputBot(OutputBot, StompMixin): """Send event...
3,060
Python
.py
71
36.71831
99
0.662062
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,759
output.py
certtools_intelmq/intelmq/bots/outputs/touch/output.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Using pathlib.Path.touch(path) and os.utime(path) did not work - the ctime did not change in some cases. """ import os import time from intelmq.lib.bot import OutputBot class TouchOutputBot(Out...
584
Python
.py
20
25.65
64
0.709156
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,760
output.py
certtools_intelmq/intelmq/bots/outputs/smtp/output.py
# SPDX-FileCopyrightText: 2017 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import csv import io import smtplib import ssl from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from intelmq.lib.bot import OutputBot from typing import Optional ...
3,610
Python
.py
76
36.723684
146
0.623402
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,761
output.py
certtools_intelmq/intelmq/bots/outputs/file/output.py
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import datetime import os from collections import defaultdict from pathlib import Path from intelmq.lib.bot import OutputBot class FileOutputBot(OutputBot): """Write events to a fi...
4,191
Python
.py
93
32.322581
123
0.552889
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,762
output.py
certtools_intelmq/intelmq/bots/outputs/smtp_batch/output.py
# SPDX-FileCopyrightText: 2022 CSIRT.cz <https://csirt.cz> # SPDX-License-Identifier: AGPL-3.0-or-later import csv from dataclasses import dataclass import datetime import json import os import sys from tempfile import NamedTemporaryFile import time from typing import Any, Optional import zipfile from base64 import b64...
14,058
Python
.py
314
31.433121
122
0.540326
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,763
output.py
certtools_intelmq/intelmq/bots/outputs/sql/output.py
# SPDX-FileCopyrightText: 2019 Edvard Rejthar, 2022 Intevation GmbH # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ SQL output bot. See :ref:`bot sql` bot documentation for installation and configuration. In case of errors, the bot tries to reconnect if the error is of operational and thus...
2,258
Python
.py
55
34.6
115
0.662249
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,764
output.py
certtools_intelmq/intelmq/bots/outputs/bro_file/output.py
""" Bro file output SPDX-FileCopyrightText: 2021 Marius Karotkis <marius.karotkis@gmail.com> SPDX-License-Identifier: AGPL-3.0-or-later """ import datetime import os from collections import defaultdict from pathlib import Path from intelmq.lib.bot import OutputBot BRO_INDICATOR_MAP = { "source.ip": "Intel::ADDR...
5,724
Python
.py
127
31.330709
119
0.534313
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,765
output.py
certtools_intelmq/intelmq/bots/outputs/redis/output.py
# SPDX-FileCopyrightText: 2016 pedromreis # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import redis from intelmq.lib.bot import OutputBot class RedisOutputBot(OutputBot): """Send events to a Redis database""" hierarchical_output = False redis_db: int = 2 redis_password: st...
2,092
Python
.py
52
30.769231
122
0.611741
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,766
output.py
certtools_intelmq/intelmq/bots/outputs/mongodb/output.py
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ pymongo library automatically tries to reconnect if connection has been lost. """ import dateutil.parser from intelmq.lib.bot import OutputBot from intelmq.lib.exceptions import Mis...
4,534
Python
.py
103
32
113
0.581369
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,767
output.py
certtools_intelmq/intelmq/bots/outputs/templated_smtp/output.py
"""Templated SMTP output bot SPDX-FileCopyrightText: 2021 Linköping University <https://liu.se/> SPDX-License-Identifier: AGPL-3.0-or-later Sends a MIME Multipart message built from an event and static text using Jinja2 templates. Templates are in Jinja2 format with the event provided in the variable "event". E.g.:...
7,710
Python
.py
171
35.719298
98
0.626368
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,768
output.py
certtools_intelmq/intelmq/bots/outputs/tcp/output.py
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ For intelmq collectors on the other side we can expect the "ok" sent back. Otherwise, for filebeat and other we can't do that. As this was the previous behavior, that's the default. h...
2,715
Python
.py
72
27.958333
93
0.595057
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,769
output_feed.py
certtools_intelmq/intelmq/bots/outputs/misp/output_feed.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import datetime import json from pathlib import Path from uuid import uuid4 import re from intelmq.lib.bot import OutputBot from intelmq.lib.exceptions import MissingDependencyError from intelmq.lib....
5,921
Python
.py
119
37.97479
131
0.605505
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,770
output_api.py
certtools_intelmq/intelmq/bots/outputs/misp/output_api.py
"""Connect to a MISP instance and add event as MISPObject if not there already. SPDX-FileCopyrightText: 2020 Intevation GmbH <https://intevation.de> SPDX-License-Identifier: AGPL-3.0-or-later Funding: of initial version by SUNET Author(s): * Bernhard Reiter <bernhard@intevation.de> A shortened copy of this documenta...
9,214
Python
.py
199
36.924623
90
0.636232
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,771
output.py
certtools_intelmq/intelmq/bots/outputs/cif3/output.py
"""Connect to a CIFv3 instance and add indicator(s). SPDX-License-Identifier: AGPL-3.0-or-later SPDX-FileCopyrightText: 2022 REN-ISAC A shortened copy of this documentation is kept at `docs/user/bots.rst`, please keep it current, when changing something. Parameters: - add_feed_provider_as_tag: bool, use false when...
8,277
Python
.py
198
32.717172
95
0.624705
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,772
output.py
certtools_intelmq/intelmq/bots/outputs/elasticsearch/output.py
# SPDX-FileCopyrightText: 2017 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ The ES-connection can't be closed explicitly. TODO * Support client_cert and client_key parameters, see https://github.com/certtools/intelmq/pull/1406 """ from collections.abc import Mapping fro...
7,004
Python
.py
138
40.065217
117
0.623702
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,773
parser_feodotracker.py
certtools_intelmq/intelmq/bots/parsers/abusech/parser_feodotracker.py
# SPDX-FileCopyrightText: 2022 Filip Pokorn√Ω # # SPDX-License-Identifier: AGPL-3.0-or-later import dateutil.parser from intelmq.lib.bot import ParserBot from intelmq.lib.harmonization import DateTime class AbusechFeodoTrackerParserBot(ParserBot): """ Parse the Abuse.ch Feodo Tracker feed (json) List o...
2,341
Python
.py
56
31.875
110
0.594535
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,774
parser_csv.py
certtools_intelmq/intelmq/bots/parsers/cert_eu/parser_csv.py
# SPDX-FileCopyrightText: 2018 Pierre Dumont # # SPDX-License-Identifier: AGPL-3.0-or-later """ CERT-EU parser "city", # empty "source location", # just a combination of long and lat "country", # empty "as name", # empty reported cc, reported as name: ignored intentionally """ from collections import defaultdict...
4,123
Python
.py
89
37.797753
95
0.620647
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,775
parser.py
certtools_intelmq/intelmq/bots/parsers/json/parser.py
# SPDX-FileCopyrightText: 2016 by Bundesamt für Sicherheit in der Informationstechnik # # SPDX-License-Identifier: AGPL-3.0-or-later """ JSON Parser Bot Retrieves a base64 encoded JSON-String from raw and converts it into an event. Copyright (C) 2016 by Bundesamt für Sicherheit in der Informationstechnik Software engi...
1,279
Python
.py
33
29.787879
85
0.644301
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,776
parser.py
certtools_intelmq/intelmq/bots/parsers/blocklistde/parser.py
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import posixpath from urllib.parse import urlparse from intelmq.lib.bot import ParserBot MAPPING = { "all.txt": { "classification.type": "blacklist", }, "ssh.txt": {...
3,153
Python
.py
83
28.072289
79
0.568301
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,777
parser_atd.py
certtools_intelmq/intelmq/bots/parsers/mcafee/parser_atd.py
# SPDX-FileCopyrightText: 2018 tux78 # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ ATDParserBot parses McAfee Advanced Threat Defense reports. This bot generates one message per identified IOC: - hash values of original sample and any identified dropped file - IP addresses the sample tries...
4,762
Python
.py
100
34.66
98
0.572014
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,778
parser.py
certtools_intelmq/intelmq/bots/parsers/vxvault/parser.py
# SPDX-FileCopyrightText: 2014 Tom√°s Lima # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- from urllib.parse import urlparse from intelmq.lib import utils from intelmq.lib.bot import ParserBot class VXVaultParserBot(ParserBot): """Parse the VXVault feed""" def parse(self, report): ...
1,331
Python
.py
36
29.416667
78
0.629398
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,779
parser.py
certtools_intelmq/intelmq/bots/parsers/bambenek/parser.py
# SPDX-FileCopyrightText: 2016 jgedeon120 # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ IntelMQ parser for Bambenek DGA, Domain, and IP feeds """ from intelmq.lib.bot import ParserBot class BambenekParserBot(ParserBot): """ Single parser for Bambenek feeds """ IPMASTERLIST = { ...
2,760
Python
.py
59
36.677966
92
0.602459
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,780
parser.py
certtools_intelmq/intelmq/bots/parsers/fireeye/parser.py
# SPDX-FileCopyrightText: 2021 CysihZ # # SPDX-License-Identifier: AGPL-3.0-or-later """ Fireeye Parser Bot Retrieves a base64 encoded JSON-String from raw and converts it into an event. """ import ipaddress try: import xmltodict except ImportError: xmltodict = None from intelmq.lib import utils from intelmq...
5,594
Python
.py
97
32.907216
120
0.44898
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,781
parser.py
certtools_intelmq/intelmq/bots/parsers/ci_army/parser.py
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- from intelmq.lib import utils from intelmq.lib.bot import ParserBot class CIArmyParserBot(ParserBot): """Parse the CI Army feed""" def process(self): report = self.re...
790
Python
.py
21
29.904762
60
0.637566
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,782
parser.py
certtools_intelmq/intelmq/bots/parsers/cleanmx/parser.py
# SPDX-FileCopyrightText: 2016 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later from collections import OrderedDict from datetime import datetime from xml.etree import ElementTree from intelmq.lib import utils from intelmq.lib.bot import ParserBot from intelmq.lib.exceptions import ConfigurationError ...
5,501
Python
.py
145
26.765517
111
0.505166
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,783
parser.py
certtools_intelmq/intelmq/bots/parsers/zoneh/parser.py
# SPDX-FileCopyrightText: 2017 Chris Horsley # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ ZoneH CSV defacement report parser """ from urllib.parse import urlparse from intelmq.lib.bot import ParserBot class ZoneHParserBot(ParserBot): """Parse the ZoneH CSV feed""" recover_line ...
1,674
Python
.py
37
38.459459
81
0.66237
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,784
parser.py
certtools_intelmq/intelmq/bots/parsers/key_value/parser.py
"""Parse a string of key=value pairs. SPDX-FileCopyrightText: 2020 Linköping University <https://liu.se/> SPDX-License-Identifier: AGPL-3.0-or-later Tokens which do not contain the kv_separator string are ignored. Values cannot contain newlines. Parameters: pair_separator: string, default ' ', string separati...
2,744
Python
.py
58
36.137931
87
0.60982
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,785
parser_csv.py
certtools_intelmq/intelmq/bots/parsers/generic/parser_csv.py
# SPDX-FileCopyrightText: 2016 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ Generic CSV parser Parameters: columns: string delimiter: string default_url_protocol: string skip_header: boolean type: string type_translation: string data_type: string """ import csv import json import...
6,230
Python
.py
135
34.866667
135
0.592318
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,786
parser.py
certtools_intelmq/intelmq/bots/parsers/malwareurl/parser.py
# SPDX-FileCopyrightText: 2018 dargen3 # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- from html.parser import HTMLParser from intelmq.lib import utils from intelmq.lib.bot import ParserBot import intelmq.lib.harmonization as harmonization class MyHTMLParser(HTMLParser): lsData = "" ...
2,026
Python
.py
54
26.796296
75
0.55998
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,787
parser.py
certtools_intelmq/intelmq/bots/parsers/anubisnetworks/parser.py
# SPDX-FileCopyrightText: 2017 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ AnubisNetworks Cyberfeed Stream parser TODO: Refactor with JSON mapping There is an old format and a new one - distinguishable by the test cases Migration to ParserBot does not make sense, as t...
13,509
Python
.py
235
37.26383
131
0.486876
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,788
parser.py
certtools_intelmq/intelmq/bots/parsers/github_feed/parser.py
# SPDX-FileCopyrightText: 2019 Tomas Bellus # # SPDX-License-Identifier: AGPL-3.0-or-later """ Github IOC feeds' parser """ import ipaddress import json try: import validators from validators.hashes import md5 as valid_md5, sha1 as valid_sha1, sha256 as valid_sha256 from validators.domain import domain as...
4,569
Python
.py
107
32.224299
113
0.612466
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,789
parser.py
certtools_intelmq/intelmq/bots/parsers/eset/parser.py
# SPDX-FileCopyrightText: 2020 Mikk Margus Möll # # SPDX-License-Identifier: AGPL-3.0-or-later import json from intelmq.lib.bot import ParserBot message_taxonomy_map = { 'Host actively distributes high-severity threat in the form of executable code.': 'malware-distribution', 'Host is known to be distributin...
2,508
Python
.py
56
37.446429
117
0.656802
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,790
parser.py
certtools_intelmq/intelmq/bots/parsers/danger_rulez/parser.py
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import re from intelmq.lib import utils from intelmq.lib.bot import ParserBot REGEX_IP = "^[^ \t]+" REGEX_TIMESTAMP = "# ([^ \t]+ [^ \t]+)" class BruteForceBlockerParserBot(ParserBot)...
1,378
Python
.py
37
27.702703
60
0.581132
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,791
parser_crimeserver.py
certtools_intelmq/intelmq/bots/parsers/blueliv/parser_crimeserver.py
# SPDX-FileCopyrightText: 2015 robcza # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ """ import json from intelmq.lib import utils from intelmq.lib.bot import ParserBot TYPES = { 'PHISHING': 'phishing', 'MALWARE': 'malware-distribution', 'EXPLOIT_KIT': 'exploit', 'BACKDOO...
2,265
Python
.py
56
30.035714
93
0.567851
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,792
parser.py
certtools_intelmq/intelmq/bots/parsers/shodan/parser.py
# SPDX-FileCopyrightText: 2018 by nic.at GmbH # # SPDX-License-Identifier: AGPL-3.0-or-later """ Shodan Stream Parser Copyright (C) 2018 by nic.at GmbH """ import json from typing import Dict, Tuple, List, Callable, Any, Optional from intelmq.lib.bot import ParserBot from intelmq.lib.utils import base64_decode impor...
21,605
Python
.py
567
29.31746
125
0.568516
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,793
parser.py
certtools_intelmq/intelmq/bots/parsers/phishtank/parser.py
# SPDX-FileCopyrightText: 2022 Filip Pokorný # # SPDX-License-Identifier: AGPL-3.0-or-later import dateutil.parser from intelmq.lib.bot import ParserBot class PhishTankParserBot(ParserBot): """ Parse the PhishTank feed (json) List of source fields: [ 'phish_id', 'url', 'phi...
2,281
Python
.py
48
39.041667
118
0.649234
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,794
parser.py
certtools_intelmq/intelmq/bots/parsers/surbl/parser.py
# SPDX-FileCopyrightText: 2018 dargen3 # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- from intelmq.lib import utils from intelmq.lib.bot import ParserBot class SurblParserBot(ParserBot): """Parse the Surbl feed""" def process(self): report = self.receive_message() raw_...
1,136
Python
.py
29
28.482759
67
0.554446
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,795
parser_dga.py
certtools_intelmq/intelmq/bots/parsers/fraunhofer/parser_dga.py
# SPDX-FileCopyrightText: 2015 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ The source provides a JSON file with a dictionary. The keys of this dict are identifiers and the values are lists of domains. The first part of the identifiers, before the first underscore, can b...
1,387
Python
.py
33
35.212121
78
0.674367
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,796
parser_certstream.py
certtools_intelmq/intelmq/bots/parsers/calidog/parser_certstream.py
# SPDX-FileCopyrightText: 2018 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later """ A bot to parse certstream data. @author: Christoph Giese (Telekom Security, CDR) """ import json from intelmq.lib.bot import ParserBot from intelmq.lib.harmonization import DateTime from intelmq.lib.utils import base64_...
1,455
Python
.py
35
34.828571
126
0.663824
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,797
parser_dansguardian.py
certtools_intelmq/intelmq/bots/parsers/malwarepatrol/parser_dansguardian.py
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import re import time from intelmq.lib.bot import ParserBot class DansParserBot(ParserBot): """Parse the MalwarePatrol Dans Guardian feed""" sourcetime = None def parse(se...
1,258
Python
.py
31
30.645161
94
0.570608
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,798
parser_callback.py
certtools_intelmq/intelmq/bots/parsers/hibp/parser_callback.py
# SPDX-FileCopyrightText: 2019 Sebastian Wagner # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ There are two different Formats: Breaches and Pastes For Breaches, there are again two different Variants: * Callback Test: has field 'Email', Breach is a list of dictionaries * Real: has NO field...
1,952
Python
.py
48
32.520833
97
0.637084
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)
39,799
parser.py
certtools_intelmq/intelmq/bots/parsers/dataplane/parser.py
# SPDX-FileCopyrightText: 2016 jgedeon120 # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- """ IntelMQ Dataplane Parser """ from intelmq.lib.bot import ParserBot CATEGORY = { 'dnsrd': { 'classification.type': 'scanner', 'protocol.application': 'dns', 'event_descripti...
8,451
Python
.py
152
41.046053
126
0.568893
certtools/intelmq
963
295
206
AGPL-3.0
9/5/2024, 5:15:38 PM (Europe/Amsterdam)