{"id":6855,"date":"2022-06-03T20:03:33","date_gmt":"2022-06-03T18:03:33","guid":{"rendered":"http:\/\/dcg420.org\/?p=6855"},"modified":"2022-06-03T20:28:07","modified_gmt":"2022-06-03T18:28:07","slug":"en_howto_vectr_setup","status":"publish","type":"post","link":"https:\/\/www.dcg420.org\/en\/en_howto_vectr_setup\/","title":{"rendered":"(ENG) How to setup VECTR for Purple teaming (Adversary emulation)"},"content":{"rendered":"<div class=\"bt_rc_container\"><p>It is very important to document all the related activities in order to monitor and evaluate the Red team and Blue team campaigns within Purple teaming, and especially to evaluate the readiness of the processes, people and tools themselves. <strong><a href=\"https:\/\/sra.io\/vectr\/\">SRA<\/a><\/strong>&#8218;s VECTR tool serves exactly this purpose. However, as you will see later, it is not only a passive tool recording the progress of your teams, but it is also a gradually developing automated test framework (although it is still in its infancy).<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-weight: 400;\">Installation and setup of the VECTR tool is very simple and time-saving. We can safely say that from a clean Ubuntu installation, to which we will add VECTR, you can do it in a few minutes.<\/p>\n<p style=\"font-weight: 400;\"><strong>Requirements:<br \/>\n1x Ubuntu<\/strong> <strong>server<\/strong> \u2013 <strong>Recommended<\/strong> configuration\u00a0<strong>6 CPU<\/strong> and <strong>16 GB RAM<\/strong>, but for testing you can get by with <strong>2 CPU<\/strong> and <strong>4 GB RAM<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Instructions:<\/strong><\/p>\n<p>If you have Ubuntu server 20.04 or higher installed, the only command you will need is:<\/p>\n<p style=\"font-weight: 400;\"><strong>$ sudo apt-get install docker.io docker-compose unzip<\/strong><\/p>\n<p style=\"font-weight: 400;\">Create a folder for VECTR and download the latest repo from github:<\/p>\n<p style=\"font-weight: 400;\"><strong>$ mkdir -p \/opt\/vectr<\/strong><\/p>\n<p style=\"font-weight: 400;\"><strong>$ cd \/opt\/vectr<\/strong><\/p>\n<p style=\"font-weight: 400;\"><strong>$ wget https:\/\/github.com\/SecurityRiskAdvisors\/VECTR\/releases\/download\/ce-8.3.2\/sra-vectr-runtime-8.3.2-ce.zip -P \/opt\/vectr<\/strong><\/p>\n<p style=\"font-weight: 400;\"><strong>$ unzip sra-vectr-runtime-8.3.2-ce.zip<\/strong><\/p>\n<p style=\"font-weight: 400;\">Of course, the version may vary depending on when you are reading this, so check the latest version available at:<\/p>\n<p style=\"font-weight: 400;\"><strong><a href=\"https:\/\/github.com\/SecurityRiskAdvisors\/VECTR\/releases\">Releases \u00b7 SecurityRiskAdvisors\/VECTR (github.com)<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-weight: 400;\">Before running the docker compose you need to edit the env file:<\/p>\n<p><strong>$ sudo nano .env<\/strong><\/p>\n<p><img \/><img \/><img loading=\"lazy\" class=\"size-full wp-image-6838 aligncenter\" src=\"http:\/\/dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_1.png\" alt=\"\" width=\"624\" height=\"574\" srcset=\"https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_1.png 624w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_1-320x294.png 320w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_1-540x497.png 540w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p>Modify the file according to your environment, there is only one condition for VECTR to work, and that is to change the hostname, where you can use the IP address. We recommend you to change other data especially if you are moving VECTR to production.<\/p>\n<p>Now you can safely enter the compose command:<\/p>\n<p style=\"font-weight: 400;\"><strong>$ sudo docker-compose up -d<\/strong><\/p>\n<p style=\"font-weight: 400;\">This command will download all necessary dockers and will starts them. You can then go to the address you specified in the env configuration file.<\/p>\n<p><img \/><img loading=\"lazy\" class=\"aligncenter wp-image-6839 size-full\" src=\"http:\/\/dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_2.png\" alt=\"\" width=\"624\" height=\"394\" srcset=\"https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_2.png 624w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_2-320x202.png 320w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_2-540x341.png 540w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p style=\"font-weight: 400;\">Use the default credentials for the first login:<\/p>\n<p style=\"font-weight: 400;\"><strong>Username: <\/strong>admin<\/p>\n<p style=\"font-weight: 400;\"><strong>Password: 11_ThisIsTheFirstPassword_11<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-weight: 400;\"><strong>After logging in, click through the wizard to learn the basic operations in VECTR. Once you&#8217;ve clicked through, you&#8217;ll find that apart from a few model examples, VECTR is empty, so ideally&#8230;<\/strong><\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-weight: 400;\"><strong>Import of MITRE CTI <\/strong><\/p>\n<p style=\"font-weight: 400;\">There is nothing easier in VECTR and the procedure is therefore very simple:<\/p>\n<p>1. Go to <strong><a href=\"https:\/\/github.com\/mitre\/cti\">MITRE CTI\u00a0<\/a><\/strong>&#8211; see what you can find there, or go straight to:<br \/>\n2. Download the <a href=\"https:\/\/github.com\/mitre\/cti\/blob\/master\/enterprise-attack\/enterprise-attack.json\"><strong>Enterprise ATT&amp;CK<\/strong><\/a> file.<br \/>\n3. In VECTR, go to <strong>Administration<\/strong> &#8211; <strong>Import<\/strong> <strong>Data<\/strong> &#8211; <strong>File<\/strong> <strong>Import<\/strong>.<\/p>\n<p><img \/><img loading=\"lazy\" class=\"size-full wp-image-6840 aligncenter\" src=\"http:\/\/dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_3.png\" alt=\"\" width=\"624\" height=\"304\" srcset=\"https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_3.png 624w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_3-320x156.png 320w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_3-540x263.png 540w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p>4. Drag the downloaded file into the<strong> Drag &amp; Drop your files<\/strong> or <strong>Browse<\/strong> section, or simply click on this area and select the downloaded file in the classic dialog.<\/p>\n<p>5. Once the upload to VECTR is complete, click <strong>Submit<\/strong> to pull in all the information about APT groups, TTP tools, etc.<\/p>\n<p>6. Select what you want to import into VECTR from the list that appears, if you import the entire file all of the content will be available for you to test later.<\/p>\n<p>7. After importing, you can start a new campaign by simply clicking on <strong>Assessment<\/strong> in the left menu &#8211; the large button <strong>Create new<\/strong>.<\/p>\n<p><img \/><img loading=\"lazy\" class=\"size-large wp-image-6841 aligncenter\" src=\"http:\/\/dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_4-1200x494.png\" alt=\"\" width=\"1200\" height=\"494\" srcset=\"https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_4-1200x494.png 1200w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_4-320x132.png 320w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_4-768x316.png 768w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_4-540x222.png 540w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_4.png 1430w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>8. Give your campaign a name and add a detailed description if you want. It is important to select <strong>MITRE<\/strong>\u00a0<strong>organization<\/strong> to shorten the list of available campaigns. <strong>Select your campaign<\/strong> and click <strong>Save<\/strong>.<\/p>\n<p><img \/><img loading=\"lazy\" class=\"size-large wp-image-6842 aligncenter\" src=\"http:\/\/dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_5-1200x584.png\" alt=\"\" width=\"1200\" height=\"584\" srcset=\"https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_5-1200x584.png 1200w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_5-320x156.png 320w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_5-768x374.png 768w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_5-540x263.png 540w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_5.png 1430w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>9. Your assessment will appear in the overview, after clicking on the <strong>campaign<\/strong> you will see its details and the individual parts of the campaign. Congratulations you can start your testing.<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-6843 aligncenter\" src=\"http:\/\/dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_6.png\" alt=\"\" width=\"624\" height=\"208\" srcset=\"https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_6.png 624w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_6-320x107.png 320w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_6-540x180.png 540w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><img \/><\/p>\n<p><img \/><img loading=\"lazy\" class=\"size-full wp-image-6844 aligncenter\" src=\"http:\/\/dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_7.png\" alt=\"\" width=\"624\" height=\"304\" srcset=\"https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_7.png 624w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_7-320x156.png 320w, https:\/\/www.dcg420.org\/wp-content\/uploads\/2022\/05\/VECTR_7-540x263.png 540w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p style=\"font-weight: 400;\">If something doesn&#8217;t work,\u00a0<a href=\"https:\/\/www.dcg420.org\/en\/onas\/contact\/\"><strong>contact us<\/strong><\/a>. thanks.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>It is very important to document all the related activities in order to monitor and evaluate the Red team and Blue team campaigns within Purple teaming, and especially to evaluate the readiness of the processes, people and tools themselves. SRA&#8218;s VECTR tool serves exactly this purpose. However, as you will see later, it is not [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":6835,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[88,95,103,104,105,106],"tags":[91,90,96,107],"_links":{"self":[{"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/posts\/6855"}],"collection":[{"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/comments?post=6855"}],"version-history":[{"count":2,"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/posts\/6855\/revisions"}],"predecessor-version":[{"id":6857,"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/posts\/6855\/revisions\/6857"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/media\/6835"}],"wp:attachment":[{"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/media?parent=6855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/categories?post=6855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dcg420.org\/en\/wp-json\/wp\/v2\/tags?post=6855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}