title: Server Process Spawns Shell, Database General Log Pointed at Script, or CLI Client Calls LLM API or Request Bin
id: 5f2b7bb0-0c70-445d-acaf-db2b3bbf5ac2
status: experimental
description: |
    Process creations for three behaviours that recur in agent-driven intrusions in the Threadlinqs ARTEX records: a web,
    application or database server process starting a shell, downloader, admin or reconnaissance tool; the MySQL or MariaDB
    client setting general_log_file to a script path (the general-log web shell technique); and a command-line HTTP client or
    interpreter naming an LLM API or a public request-capture service (an agent reaching its model, or posting command
    output). The host names define a destination category, not one operator's indicators; extend them with what you see.
    Single-event companion to the Threadlinqs SPL and KQL behaviour stacks. The log source is Windows so that the Sysmon,
    Splunk and ECS pipelines apply their mappings; forward-slash values serve Microsoft Defender, whose process table also
    covers Linux servers, and never match on Windows-only sources. The PHP command-line interpreter is not a server parent.
    The shell that PHP mail() starts with the default sendmail_path (/usr/sbin/sendmail -t -i, no extra parameters) is
    filtered out; mail() calls that add a sender parameter such as -f still alert.
references:
    - https://intel.threadlinqs.com/threat/TL-2026-6252
    - https://intel.threadlinqs.com/threat/TL-2026-5759
    - https://intel.threadlinqs.com/threat/TL-2026-6882
    - https://intel.threadlinqs.com/threat/TL-2026-6164
    - https://intel.threadlinqs.com/threat/TL-2026-3860
author: Threadlinqs Team
date: 2026-11-25
modified: 2026-11-26
tags:
    - attack.persistence
    - attack.t1505.003
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.001
    - attack.t1059.003
    - attack.t1059.004
    - attack.t1047
    - attack.t1053.005
    - attack.command-and-control
    - attack.t1102
    - attack.exfiltration
    - attack.t1567
logsource:
    category: process_creation
    product: windows
detection:
    selection_b7_db_client:
        Image|endswith:
            - '\mysql.exe'
            - '\mysqlsh.exe'
            - '\mariadb.exe'
            - '/mysql'
            - '/mysqlsh'
            - '/mariadb'
        CommandLine|contains: 'general_log_file'
    selection_b7_script_path:
        CommandLine|contains:
            - '.jsp'
            - '.php'
            - '.asp'
            - '.ashx'
            - '.asmx'
            - '.phtml'
            - '.phar'
    selection_b8_parent_server:
        ParentImage|endswith:
            - '\w3wp.exe'
            - '\httpd.exe'
            - '\nginx.exe'
            - '\php-cgi.exe'
            - '\tomcat.exe'
            - '\tomcat7.exe'
            - '\tomcat8.exe'
            - '\tomcat9.exe'
            - '\tomcat10.exe'
            - '\tomcat11.exe'
            - '\sqlservr.exe'
            - '/httpd'
            - '/apache2'
            - '/nginx'
            - '/lshttpd'
            - '/frankenphp'
    selection_b8_parent_php_sapi:
        ParentImage|contains:
            - '/php-fpm'
            - '/php-cgi'
            - '/lsphp'
    selection_b8_parent_java_app_server:
        ParentImage|endswith:
            - '\java.exe'
            - '\javaw.exe'
            - '/java'
        ParentCommandLine|contains:
            - 'catalina'
            - 'weblogic'
    selection_b8_child:
        Image|endswith: ['\cmd.exe', '\powershell.exe', '\pwsh.exe', '\whoami.exe', '\certutil.exe', '\bitsadmin.exe', '\net.exe',
                         '\net1.exe', '\nltest.exe', '\wmic.exe', '\schtasks.exe', '\sh.exe', '\bash.exe', '\curl.exe', '\wget.exe',
                         '\nc.exe', '\ncat.exe', '\socat.exe', '\nmap.exe', '\masscan.exe', '\python.exe', '\python3.exe', '\perl.exe',
                         '\ruby.exe', '/sh', '/bash', '/dash', '/zsh', '/pwsh', '/curl', '/wget', '/nc', '/ncat', '/socat', '/nmap',
                         '/masscan', '/perl', '/ruby', '/python', '/python2', '/python3']
    selection_b8_child_versioned:
        Image|contains: ['python2.', 'python3.', 'ruby2.', 'ruby3.']
    filter_b8_php_mail:
        CommandLine:
            - 'sh -c /usr/sbin/sendmail -t -i'
            - 'sh -c -- /usr/sbin/sendmail -t -i'
            - '/bin/sh -c /usr/sbin/sendmail -t -i'
            - '/bin/sh -c -- /usr/sbin/sendmail -t -i'
    selection_b9_cli_client:
        Image|endswith: ['\curl.exe', '\wget.exe', '\powershell.exe', '\pwsh.exe', '\python.exe', '\python3.exe', '/curl', '/wget',
                         '/pwsh', '/python', '/python2', '/python3']
    selection_b9_cli_client_python_versioned:
        Image|contains: ['python2.', 'python3.']
    selection_b9_destination:
        CommandLine|contains:
            - 'api.openai.com'
            - 'api.anthropic.com'
            - 'api.deepseek.com'
            - 'api.x.ai'
            - 'open.bigmodel.cn'
            - 'openrouter.ai'
            - 'webhook.site'
            - 'httpbin.org'
            - 'httpbun.com'
            - 'interact.sh'
    condition: >-
        (selection_b7_db_client and selection_b7_script_path)
        or (1 of selection_b8_parent_* and 1 of selection_b8_child* and not filter_b8_php_mail)
        or (1 of selection_b9_cli_client* and selection_b9_destination)
falsepositives:
    - Web applications, CMS plugins, mail functions and health checks that shell out; SQL Server Agent jobs and xp_cmdshell used by
      DBAs; Tomcat and WebLogic applications that launch scripts (baseline parent and child pairs per host)
    - Database administrators redirecting the general log for diagnostics (normally to a .log path, not a script)
    - Developers and sanctioned AI integrations calling LLM APIs, and developers testing webhooks, from servers
level: medium
