Zero-Dependency Python Threat Detection & SOC L1/L2 Incident Triage Engine • Case Study: acme.skb Compromise
Detected 3 HTTP requests indicating upload and execution of a PHP web shell (e.g. backdoor.php) from 10.0.10.254 on web-server.
10.0.10.254 - - [18/Apr/2023:12:43:00 +0000] "GET /hackable/uploads/backdoor.php HTTP/1.1" 200 1358510.0.10.254 - - [18/Apr/2023:12:44:12 +0000] "POST /hackable/uploads/backdoor.php HTTP/1.1" 200 482010.0.10.254 - - [18/Apr/2023:12:51:40 +0000] "POST /hackable/uploads/backdoor.php HTTP/1.1" 200 2190Detected 5 failed SSH login attempts from 10.0.10.254 against web-server, followed by 2 successful login(s).
Apr 18 12:35:01 web-server sshd[2104]: Failed password for invalid user admin from 10.0.10.254 port 49112 ssh2Apr 18 12:35:04 web-server sshd[2106]: Failed password for root from 10.0.10.254 port 49118 ssh2Apr 18 12:35:07 web-server sshd[2109]: Failed password for root from 10.0.10.254 port 49124 ssh2Apr 18 12:52:09 web-server sshd[2341]: Accepted publickey for root from 10.0.10.254 port 50214 ssh2: RSA SHA256:kali@kaliApr 19 08:11:18 web-server sshd[4102]: Accepted publickey for root from 10.0.10.254 port 54110 ssh2: RSA SHA256:kali@kaliDetected 6 failed Windows logon attempts (Event ID 4625) from 10.0.30.55 (WorkstationName: unknown) on windows-host.
{"EventID": "4625", "TimeCreated": "2023-04-18 12:50:12", "TargetUserName": "ivanov", "IpAddress": "10.0.30.55", "ServiceName": "", "TicketEncryptionType": ""}{"EventID": "4625", "TimeCreated": "2023-04-18 12:50:12", "TargetUserName": "petrov", "IpAddress": "10.0.30.55", "ServiceName": "", "TicketEncryptionType": ""}{"EventID": "4625", "TimeCreated": "2023-04-18 12:50:12", "TargetUserName": "sidorov", "IpAddress": "10.0.30.55", "ServiceName": "", "TicketEncryptionType": ""}Detected 5 failed Windows logon attempts (Event ID 4625) from 10.0.10.5 (WorkstationName: kali) on ws01.acme.skb, followed by 1 successful logon(s) (Event ID 4624).
An account failed to log on. Account: user1, Source Network Address: 10.0.10.5, Workstation Name: kali (Brute-RDP.py attempt 1/28)An account failed to log on. Account: user1, Source Network Address: 10.0.10.5, Workstation Name: kali (Brute-RDP.py attempt 6/28)An account failed to log on. Account: user1, Source Network Address: 10.0.10.5, Workstation Name: kali (Brute-RDP.py attempt 12/28)An account was successfully logged on via RDP (LogonType 10). Account: ACME\user1, Source IP: 10.0.10.5 (SSH Tunnel from kali)Detected 1 Kerberos TGS ticket request(s) (Event ID 4769) using legacy RC4-HMAC encryption (0x17) targeting service accounts for offline cracking.
A Kerberos service ticket was requested (Event ID 4769). Service Name: mssql_svc, Ticket Encryption Type: 0x17 (RC4-HMAC), Client Address: 10.0.30.53Detected 1 NTLM network logon(s) (LogonType 3, NtLmSsp, KeyLength=0) to dc01.acme.skb as 'domainadmin' from 10.0.30.53, characteristic of Pass-the-Hash.
Pass-the-Hash detected (Wazuh Rule 92652): Account domainadmin logged on to dc01.acme.skb from 10.0.30.53 using NTLM (LogonType 3, NtLmSsp, KeyLength=0).Detected disabling of Microsoft Defender Real-Time Protection (Event ID 5001/5007) and/or termination of the Wazuh SIEM agent service.
Apr 19 10:15:09 web-server systemd[1]: Stopping Wazuh agent...Apr 19 10:15:10 web-server wazuh-agent[1120]: Stopped Wazuh agent (Rule 506).Microsoft Defender Antivirus Real-Time Protection scanning for malware and other potentially unwanted software was disabled.Windows Error Reporting (WER Event ID 1001) recorded an application crash matching a known privilege escalation exploit (e.g. CVE-2019-0623.exe), proving execution even if the attacker subsequently deleted the binary.
Fault bucket, type 0. Event Name: APPCRASH. Application Name: CVE-2019-0623.exe. Report archive: C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_CVE-2019-0623.ex_8051a89bf9be3b7c258b25fbbf6b2aa10ef12a6_5625ce51_068f0915-7e50-45f3-b91e-2662535e4f58Microsoft Defender logged 2 malware/hacktool detection(s) (including HackTool:Win32/Mimikatz.D and Trojan:Win32/Sabsik.TE.A!ml). UNC path analysis reveals execution directly from an attacker-mounted RDP shared drive (\\tsclient\...), exposing the attacker host filesystem.
Microsoft Defender Antivirus has detected malware: Trojan:Win32/Sabsik.TE.A!ml. Path: file:_C:\Users\Public\Documents\CVEs\cve-2019-1458.exeMicrosoft Defender Antivirus has detected malware or potentially unwanted software: HackTool:Win32/Mimikatz.D. Path: file:_\\tsclient\_home_kali_Documents_Brute-RDP.py_rdpshare_\mimikatz.exeDetected 1 Kerberos TGT request(s) (Event ID 4768) without pre-authentication (PreAuthType=0) using weak RC4-HMAC encryption (0x17) for account 'legacy_svc@ACME.SKB' from 10.0.30.53, indicating an AS-REP Roasting attack (e.g. GetNPUsers.py / Rubeus).
A Kerberos authentication ticket (TGT) was requested (Event ID 4768). Account: legacy_svc@ACME.SKB, Pre-Authentication Type: 0 (None), Ticket Encryption Type: 0x17 (RC4-HMAC), Client Address: 10.0.30.53Sysmon Event ID 10 (ProcessAccess) recorded process '\\tsclient\_home_kali_Documents_Brute-RDP.py_rdpshare_\mimikatz.exe' opening a handle to C:\Windows\System32\lsass.exe with GrantedAccess=0x1010 (PROCESS_VM_READ), directly confirming in-memory credential dumping (Mimikatz sekurlsa::logonpasswords).
Process accessed (Sysmon Event ID 10): SourceImage: \\tsclient\_home_kali_Documents_Brute-RDP.py_rdpshare_\mimikatz.exe, TargetImage: C:\Windows\System32\lsass.exe, GrantedAccess: 0x1010 (PROCESS_VM_READ)