Files
Desiree Beck bd31003a22 Staging (#151)
* Fixing links

* Code samples (#149)

* Update obfuscated-files-or-information.md

Added code sample with some proposed formatting incl. annotations explaining broad behavior patterns

* Update obfuscated-files-or-information.md

Added brief clarification to note

* Update obfuscated-files-or-information.md

Made requested changes to format

* Update system-information-discovery.md

Added code snippet from PoisonIvy RAT

* Update debugger-detection.md

Added code with example of PEB access

* Update system-information-discovery.md

Added new method based on code snippet

* Update registry.md

Added snippet for registry key query

* Update generate-pseudorandom-sequence.md

Added example of Mersenne Twister algorithm

* Update keylogging.md

Add Dark Comet keylogging code sample

* Update dns-communication.md

Added code sample from darkcomet

* Update socket-communication.md

Added DarkComet code snippet

* Update delete-file.md

Provided DarkComet sample

* Update file-and-directory-discovery.md

Added DarkComet snippet

* Update allocate-memory.md

Added DarkComet sample

* Update modulo.md

Added Hupigon snippet

* Update get-file-attributes.md

Added Hupigon sample

* Update application-window-discovery.md

Added Hupigon snippet

* Update create-process.md

Added Hupigon snippet.

* Update conditional-execution.md

Added Hupigon snippet

* Update create-thread.md

Added Hupigon snippet

* Update resume-thread.md

Added Hupigon snippet

* Update command-and-scripting-interpreter.md

Added SmokeLoader sample

* Update change-memory-protection.md

Added SmokeLoader snippet

* Update console.md

Added snippet from SmokeLoader

* Update dynamic-analysis-evasion.md

Added Industroyer sample

* Update interprocess-communication.md

Added CobaltStrike sample

* Update read-file.md

Added Cobalt Strike snippet

* Update writes-file.md

Added cobalt strike snippet

* Update noncryptographic-hash.md

Added emotet snippet

* Update clipboard-modification.md

Added emotet snippet

* Update check-mutex.md

Added emotet sampler

* Update check-mutex.md

Fixed typo

* Update create-mutex.md

Added Emotet snippet

* Update allocate-thread-local-storage.md

Added emotet snippet

* Update registry-run-keys-startup-folder.md

Added emotet snippet

* Update wininet.md

Added EnvyScout snippet

* Update http-communication.md

Added EnvyScout snippet

* Update enumerate-threads.md

Added Envyscout snippet

* Update set-thread-local-storage-value.md

Added Envyscout sample

* Update create-directory.md

Added explosive snippet

* Update delete-directory.md

Added explosive code snippet (note: the malware is called "explosive")

* Update set-file-attributes.md

Added explosive sample

* Update terminate-process.md

Added explosive snippet

* Update terminate-thread.md

Added explosive sample

* Update move-file.md

Added Finfisher snippet

* Update screen-capture.md

Added ECCENTRICBANDWAGON snippet

* Fix links (#150)

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* fix link

* update mod date

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* fix links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* update links

* Update code-discovery.md

* Update taskbar-discovery.md

* Update conditional-execution.md

* Update memory-dump-evasion.md

* Update execution-dependency.md

* Update compromise-data-integrity.md

* Update dns-communication.md

* Update http-communication.md

* Update interprocess-communication.md

* Update socket-communication.md

* Update wininet.md

* Update generate-pseudorandom-sequence.md

* Update modulo.md

* Update noncryptographic-hash.md

* Update create-directory.md

* Update delete-directory.md

* Update delete-file.md

* Update get-file-attributes.md

* Update move-file.md

* Update read-file.md

* Update terminate-thread.md

* Update set-file-attributes.md

* Update writes-file.md

* Update allocate-memory.md

* Update change-memory-protection.md

* Update console.md

* Update registry.md

* Update allocate-thread-local-storage.md

* Update check-mutex.md

* Update terminate-process.md

* Update create-mutex.md

* Update create-process.md

* Update set-thread-local-storage-value.md

* Update resume-thread.md

* Update enumerate-threads.md

* Update create-thread.md

* update for 3.1 release

* update for 3.1 release

* update for 3.1 release

---------

Co-authored-by: ryan <ryanxu@wustl.edu>
Co-authored-by: brightmt <50853930+brightmt@users.noreply.github.com>
2024-05-01 16:09:33 -04:00

9.6 KiB

ID B0022
Objective(s) Impact, Persistence
Related ATT&CK Techniques None
Impact Type Breach
Version 2.2
Created 1 August 2019
Last Modified 30 April 2024

Remote Access

Malware may provide an attacker with potentially full access to a system via a remote network connection, which may also provide persistence.

A RAT (Remote Access Trojan) is an example of malware that provides a degree of remote access. If the malware provides an "execute" command, the attacker may choose to delete files or corrupt data, power-off the machine, or upload and execute other applications. The malware may also provide specific commands to the attacker (e.g., Delete File). Explicit commands provided by the malware can be captured with Methods associated with the Execution::Remote Commands (B0011) behavior; examples include Execution:Remote Commands:Execute and Execution:Remote Commands:Delete File.

Note that the Ingress Tool Transfer (T1105) technique defined under the Command and Control tactic is no longer specific to "legitimate desktop support and remote access software” as it was under a previous version of ATT&CK. However, Ingress Tool Transfer relates only to files copied; this MBC behavior is broader, allowing for remote access behaviors beyond file transfers (i.e., Impact:Remote Access and Command and Control: Ingress Tool Transfer are not equivalent).

Methods

Name ID Description
Reverse Shell B0022.001 Malware may create a reverse shell. For example, malware can invoke cmd.exe and create three pipes (stdin, stdout, stderr) to forward data between cmd.exe and an adversary.

Use in Malware

Name Date Method Description
Poison Ivy 2005 -- After the Poison Ivy server is running on the target machine, the attacker can use a Windows GUI client to control the target computer. [2]
Dark Comet 2008 -- Dark Comet allows an attacker to control the system via a GUI. [3]
Hupigon 2013 -- The malware acts as a backdoor. [4]

Detection

Tool: capa Mapping APIs
create reverse shell on Linux Remote Access::Reverse Shell (B0022.001) --
create reverse shell Remote Access::Reverse Shell (B0022.001) kernel32.PeekNamedPipe, kernel32.CreateProcess, kernel32.ReadFile, kernel32.WriteFile
Tool: CAPE Mapping APIs
persistence_rdp_registry Remote Access (B0022) --
rat_spynet Remote Access (B0022) --
parallax_mutexes Remote Access (B0022) --
rat_pcclient Remote Access (B0022) --
rat_fynloski_mutexes Remote Access (B0022) --
rat_beebus_mutexes Remote Access (B0022) --
xpertrat_files Remote Access (B0022) --
xpertrat_mutexes Remote Access (B0022) --
warzonerat_files Remote Access (B0022) --
warzonerat_regkeys Remote Access (B0022) --
evil_grab Remote Access (B0022) RegCreateKeyExA, RegSetValueExA, RegCreateKeyExW, RegSetValueExW
PlugX Remote Access (B0022) memcpy, RtlDecompressBuffer
ratsnif_mutexes Remote Access (B0022) --
netwire_behavior Remote Access (B0022) RegSetValueExA
njrat_regkeys Remote Access (B0022) --
rat_xtreme_mutexes Remote Access (B0022) --
blackrat_apis Remote Access (B0022) CryptHashData, RtlDecompressBuffer, CreateProcessInternalW
blackrat_mutexes Remote Access (B0022) --
blackrat_network_activity Remote Access (B0022) send
blackrat_registry_keys Remote Access (B0022) RegQueryValueExW, RegSetValueExW
uses_rdp_clip Remote Access (B0022) --
uses_remote_desktop_session Remote Access (B0022) --
rat_plugx_mutexes Remote Access (B0022) --
obliquerat_files Remote Access (B0022) --
obliquerat_mutexes Remote Access (B0022) --
obliquerat_network_activity Remote Access (B0022) send
venomrat_mutexes Remote Access (B0022) --
trochilusrat_apis Remote Access (B0022) OutputDebugStringW, NtCreateUserProcess, RegSetValueExW, CreateProcessInternalW
dcrat_behavior Remote Access (B0022) GetAddrInfo, GetAddrInfoW, CryptHashData
dcrat_files Remote Access (B0022) --
dcrat_mutexes Remote Access (B0022) --
karagany_system_event_objects Remote Access (B0022) NtCreateEventEx, NtCreateEvent
karagany_files Remote Access (B0022) --
orcusrat_behavior Remote Access (B0022) RegOpenKeyExW
limerat_mutexes Remote Access (B0022) --
limerat_regkeys Remote Access (B0022) --
rat_luminosity Remote Access (B0022) CryptHashData, NtCreateMutant, NtCreateFile
rat_nanocore Remote Access (B0022) CryptHashData
static_rat_config Remote Access (B0022) --
remcos_files Remote Access (B0022) --
remcos_mutexes Remote Access (B0022) --
remcos_regkeys Remote Access (B0022) --

References

[1] https://en.wikipedia.org/wiki/Remote_access_trojan

[2] https://www.cyber.nj.gov/threat-center/threat-profiles/trojan-variants/poison-ivy

[3] https://en.wikipedia.org/wiki/DarkComet

[4] https://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/HUPIGON