Apfell is a JavaScript for Automation (JXA) agent for macOS/OSX that is part of the open-source Mythic/MythicAgents command-and-control framework. It is written in JavaScript specifically for macOS and is commonly referenced alongside other Mythic agents such as Apollo and Poseidon.
The provided content describes Apfell being delivered and executed through multiple infection chains. In one workflow, operators generate an Apfell JXA payload in Mythic, host the resulting .js file over HTTP, and use a Microsoft Office macro that invokes osascript to download and execute the payload on macOS. The content also states that Apfell has been used in malicious npm supply-chain campaigns, including eslint-verify-plugin and ambar-src, where macOS installations used osascript to run JavaScript that dropped or executed the Apfell payload.
High-confidence capabilities directly mentioned in the content include extensive data collection/reconnaissance, screenshot collection, theft of Google Chrome data, password capture via a fake prompt, and creation of a new macOS user with administrator privileges. One source also notes that the JXA payload launches inside the macOS App Sandbox, and claims Mythic can still add Login Item persistence from that context.
Behavioral and detection-relevant details in the content include Office applications such as Microsoft Word.app spawning /bin/sh, /bin/bash, or /usr/bin/curl as part of macro-based delivery, and osascript launching the JXA payload. The content further notes that some defenders monitor child processes spawned by osascript and shell commands on macOS. Reported infrastructure and artifacts associated with Apfell delivery in the supplied content include x-ya[.]ru as a staging source in the ambar-src campaign, function.yandexcloud[.]ru / Yandex Cloud as relay or exfiltration infrastructure, and the macOS Apfell JavaScript payload hash 492f2366ece5c544a4062da14da5883bc825d6f2bc58cda975799dca9f85b150, with an associated shell script hash 521ade4aeb95039e1712f8284eba333199fc819f1e0f9db41d6bc9849b131109.
The content ties Apfell to the Mythic framework and to malicious package campaigns reported by JFrog, Tenable, Socket, and others, but does not attribute Apfell itself to a single threat actor; rather, it is presented as an open-source payload used by multiple operators and campaigns in the wild.
Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.
20 distinct techniques documented for this family, organized by ATT&CK tactic.
This script generates an Office macro which uses osascript to download and execute the Mythic JXA .js payload.
Рабочее решение — apfell-агент, который работает через osascript (AppleScript, T1059.002, Execution) и не зависит от архитектуры процессора. Callback через osascript проходит на arm64 без проблем.
This script generates an Office macro which uses osascript to download and execute the Mythic JXA .js payload.
The same is true for installing C2 Profiles: sudo ./mythic-cli install github https://github.com/MythicC2Profiles/http | Installing Agents and C2 Profiles The Mythic repository itself does not host any Payload Types or any C2 Profiles... sudo ./mythic-cli install github https://github.com/MythicC2Profiles/http
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Mythic C2 JXA agent used on macOS to conduct reconnaissance, collect screenshots, steal data from Google Chrome, and capture system passwords via a fake prompt.
Open-source Mythic agent for macOS (JavaScript) delivered via the malicious npm package’s preinstall chain; provides post-compromise capabilities such as host reconnaissance, screenshot capture, Chrome data theft, and credential/prompting via fake password dialogs.
macOS JXA agent used for extensive data collection and privilege-establishing actions such as creating a new admin user.
A Mythic agent implemented as a JavaScript for Automation script for OSX.
Match every observed IP, domain, and hash against your live telemetry.
Named campaigns wielding this family, with evidence pinned to each claim.
CVEs this family uses for access and lateral movement.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Every documented technique, ranked by evidence weight.
Reddit, Mastodon, and CTI community discussion around this family.