[Bug] Duplicate File Logs for Emulations
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
Comienza en BaseEmulation e inspecciona cómo se adjuntan los handlers de consola y de archivo a self.elogger. Reproduce el problema mediante SWAT Shell con una emulación OOTB y, después, revisa su archivo en logs/. La tarea estará terminada cuando cada llamada a self.elogger.* aparezca solo una vez en el log de la emulación correspondiente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🐛 Bug Report
Describe the bug
When running an emulation, there is a separate console and file handler set to self.elogger within BaseEmulation. This allows emulations to use a secondary logger to separate logging. The log files written to are within the logs/ directory where the log file name represents the emulation.
There is a bug currently that is duplicating logs within each respective emulation log file.
Steps to reproduce
Steps to reproduce the behavior:
- Start SWAT Shell
- Authenticate with OAuth credentials
- Run any OOTB emulation
- Review log file in
logs/
Expected behavior
The logging should only be happening once per self.elogger.* call.
Screenshots
2023-08-12 15:15:32,486 - initial_access.gmail_phishing_form_link - INFO - Created Google Form: 17b0DwhmBY0Ihv_q85zuZj2fJdPYOFQuiuhuZvbGSgAg (gmail_phishing_form_link.py:47)
2023-08-12 15:15:32,486 - initial_access.gmail_phishing_form_link - INFO - Created Google Form: 17b0DwhmBY0Ihv_q85zuZj2fJdPYOFQuiuhuZvbGSgAg (gmail_phishing_form_link.py:47)
2023-08-12 15:15:32,488 - initial_access.gmail_phishing_form_link - INFO - Created email with Google Form link (gmail_phishing_form_link.py:59)
2023-08-12 15:15:32,488 - initial_access.gmail_phishing_form_link - INFO - Created email with Google Form link (gmail_phishing_form_link.py:59)
2023-08-12 15:15:33,333 - initial_access.gmail_phishing_form_link - INFO - Sent email to [email protected] from [email protected] (gmail_phishing_form_link.py:65)
2023-08-12 15:15:33,333 - initial_access.gmail_phishing_form_link - INFO - Sent email to [email protected] from [email protected] (gmail_phishing_form_link.py:65)
SWAT version
0.0.1
Checklist
Please ensure you've completed the following tasks:
- I've described the bug in as much detail as possible
- I've provided steps to reproduce the bug
- I've added any relevant screenshots or other information
- Lenguaje dominante
- Python
- Estrellas
- 171
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de elastic/SWAT
-
Dependency DashboardAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
-
[Maintenance] Documentation Screenshots not RenderingQuizá libre de nuevo @terrancedejesus la tomó hace 1150 días y no hay ningún pull request abierto. Abiertocommunity maintenance
-
[Feature Request] Create `add-emulation` commandQuizá libre de nuevo @brokensound77 la tomó hace 1186 días y no hay ningún pull request abierto. Abiertoenhancement
-
[Feature Request] Add Python module for detecting T1098.003 - Additional Cloud RolesQuizá libre de nuevo @terrancedejesus la tomó hace 1255 días y no hay ningún pull request abierto. AbiertoAPI: Admin enhancement Subtechnique: 003 Tactic: Persistence Technique: T1098
-
API: Admin API: Gmail enhancement Subtechnique: 003 Tactic: Discovery Technique: T1087
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Todos los issues de elastic/SWAT
Issues similares
-
tunneld on Windows: Wi-Fi devices are not discovered because uvicorn runs on a ProactorEventLoopAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
doronz88/pymobiledevice3#2051 ·
Los mantenedores suelen responder en 1 día
-
Remove DatacircleAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
collabnix/awesome-mcp-lists#230 ·
Los mantenedores suelen responder en 9 días
-
Groc schedules with out of range values pass config validation and fail later when the scheduler is builtPosiblemente ocupada @auraseb la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
autowarefoundation/autoware_carla_scenario#342 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ianktoo/project-monitor#14 ·