Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_HKTL_EXPL_POC_Libssh_Auth_Bypass_CVE_2023_2283_Jun23_1

Detects POC code used in attacks against libssh vulnerability CVE-2023-2283

Hack toolSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth
Date
2023-06-08
Modified
2023-12-05
Score / Quality
85 / 85

What this rule detects

Detects POC code used in attacks against libssh vulnerability CVE-2023-2283

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

Summary generated from the rule's metadata and condition.

Rule source

hktl-expl-poc-libssh-auth-bypass-cve-2023-2283-jun23-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_HKTL_EXPL_POC_Libssh_Auth_Bypass_CVE_2023_2283_Jun23_1 : CVE_2023_2283 FILE
{
	meta:
		description = "Detects POC code used in attacks against libssh vulnerability CVE-2023-2283"
		author = "Florian Roth"
		id = "e72eba33-686f-5fca-bca3-2b875d1ec224"
		date = "2023-06-08"
		modified = "2023-12-05"
		reference = "https://github.com/github/securitylab/tree/1786eaae7f90d87ce633c46bbaa0691d2f9bf449/SecurityExploits/libssh/pubkey-auth-bypass-CVE-2023-2283"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_libssh_cve_2023_2283_jun23.yar#L2-L15"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "4c3d54d7f4902c1da664e41096b5931e6534aaaf63243f12e05b81af63d8b28f"
		score = 85
		quality = 85
		tags = "CVE-2023-2283, FILE"

	strings:
		$s1 = "nprocs = %d" ascii fullword
		$s2 = "fork failed: %s" ascii fullword

	condition:
		uint16( 0 ) == 0x457f and all of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$s1text"nprocs = %d"ascii fullword
$s2text"fork failed: %s"ascii fullword

Condition

uint16( 0 ) == 0x457f and all of them

In plain words (Heuristic)

  • All patterns in the rule 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: e72eba33-686f-5fca-bca3-2b875d1ec224

Tags:CVE_2023_2283FILE