Detection
How mods send stolen data out
Stolen data is only useful once it is delivered. Attackers prefer channels that look like normal traffic, such as a chat webhook or a popular file host.
Rules in this family
exfil.file-drop: uploads to anonymous file hosts.exfil.telegram-bot: posts to a Telegram bot API.exfil.websocket: streams data over a WebSocket.exfil.tunnel-host: uses a tunnelling service.exfil.ip-lookup: looks up the victim's public IP.exfil.server-socket: opens a listening socket.
Discord webhooks are matched through the network rules together with what is being sent. A mod that contacts the Modrinth API for update checks is not the same as one that posts your token to a webhook.
Related reading
One finding is a lead, not a verdict. RatOrNot combines these signals and follows the call path from the mod entrypoint, so a mod that reads a value to display it scores very differently from one that sends it away. See false positives in jar scanners, or scan a mod now.
