diff --git a/cyntelligence/FileAnalyze.py b/cyntelligence/FileAnalyze.py index 29cdffe..bb79c15 100644 --- a/cyntelligence/FileAnalyze.py +++ b/cyntelligence/FileAnalyze.py @@ -1,5 +1,9 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# FileAnalyze module for sending file hashes to analyze for possible +# existing threats +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyntelligence/IPEnrich.py b/cyntelligence/IPEnrich.py index f42f882..85d3868 100644 --- a/cyntelligence/IPEnrich.py +++ b/cyntelligence/IPEnrich.py @@ -1,5 +1,8 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# IPEnrich module for enriching IP addresses information +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyntelligence/__init__.py b/cyntelligence/__init__.py index e904cda..c41938d 100644 --- a/cyntelligence/__init__.py +++ b/cyntelligence/__init__.py @@ -1,5 +1,8 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# Initialization file for cyntelligence. +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,4 +20,4 @@ from .IPEnrich import IPEnrich from .FileAnalyze import FileAnalyze -__all__ = ['IPEnrich', 'FileAnalyze'] \ No newline at end of file +__all__ = ['IPEnrich', 'FileAnalyze'] diff --git a/cyntelligence/common/cache.py b/cyntelligence/common/cache.py index 4f6309d..7ead691 100644 --- a/cyntelligence/common/cache.py +++ b/cyntelligence/common/cache.py @@ -1,5 +1,8 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# Cache utilities for implementing time-invalidation cache +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -37,4 +40,4 @@ def _wrapped(*args, **kwargs): return _wrapped - return _decorator \ No newline at end of file + return _decorator diff --git a/cyntelligence/datasource/BaseSource.py b/cyntelligence/datasource/BaseSource.py index fb620f7..83cb3e2 100644 --- a/cyntelligence/datasource/BaseSource.py +++ b/cyntelligence/datasource/BaseSource.py @@ -1,5 +1,8 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# Base Data Source file for implementing data source +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyntelligence/datasource/QRadar.py b/cyntelligence/datasource/QRadar.py index 7cef46c..83580ac 100644 --- a/cyntelligence/datasource/QRadar.py +++ b/cyntelligence/datasource/QRadar.py @@ -1,5 +1,9 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# QRadar Data Source file for interacting with QRadar instance +# via its Ariel API +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +22,7 @@ from typing import Any import requests -from cyntelligence.datasource import BaseSource +from . import BaseSource import os class QRadar(BaseSource): @@ -59,5 +63,4 @@ def _get_info_cache(self, ip) -> list[dict]: return body_response # if any of the steps failed - return False - + return [{}] diff --git a/cyntelligence/datasource/__init__.py b/cyntelligence/datasource/__init__.py index 4c3110c..d4f4c7e 100644 --- a/cyntelligence/datasource/__init__.py +++ b/cyntelligence/datasource/__init__.py @@ -1,5 +1,8 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# Initialization file for datasource module +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,4 +19,4 @@ from .QRadar import QRadar -__all__ = ["QRadar"] \ No newline at end of file +__all__ = ["QRadar"] diff --git a/cyntelligence/feature_flags.py b/cyntelligence/feature_flags.py index 89a49f5..16b14ec 100644 --- a/cyntelligence/feature_flags.py +++ b/cyntelligence/feature_flags.py @@ -1,5 +1,8 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# Feature Flags file for enabling or disabling features +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,4 +21,4 @@ VIRUSTOTAL_SOURCE = True ABUSEIPDB_SOURCE = True -QRADAR_SOURCE = True \ No newline at end of file +QRADAR_SOURCE = True diff --git a/cyntelligence/intelsource/AbuseIPDB.py b/cyntelligence/intelsource/AbuseIPDB.py index c59d1ab..733c51a 100644 --- a/cyntelligence/intelsource/AbuseIPDB.py +++ b/cyntelligence/intelsource/AbuseIPDB.py @@ -1,5 +1,9 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# AbuseIPDB Intelligence Source File for interacting with +# AbuseIPDB via its API +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyntelligence/intelsource/BaseSource.py b/cyntelligence/intelsource/BaseSource.py index 47010e2..a05a61a 100644 --- a/cyntelligence/intelsource/BaseSource.py +++ b/cyntelligence/intelsource/BaseSource.py @@ -1,5 +1,8 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# Base intelligence source file for implementing intelsource file +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyntelligence/intelsource/VirusTotal.py b/cyntelligence/intelsource/VirusTotal.py index 9322ce6..fe22d57 100644 --- a/cyntelligence/intelsource/VirusTotal.py +++ b/cyntelligence/intelsource/VirusTotal.py @@ -1,5 +1,9 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# VirusTotal Intelligence Source file for interacting with +# VirusTotal platform via vt-py +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyntelligence/intelsource/__init__.py b/cyntelligence/intelsource/__init__.py index 3051d79..7c27519 100644 --- a/cyntelligence/intelsource/__init__.py +++ b/cyntelligence/intelsource/__init__.py @@ -1,4 +1,23 @@ +# ---------------------------------------------------------------------- +# Initialization file for intelsource module +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------- + from .VirusTotal import VirusTotal from .AbuseIPDB import AbuseIPDB -__all__ = ["VirusTotal", "AbuseIPDB"] \ No newline at end of file +__all__ = ["VirusTotal", "AbuseIPDB"] diff --git a/main.py b/main.py index 910636d..120b1d3 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,9 @@ # ---------------------------------------------------------------------- -# Copyright 2024 Chanakan Moongthin on behalf of Up Up Up All Night +# Main Automated Investigator File containing the web interface +# and most of the logic. +# +# Copyright 2024 Chanakan Moongthin +# on behalf of Up Up Up All Night # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.