ATT&CKReferencesXAgentOSX 2017

XAgentOSX 2017

Robert Falcone. (2017, February 14). XAgentOSX: Sofacy's Xagent macOS Tool. Retrieved July 12, 2017.

Open the source

Techniques0

Not cited by any technique.

Groups0

None recorded.

Software2

Campaigns0

None recorded.

Procedure examples11

TechniqueUsed byProcedure example
T1033
System Owner/User Discovery
MalwareXAgentOSX

XAgentOSX contains the getInfoOSX function to return the OS X version as well as the current user.

T1056.001
Keylogging
MalwareXAgentOSX

XAgentOSX contains keylogging functionality that will monitor for active application windows and write them to the log, it can handle special characters, and it will buffer by default 50 characters before sending them out over the C2 infrastructure.

T1057
Process Discovery
MalwareXAgentOSX

XAgentOSX contains the getProcessList function to run ps aux to get running processes.

T1070.004
File Deletion
MalwareXAgentOSX

XAgentOSX contains the deletFileFromPath function to delete a specified file using the NSFileManager:removeFileAtPath method.

T1071.002
File Transfer Protocols
MalwareXAgentOSX

XAgentOSX contains the ftpUpload function to use the FTPManager:uploadFile method to upload files from the target system.

T1082
System Information Discovery
MalwareXAgentOSX

XAgentOSX contains the getInstalledAPP function to run ls -la /Applications to gather what applications are installed.

T1083
File and Directory Discovery
MalwareXAgentOSX

XAgentOSX contains the readFiles function to return a detailed listing (sometimes recursive) of a specified directory. XAgentOSX contains the showBackupIosFolder function to check for IOS device backups by running ls -la ~/Library/Application\ Support/MobileSync/Backup/.

T1106
Native API
MalwareXAgentOSX

XAgentOSX contains the execFile function to execute a specified file on the system using the NSTask:launch method.

T1113
Screen Capture
MalwareXAgentOSX

XAgentOSX contains the takeScreenShot (along with startTakeScreenShot and stopTakeScreenShot) functions to take screenshots using the CGGetActiveDisplayList, CGDisplayCreateImage, and NSImage:initWithCGImage methods.

T1113
Screen Capture
GroupAPT28

APT28 has used tools to take screenshots from victims.

T1555.003
Credentials from Web Browsers
MalwareXAgentOSX

XAgentOSX contains the getFirefoxPassword function to attempt to locate Firefox passwords.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.