Why a package can run code at all
Importing a script into a Unity project makes the editor recompile. An editor script carrying the [InitializeOnLoad] attribute has its constructor called every time that recompile happens. Nobody has to open the script, enter play mode or click anything. The import is the trigger.
From there a script has whatever the Unity editor has: your file system, your network, on Windows the registry, and the ability to start other processes. The usual payload is not dramatic. It reads something worth stealing, a token or a credential file, and posts it to a Discord webhook, which is a single URL that needs no account and leaves no trail for you to follow.
Packages passed around on Discord, or downloaded from Booth, Gumroad and similar marketplaces, are the ones worth checking. Not because those places are bad, but because a re-uploaded copy of a popular asset is the easy way to reach a lot of people.
Three ways to scan a package
In your browser
Drop the file on the web extractor. It reads the package on your own machine, never uploads it, and runs the scan before you download anything. You see the findings next to the file list, so you can decide with the package still unopened.
In the desktop app
The free desktop app runs the same checks locally. Turn on Security Scan in Settings, and it scans before extraction. It has no size limits, so it is the option for the packages the browser turns away.
On Discord
If you just want a verdict on a file someone posted, the EasyExtract bot answers /analyze with SAFE, UNSAFE or SKIPPED plus the findings. This one is different from the other two: the bot cannot scan on your device, so it downloads the attachment and sends it to the EasyExtract API, which scans a temporary copy and deletes it afterwards. The bot guide covers the command and its limits.
What the scan looks for
The scanner reads the text of script files in the package, .cs, .js, .boo and .dll.txt, up to 2 MB per file, and reports three kinds of finding.
Discord webhooks
A hard-coded webhook URL in the shape discord.com/api/webhooks/<id>/<token>. There is no legitimate reason for an avatar or a prop to ship one. Treat a hit here as the package being malicious, not as something to weigh up.
Links outside the allowlist
Every absolute URL in the scripts is collected and checked against a list of domains that normally appear in asset packages: unity.com, unity3d.com, github.com, google.com, microsoft.com, stackoverflow.com, youtube.com, discord.com, discord.gg, patreon.com, ko-fi.com, paypal.com, imgur.com, pastebin.com, hastebin.com, vrchat.com, booth.pm and gumroad.com. Anything else is surfaced for you to look at. Plenty of those are harmless, a creator's own website among them, so this one is a prompt to read rather than a verdict.
Code patterns
Rated high, because they are destructive or can fetch and run more code:
Process.Start, starting programs from inside a script- References to
cmd.exe,powershellor/bin/sh Assembly.Load, loading and running code that was not in the packageFile.DeleteandDirectory.DeleteWebClientorHttpClientpaired with a download call
Rated medium, because they have honest uses and still deserve a look:
UnityWebRequest,HttpClient, raw socketsSystem.Reflectionandeval(RegistryKeyon WindowsDllImport, calling into native libraries
What a clean scan does not prove
This is the part most tools skip, so read it before you rely on a green result.
- Compiled DLLs are not read. A
.dllin the package is not decompiled in the browser, and a package whose payload is compiled will pass - Allowlisted domains are not flagged. Code that posts to a site on the list goes unremarked
- It matches patterns, not intent. Split, encoded or generated strings can express the same call without matching
- Big script files are skipped. Only the first 2 MB of a script is scanned
So a clean result lowers the odds, it does not clear the package. The source still matters more than the scan does.
A package got flagged. Now what?
- Do not import it. The flag came from the package, not from your project, and it stays true
- Read the finding. The scanner shows the matching snippet, and a webhook URL or a
Process.Startin a model pack is not a false positive - Ask the creator for the raw assets instead, so the FBX and the textures without the scripts. A real creator will send them
- If you already imported it, assume anything reachable from that machine is exposed. Rotate the credentials that were on it, starting with the account the package was aimed at
Extract instead of importing
Unity runs scripts on import. Extraction does not, so pulling the files out and looking at them first breaks the chain that makes this attack work. Getting the files out of a package covers what comes back per file type, and the safe extraction guide is the short reference version of this page.