Detection
Remote access, screenshots and keyloggers in mods
A remote-access trojan keeps a connection to its operator and does what it is told: run a command, take a picture, send a file. It is the opposite of a one-shot stealer.
What the behaviour looks like
A socket to a host and port, a loop that reads one command per line, and a switch that dispatches to process creation, the screen-capture API, the clipboard or file upload. Surveillance variants record keystrokes, hook the keyboard, or watch the clipboard for copied crypto addresses and swap them.
Rules in this family
exec.shell: a process or shell is started.exec.shell-network: a command is taken from the network and executed.exec.hidden-shell: a shell is started without a visible window.exec.script-engine: a script engine evaluates text as code.exfil.server-socket: the mod opens a listening socket.surv.screenshot: the screen is captured.surv.screenshot-network: a capture is sent over the network.surv.webcam: a webcam is opened.surv.global-key-hook: system-wide keyboard hooks.surv.keyboard-mixin-network: a keyboard mixin that also uses the network.surv.clipboard-network: the clipboard is read and sent.surv.clipper: clipboard contents are replaced, a crypto clipper pattern.
Related reading
What is a Minecraft RAT and WeedHack, whose paid tiers reportedly add remote screen and webcam access.
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.
