Skip to content

Commit 7ed9de0

Browse files
authored
Merge pull request #2690 from YungBinary/master
Add NightshadeC2, MonsterV2 Yara Rules
2 parents 03ceafb + ca91b39 commit 7ed9de0

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

data/yara/CAPE/MonsterV2.yar

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
rule MonsterV2
2+
{
3+
meta:
4+
author = "doomedraven,YungBinary"
5+
description = "MonsterV2 Payload"
6+
cape_type = "MonsterV2 Payload"
7+
packed = "fe69e8db634319815270aa0e55fe4b9c62ce8e62484609c3a42904fbe5bb2ab3"
8+
strings:
9+
$decrypt_config = {
10+
41 B8 0E 04 00 00
11+
48 8D 15 ?? ?? ?? 00
12+
48 8B C?
13+
E8 ?? ?? ?? ?? [3-17]
14+
4C 8B C?
15+
48 8D 54 24 28
16+
48 8B CE
17+
E8 ?? ?? ?? ??
18+
}
19+
condition:
20+
uint16(0) == 0x5A4D and $decrypt_config
21+
}

data/yara/CAPE/NightshadeC2.yar

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
rule NightshadeC2
2+
{
3+
meta:
4+
author = "YungBinary"
5+
description = "NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482"
6+
hash = "963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d"
7+
cape_type = "NightshadeC2 Payload"
8+
strings:
9+
$s1 = "keylog.txt" fullword wide
10+
$s2 = "\"%ws\" --mute-audio --do-not-de-elevate" fullword wide
11+
$s3 = "\"%ws\" -no-deelevate" fullword wide
12+
$s4 = "MachineGuid" fullword wide
13+
$s5 = "www.ip-api.com" fullword wide
14+
$s6 = "rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61" fullword wide
15+
$s7 = "IsabellaWine" fullword wide
16+
$s8 = "Shell_TrayWnd" fullword wide
17+
18+
condition:
19+
uint16(0) == 0x5A4D and 3 of them
20+
}

installer/kvm-qemu.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -918,13 +918,13 @@ function install_qemu() {
918918
make -j"$(nproc)" install
919919
fi
920920
# hack for libvirt/virt-manager
921-
if [ ! -f /usr/bin/qemu-system-x86_64-spice ]; then
921+
if [ ! -L /usr/bin/qemu-system-x86_64-spice ]; then
922922
ln -s /usr/bin/qemu-system-x86_64 /usr/bin/qemu-system-x86_64-spice
923923
fi
924-
if [ ! -f /usr/bin/kvm-spice ]; then
924+
if [ ! -L /usr/bin/kvm-spice ]; then
925925
ln -s /usr/bin/qemu-system-x86_64 /usr/bin/kvm-spice
926926
fi
927-
if [ ! -f /usr/bin/kvm ]; then
927+
if [ ! -L /usr/bin/kvm ]; then
928928
ln -s /usr/bin/qemu-system-x86_64 /usr/bin/kvm
929929
fi
930930
if [ $? -eq 0 ]; then
@@ -976,6 +976,7 @@ function install_seabios() {
976976
# Windows 10(latest rev.) is uninstallable without ACPI_DSDT
977977
# sed -i 's/CONFIG_ACPI_DSDT=y/CONFIG_ACPI_DSDT=n/g' .config
978978
if PIP_BREAK_SYSTEM_PACKAGES=1 make -j "$(nproc)"; then
979+
mkdir -p /usr/share/qemu
979980
echo '[+] Replacing old bios.bin to new out/bios.bin'
980981
bios=0
981982
SHA256_BIOS=$(shasum -a 256 out/bios.bin|awk '{print $1}')

0 commit comments

Comments
 (0)