Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Apt37_Chinotto_Powershell_Variant

Detects APT37 Chinotto Powershell Variant

APT / threat actorChinottoSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-03-06
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects APT37 Chinotto Powershell Variant

Associated malware family: Chinotto.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-apt37-chinotto-powershell-variant.yarDetection Rule License 1.1
rule SEKOIA_Apt_Apt37_Chinotto_Powershell_Variant
{
	meta:
		description = "Detects APT37 Chinotto Powershell Variant"
		author = "Sekoia.io"
		id = "fa42b225-58fe-4e00-b84b-df37491d8fdd"
		date = "2023-03-06"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_apt37_chinotto_powershell_variant.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "b4d17467f15d52bd615e335fa8bc31381ec273b67dabb74655f47179f04f631f"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "$env:COMPUTERNAME + '-' + $env:USERNAME;" ascii wide
		$ = "while($true -eq $true)" ascii wide
		$ = "Start-Sleep -Seconds" ascii wide
		$ = " -ne 'null' -and $" ascii wide
		$ = "= 'R=' + [System.Convert]::" ascii wide
		$ = "[string]$([char]0x0D) + [string]$([char]0x0A);" ascii wide

	condition:
		4 of them
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$text"$env:COMPUTERNAME + '-' + $env:USERNAME;"ascii wide
$text"while($true -eq $true)"ascii wide
$text"Start-Sleep -Seconds"ascii wide
$text" -ne 'null' -and $"ascii wide
$text"= 'R=' + [System.Convert]::"ascii wide
$text"[string]$([char]0x0D) + [string]$([char]0x0A);"ascii wide

Condition

4 of them

In plain words (Heuristic)

  • At least 4 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

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: fa42b225-58fe-4e00-b84b-df37491d8fdd

Metadata

version1.0
classificationTLP:CLEAR

More Chinotto rules