Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Owner: User #14587612
SOHO Triage
When a new target is identified by COG, some initial analysis must be done to understand what implant(s) are best suited to the device. This article explains how to conduct this initial triage. After this is complete, further testing of the implant must be performed with the environment matching the target (e.g. firmware version, encapsulation type, etc.)
Step-by-step guide
These steps assume COGComputer Operations Group has provided the make/model of the device, and ideally the firmware version running on it.
- Install pre-req software. These can be downloaded, User #14587612 also has copies on Devlan. Installation instructions are inclucded in each
- firmware-mod-kit (FMK(
- binwalk
- sasquatch
- Download firmware from the target device manufacturer's website. It's good OPSEC to use 4star exit points on other than DC.
- Note that often manufacturer's differentiate HW versions within a particular device model, and had different firmware for it. It's not often that they radically change the OSOperating System or architecture between HW versions, but it has happened. If you don't know the HW version, grab one firmware version of each so that you can compare
- Use firmware-mod-kit to attempt to extract the firmware image.
- /opt/firmware-mod-kit/extract-firmware.sh <file>
- If you get an error during extraction, see below.
- Navigate to the fmk/ dir to the extracted file system and attempt to determine the OS. If FMK was able to successfully extract, it's probably Linux running busybox and some version of uClibc. In this case, Cannoli is probably a good implant to use.
- Look for executables in the filesystem (e.g. /usr/sbin, /bin). Run "file <executable>". The results will tell you the instruction set architecture (ISA) that the device uses
- Download the appropriate cross compiler toolchain from www.uclibc.org/downloads/binaries. This dir contains cross compilers for the latest uclibc version. The preferred way to build Cannoli is statically (also the default in the Makefile), so that there are no dependencies on the (very likely) older uclibc version running on the target device.
- Some manufacturers also GPL their toolchain and code for a device. You can search their website for the GPL center and check if they have a toolchain available for your particular target. Most of the time this is unneccesary and the uclibc cross-compiler will work just as well (and be easier to install if you grab the binaries vice compiling the toolchain yourself)
- Extract the latest Cannoli delivery into a dir you create for the op (use JQJ crypt to keep them organized).
- Extract the cross-compiler from step 6 into <cannoli root>/cross-compilers/cross-compiler-<arch>/
- Open Makefile in your favorite text editor. Modify "export PATH=" and "GCC_PREFIX=" to point to your cross-compiler extracted in step 8.
- From the Cannoli root directory, run make clean && make to build Cannoli.
- Navigate to <cannoli root>/build/client/ and <cannoli root>/build/server/. These contain the implant and LPListening Post respectively.
Related articles
('contentbylabel' missing)
('details' missing)