Exploit databaseDownload repository ZIP
GH-c8ba62283f9a57141129d5457b3c1472
tadash10/detailed-analysis-and-mitigation-strategies-for-cve-2024-38124-and-cve-2024-43468
Sources for CVE-2024-38124
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files7
tadash10/detailed-analysis-and-mitigation-strategies-for-cve-2024-38124-and-cve-2024-43468Revision ceb4a123b131
- Alert monitor v1.py
- Detector script CVE-2024-38124 and CVE-2024-43468.py
- LICENSE
- README.md
- config.ini
- manua.md
- spanish report.md
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Detector script CVE-2024-38124 and CVE-2024-43468.py
Python · 1,706 bytesimport win32evtlog
import win32evtlogutil
import win32security
import time
import logging
# Configure logging
logging.basicConfig(filename='cve_alerts.log', level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
# Function to check for suspicious log entries
def check_event_logs():
server = 'localhost' # Name of the target computer
log_type = 'Security' # We are monitoring Security logs
try:
# Open the event log
h_event_log = win32evtlog.OpenEventLog(server, log_type)
# Get the number of records in the event log
total_records = win32evtlog.GetNumberOfEventLogRecords(h_event_log)
# Loop through the log entries
while True:
# Read the latest events
events = win32evtlog.ReadEventLog(h_event_log, win32evtlog.EVENTLOG_BACKWARDS_READ | win32evtlog.EVENTLOG_SEQUENTIAL_READ, 0)
for event in events:
# Check for suspicious event IDs related to Netlogon (CVE-2024-38124) and Configuration Manager (CVE-2024-43468)
if event.EventID in [4624, 4625]: # Event IDs for successful/failed logon attempts
username = win32security.LookupAccountSid(server, event.Sid).name
logging.info(f'Suspicious logon detected: {username} - Event ID: {event.EventID}')
if event.EventID == 9000: # Hypothetical Event ID for SCCM actions
logging.info(f'SCCM action detected: {event.StringInserts}')
time.sleep(60) # Wait before checking again
except Exception as e:
logging.error(f'Error while checking event logs: {e}')
if __name__ == '__main__':
check_event_logs()