Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

3.1 KB
Raw Blame
id: splunk-security-content-19a481e0-c97c-4d14-b1db-75a708eb592e
name: Exploit Public Facing Application via Apache Commons Text
description: The following analytic detects attempts to exploit the CVE-2022-42889
  vulnerability in the Apache Commons Text Library, known as Text4Shell. It leverages
  the Web datamodel to identify suspicious HTTP requests containing specific lookup
  keys (url, dns, script) that can lead to Remote Code Execution (RCE). This activity
  is significant as it targets a critical vulnerability that can allow attackers to
  execute arbitrary code on the server. If confirmed malicious, this could lead to
  full system compromise, data exfiltration, or further lateral movement within the
  network.
severity: medium
enabled: false
tags:
  mitre:
  - T1133
  - T1190
  - T1505.003
  categories:
  - application
references:
- https://sysdig.com/blog/cve-2022-42889-text4shell/
- https://nvd.nist.gov/vuln/detail/CVE-2022-42889
- https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
- https://www.rapid7.com/blog/post/2022/10/17/cve-2022-42889-keep-calm-and-stop-saying-4shell/
- https://github.com/kljunowsky/CVE-2022-42889-text4shell
- https://medium.com/geekculture/text4shell-exploit-walkthrough-ebc02a01f035
logsource:
  product: splunk
detection:
  splunk_spl: "| tstats `security_content_summariesonly` count min(_time) as firstTime\
    \ max(_time) as lastTime FROM datamodel=Web\n  WHERE Web.http_method IN (POST,\
    \ GET)\n  BY Web.src Web.status Web.uri_path\n     Web.dest Web.http_method Web.uri_query\n\
    \     Web.http_user_agent\n| `drop_dm_object_name(\"Web\")`\n| eval utf=if(like(lower(uri_query),\"\
    %:utf-8:http%\"),2,0)\n| eval lookup = if(like(lower(uri_query), \"%url%\") OR\
    \ like(lower(uri_query), \"%dns%\") OR like(lower(uri_query), \"%script%\"),2,0)\n\
    | eval other_lookups = if(like(lower(uri_query), \"%env%\") OR like(lower(uri_query),\
    \ \"%file%\") OR like(lower(uri_query), \"%getRuntime%\") OR like(lower(uri_query),\
    \ \"%java%\") OR like(lower(uri_query), \"%localhost%\") OR like(lower(uri_query),\
    \ \"%properties%\") OR like(lower(uri_query), \"%resource%\") OR like(lower(uri_query),\
    \ \"%sys%\") OR like(lower(uri_query), \"%xml%\") OR like(lower(uri_query), \"\
    %base%\"),1,0)\n| addtotals fieldname=Score utf lookup other_lookups\n| fields\
    \ Score, src, dest, status, uri_query, uri_path, http_method, http_user_agent\
    \ firstTime lastTime\n| `security_content_ctime(firstTime)`\n| `security_content_ctime(lastTime)`\n\
    | where Score >= 3\n| `exploit_public_facing_application_via_apache_commons_text_filter`"
provenance:
  source: splunk/security_content
  source_id: 19a481e0-c97c-4d14-b1db-75a708eb592e
  source_commit: 4d4c7ee
  license: Apache-2.0
  license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
  imported_at: '2026-05-04'
  imported_by: splunk_importer
  upstream_path: detections/web/exploit_public_facing_application_via_apache_commons_text.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema