Skip to content

Commit

Permalink
some codespelling (google#2860)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaegeral committed Aug 3, 2023
1 parent cfdc54e commit b9b2972
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions timesketch/lib/analyzers/authentication/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SSHEventData:
source_ip (str): IP address in the authentication event.
source_port (str): Source port in the authentication event.
username (str): Username in the authentication event.
session_id (str): Pseduo session ID calulated from log line.
session_id (str): Pseudo session ID calculated from log line.
"""

def __init__(self) -> None:
Expand Down Expand Up @@ -223,7 +223,7 @@ def run(self) -> str:
self.output = result
else:
self.output.result_summary = (
f"No verdict for {len(records)} SSH authenticaiton events."
f"No verdict for {len(records)} SSH authentication events."
)
self.output.result_priority = "NOTE"
self.output.result_status = "SUCCESS"
Expand Down
4 changes: 2 additions & 2 deletions timesketch/lib/analyzers/authentication/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def from_useraccount(self, useraccount: str) -> Tuple[str, str]:
domain (str): Authentication user domain.
Raises:
ValueError: If error encountered access splitted value.
ValueError: If error encountered access split value.
"""

if not useraccount:
Expand Down Expand Up @@ -864,7 +864,7 @@ def generate_analyzer_output(
Returns:
AnalyzerOutput: An AnalyzerOutput object containing brute for analyzer
output.
None: Returns None if authsummaries is emtpy.
None: Returns None if authsummaries is empty.
"""

if not authsummaries and not isinstance(authsummaries, list):
Expand Down
2 changes: 1 addition & 1 deletion timesketch/lib/analyzers/authentication/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def _create_analyzer_output(self) -> AnalyzerOutput:
return output

def _create_authsummary(self) -> AuthSummary:
"""Creates and reutrns authsummaries.
"""Creates and returns authsummaries.
Returns:
AuthSummary: Returns an object of AuthSummary.
Expand Down
2 changes: 1 addition & 1 deletion timesketch/lib/analyzers/browser_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def run(self):

story.add_text(
"## Browser Search Analyzer.\n\nThe browser search "
"analyzer takes URLs usually resevered for browser "
"analyzer takes URLs usually reserved for browser "
"search queries and extracts the search string."
"In this timeline the analyzer discovered {0:d} "
"browser searches.\n\nThis is a summary of "
Expand Down
6 changes: 3 additions & 3 deletions timesketch/lib/analyzers/contrib/misp_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_misp_attributes(self, value, attr):
attr: type of the value.
Returns:
List of matching MISP attibutes.
List of matching MISP attributes.
"""
results = requests.post(
f"{self.misp_url}/attributes/restSearch/",
Expand All @@ -85,14 +85,14 @@ def get_misp_attributes(self, value, attr):
return result_loc["response"]["Attribute"]

def mark_event(self, event, result, attr):
"""Anotate an event with data from MISP result.
"""Annotate an event with data from MISP result.
Add a comment to the event.
Args:
event: The OpenSearch event object that contains type of value we search
for and needs to be tagged or to add an attribute.
result: Dictionnary with results from MISP.
result: Dictionary with results from MISP.
attr: type of the current value.
"""

Expand Down
4 changes: 2 additions & 2 deletions timesketch/lib/analyzers/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ def event_stream(
yield Event(
event, self.datastore, sketch=self.sketch, analyzer=self
)
break # Query was succesful
break # Query was successful
except opensearchpy.TransportError as e:
sleep_seconds = backoff_in_seconds * 2**x + random.uniform(3, 7)
logger.info(
Expand Down Expand Up @@ -1214,7 +1214,7 @@ class AnalyzerOutput:
"""A class to record timesketch analyzer output.
Attributes:
platform (str): [Required] Analyzer platfrom.
platform (str): [Required] Analyzer platform.
analyzer_identifier (str): [Required] Unique analyzer identifier.
analyzer_name (str): [Required] Analyzer display name.
result_status (str): [Required] Analyzer result status.
Expand Down
2 changes: 1 addition & 1 deletion timesketch/lib/analyzers/yetiindicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_indicators(self, indicator_type):
self.intel[item["id"]] = item

def mark_event(self, indicator, event, neighbors):
"""Anotate an event with data from indicators and neighbors.
"""Annotate an event with data from indicators and neighbors.
Tags with skull emoji, adds a comment to the event.
"""
Expand Down

0 comments on commit b9b2972

Please sign in to comment.