Posts

Showing posts with the label AISA CTF 2015

Tolkien Ring - Suricatta Regatta Walkthrough

Image
" Help detect this kind of malicious activity in the future by writing some Suricata rules. Work with Dusty Giftwrap in the Tolkien Ring to get some hints." Challenge Difficulty: 3/5   Progressing further with the challenge after completing Windows Event Logs , we speak to Fitzy shortstacks and we are being asked to write sruicatta rules which will alert on specific traffic. If this is your first introduction to suricatta rules, below is a quick primer before we get to the solutions. Based on the learning from the suricatta site , below is the rule schema <action> alert, pass, reject…… - defines the action you would like the system to take when you rule hits the condition <protocol> dns, snmp…… - defines on which protocol you would like this rule to be active on <source> can be a specific source IP or any <port> can be a specific source Port or any <direction>   -> -< <>    -defines the direction of the traffic <desti...

Go Hunting for Malware

Image
Another Interesting Challenge from AISA CTF that I would like to blog about, is the final forensic challenge to find the following information, out of a malware infected system's memory dump The Process ID of the malicious process ? The Process ID of any spawned child processes ? The date and time of when the initial Process ID was created ? The attackers IP address ? The port number the victim is connecting back to ? The URL the user visited that let to the initial infection ? And was provided with the memory dump "memoryisthekey.dmp" So the above file is a RAM dump of the system after the infection, so then volatility is the best tool in further analyzing the dump First we need to identify what profile we need to use with volatility. example: WINXP or 7, etc So then i picked "Win7SP0x86", since there was not much changes between SP1 and SP0 memory storage Lets check the process tree to identify the malicious process Now the following processes were the ones i ...

Code review and Exploit

Image
As a part of the exploitation challenge in AISA 2015 CTF was given connection details to an server & code which the server is running. Goal is to exploit and find an 64 bit flag Code snippet the server running File "my_stack", upon execution locally the following is the result This specific code has where exactly 1016 random bytes would print us the flag as per our "if" clause in the code snippet Now lets create an string of 1016 bytes Time to connect to the server and exploit We can see the 64 bit flag has been printed as per the code. Now we can further use the memory space to host our own payload for persistance.