CyberSecurity Blog

Various Posts around Cyber Sec

View on GitHub

HTB and Vulnhub: An OSWE Approach

Preface

I hope that this post would be beneficial to anyone preparing for OSWE. It’s not an AWAE review, nor an OSWE Exam review. It’s my personal answer to the question:

Is it possible to prepare for the OSWE Exam with HTB or Vulnhub?

Why?

While preparing for an exam, it’s common use among us to try and get any useful information or additional practice to ensure us the best probabilities to achive success. Nobody likes to fail. While I was preparing for the various Offensive Security certification exams I saw quite a good number of attempts to compare OSCP/OSCE/OSWE with other courses or pre-built machines on HTB and Vulnhub. To have a clearer understanding of what I am talking about you can take a look at the very good Excel Sheet done by NetSecFocus at:

NetSecFocus Trophy Room

Overview

While I honestly think that playing HTB and similar is very useful in general, I’m not sure about recommending it for certs like OSCE and OSWE. Why? It’s very simple, OS.E certs are not meant to be purely black box, especially OSWE. While in OSCE you can debug the service you are testing, in OSWE you can both debug and access the code of the application you’re testing.

Indeed, the main focus of the AWAE course is finding more subtle vulnerabilities using source code analysis techniques. The learning objective is to understand how to review a big or huge codebase in a timeboxed window. With that in mind, trying to exploit HTB machines, which are completely unaccessible without exploiting them in the first place, it’s almost a non sense activity (for OSWE-specific preparation, of course). VulnHub can be seen as a better option, as the underlying filesystem can be accessed without prior exploitation of the VM, but the main problem is that usually web applications used in VulnHub machines are challenging as long as their code is uknown, and do not provide the level of complexity that real web applications have.

That said, let’s start taking a look at the machines proposed by NetSecFocus.

HTB

Falafel and Popcorn
Vault
Blocky
Arkham
Summary

Wrapping up the above info, I would say that only Arkham (up to user shell) and Blocky (also up to user shell) are worth for OSWE preparation.

For anyone else, they are fairly funny machines (mostly vault and arkham).

VulnHub

Pipe
Raven2
Homeless
Ted
Flick2

Who I am

I’m a just another-security-passionate with an insatiable hunger for knowledge.