Linux incident response UAC tool Installation...
Download link of uac tool:
https://github.com/tclahr/uac
https://github.com/tclahr/uac/releases
This tool does not need to be installed on the target/compromised system. Just ship the tool there and collect artefacts. Please download the latest release of the tool from the above link. You will get the tool under Assets section for example named as: uac-3.3.0.tar.gz
Setting up uac tool:
Taking the tool to the victim/compromised machine:
scp uac-3.3.0.tar.gz lab@192.168.10.135:/tmp
scp uac-3.3.0.tar.gz lab@192.168.10.135: (If you do not give /tmp then the tool will be placed under that lab user home directory. Now provide the password of the target system)
ssh lab@192.168.10.135 (Access the target system with creds)
cd /tmp
tar zxf uac-3.3.0.tar.gz
cd uac-3.3.0/
sudo ./uac -p ir_triage /root (Run the tool using root user or with sudo privilege. -p for profile. This is default profile. Later we will see how to make customized profile. Captured artifacts will be saved on /root directory)
ls -lh /root/uac-LAB-linux-*
It will be saved in this format --> uac-LAB-linux-20220701212047.tar.gz
Now time to check and analyze the result. You can transfer the tool in your analysis machine.
mkdir uac-LAB-linux-output
cd uac-LAB-linux-output/
tar zxf ../uac-LAB-linux-20220701212047.tar.gz (This will be on /root/ directory)
Now we will be creating customized uac profile:
git clone https://github.com/tclahr/uac.git
cd uac
ls -l uac
chmod +x uac
./uac -h
cd profiles
You will get two profiles there. full.yaml and ir_triage.yaml
Copy this file ir_triage.yaml with another name and start editing.
cp profiles/ir_triage.yaml profiles/ir_triage_memory.yaml
Now edit this file ir_triage_memory.yaml using vim. This file contains list of artifacts that the tool will collect. We want this tool will capture the memory of the target system every time. In the artifacts directory, you will get every thing that the tool suppose to collect.
artifacts:
- memory_dump/avml.yaml
- live_response/process/ps.yaml
- live_response/process/lsof.yaml
- live_response/process/top.yaml
Avi
Comments
Post a Comment