stoicsurgeon

Equation Group Research

COTTONAXE

COTTONAXE is a shell script that will “backup” important files on a LiteSpeed Web Server to a hidden directory. Capabilities include compression (bzip2, compress or gzip is supported), filtering (using grep regexes) to only record important statements and filter out unimportant stuff. The original file can also be NULLed ( > file trick). Important files like /etc/shadow are pulled completely every time it changes (using cksum command). It will also periodically perform the command netstat -antpu (it can be any command really but this one was found hardcoded).

Given that there are missing indexes in the list of files to monitor, it is save to say that it is not only used for LiteSpeed Web Server monitoring but generic monitoring on Unix hosts. COTTONAXE allows an operator to easily monitor any file. COTTONAXE is also mentioned in the “autologtool” script, which gives extra weight to the idea that is a generic tool.

Hardcoded values