PyDCrypt
- Type
- Loader
- Capabilities
- ExfiltrationLateral movementPost exploitationDefense evasionReconnaissanceSpoofing
- Platforms
- Windows
PyDCrypt is a custom Windows malware component associated with Moses Staff, an Iran-linked cluster also tracked under the broader Cobalt Sapling umbrella. It is described as a Python program packaged with PyInstaller and used in intrusions against victim organizations, particularly in operations involving data theft, network propagation, and preparation for disruptive follow-on activity. PyDCrypt has been observed alongside other Moses Staff tooling, notably DCSrv and StrifeWater, in campaigns targeting Israeli organizations and other victims across multiple countries.
Functionally, PyDCrypt appears to serve as a lateral movement and execution-enablement component rather than the final disruptive payload itself. It has been used to infect additional computers on a victim network and to ensure that the main payload, DCSrv, is executed properly. Observed behavior includes dropping DCSrv to disk while masquerading it as a legitimate Windows process, executing commands through PowerShell and WMIC, modifying firewall rules on remote machines to permit SMB, NetBIOS, and RPC connectivity, and probing compromised hosts with whoami to collect the current username. These behaviors indicate a role in post-compromise reconnaissance, remote execution, internal spread, and operational staging.
PyDCrypt has been linked to incidents in which files were exfiltrated from targeted organizations using custom Moses Staff malware. In the broader Moses Staff intrusion chain, PyDCrypt supports access expansion and payload deployment, while DCSrv has been associated with host lockout and DiskCryptor-based volume encryption. This places PyDCrypt within a toolset used for espionage, data theft, and disruptive operations against enterprise Windows environments.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Although the threat intelligence research community has identified custom offensive tooling observed in Moses Staff attacks, such as StrifeWater, PyDCrypt and DCSrv, we do not exclude the possibility of Moses Staff and Abraham’s Ax sharing tooling and operational practices making accurate clustering challenging at this time.
Techniques & procedures
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Moses Staff has built malware, such as DCSrv and PyDCrypt, for targeting victims' machines.
Execution
4 techniques
Execution
[PyDCrypt](https://attack.mitre.org/software/S1032) has attempted to execute with WMIC.(Citation: Checkpoint MosesStaff Nov 2021)
[PyDCrypt](https://attack.mitre.org/software/S1032) has attempted to execute with PowerShell.(Citation: Checkpoint MosesStaff Nov 2021)
[PyDCrypt](https://attack.mitre.org/software/S1032) has used `cmd.exe` for execution.(Citation: Checkpoint MosesStaff Nov 2021)
[PyDCrypt](https://attack.mitre.org/software/S1032), along with its functions, is written in Python.(Citation: Checkpoint MosesStaff Nov 2021)
Stealth
7 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
Examples include 'Mosquito’s installer is obfuscated with a custom crypter,' 'PyDCrypt has been compiled and encrypted with PyInstaller, specifically using the --key flag,' and 'Threat Group-3390 malware is also obfuscated using Metasploit’s shikata_ga_nai encoder.'
[PyDCrypt](https://attack.mitre.org/software/S1032) has been compiled and encrypted with PyInstaller, specifically using the --key flag during the build phase.(Citation: Checkpoint MosesStaff Nov 2021)
During the 2016 Ukraine Electric Power Attack, DLLs and EXEs with filenames associated with common electric power sector protocols were used to masquerade files.
[PyDCrypt](https://attack.mitre.org/software/S1032) has dropped [DCSrv](https://attack.mitre.org/software/S1033) under the `svchost.exe` name to disk.(Citation: Checkpoint MosesStaff Nov 2021)
[PyDCrypt](https://attack.mitre.org/software/S1032) will remove all created artifacts such as dropped executables.(Citation: Checkpoint MosesStaff Nov 2021)
[PyDCrypt](https://attack.mitre.org/software/S1032) has decrypted and dropped the [DCSrv](https://attack.mitre.org/software/S1033) payload to disk.(Citation: Checkpoint MosesStaff Nov 2021)
Defense Impairment
1 technique
Defense Impairment
[PyDCrypt](https://attack.mitre.org/software/S1032) has modified firewall rules to allow incoming SMB, NetBIOS, and RPC connections using `netsh.exe` on remote machines.(Citation: Checkpoint MosesStaff Nov 2021)
Discovery
2 techniques
Discovery
[PyDCrypt](https://attack.mitre.org/software/S1032) has probed victim machines with <code>whoami</code> and has collected the username from the machine.(Citation: Checkpoint MosesStaff Nov 2021)
[PyDCrypt](https://attack.mitre.org/software/S1032) has used [netsh](https://attack.mitre.org/software/S0108) to find RPC connections on remote machines.(Citation: Checkpoint MosesStaff Nov 2021)
Lateral Movement
1 technique
Lateral Movement
PyDCrypt is a program written in Python and built with PyInstaller that is used to infect other computers on the network and ensure that the main payload DCSrv is executed properly.
Exfiltration
2 techniques
Exfiltration
Overall, the leaked data seems to be the result of hacking operations by Moses Staff: the files seem to have been exfiltrated through the use of malware from computers belonging to the targeted organization...
Their main activity is to damage Israeli companies by stealing and publishing sensitive data... The archive was first published by Moses Staff in June 2022, it included leaked data from multiple companies in Israel.
Impact
1 technique
Impact
Operations attributed to Moses Staff have involved RATs and ransomware with no indications of financial motivations, but rather disruption, destruction, and concealment of cyber espionage activities.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.