YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Goshellcode
Finds GoShellcode samples based on the specific strings
- Author
- Sekoia.io
- Date
- 2023-11-15
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds GoShellcode samples based on the specific strings
Targets: Windows PE.
It defines 6 patterns (6 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
loader-win-goshellcode.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Goshellcode : FILE
{
meta:
= "Finds GoShellcode samples based on the specific strings"
= "Sekoia.io"
= "61346225-325a-4067-a4d6-3b8c001dd380"
= "2023-11-15"
= "2024-12-19"
= "https://github.com/yoda66/GoShellcode/blob/main/gosc.go"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_goshellcode.yar#L1-L23"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "94445af999055bf7d7cddc0d1d5183ab2776d85285f0522a28fac6c5a6101906"
= "fdea8b01b2597ceafe6f08b5fd12cc603b1e3ce2037731c0b6defde6935b1ce0"
= "48ec87f284fbd14cbdb6b6b0f2e0fa6eb5ea19f112648660e0b8e525c562e3fc"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "main.VirtualAlloc" ascii
$str02 = "main.RtlMoveMemory" ascii
$str03 = "syscall.Syscall" ascii
$str04 = "syscall.NewLazyDLL" ascii
$str05 = "runtime.getGetProcAddress" ascii
$str06 = "runtime.useAeshash" ascii
condition:
uint16( 0 ) == 0x5A4D and all of ( $str* ) and filesize < 8MB
}
Strings (6 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "main.VirtualAlloc" | ascii |
| $str02 | text | "main.RtlMoveMemory" | ascii |
| $str03 | text | "syscall.Syscall" | ascii |
| $str04 | text | "syscall.NewLazyDLL" | ascii |
| $str05 | text | "runtime.getGetProcAddress" | ascii |
| $str06 | text | "runtime.useAeshash" | ascii |
Condition
uint16( 0 ) == 0x5A4D and all of ( $str* ) and filesize < 8MBIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 8MB (a cheap guard that skips large files).
- All patterns in ( $str* ) 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 94445af999055bf7d7cddc0d1d5183ab2776d85285f0522a28fac6c5a6101906
- fdea8b01b2597ceafe6f08b5fd12cc603b1e3ce2037731c0b6defde6935b1ce0
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 61346225-325a-4067-a4d6-3b8c001dd380
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20