I was playing with a Netscaler on my home lab and came across a few things that I wanted to quickly document. TLDR I have a script for imaging and mounting, and if you want to use Autopsy you need to modify the persistent disk slightly.
Imaging
Imaging a netscaler is fairly simple, and a few months ago I put together this imaging python script.
It’s fairly simple – make sure you can hit the host via SSH and then you can auth via password or cert and it’ll take care of the rest. You end up with two images to cover both disks (more on that later).
I’ve used it a few times and it seems to work well.
I’m weighing up whether to also get the script to run the tech support package (either pre or post imaging). Have to weigh up the right decision here as you would lose some unallocated space by doing it first, or you’d mess with memory taking it second.
Accessing the collected data
Your options for accessing the collected data are mounting on Linux or using a forensic suite. In my experience, mounting is a bit more reliable – using a forensics suite in the past has worked, but sometimes will silently drop data.
There’s some instructions for mounting netscaler disks here but (a)I wrote a slightly different method into a bash script to work on Linux. I’ve only briefly tested it, and it will only work on disks created with the imaging script. If you export a VMDK instead of imaging the DA0 disk you’ll probably need to change some stuff.
Autopsy
I briefly tried to use Autopsy to see how it would go with a Netscaler image. I came across a fun problem, and I haven’t thoroughly investigated it; however it does demonstrate why I prefer to rely on Linux instead.
Netscalers are made up of two disks – MD0, which is a RAM Disk, and DA0 which is persistent storage. When the Netscaler is turned on it loads MD0 into RAM as / and then takes three partitions from DA0 and loads them into various mountpoints (/flash, /var, and /proc).
If you take a plain DA0 and load it into Autopsy, you will see data, but you will not see all the data. Thankfully, someone on Github has raised the issue and provided a workaround. Unfortunately this was raised 5 years ago and there are a significant number of issues and pull requests for the team to work their way through so we may need to rely on the workaround for a while.
In the image below you can see two copies of DA0; the bottom one is loaded straight in and the top one is the one that is edited. As you can see, the edited version shows you more partitions (and data!)

Note: I have not done a full comparison – the modified image looked right, but could still be missing stuff.
It’s good we have a work around, but it’s also a valuable lesson – just because it looks fine, doesn’t mean it isn’t. This is especially important when imaging appliances because I guess they do things a little differnet.