rosetta-ce 1.7.2__tar.gz → 1.7.4__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.7.2/rosetta_ce.egg-info → rosetta_ce-1.7.4}/PKG-INFO +1 -1
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/constants/systems.py +30 -30
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/rfaker.py +3 -2
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4/rosetta_ce.egg-info}/PKG-INFO +1 -1
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/setup.py +1 -1
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/tests/test_rfaker.py +10 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/LICENSE +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/README.md +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/__init__.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/constants/__init__.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/constants/attributes.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/constants/db.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/constants/sensors.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/constants/sources.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/rconverter.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta/rsender.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta_ce.egg-info/SOURCES.txt +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta_ce.egg-info/dependency_links.txt +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta_ce.egg-info/requires.txt +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/rosetta_ce.egg-info/top_level.txt +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/setup.cfg +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/tests/test_rconverter.py +0 -0
- {rosetta_ce-1.7.2 → rosetta_ce-1.7.4}/tests/test_rsender.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rosetta-ce
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.4
|
|
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,34 +1,34 @@
|
|
|
1
1
|
OS_LIST = [
|
|
2
|
-
"
|
|
3
|
-
"HP-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
2
|
+
"AIX_7.2",
|
|
3
|
+
"HP-UX_11i_v3",
|
|
4
|
+
"Solaris_11",
|
|
5
|
+
"FreeBSD_13.2",
|
|
6
|
+
"OpenBSD_7.4",
|
|
7
|
+
"NetBSD_10.0",
|
|
8
|
+
"Ubuntu_22.04_LTS",
|
|
9
|
+
"Red_Hat_Enterprise_Linux_9",
|
|
10
|
+
"CentOS_8",
|
|
11
|
+
"Debian_12",
|
|
12
|
+
"Fedora_38",
|
|
13
|
+
"Arch_Linux_2024.09",
|
|
14
|
+
"Kali_Linux_2024.1",
|
|
15
|
+
"Alpine_Linux_3.18",
|
|
16
|
+
"SUSE_Linux_Enterprise_Server_15_SP4",
|
|
17
|
+
"Windows_10_Pro",
|
|
18
|
+
"Windows_11_Home",
|
|
19
|
+
"Windows_Server_2019",
|
|
20
|
+
"Windows_Server_2022",
|
|
21
|
+
"Windows_8.1",
|
|
22
|
+
"Windows_7_SP1",
|
|
23
|
+
"macOS_Ventura_13",
|
|
24
|
+
"macOS_Monterey_12",
|
|
25
|
+
"macOS_Big_Sur_11",
|
|
26
|
+
"macOS_Catalina_10.15",
|
|
27
|
+
"macOS_Mojave_10.14",
|
|
28
|
+
"iOS_17",
|
|
29
|
+
"iPadOS_17",
|
|
30
|
+
"Android_14",
|
|
31
|
+
"HarmonyOS_3.1"
|
|
32
32
|
]
|
|
33
33
|
UNIX_CMD = [
|
|
34
34
|
"cat /etc/shadow",
|
|
@@ -837,6 +837,7 @@ class Events:
|
|
|
837
837
|
# Generate analyst list if not provided in observables
|
|
838
838
|
incident_types = observables.incident_types if observables and observables.incident_types else INCIDENTS_TYPES
|
|
839
839
|
analysts = observables.analysts if observables and observables.analysts else [faker.unique.first_name() for _ in range(10)]
|
|
840
|
+
severities = observables.severity if observables and observables.severity else [faker.random_int(min=1, max=5) for _ in range(10)]
|
|
840
841
|
|
|
841
842
|
incident_type_cycle = itertools.cycle(incident_types)
|
|
842
843
|
for i in range(count):
|
|
@@ -844,8 +845,8 @@ class Events:
|
|
|
844
845
|
duration = random.randint(1, 5)
|
|
845
846
|
incident_type = next(incident_type_cycle)
|
|
846
847
|
analyst = random.choice(analysts)
|
|
847
|
-
severity =
|
|
848
|
-
description = Events._set_field('terms'
|
|
848
|
+
severity = random.choice(severities)
|
|
849
|
+
description = Events._set_field('terms')
|
|
849
850
|
|
|
850
851
|
# Add base fields
|
|
851
852
|
incident = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rosetta-ce
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.4
|
|
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.7.
|
|
8
|
+
version="1.7.4",
|
|
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 "
|
|
@@ -150,5 +150,15 @@ class TestRFaker(unittest.TestCase):
|
|
|
150
150
|
self.assertIn(observables_list.src_host[0], message)
|
|
151
151
|
|
|
152
152
|
|
|
153
|
+
def test_incident(self):
|
|
154
|
+
start_time = time.time()
|
|
155
|
+
fake_messages = Events.incidents(count=10)
|
|
156
|
+
end_time = time.time()
|
|
157
|
+
latency = end_time - start_time
|
|
158
|
+
print(f"Incident generation latency for 10 logs: {latency:.4f} seconds")
|
|
159
|
+
|
|
160
|
+
self.assertTrue(isinstance(fake_messages, list))
|
|
161
|
+
self.assertEqual(len(fake_messages), 10)
|
|
162
|
+
|
|
153
163
|
if __name__ == '__main__':
|
|
154
164
|
unittest.main()
|
|
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
|
|
File without changes
|