rosetta-ce 1.3.0__py3-none-any.whl → 1.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rosetta-ce might be problematic. Click here for more details.
- rosetta/rsender.py +14 -3
- {rosetta_ce-1.3.0.dist-info → rosetta_ce-1.3.1.dist-info}/METADATA +1 -1
- {rosetta_ce-1.3.0.dist-info → rosetta_ce-1.3.1.dist-info}/RECORD +6 -6
- {rosetta_ce-1.3.0.dist-info → rosetta_ce-1.3.1.dist-info}/LICENSE +0 -0
- {rosetta_ce-1.3.0.dist-info → rosetta_ce-1.3.1.dist-info}/WHEEL +0 -0
- {rosetta_ce-1.3.0.dist-info → rosetta_ce-1.3.1.dist-info}/top_level.txt +0 -0
rosetta/rsender.py
CHANGED
|
@@ -57,7 +57,8 @@ class Sender:
|
|
|
57
57
|
|
|
58
58
|
def __init__(self, data_type: str, destination: str,
|
|
59
59
|
worker_name: Optional[str] = 'worker_'+str(datetime.now()), count: Optional[int] = 1,
|
|
60
|
-
interval: Optional[int] = 1,
|
|
60
|
+
interval: Optional[int] = 1, vendor: Optional[str] = None, product: Optional[str] = None,
|
|
61
|
+
version: Optional[str] = None, observables: Optional[Observables] = None, fields: Optional[str] = None,
|
|
61
62
|
verify_ssl: Optional[bool] = None, datetime_obj: Optional[datetime] = None):
|
|
62
63
|
"""
|
|
63
64
|
Constructor for DataSenderWorker class.
|
|
@@ -73,6 +74,9 @@ class Sender:
|
|
|
73
74
|
:param worker_name: str, name of the worker.
|
|
74
75
|
:param count: int, number of times to send the data.
|
|
75
76
|
:param interval: int, time interval between two consecutive data sends.
|
|
77
|
+
:param vendor: Optional. The vendor.
|
|
78
|
+
:param product: Optional. The product.
|
|
79
|
+
:param version: Optional. The version.
|
|
76
80
|
:param observables: Observables, list of observables.
|
|
77
81
|
:param fields: str, comma-separated list of fields to include in incident data.
|
|
78
82
|
:param verify_ssl: bool, handling ssl verification errors.
|
|
@@ -84,6 +88,9 @@ class Sender:
|
|
|
84
88
|
self.data_type = data_type
|
|
85
89
|
self.count = count
|
|
86
90
|
self.interval = interval
|
|
91
|
+
self.vendor = vendor
|
|
92
|
+
self.product = product
|
|
93
|
+
self.version = version
|
|
87
94
|
self.destination = destination
|
|
88
95
|
self.created_at = datetime.now()
|
|
89
96
|
self.status = "Stopped"
|
|
@@ -133,9 +140,13 @@ class Sender:
|
|
|
133
140
|
if self.data_type == "SYSLOG":
|
|
134
141
|
fake_message = Events.syslog(count=1, timestamp=self.datetime_obj, observables=self.observables)
|
|
135
142
|
if self.data_type == "CEF":
|
|
136
|
-
fake_message = Events.cef(count=1, timestamp=self.datetime_obj,
|
|
143
|
+
fake_message = Events.cef(count=1, timestamp=self.datetime_obj, vendor=self.vendor,
|
|
144
|
+
product=self.product, version=self.version,
|
|
145
|
+
observables=self.observables)
|
|
137
146
|
if self.data_type == "LEEF":
|
|
138
|
-
fake_message = Events.leef(count=1, timestamp=self.datetime_obj,
|
|
147
|
+
fake_message = Events.leef(count=1, timestamp=self.datetime_obj, vendor=self.vendor,
|
|
148
|
+
product=self.product, version=self.version,
|
|
149
|
+
observables=self.observables)
|
|
139
150
|
ip_address = self.destination.split(':')[1]
|
|
140
151
|
port = self.destination.split(':')[2]
|
|
141
152
|
if 'tcp' in self.destination:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rosetta-ce
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Rosetta is a Python package that can be used to fake security logs and alerts for testing different detection and response use cases.
|
|
5
5
|
Home-page: https://github.com/ayman-m/rosetta
|
|
6
6
|
Author: Ayman Mahmoud
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
rosetta/__init__.py,sha256=9rqZF7bpDMRN5H-rjNRUfzQAOIqyc21hTTZfYufTy04,92
|
|
2
2
|
rosetta/rconverter.py,sha256=oPdWMtO6_aeQC8PqCl4nHKEpVb1kaBACSaNXsz-o00Q,3008
|
|
3
3
|
rosetta/rfaker.py,sha256=nYo1YF0sOWkWxFa7unBpjLpqO-nBvcsp8w6HYOPW-6k,33530
|
|
4
|
-
rosetta/rsender.py,sha256=
|
|
4
|
+
rosetta/rsender.py,sha256=t7NrKQctBIMbWAucFpZpKYDcGdvmbBS8cu0kTMTy9LI,8454
|
|
5
5
|
rosetta/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
rosetta/constants/sensors.py,sha256=ZxPWFrNqDFKRVn9ai-5vtvIiU4-3FAXQIRj7gFoBRPk,1936
|
|
7
7
|
rosetta/constants/sources.py,sha256=b3ynlKGw1gw7VBA4yCYkJ7aq4vVPfypqA8W_kuAZaBA,1658
|
|
8
8
|
rosetta/constants/systems.py,sha256=WHOD21CaBgVm3IiF1m-RY2pFRNRaGMZ18pIf0q6ekOI,6697
|
|
9
|
-
rosetta_ce-1.3.
|
|
10
|
-
rosetta_ce-1.3.
|
|
11
|
-
rosetta_ce-1.3.
|
|
12
|
-
rosetta_ce-1.3.
|
|
13
|
-
rosetta_ce-1.3.
|
|
9
|
+
rosetta_ce-1.3.1.dist-info/LICENSE,sha256=jF5fCbmI1A-yyvPAEeQ5VHM094tRLlWsMyun-UlX-pQ,1070
|
|
10
|
+
rosetta_ce-1.3.1.dist-info/METADATA,sha256=XpfDT9orIRLZhZiVkIGlakVHhx2MA3PK-XmLY6XWt88,11321
|
|
11
|
+
rosetta_ce-1.3.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
12
|
+
rosetta_ce-1.3.1.dist-info/top_level.txt,sha256=HLxDc6BJxHZDzVIlOwpCGH0DqIf65OhZcHniRDaUUZc,8
|
|
13
|
+
rosetta_ce-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|