rosetta-ce 1.2.4__tar.gz → 1.2.6__tar.gz
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-ce-1.2.4/rosetta_ce.egg-info → rosetta-ce-1.2.6}/PKG-INFO +1 -1
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/rfaker.py +2 -2
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/rsender.py +3 -3
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6/rosetta_ce.egg-info}/PKG-INFO +1 -1
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/setup.py +1 -1
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/LICENSE +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/README.md +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/__init__.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/constants/__init__.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/constants/sensors.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/constants/sources.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/constants/systems.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta/rconverter.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta_ce.egg-info/SOURCES.txt +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta_ce.egg-info/dependency_links.txt +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta_ce.egg-info/requires.txt +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/rosetta_ce.egg-info/top_level.txt +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/setup.cfg +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/tests/test_rconverter.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/tests/test_rfaker.py +0 -0
- {rosetta-ce-1.2.4 → rosetta-ce-1.2.6}/tests/test_rsender.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rosetta-ce
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.6
|
|
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
|
|
@@ -296,7 +296,7 @@ class Events:
|
|
|
296
296
|
else "sudo"
|
|
297
297
|
command = random.choice(observables.cmd) if observables and observables.cmd \
|
|
298
298
|
else random.choice(UNIX_CMD)
|
|
299
|
-
syslog_messages.append(f"{timestamp.strftime('%
|
|
299
|
+
syslog_messages.append(f"{timestamp.strftime('%Y-%m-%d %H:%M:%S')} {host} {process}[{pid}]: {user}"
|
|
300
300
|
f" : {action} ; {command}")
|
|
301
301
|
return syslog_messages
|
|
302
302
|
|
|
@@ -511,7 +511,7 @@ class Events:
|
|
|
511
511
|
timestamp += timedelta(seconds=faker.random_int(min=0, max=3599))
|
|
512
512
|
for i in range(count):
|
|
513
513
|
timestamp += timedelta(seconds=1)
|
|
514
|
-
system_time = timestamp.strftime('%
|
|
514
|
+
system_time = timestamp.strftime('%Y-%m-%d %H:%M:%S')
|
|
515
515
|
cve_id = random.choice(observables.cve) if observables and observables.cve \
|
|
516
516
|
else Observables.generator(observable_type=ObservableType.CVE, count=1)
|
|
517
517
|
host = random.choice(observables.src_host) if observables and observables.src_host \
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import datetime
|
|
1
|
+
from datetime import datetime
|
|
2
2
|
import time
|
|
3
3
|
import threading
|
|
4
4
|
import socket
|
|
@@ -66,7 +66,7 @@ class Sender:
|
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
68
|
def __init__(self, data_type: WorkerTypeEnum, destination: str,
|
|
69
|
-
worker_name: Optional[str] = 'worker_'+str(datetime.
|
|
69
|
+
worker_name: Optional[str] = 'worker_'+str(datetime.now()), count: Optional[int] = 1,
|
|
70
70
|
interval: Optional[int] = 1, observables: Optional[Observables] = None, fields: Optional[str] = None,
|
|
71
71
|
verify_ssl: Optional[bool] = None, datetime_obj: Optional[datetime] = None):
|
|
72
72
|
"""
|
|
@@ -95,7 +95,7 @@ class Sender:
|
|
|
95
95
|
self.count = count
|
|
96
96
|
self.interval = interval
|
|
97
97
|
self.destination = destination
|
|
98
|
-
self.created_at = datetime.
|
|
98
|
+
self.created_at = datetime.now()
|
|
99
99
|
self.status = "Stopped"
|
|
100
100
|
self.observables = observables
|
|
101
101
|
self.fields = fields
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rosetta-ce
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.6
|
|
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
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="rosetta-ce",
|
|
8
|
-
version="1.2.
|
|
8
|
+
version="1.2.6",
|
|
9
9
|
author="Ayman Mahmoud",
|
|
10
10
|
author_email="content@ayman.online",
|
|
11
11
|
description="Rosetta is a Python package that can be used to fake security logs and alerts for testing different "
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|