Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_LOG_EXPL_SUSP_Teamcity_CVE_2023_42793_Oct23_1

Detects log entries that could indicate a successful exploitation of CVE-2023-42793 on TeamCity servers

ExploitSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth
Date
2023-10-02
Modified
2023-12-05
Score / Quality
70 / 85

What this rule detects

Detects log entries that could indicate a successful exploitation of CVE-2023-42793 on TeamCity servers

It defines 4 patterns (4 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

log-expl-susp-teamcity-cve-2023-42793-oct23-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_LOG_EXPL_SUSP_Teamcity_CVE_2023_42793_Oct23_1 : CVE_2023_42793
{
	meta:
		description = "Detects log entries that could indicate a successful exploitation of CVE-2023-42793 on TeamCity servers"
		author = "Florian Roth"
		id = "81c04863-72aa-5515-889e-3ef718360cac"
		date = "2023-10-02"
		modified = "2023-12-05"
		reference = "https://attackerkb.com/topics/1XEEEkGHzt/cve-2023-42793/rapid7-analysis"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_teamcity_2023_42793.yar#L2-L18"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "3b6c8e3e3ff91563899ca94904a56460cd702a3e58e0aacf1c3acb506ec3f959"
		score = 70
		quality = 85
		tags = "CVE-2023-42793"

	strings:
		$sa1 = "File edited: "
		$sa2 = "\\TeamCity\\config\\internal.properties by user with id="
		$sb1 = "s.buildServer.ACTIVITIES.AUDIT - server_file_change: File "
		$sb2 = "\\TeamCity\\config\\internal.properties was modified by \"user with id"

	condition:
		all of ( $sa* ) or all of ( $sb* )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$sa1text"File edited: "
$sa2text"\\TeamCity\\config\\internal.properties by user with id="
$sb1text"s.buildServer.ACTIVITIES.AUDIT - server_file_change: File "
$sb2text"\\TeamCity\\config\\internal.properties was modified by \"user with id"

Condition

all of ( $sa* ) or all of ( $sb* )

In plain words (Heuristic)

  • All patterns in ( $sa* ) must match.
  • All patterns in ( $sb* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Florian Roth

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 81c04863-72aa-5515-889e-3ef718360cac

Tags:CVE_2023_42793