Cybersecurity researchers have uncovered a brand new stealthy piece of Linux malware that leverages an unconventional approach to realize persistence on contaminated methods and conceal bank card skimmer code.
The malware, attributed to a financially motivated risk actor, has been codenamed sedexp by Aon’s Stroz Friedberg incident response providers workforce.
“This superior risk, lively since 2022, hides in plain sight whereas offering attackers with reverse shell capabilities and superior concealment techniques,” researchers Zachary Reichert, Daniel Stein, and Joshua Pivirotto mentioned.
It isn’t shocking that malicious actors are always improvising and refining their tradecraft, and have turned to novel strategies to evade detection.
What makes sedexp noteworthy is its use of udev guidelines to take care of persistence. Udev, alternative for the System File System, gives a mechanism to establish gadgets based mostly on their properties and configure guidelines to reply when there’s a change within the machine state, i.e., a tool is plugged in or eliminated.
Every line within the udev guidelines file has not less than as soon as key-value pair, making it attainable to match gadgets by title and set off sure actions when varied machine occasions are detected (e.g., set off an automated backup when an exterior drive is connected).
“An identical rule could specify the title of the machine node, add symbolic hyperlinks pointing to the node, or run a specified program as a part of the occasion dealing with,” SUSE Linux notes in its documentation. “If no matching rule is discovered, the default machine node title is used to create the machine node.”
The udev rule for sedexp — ACTION==”add”, ENV{MAJOR}==”1″, ENV{MINOR}==”8″, RUN+=”asedexpb run:+” — is about up such that the malware is run at any time when /dev/random (corresponds to machine minor quantity 8) is loaded, which generally happens upon each reboot.
Put in another way, this system specified within the RUN parameter is executed each time after a system restart.
The malware comes with capabilities to launch a reverse shell to facilitate distant entry to the compromised host, in addition to modify reminiscence to hide any file containing the string “sedexp” from instructions like ls or discover.
Stroz Friedberg mentioned within the cases it investigated, the potential has been put to make use of to cover net shells, altered Apache configuration information, and the udev rule itself.
“The malware was used to cover bank card scraping code on an internet server, indicating a deal with monetary acquire,” the researchers mentioned. “The invention of sedexp demonstrates the evolving sophistication of financially motivated risk actors past ransomware.”