ScanBox
- Type
- Spyware
- Capabilities
- KeyloggingReconnaissanceExfiltrationSession hijacking
- Delivery
- Watering holePhishingLanding page
ScanBox is a PHP- and JavaScript-based reconnaissance and surveillance framework documented since at least 2014 and used by multiple China-linked cyberespionage groups. Its client-side JavaScript executes in visitors’ browsers through compromised websites, attacker-controlled phishing pages, or injected web portal content, allowing information collection without installing a conventional endpoint executable. It supports victim profiling and selection for follow-on exploitation.
ScanBox collects operating-system, browser, installed-plugin, language, screen, and page metadata, as well as accessible cookies. Its modular architecture supports browser fingerprinting, security-software checks, and keylogging. Observed keylogger modules capture input within the monitored web page or an attacker-created iframe and transmit it to command-and-control infrastructure; this is not system-wide keystroke capture. Other observed modules use WebRTC and STUN for peer-connection functionality and check for Kaspersky Internet Security.
ScanBox has been used in watering-hole and phishing operations associated with groups including APT27, APT3, TA413, and Earth Empusa. Deployments have included compromised government websites, religious and community websites, and Cisco clientless SSL VPN portals. Targeting has encompassed Tibetan and Uyghur communities, government bodies, Japanese high-technology organizations, Australian media, and heavy-industry and energy-related companies. A 2022 campaign delivered ScanBox through phishing links to a counterfeit Australian news website.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
8 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
One injection we found is the ScanBox framework. The framework can collect information from a website’s visitors by using JavaScript to record keypresses and harvest the profiles of the OS, browser, and browser plugins from the client environment.
FriarFox ... contacted command-and-control infrastructure associated with the Javascript reconnaissance framework Scanbox.
Threat Group-3390 also leveraged the reconnaissance framework, ScanBox, to capture keystrokes.
Tools Nanhaishu, Orz, SeDll, Cobalt Strike, GreenCrash, AIRBREAK, BlackCoffee, China Chopper, FUSIONBLAZE, HOMEFRY, MURKYTOP, Metasploit / Meterpreter, ScanBox, Derusbi Trojan, Derusbi, Metasploit
"...redirected users to malicious sites hosting exploitation tools such as ScanBox and BEeF (Browser Exploitation Framework)."
Proofpoint and PwC Threat Intelligence have jointly identified a cyber espionage campaign, active since April 2022 through June, delivering the ScanBox exploitation framework to targets who visit a malicious domain posing as an Australian news website.
+2 more in the app. View in Mallory
Techniques & procedures
17 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
The malicious URLs provided in the emails also appear to use values that are customized for each target... the number string that follows it... appears to be a unique identifier for each recipient... This may be an attempt by the threat actor to correlate traffic to its servers... with custom user identifiers which targets received within the URLs via email.
The framework can collect information from a website’s visitors by using JavaScript to record keypresses and harvest the profiles of the OS, browser, and browser plugins from the client environment.
Initial Access
4 techniques
Initial Access
“A watering hole attack is a cybersecurity strategy where attackers compromise a website or service frequently visited by a specific target group. The attackers infect the website with malware to gain access to the visitors' systems.”
“It appears to have started with CVE-2014-3393, a vulnerability in… the Cisco Clientless SSL VPN portal… [allowing] an unauthenticated, remote attacker to modify the content of the Clientless SSL VPN portal…”
Beginning on 12 April 2022, and continuing through mid-June 2022, Proofpoint identified several waves of a phishing campaign... The phishing campaign involved URLs delivered in phishing emails, which redirected victims to a malicious website posing as an Australian news media outlet.
Earth Empusa also used social engineering lures to trick its targets into visiting the phishing pages.
Execution
1 technique
Execution
All pages were injected with a script to load the cross-site scripting framework BeEF.
Stealth
1 technique
Stealth
“Following the theme… are hostnames of other popular Japanese companies… in an effort to make the traffic blend in with legitimate traffic.”
Credential Access
3 techniques
Credential Access
“The file 1.js was a variant of an online script called ‘xss.js’ that was designed to steal form data.”
The content is a catalog of malware families and threat actors that 'can perform keylogging,' 'log keystrokes,' 'capture keystrokes,' or use 'keylogger' modules/tools.
“Attackers have been able to successfully implant JavaScript code on the login pages that enables them to surreptitiously steal employee credentials as they login…”
Discovery
2 techniques
Discovery
Every 30 seconds, ActionSpy will collect basic device information like IMEI, phone number, manufacturer, battery status, etc., which it sends to the C&C server as a heartbeat request.
Victim browser plugins Identification: This plugin gathers the name, filename, and description of any legitimate browser plugin installed in the victim’s browser... Browser fingerprinting plugin... checks whether Java is installed, and if so what version; The version of ActiveX installed; Whether specific Java web applications are installed...
Collection
4 techniques
Collection
“The file 1.js was a variant of an online script called ‘xss.js’ that was designed to steal form data.”
The content is a catalog of malware families and threat actors that 'can perform keylogging,' 'log keystrokes,' 'capture keystrokes,' or use 'keylogger' modules/tools.
“Attackers have been able to successfully implant JavaScript code on the login pages that enables them to surreptitiously steal employee credentials as they login…”
The initial script harvests several types of information from visitors... Sending Information about the victim’s browser back to the C2, including: Version of Flash installed; Location; Referrer; User-Agent; Cookie; Character encoding; Screen width and height; Underlying Operating System; Language; Screen’s colour depth.
Command and Control
3 techniques
Command and Control
The modular ScanBox architecture works by sending data to different responsive PHP scripts hosted on a same server-side folder... /i/v.php?m=b Send victim information back to the C2 ... /i/v.php?m=plug URL that plugins send gathered data back to
“…malicious JavaScript… hosted on the compromised website of a legitimate NGO… leveraged a valid SSL certificate, which kept all communications encrypted.”
Both initial infection vectors delivered first-stage downloader malware to targets. The downloaders retrieved XOR-encoded versions of Meterpreter shellcode.
Observables
74 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.