~/talk

Red Teaming macOS Environments with Hermes the Swift Messenger

Talkat BSidesSF 2022 · 2022-06-04..06-05· [security]
links:none on file
slides:none on file

A Swift 5 implant called Hermes targets macOS via the Mythic C2, implements an RSA-encrypted key exchange to negotiate per-implant AES session keys (forward secrecy), and runs multi-threaded jobs with job-kill control. Features include in-memory JXA execution, 512KB-chunk file upload/download, screenshot and clipboard capture (TCC-dependent), plist and TCC enumeration, and process/file ops. Builds compile on Linux using Darling inside privileged Docker (payloads built in ~1 minute after preinstall). Detection examples use Apple ESF tools like Crescendo to flag process exec, file-create in LaunchAgents, and notify open events.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:03Speaker introduction
  3. 1:44Swift programming language overview
  4. 4:56Post-exploitation language comparison
  5. 8:51Why use Swift for post-exploitation
  6. 9:32Swift tooling examples
  7. 9:53Mythic framework introduction
  8. 13:26Existing Mythic macOS payloads
  9. 14:49Introducing Hermes payload
  10. 16:11Cross-compiling Swift for macOS
  11. 19:41Darling for Swift compilation
  12. 20:02Hermes encrypted key exchange
  13. 21:48Hermes command execution
  14. 24:18File system interaction
  15. 25:43Mythic file browser demo
  16. 26:24Process execution methods
  17. 27:45JXA execution in memory
  18. 29:09Process enumeration
  19. 31:14Screenshot and clipboard monitoring
  20. 33:01Situational awareness checks
  21. 35:27P-list file enumeration
  22. 36:52Apple Endpoint Security Framework
  23. 37:55Detecting shell commands
  24. 38:38Detecting launch agents
  25. 40:03Detecting FDA checks
  26. 41:04Installing Hermes
  27. 41:47Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.