{"id":3978,"date":"2024-03-25T20:41:29","date_gmt":"2024-03-26T00:41:29","guid":{"rendered":"https:\/\/dft.wiki\/?p=3978"},"modified":"2024-03-26T11:42:53","modified_gmt":"2024-03-26T15:42:53","slug":"practising-red-teaming-adversary-emulation","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=3978","title":{"rendered":"Practising Red Teaming (Adversary Emulation)"},"content":{"rendered":"<p>Red teaming is an authorised emulation of real attackers&#8217; TTPs (Tactics, Techniques and Procedures) from MITRE ATT&amp;CK, pretending to be a threat actor, and attempting intrusion against an organisation.<\/p>\n<hr \/>\n<p><strong>ATOMIC READ TEAM<\/strong><\/p>\n<p><strong>Atomic Read Team<\/strong> is a tool that allow to easily run &#8220;fake&#8221; attacks based on known TTPs in order to test detection and prevention systems [<a href=\"https:\/\/github.com\/redcanaryco\/atomic-red-team\">Link<\/a>]. It used a PoweShell module called Invoke-AtomicRedTeam to execute the desired attack&#8217;s procedure [<a href=\"https:\/\/github.com\/redcanaryco\/invoke-atomicredteam\">Link<\/a>].<\/p>\n<p>Install Execution Framework Only<\/p>\n<pre>Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUser<\/pre>\n<p>Install Execution Framework and Atomics Folder<\/p>\n<pre>IEX (IWR 'https:\/\/raw.githubusercontent.com\/redcanaryco\/invoke-atomicredteam\/master\/install-atomicredteam.ps1' -UseBasicParsing);\r\nInstall-AtomicRedTeam -getAtomics -Force<\/pre>\n<p>Importing the Module in the PowerShell Session<\/p>\n<pre>Import-Module \"~\\AtomicRedTeam\\invoke-atomicredteam\\Invoke-AtomicRedTeam.psd1\" -Force<\/pre>\n<p>List Atomic Tests and Check Any<\/p>\n<pre>Invoke-AtomicTest All -ShowDetailsBrief\r\nInvoke-AtomicTest All -ShowDetailsBrief -anyOS<\/pre>\n<pre>Invoke-AtomicTest T1016-8 -ShowDetailsBrief\r\nInvoke-AtomicTest T1016-8 -ShowDetails\r\nInvoke-AtomicTest T1016-8 -CheckPrereqs<\/pre>\n<p>Then, Execute!<\/p>\n<pre>Invoke-AtomicTest T1016-8\r\nInvoke-AtomicTest T1016-8 -PromptForInputArgs\r\nInvoke-AtomicTest T1016-8 -Interactive<\/pre>\n<p>Other Options<\/p>\n<pre>Invoke-AtomicTest T1089 -Cleanup\r\nInvoke-AtomicTest T1218.010 -ExecutionLogPath 'C:\\log.csv'\r\nInvoke-AtomicRunner -listOfAtomics .\\testsList.csv -PauseBetweenAtomics 30<\/pre>\n<p>Start the Atomic GUI<\/p>\n<pre>Start-AtomicGUI<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3999\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screen-Shot-2024-03-25-at-8.36.58-PM.png\" alt=\"\" width=\"1385\" height=\"706\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screen-Shot-2024-03-25-at-8.36.58-PM.png 1385w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screen-Shot-2024-03-25-at-8.36.58-PM-300x153.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screen-Shot-2024-03-25-at-8.36.58-PM-1024x522.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screen-Shot-2024-03-25-at-8.36.58-PM-768x391.png 768w\" sizes=\"auto, (max-width: 1385px) 100vw, 1385px\" \/><\/p>\n<hr \/>\n<p><strong>CALDERA<\/strong><\/p>\n<p><strong>Caldera<\/strong> is an Automated Adversary Emulation Platform developed by MITRE [<a href=\"https:\/\/caldera.mitre.org\/\">Link<\/a>]. Its code can be found at [<a href=\"https:\/\/github.com\/mitre\/caldera\">Link<\/a>].<\/p>\n<p>Both, Red and Blue teams can use this platform to install their Agents and monitor the operations occur.<\/p>\n<p>Install and start Caldera on Kali<\/p>\n<pre>sudo apt install caldera -y\r\ncaldera<\/pre>\n<p>Note the credentials for both teams on the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4006\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-46.png\" alt=\"\" width=\"1001\" height=\"219\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-46.png 1001w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-46-300x66.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-46-768x168.png 768w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/p>\n<p>Navigate to <strong>http:\/\/localhost:8888\/<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4007 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-03.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-03.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-03-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-08-03-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<p>Each team (Red and Blue) will have its own dashboard but they both look and work the same way:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4009 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-09-09.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-09-09.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-09-09-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-09-09-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4008 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-17.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-17.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-17-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-17-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<p>Setup the Agents.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4010\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-30.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-30.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-30-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-10-30-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<ul>\n<li>Important points to setup:\n<ul>\n<li>Select the Agent based on criteria like the desired communication protocol: TCP, HTTP, HTTPS, etc.<\/li>\n<li>Enter the IP or hostname of Caldera Server and make sure it is reachable from the Agents.<\/li>\n<li>It will produce multiple deployment commands that can copied and pasted on the end-points (Agents):\n<ul>\n<li>Caldera&#8217;s default Red team&#8217;s agent,<\/li>\n<li>Blue team&#8217;s agent,<\/li>\n<li>With a randomised name for quick start in background,<\/li>\n<li>One that compiles in the end-point (requires GoLang),<\/li>\n<li>Another that uses GIST C2,<\/li>\n<li>And one that is capable of P2P communication.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Check the Adversary Profiles and define what will be emulated.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4011\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-13.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-13.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-13-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-13-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<ul>\n<li>Important points to setup:\n<ul>\n<li>Re search the Abilities database for TTPs that match the organisation attach surface.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Create an Operation with the Adversary Profile chosen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4014\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-41.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-41.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-41-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-13-41-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<ul>\n<li>Important points to setup:\n<ul>\n<li>Study what adversaries are more likely to target your organisation or industry.\n<ul>\n<li>The adversaries are based on real threat actors observer behaviours and their abilities.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Create an Operation with the Adversary Profile chosen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4012\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-14-07.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-14-07.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-14-07-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-14-07-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<ul>\n<li>Important points to setup:\n<ul>\n<li>Create a new Operation and select the Adversary you want to emulate.<\/li>\n<li>Adjust the desired obfuscation level and how much noise it will cause in the network.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4015\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-15-30.png\" alt=\"\" width=\"1023\" height=\"686\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-15-30.png 1023w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-15-30-300x201.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2024\/03\/Screenshot-from-2024-03-26-10-15-30-768x515.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/p>\n<p>Now, monitor the operation as it unfolds.<\/p>\n<hr \/>\n<p><strong>BONUS<\/strong><\/p>\n<p>Run Atomic Red Team from a Container with:<\/p>\n<pre>docker run -it redcanary\/invoke-atomicredteam:latest<\/pre>\n<p>Run Caldera from a Container with:<\/p>\n<pre>docker run -it -d mitre\/caldera<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Red teaming is an authorised emulation of real attackers&#8217; TTPs (Tactics, Techniques and Procedures) from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-3978","post","type-post","status-publish","format-standard","hentry","category-hacking"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3978"}],"version-history":[{"count":10,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3978\/revisions"}],"predecessor-version":[{"id":4017,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3978\/revisions\/4017"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}