Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_TOOL_PET_Botb

Detects Break out the Box (BOtB)

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-09-25
Score / Quality
75 / 75

What this rule detects

Detects Break out the Box (BOtB)

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-tool-pet-botb.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOL_PET_Botb : FILE
{
	meta:
		description = "Detects Break out the Box (BOtB)"
		author = "ditekSHen"
		id = "acafa6dd-51b9-5945-b1df-7763a97a424f"
		date = "2020-11-06"
		modified = "2024-09-25"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L696-L710"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a01f796b27852f9217d9bfea32f8d9ffb3c88521d4413f6612f7a0544cf44fb3"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "to unallocated span%%!%c(*big.Float=%s), RecursionDesired: /usr/share/zoneinfo//{Bucket}/{Key+}?acl/{Bucket}?accelerate/{Bucket}?encryption/{Bucket}?" ascii
		$s2 = "exploit CVE-2019-5736 with command: [ERROR] In Enabling CGROUP Notifications -> 'echo 1 > [INFO] CGROUP may exist, attempting exploit regardless" ascii
		$s3 = "main.execShellCmd" ascii
		$s4 = "[*] Data uploaded to:[+]" ascii
		$s5 = "whitespace or line breakfailed to find credentials in the environment.failed to get %s EC2 instance role credentialsfirst" ascii
		$s6 = "This process will exit IF an EXECVE is called in the Container or if the Container is manually stoppedPerform reverse DNS lookups" ascii
		$s7 = "http: request too largehttp://100.100.100.200/http://169.254.169.254/index out of range" ascii

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

Strings (7 patterns)

IdentifierTypeValueModifiers
$s1text"to unallocated span%%!%c(*big.Float=%s), RecursionDesired: /usr/share/zoneinfo//{Bucket}/{Key+}?acl/{Bucket}?accelerate/{Bucket}?encryption/{Bucket}?"ascii
$s2text"exploit CVE-2019-5736 with command: [ERROR] In Enabling CGROUP Notifications -> 'echo 1 > [INFO] CGROUP may exist, attempting exploit regardless"ascii
$s3text"main.execShellCmd"ascii
$s4text"[*] Data uploaded to:[+]"ascii
$s5text"whitespace or line breakfailed to find credentials in the environment.failed to get %s EC2 instance role credentialsfirst"ascii
$s6text"This process will exit IF an EXECVE is called in the Container or if the Container is manually stoppedPerform reverse DNS lookups"ascii
$s7text"http: request too largehttp://100.100.100.200/http://169.254.169.254/index out of range"ascii

Condition

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

In plain words (Heuristic)

  • At least 6 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: acafa6dd-51b9-5945-b1df-7763a97a424f

Tags:FILE