BellaCPP, Charming Kitten’s BellaCiao variant written in C++

Share:

Iran-linked APT group Charming Kitten has been observed using a new variant of the BellaCiao malware dubbed BellaCPP, Kaspersky researchers warn.

The Iran-linked APT group Charming Kitten has been observed using a C++ variant of the BellaCiao malware, dubbed BellaCPP.

BellaCiao, a .NET-based malware, combines webshell persistence with covert tunneling. The malicious code was first spotted in April 2023 by Bitdefender, its PDB paths reveal valuable insights, including a versioning scheme.

Recently Kaspersky discovered a BellaCiao malware sample on a computer in Asia, along with a related C++ reimplementation of an older BellaCiao version.

BellaCiao’s PDB paths revealed key details about the campaign, including target entities and countries. All paths include “MicrosoftAgentServices,” sometimes with versioning integers (e.g., “MicrosoftAgentServices2”), likely used by developers to track updates and maintain an evolving malware arsenal for APT operations.

“BellaCPP was found on the same machine infected with the .NET-based BellaCiao malware. It’s a DLL file named “adhapl.dll”, developed in C++ and located in C:\Windows\System32. It has one export function, named “ServiceMain”.” reads the report published by Kaspersky. “The name and control handler registration indicate that, similar to the original BellaCiao samples, this variant is designed to run as a Windows service.”

The .NET-based BellaCiao malware exhibits behavior similar to earlier versions, including:

  1. Decrypting strings for a DLL path, functions (“SecurityUpdate” and “CheckDNSRecords”) using XOR encryption.
  2. Loading the DLL and resolving function addresses.
  3. Generating a domain in the format <5 random letters><target identifier>.<country code>.systemupdate[.]info.
  4. Validating the domain’s IP against a hardcoded address and invoking the “SecurityUpdate” function with specific arguments.

Despite similarities, differences include domain generation patterns and SSH tunneling workflows in .NET versions. Analysis of the crucial DLL (D3D12_1core.dll) remains incomplete due to its unavailability.

“Based on the passed parameters and known BellaCiao functionality, we assess with medium confidence that the missing DLL creates an SSH tunnel. However, in contrast to the PowerShell webshell that we observed in the older BellaCiao samples, the BellaCPP sample lacks a hardcoded webshell.” continues the report.

BellaCPP is likely linked to the Charming Kitten threat actor, as it mirrors BellaCiao samples in C++ form without webshell functionality, uses domains tied to the actor, employs similar domain generation methods, and was found on a system alongside an older BellaCiao sample.

“Charming Kitten has been improving its arsenal of malware families while making use of publicly available tools.” concludes the report. “The discovery of the BellaCPP sample highlights the importance of conducting a thorough investigation of the network and the machines in it. Attackers can deploy unknown samples which might not be detected by security solutions, thereby retaining a foothold in the network after “known” samples are removed.”

Source

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
5:43 am, Jun 11, 2025
weather icon 14°C
L: 11° | H: 14°
overcast clouds
Humidity: 88 %
Pressure: 1020 mb
Wind: 10 mph E
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 100%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 4:43 am
Sunset: 9:16 pm
DailyHourly
Daily ForecastHourly Forecast
Today 10:00 pm
weather icon
11° | 14°°C 0 mm 0% 12 mph 88 % 1020 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
14° | 25°°C 0.35 mm 35% 12 mph 77 % 1016 mb 0 mm/h
Fri Jun 13 10:00 pm
weather icon
16° | 27°°C 0.5 mm 50% 11 mph 86 % 1020 mb 0 mm/h
Sat Jun 14 10:00 pm
weather icon
17° | 23°°C 0.21 mm 21% 14 mph 90 % 1020 mb 0 mm/h
Sun Jun 15 10:00 pm
weather icon
13° | 22°°C 0.22 mm 22% 9 mph 85 % 1025 mb 0 mm/h
Today 7:00 am
weather icon
14° | 14°°C 0 mm 0% 6 mph 88 % 1020 mb 0 mm/h
Today 10:00 am
weather icon
15° | 19°°C 0 mm 0% 7 mph 85 % 1020 mb 0 mm/h
Today 1:00 pm
weather icon
19° | 22°°C 0 mm 0% 8 mph 74 % 1020 mb 0 mm/h
Today 4:00 pm
weather icon
25° | 25°°C 0 mm 0% 11 mph 49 % 1018 mb 0 mm/h
Today 7:00 pm
weather icon
22° | 22°°C 0 mm 0% 12 mph 56 % 1017 mb 0 mm/h
Today 10:00 pm
weather icon
16° | 16°°C 0 mm 0% 10 mph 67 % 1017 mb 0 mm/h
Tomorrow 1:00 am
weather icon
15° | 15°°C 0 mm 0% 9 mph 70 % 1016 mb 0 mm/h
Tomorrow 4:00 am
weather icon
14° | 14°°C 0 mm 0% 8 mph 69 % 1015 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€95,982.03
0.19%
Ethereum(ETH)
€2,446.87
4.04%
Tether(USDT)
€0.87
-0.03%
XRP(XRP)
€2.00
-0.10%
Solana(SOL)
€144.56
3.91%
USDC(USDC)
€0.87
0.00%
Dogecoin(DOGE)
€0.173420
2.75%
Shiba Inu(SHIB)
€0.000011
2.54%
Pepe(PEPE)
€0.000011
2.21%
Peanut the Squirrel(PNUT)
€0.253630
2.20%
Scroll to Top