rosetta-ce 1.2.4__py3-none-any.whl → 1.2.6__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/rfaker.py CHANGED
@@ -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('%b %d %H:%M:%S')} {host} {process}[{pid}]: {user}"
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('%b %d %H:%M:%S')
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 \
rosetta/rsender.py CHANGED
@@ -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.datetime.now()), count: Optional[int] = 1,
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.datetime.now()
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.4
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
@@ -1,13 +1,13 @@
1
1
  rosetta/__init__.py,sha256=9rqZF7bpDMRN5H-rjNRUfzQAOIqyc21hTTZfYufTy04,92
2
2
  rosetta/rconverter.py,sha256=oPdWMtO6_aeQC8PqCl4nHKEpVb1kaBACSaNXsz-o00Q,3008
3
- rosetta/rfaker.py,sha256=uh0O0KkYCFblcDmmy_yADmQTDVGzuk6fSfhkoM-Wohw,32103
4
- rosetta/rsender.py,sha256=sINacv696ox7v0Tf9vRN1TiJ5X0HHfM68G-V09K9oPE,8210
3
+ rosetta/rfaker.py,sha256=4kG5cPkJ4yKPf1-2ZZQhIzis5YO6uhsD94roo_jP-W8,32109
4
+ rosetta/rsender.py,sha256=lWTvXgJZ7ba6LhTx2-ewwiqD89b2cE2QQSTwWS4X5o8,8206
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.2.4.dist-info/LICENSE,sha256=jF5fCbmI1A-yyvPAEeQ5VHM094tRLlWsMyun-UlX-pQ,1070
10
- rosetta_ce-1.2.4.dist-info/METADATA,sha256=CuvWzWI5SFPVk-5yOI-Kh8grrqrHORiKx9Rva95MGXs,11350
11
- rosetta_ce-1.2.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
12
- rosetta_ce-1.2.4.dist-info/top_level.txt,sha256=HLxDc6BJxHZDzVIlOwpCGH0DqIf65OhZcHniRDaUUZc,8
13
- rosetta_ce-1.2.4.dist-info/RECORD,,
9
+ rosetta_ce-1.2.6.dist-info/LICENSE,sha256=jF5fCbmI1A-yyvPAEeQ5VHM094tRLlWsMyun-UlX-pQ,1070
10
+ rosetta_ce-1.2.6.dist-info/METADATA,sha256=2Ixyiagjy34MaXptfIlImhVvRebHTfnMKFrqK_qUTts,11350
11
+ rosetta_ce-1.2.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
12
+ rosetta_ce-1.2.6.dist-info/top_level.txt,sha256=HLxDc6BJxHZDzVIlOwpCGH0DqIf65OhZcHniRDaUUZc,8
13
+ rosetta_ce-1.2.6.dist-info/RECORD,,