{"componentChunkName":"component---src-pages-library-red-team-chronicles-js","path":"/library/red-team-chronicles/","result":{"data":{"allWordpressWpRedTeamChronicles":{"edges":[{"node":{"id":"2a4a728d-5ce7-56f2-a24e-97e90239476a","slug":"the-one-where-failed-to-break-in","title":"The one where I failed to break in","content":"\n<p>T’was a Monday morning. A new assessment was about to begin.</p>\n\n\n\n<p>I am no fan of Monday mornings, but assessment mornings are pure adrenaline. I woke up a little early that day to double-check if all the assessment infrastructure was up and running. Tea and <a href=\"http://reddit.com/r/netsec\">r/netsec</a> are my morning rituals before leaving home.</p>\n\n\n\n<p>On my way to the assessment, I had my Amazon Music (yeah, I know, sue me) tuned to System of a Down radio. It helps me get into the zone. I recommend <a href=\"https://www.youtube.com/watch?v=L-iepu3EtyE\">Aerials</a>; there is something weirdly poetic about that song.</p>\n\n\n\n<h3><strong>The goal</strong></h3>\n\n\n\n<p>My goal was straightforward – break into the customer database server without getting caught. I had five days. It was showtime.</p>\n\n\n\n<p>It had been a good year. Red teams live and die by their outcomes. And up until then, I had hit nothing but net. There is comfort in the mindset that there is always a way in.&nbsp; I had no reason to believe today would be any different. I was about to learn otherwise.</p>\n\n\n\n<h3><strong>Getting started</strong></h3>\n\n\n\n<p>Within an hour, I could remotely control a machine within the organization over the Internet. I had a tried and tested payload that had worked well in the prior months against most perimeter detection solutions.</p>\n\n\n\n<p>Excel DDE → Starts CMD → Starts a download lolbin (like bitsadmin) → fetches encrypted payload → load in memory → decrypt payload → execute → Call back.</p>\n\n\n\n<p>I was able to cross the first hurdle with ease.</p>\n\n\n\n<h3><strong>Day 1 &#8211; Chasing the keys to the kingdom</strong></h3>\n\n\n\n<p>I had access to an account that did not have administrative privileges on my machine or, for that matter, anywhere else. I also had no idea where the database server was.</p>\n\n\n\n<p>The obvious strategy was to try and compromise the domain. If I could get the keys to the kingdom, then accessing the database server would only be a matter of time, patience, and persistence.</p>\n\n\n\n<p>Right off the bat, I executed what many of us consider a lucky charm these days – Kerberoasting</p>\n\n\n\n<p>A kerberoastable domain admin meant I had a high likelihood of owning the domain by lunchtime.</p>\n\n\n\n<p>So thanks to <a href=\"https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1\">HarmJ0y’s Powerview script</a>, I had the list of kerberoastable accounts and hashes. Unfortunately, none of them were Domain Admins, Enterprise Admins, or accounts that would allow a possibility to compromise the domain.</p>\n\n\n\n<p>My heart sank when I got the list of domain admins – <em>just one</em>.</p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/1-RTC.png\" alt=\"\" class=\"wp-image-18695\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/1-RTC.png 220w, https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/1-RTC-150x150.png 150w\" sizes=\"(max-width: 220px) 100vw, 220px\" /></figure></div>\n\n\n\n<p>One domain admin is a rarity. The least I had seen before was five. And five is any day better than one (for a red teamer, that is). I ran a quick check of the domain admin properties, and my heart sank further.</p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/2-RTC.png\" alt=\"\" class=\"wp-image-18696\"/></figure></div>\n\n\n\n<p>Logon restrictions to the domain controllers only! This meant that there was no chance of finding domain admin exposed credentials anywhere else.</p>\n\n\n\n<p>This was going to be more difficult than I thought.</p>\n\n\n\n<p>Of the seven kerberoastable accounts, I only managed to crack one.</p>\n\n\n\n<p>And as far as I could analyze based on its group memberships and properties, it did not appear to have anything of value. In fact, I could not even reach the machine on which the service was supposedly configured.</p>\n\n\n\n<p>I decided to park this route for the time being as it was already past lunchtime on day 1.</p>\n\n\n\n<h4><strong>The quick hit list</strong></h4>\n\n\n\n<p>Candidly writing, I was both annoyed and impressed at how the accounts with the tasty privileges were locked down. So next up was my trusty quick hit list:</p>\n\n\n\n<ol><li>Local privilege escalation</li><li>UAC bypass</li><li>Misconfigured paths and services</li><li>LLMNR using Invoke-Inveigh</li><li>GPP</li><li>SMBv1 checks</li></ol>\n\n\n\n<p>Nothing. Zilch. Zippo. Nada.</p>\n\n\n\n<p>No LLMNR struck me as especially weird. Was I on a sparsely populated subnet? A quick local segment scan showed that Port 135 and 445 were locked down. I could only see the RDP port. And there were about 100 hosts that were live. Maybe I just had to be patient. I decided to keep it running for a while.</p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/3-RTC.png\" alt=\"\" class=\"wp-image-18697\"/></figure></div>\n\n\n\n<h3><strong>Day 2 to 4 &#8211; Going Hunting</strong></h3>\n\n\n\n<p>It was already day 2, and I had nothing to show for my time there.</p>\n\n\n\n<p>Though it was time to switch gears and try something else, I could not just go waltzing through the network as it could trip a SIEM rule or the EDR, and I certainly did not want to get caught. Normally, I would take the risk, but experience told me that if someone had locked down the network so well, they knew what they were defending against.</p>\n\n\n\n<p>I needed a clear plan of action and have multiple tasks going on at the same time. Here&#8217;s what I decided to do:</p>\n\n\n\n<ol><li>Spend some time understanding the environment. That meant digging deep into Active Directory.</li><li>Find the IP address and hostname of the database server.</li><li>Figure out what credentials were required to log in to the database server.</li><li>Find the credentials to the database server (somehow!).</li><li>BloodHound the network without using BloodHound, so I could find privilege hopping points.</li></ol>\n\n\n\n<p>Lots to do!</p>\n\n\n\n<p>While hunting in Active Directory, I did pick up some interesting targets – Users who could change passwords, modify attributes, create policies, RDP to the server, possible workstation and server administrators, and possible DB administrators.</p>\n\n\n\n<p>I also found computers that could potentially be my target customer database servers, thanks to SPN scanning and hostname keyword searches for “db”, “sql” etc.</p>\n\n\n\n<p>I decided to hunt for these users on the network and see if there was a way to compromise them. I ran user hunting and session enumeration scripts, but I could not enumerate any sessions on the DC.</p>\n\n\n\n<p>NetCease? No way. Just no way. The one thing I had counted on, they took from me.</p>\n\n\n\n<p>File servers were always a good target for session enumeration. Everyone connects there. But it was a NAS device that everyone was mapped to. No session enumeration was possible.</p>\n\n\n\n<p>I felt like I was facing Gandalf.</p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/4-RTC.png\" alt=\"\" class=\"wp-image-18698\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/4-RTC.png 412w, https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/4-RTC-300x146.png 300w\" sizes=\"(max-width: 412px) 100vw, 412px\" /></figure></div>\n\n\n\n<p>Just so you know, if someone kills session enumeration on their network, finding user targets becomes a matter of luck, chance, and brute force. It increases your chances of being detected because you have to expand the footprint of your search.</p>\n\n\n\n<p>I was suffering because I did not have rights.</p>\n\n\n\n<p>You can still enumerate sessions if you are an administrator on the target machine, but I had no admin privileges.</p>\n\n\n\n<p>And to top it off, most of the workstations had blocked WMI and SMB. So even BloodHound would come back empty from workstations.</p>\n\n\n\n<p>I also found that the workstation computers had LAPS attributes! Local administrator password reuse was out of the question now.</p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/5-RTC.png\" alt=\"\" class=\"wp-image-18699\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/5-RTC.png 220w, https://internal-wp.smokescreen.io/wp-content/uploads/2021/01/5-RTC-150x150.png 150w\" sizes=\"(max-width: 220px) 100vw, 220px\" /></figure></div>\n\n\n\n<p>This meant that even if I serendipitously managed to get local admin access on my machine, the local administrator password was useless to me as I couldn’t use it anywhere else!</p>\n\n\n\n<h3><strong>Day 5 &#8211; Expanding the Search</strong></h3>\n\n\n\n<p>Last day of the assessment and I was staring at a bunch of dead ends</p>\n\n\n\n<ul><li>No unconstrained delegation.</li><li>No meaningful credentials from LLMNR</li><li>No ASREPRoasting.</li><li>No scope for AdminSDHolder abuses.</li><li>Of all my DB server targets, four were unreachable. The rest did not have default or common passwords.</li><li>No default passwords on any of the popular targets like Tomcat/JBoss/Jenkins that give you code execution.</li><li>Server Admins had a granular password policy of 15 characters so, I couldn’t guess passwords either.</li><li>Accounts for administrative use and regular use were split.</li><li>SMB was blocked from my network location towards a big chunk of the server zone so, running enumeration against the servers was difficult.</li><li>A bunch of users I wanted to compromise were in the protected users group.</li></ul>\n\n\n\n<p>I did manage to get administrative access to three UAT servers that had “Domain Users” in the administrator&#8217;s group. It seemed like the UAT segment did not have the same rigorous blocks as compared to the production segment.</p>\n\n\n\n<h3><strong>Two truths and a lie</strong></h3>\n\n\n\n<ol><li>At 7:00 pm on day 5, I gave up and called it quits as time was up.</li><li>I went to a bar nearby and had a beer.</li><li>At 5:30 pm on day 5, I got lucky and was able to expand my access to the customer database from the UAT segment by obtaining a backup web.config file that had stored SQL passwords in it.</li></ol>\n\n\n\n<h3><strong>Looking back</strong></h3>\n\n\n\n<p>This story is about all the stuff that was done right.</p>\n\n\n\n<ol><li>Machines were patched for exploits and well-known privilege escalation checks.</li><li>Powerful privileged groups had restricted members and several types of logon restrictions were enforced.</li><li>Fine-grained password policies for key users made password guessing a futile strategy.</li><li>Session enumeration was restricted.</li><li>Administrators to critical servers had additional protections (LSASS Protections, Protect Users Group, etc.), making it very difficult to steal credentials.</li><li>Administrative use and regular use was split, reducing the surface of credential exposure.</li><li>Lateral movement paths were blocked for the user segment. Lateral movement between endpoints was nearly impossible. WMI / SMB were blocked. RDP was too risky an option.</li><li>Critical servers were not accessible from all locations.</li><li>Default passwords for applications did not work.</li></ol>\n\n\n\n<p>Ultimately, I was up against someone who knew how people like me operate. They didn&#8217;t do anything too fancy. They just meticulously removed options from my arsenal. And that&#8217;s half of what Active Defense is all about.&nbsp;<br></p>\n","excerpt":"T’was a Monday morning. A new assessment was about to begin. I am no fan of Monday mornings, but assessment mornings are pure adrenaline. I woke up a little early that day to double-check if all the assessment infrastructure was up and running. Tea and r/netsec are my morning rituals before leaving home. On my […]\n","status":"publish","wordpress_id":18691,"featured_media":{"id":"7cdf6956-c72a-5317-aa0b-e280bea2fa99","source_url":"https://ss-website-content-prod.s3.ap-south-1.amazonaws.com/wp-content/uploads/2021/01/Smokescreen-Red-Team-Chronicle-3-COVER.png","alt_text":"","large":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAAAsTAAALEwEAmpwYAAAChUlEQVQozz1SS09aYRC9P8EuDAKatCpGUAF5Pyyvi4BAy0tKVw2SEHmjUgiiaK0gAaQNDbumaRdt0ririy7apPGfnd6ZJl2czL3f982ZOWdG6Pf7iEQiKJVK8Pv9CIfDSKfT2NraQjAYRCwWQzQa5e9arfYfpXIZne4Fhu/eo387wV48iUgqDWE2m/FjrVYLt9sNm80Gp9MJtVoNq9UKo9GIZDLJ/4FAgIvTud3hhNFihUv0I5Z+AU9oD5VmC0K9XodOp8Pc3BxCoRDm5+ehVCqxs7PDRCaTiclUKhUrEEWRiydSKYhSAaPNDpvbA184AjH6HILZbOYHcrkcGo0GGxsbUCgUnEhyHQ4H38lkMhgMBlZBBYqlMhL7aWxub0PxZBmbJjMCsQQEkmexWLC0tMQdZLNZ9szr9bJ06nRxcZE71+v1WFlZYVSqVVjsDonQgEcyORTLq3is1kAgg5vNJqrSg0qlgtPTU5yfn8PlcnF3dE62xONxHtTa2hrbcJDLYVfyrdZ4DadXhPmpC8pVFYTJZAJCr9fD4eEhut0uWq0W1tfXmaTT6aDRaOD4+JglkxKKeentq4McjqRB5IolRKUJa4wmCLQ2w+EQl5eXyGQyvDIUfT4f6G4wGOD6+ppVkMcLCwtMGI5EUa7Vkcq8xLPUPkLxBEKJFARKIIxGI1xdXbE86ojIxuMxdz+dTjmWpd07OTmBx+PBbiCISv0IveEI/fEtWhdvUG21Idzc3IBApCQvn8+zl5RI5O12m20gkC0E2gyb3Y4jyb/PX7/h7sc97n/9xs8/D/8IqRuK5F2hUGAi8ozi2dkZk9GwiJyQkwZSKBbxVsqhDsfTD5h9/IQv3+/wF0MfvmpR3zlCAAAAAElFTkSuQmCC","aspectRatio":1.9047619047619047,"src":"/static/364c7c5604b2461baaf0d11f5b451b68/bc8e0/Smokescreen-Red-Team-Chronicle-3-COVER.png","srcSet":"/static/364c7c5604b2461baaf0d11f5b451b68/8ac63/Smokescreen-Red-Team-Chronicle-3-COVER.png 200w,\n/static/364c7c5604b2461baaf0d11f5b451b68/3891b/Smokescreen-Red-Team-Chronicle-3-COVER.png 400w,\n/static/364c7c5604b2461baaf0d11f5b451b68/bc8e0/Smokescreen-Red-Team-Chronicle-3-COVER.png 800w,\n/static/364c7c5604b2461baaf0d11f5b451b68/6050d/Smokescreen-Red-Team-Chronicle-3-COVER.png 1200w,\n/static/364c7c5604b2461baaf0d11f5b451b68/00405/Smokescreen-Red-Team-Chronicle-3-COVER.png 1600w,\n/static/364c7c5604b2461baaf0d11f5b451b68/1f96e/Smokescreen-Red-Team-Chronicle-3-COVER.png 2400w","srcWebp":"/static/364c7c5604b2461baaf0d11f5b451b68/ccdb5/Smokescreen-Red-Team-Chronicle-3-COVER.webp","srcSetWebp":"/static/364c7c5604b2461baaf0d11f5b451b68/6b183/Smokescreen-Red-Team-Chronicle-3-COVER.webp 200w,\n/static/364c7c5604b2461baaf0d11f5b451b68/fc32b/Smokescreen-Red-Team-Chronicle-3-COVER.webp 400w,\n/static/364c7c5604b2461baaf0d11f5b451b68/ccdb5/Smokescreen-Red-Team-Chronicle-3-COVER.webp 800w,\n/static/364c7c5604b2461baaf0d11f5b451b68/9000d/Smokescreen-Red-Team-Chronicle-3-COVER.webp 1200w,\n/static/364c7c5604b2461baaf0d11f5b451b68/e0075/Smokescreen-Red-Team-Chronicle-3-COVER.webp 1600w,\n/static/364c7c5604b2461baaf0d11f5b451b68/83a9d/Smokescreen-Red-Team-Chronicle-3-COVER.webp 2400w","sizes":"(max-width: 800px) 100vw, 800px"}}}},"author":{"name":"Sudarshan Pisupati"}}},{"node":{"id":"e3927a18-e47e-5bdf-bad0-2d86031e8277","slug":"the-one-where-we-broke-into-a-bank","title":"The one where we broke into a bank, thrice","content":"\n<p><em>2:30 PM on an overcast Tuesday in August. You can smell the earth from the coming monsoon deluge even twelve stories up in our quiet conference room, where, for some reason, the power is flickering. Over the next six hours, we will hack into one of the world&#8217;s largest banks. Thrice.</em></p>\n\n\n\n<p>This is a cautionary tale of why you can&#8217;t prevent a motivated hacker from &#8216;getting in&#8217;, no matter how much of your cybersecurity budget is spent on sleek blinking boxes and Zegna-clad consultants.</p>\n\n\n\n<p>It&#8217;s why you never gamble against human resolve and ingenuity, but bet big on smart people consistently making bad decisions. For, as hackers say;</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><em>&#8220;There is no patch for human stupidity&#8221;</em></p></blockquote>\n\n\n\n<h3>The Job</h3>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><em>&#8220;These guys are no helpless newbies.&#8221;</em></p></blockquote>\n\n\n\n<p><em>J, one of our red-teamers, takes a long drag from a clove cigarette and watches the rain obscure the distant railway tracks. He&#8217;s right. The bank has state of the art security systems, manned by one of the most skilled infosec teams in the business.</em></p>\n\n\n\n<p>The bank hires us to do this breach readiness assessment / red-team /penetration test stuff regularly, but this time the mission is different.</p>\n\n\n\n<p>We&#8217;re trying to dispel the myth that it is even possible to defend against an initial intrusion. Our success (or failure) will decide how much effort they now put into prevention (locking the door), as opposed to detection and response (spot the burglar early and take them down fast).</p>\n\n\n\n<h3>Interlude: An Intrusion v/s A Breach</h3>\n\n\n\n<p>There&#8217;s a nuanced difference between an intrusion and a breach, and once you see it, you&#8217;ll never interchange the words again.</p>\n\n\n\n<p>Most importantly, you can (and will) have intrusions, without necessarily experiencing breaches. How so?</p>\n\n\n\n<p>Just like The Simpsons, the wonderful Richard Bejtlich already did it (and put it rather well):</p>\n\n\n\n<p><em>An intrusion is unauthorized access to a computing resource. A breach is the theft, alteration, or destruction of that computing resource, following an intrusion.</em></p>\n\n\n\n<p><em>One can avoid a breach following an intrusion if the security team can stop the adversary before he accomplishes his mission.</em></p>\n\n\n\n<p><em>There is no point at which any network is intrusion-proof. It is more likely one could operate a breach-proof network, but that is not completely attainable, either.</em></p>\n\n\n\n<h3>Rules of Engagement</h3>\n\n\n\n<p>Back to the hack.</p>\n\n\n\n<p>We must consistently and repeatedly subvert the banks security. It&#8217;s Moscow rules: Once is luck, twice is a coincidence, thrice is a pattern.</p>\n\n\n\n<p>Oh, and anything is fair game. In fact, we&#8217;re expected to play as dirty as possible.</p>\n\n\n\n<p>Here are just some of the preventive controls getting in the way:</p>\n\n\n\n<ul><li>Application white-listing</li><li>Internet access only to a pre-approved site list</li><li>Air-gapped admin network (each admin has two physically separate desktops, and uses a KVM to switch between them)</li><li>USB devices totally blocked</li><li>External links in emails quarantined to catch phishing</li><li>Two-factor authentication for all critical servers</li><li>Scary nightclub-bouncer-style physical security</li></ul>\n\n\n\n<h3>Hack 1 &#8211; Cell-phone hacking</h3>\n\n\n\n<p>Our first target is a small branch. Extensive reconnaissance (a.k.a a couple of phone calls) reveals that they have an on-site IT manager named Todd.</p>\n\n\n\n<p>We&#8217;re going to hack Todd using a cell-phone&#8230;</p>\n\n\n\n<p><strong>Roadblock 1:</strong><br>USB devices are blocked, but we find out that Todd in particular has access to a CD-ROM for some long-forgotten business requirement. Code execution is even easier &#8212; We&#8217;re going with PowerShell, expecting that the IT manager will be allowed to use it.</p>\n\n\n\n<p>We print up brochures asking Todd to attend an IT event (by invitation only, as these things often claim). We&#8217;ve also printed 25 lucky draw scratch cards, but the dice is loaded and the deck is stacked:</p>\n\n\n\n<p>Beneath the inviting silver foil, every scratch card has the same prize &#8212; an iPhone 7s.</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.05.53-PM-1024x784.png\" alt=\"Planting the trap\" class=\"wp-image-18550\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.05.53-PM-1024x784.png 1024w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.05.53-PM-300x230.png 300w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.05.53-PM-768x588.png 768w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.05.53-PM-1536x1176.png 1536w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.05.53-PM-1568x1201.png 1568w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.05.53-PM.png 1758w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><figcaption>Designing the trap</figcaption></figure>\n\n\n\n<p>Our forward team, Myra and J, head over with the newly minted material and a CD containing our PowerShell malware. If executed, it will give us external access to the bank from our command and control server. J is wearing a hidden camera.</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.31.44-PM-1024x537.png\" alt=\"Good old social engineering \" class=\"wp-image-18551\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.31.44-PM-1024x537.png 1024w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.31.44-PM-300x157.png 300w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.31.44-PM-768x403.png 768w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.31.44-PM-1536x806.png 1536w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.31.44-PM-1568x822.png 1568w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.31.44-PM.png 1754w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><figcaption>Inviting Todd for the conference and handing him his scratch card.</figcaption></figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.34.18-PM-1024x536.png\" alt=\"Playing along\" class=\"wp-image-18552\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.34.18-PM-1024x536.png 1024w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.34.18-PM-300x157.png 300w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.34.18-PM-768x402.png 768w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.34.18-PM-1536x804.png 1536w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.34.18-PM-1568x821.png 1568w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.34.18-PM.png 1754w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><figcaption>Myra helping him with the scratch card, which was admittedly not the finest quality.</figcaption></figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.38.57-PM-1024x548.png\" alt=\"Gotcha\" class=\"wp-image-18553\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.38.57-PM-1024x548.png 1024w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.38.57-PM-300x161.png 300w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.38.57-PM-768x411.png 768w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.38.57-PM-1536x822.png 1536w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.38.57-PM-1568x839.png 1568w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-3.38.57-PM.png 1756w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /><figcaption>&#8220;You&#8217;re the lucky winner Todd! To send you your iPhone, I need your attendee code from the PDF file on this CD.&#8221;</figcaption></figure>\n\n\n\n<p>&lt;click&gt; &lt;click&gt;</p>\n\n\n\n<p><strong>Roadblock 2:</strong><br>The bank blocks all sites except for an approved list of categories on their proxy. If our command and control server isn&#8217;t in the &#8216;banking websites&#8217; category, we won&#8217;t gain access. Our solution? Ask the proxy vendor nicely. Yes, this worked.</p>\n\n\n\n<p>With remote access to their branch network, we move laterally, escalate privileges, and gain access to a bunch of critical servers.</p>\n\n\n\n<p>Hack #1 complete.</p>\n\n\n\n<h3>Hack 2 &#8211; Humans are indeed resources for &#8216;Human Resources&#8217;</h3>\n\n\n\n<p><em>&#8220;There are only two departments nobody messes with &#8212; the first is payroll, and the second is H.R.&#8221;, Corvus, our finance manager proclaims unsolicited.</em></p>\n\n\n\n<p><em>Lightbulbs go off at the same time as the power comes back on.</em></p>\n\n\n\n<p>It&#8217;s true, our experiments show that employees have an almost Pavlovian response to acquiescing to H.R. queries.</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.13.40-PM-972x1024.png\" alt=\"The phishing email we sent out\" class=\"wp-image-18555\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.13.40-PM-972x1024.png 972w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.13.40-PM-285x300.png 285w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.13.40-PM-768x809.png 768w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.13.40-PM.png 1348w\" sizes=\"(max-width: 972px) 100vw, 972px\" /><figcaption>The phishing email we sent out</figcaption></figure>\n\n\n\n<p>The email went out to a selection of employees on LinkedIn that deal with<br>ATMs, cardholder data, and transaction processing systems such as SWIFT. We threw in some digital marketing folks, as they&#8217;re notoriously click-happy.</p>\n\n\n\n<p><strong>Roadblock 3:</strong><br>The email link scanning and quarantine system wouldn&#8217;t allow a link in an email but also wouldn&#8217;t care about them inside documents. The PDF link leads to a customized phishing page and an actual survey to submit, because, why not?</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.23.36-PM-852x1024.png\" alt=\"Survey\" class=\"wp-image-18556\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.23.36-PM-852x1024.png 852w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.23.36-PM-250x300.png 250w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.23.36-PM-768x923.png 768w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.23.36-PM.png 1182w\" sizes=\"(max-width: 852px) 100vw, 852px\" /></figure>\n\n\n\n<p>Two hours later we have over 40 phished credentials and an 84% success rate.</p>\n\n\n\n<p>Hack #2 complete.</p>\n\n\n\n<h3>Hack 3 &#8211; Burger, fries, and a complimentary keyboard upgrade</h3>\n\n\n\n<p><em>The success of the first two hacks has the team getting cocky. Myra is the first to broach the idea of physically getting to the trading floor systems.<br>Perhaps it&#8217;s the cups of coffee, or the desire to get out of the office again. </em></p>\n\n\n\n<p><em>Why not? The weather&#8217;s perfect!</em></p>\n\n\n\n<p><strong>Roadblock 4:</strong><br>The. Trading. Floor. Where separate lifts are manned by the aforementioned security staff who lift heavy objects for fun. The domain of the traders, with their special orange lanyards, who eat at the more upscale eateries down the street, because well, that&#8217;s what traders do.</p>\n\n\n\n<p>J&#8217;s a hardware guy. The traders have RFID badges. Identifiable orange lanyards that they leave at their tables in the restaurant. 45 minutes and much ProxMox configuration in the back of a car later, we have a clone of one of their RFID cards (HID Prox II).</p>\n\n\n\n<p>We&#8217;re still not sure it will work though. A guard eyeballs J as he walks toward the door. The guard&#8217;s hand moves to his revolver (okay, the gun never happened, but J tells it like that for the ladies). He approaches the RFID scanner.</p>\n\n\n\n<p>&lt;blink and beep&gt; We&#8217;re in.</p>\n\n\n\n<p>J&#8217;s got three brand new keyboards under his arm (the nifty ones with LEDs and integrated trackball). He walks into the cabins of three staffers and says;</p>\n\n\n\n<p><em>&#8220;Hey I&#8217;m from I.T., I&#8217;m here to install your keyboard upgrade.&#8221;</em></p>\n\n\n\n<p>Each of the keyboards has a Wi-fi keylogger attached to the end. Nobody refuses the upgrade. However, one manager makes J spend half an hour debugging Outlook and yells at him when he can&#8217;t fix it. J uses Mutt.</p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img src=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.30.08-PM-1024x409.png\" alt=\"Hacking gear\" class=\"wp-image-18558\" srcset=\"https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.30.08-PM-1024x409.png 1024w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.30.08-PM-300x120.png 300w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.30.08-PM-768x307.png 768w, https://internal-wp.smokescreen.io/wp-content/uploads/2020/09/Screenshot-2020-09-10-at-6.30.08-PM.png 1216w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /></figure>\n\n\n\n<p>We sit in the parking lot with a wireless antenna, watching them type in trades and send emails full of in-jokes until the sun goes down. It&#8217;s still raining.</p>\n\n\n\n<p>Hack #3 complete.</p>\n\n\n\n<p>The notion that initial intrusions can be reliably prevented is extremely flawed, especially when you don&#8217;t know what lengths the attacker will go to win.</p>\n\n\n\n<p>This is not to say that we abandon the idea of prevention and leave the doors wide open. Prevention systems can stop a lot of the low hanging fruit &#8212; commodity malware, regular phishing, Internet scans. Just don&#8217;t expect it to thwart the highly targeted attacks.</p>\n\n\n\n<p>The cybersecurity industry is moving towards &#8216;assume breach&#8217;, shifting<br>resources from &#8216;prevent&#8217;, to &#8216;detect and respond&#8217;, however it&#8217;s moving way too slowly.</p>\n\n\n\n<p>Far too many defenders still don&#8217;t viscerally understand that this is the way it should be. Worse, this paradigm is often not communicated or well-received by the board, leading to mismatched expectations when intrusions inevitably occur.</p>\n\n\n\n<p>If this sounds familiar to you, help move things along by sharing this story, as well as your own.</p>\n\n\n\n<p>It&#8217;s about time we got out from under this cloud.</p>\n","excerpt":"2:30 PM on an overcast Tuesday in August. You can smell the earth from the coming monsoon deluge even twelve stories up in our quiet conference room, where, for some reason, the power is flickering. Over the next six hours, we will hack into one of the world’s largest banks. Thrice. This is a cautionary […]\n","status":"publish","wordpress_id":18544,"featured_media":{"id":"c1c0f980-d711-5599-9a1f-02543556ac52","source_url":"https://ss-website-content-prod.s3.ap-south-1.amazonaws.com/wp-content/uploads/2020/09/Breaking-into-a-bank-Smokescreen-3.png","alt_text":"Red teaming for a bank","large":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAAsTAAALEwEAmpwYAAADKklEQVQ4y4WS3U+bZRjGX1ygtNAWaEtbKDDKVymlrVDqtgiZTLbxvXWMBcNE2GZG1CVkylgGMYsnmv0T6jww2YwmbsjHwXAfnmxxajLdPPLIgHxNtw5bHT/v5yEunvkmV977eXM/v+d6rvs1vpsY4t65YX4S3Z/c0oPJER5MHftf/dt/f2qEH2X/D2eHMBYXrrB8fZr1b+Z4fPuaaEHqeVZvzjzTmmj91tyWpG/t1iwrN77S/ck7C7pWfUtfX8VILv3K0z/W2VhZ5Pz4W8xc/pinv6/Ak0eQFG0k2Xz0kNTqb6TXlvlzdYm/Hq7C32l+ufc9P9+9DekNniwvaoaRSqXY3NxkYnyMhkgVXe0tvHtujC8uf8KlTz/k+sIcK8tL/PdJp1Nc/fJzRl8/ytBggrvf3tn6LixDFfPzs9TVlnN+8k1OjQ4y8mqC/sQ+Tgz3iw5z9p1Rpq98RjL5mJs3rvH22EkSPS9z5vRJPnjvDO17m5mdmdZQ4+LFjzjQ20VxkYsdTWENOtLXTlvrLno693DoQDvHh49wbKiP8dNvMHC4i+Ov9TN8tE9rauKU9LQRb6zjwoX3MTIzMzAMg0JXAeVlRdhtuVhzzUTDAXY3x+VdS6iuioisG6JBiWQPJ0ZeoXP/S+xva3lWN0Zr8Ykpw2q1YDJlYbXmUFLsxlFgJz/PSonPQ32ohh3xKJH6AGWlXrweF0VeF7t2NtLd0UZv9z4GBxIM9PfK7SJUlPswnI487PZcgoEKOaGQHEs2WVmZeqNyXpBvp76umngsIgpTXVmmwbtbdnLoYKeORAEPdu/lhVg9hsuZj0+cxWVR4S8RgI2yEi+hYJUGKscZGRn6Bv7tJcQaQlo11eU0NYYl6xfpE2hPRyutzU0YNlsOpQKorfHjLnSgDggG/FT6SyVLi0B8bNv2nHaqwBZztvQ5tetKMRAKVtIhU449HyQWDWBYLCYBemTKW9d1OfN0o8ftpNTnFmCxHpTX48ScbdLxqMzVN3W4x+0gHKqSPT62S86GOTtL56XcKHieHohbAxwOu0w/Xw/JXViA6lW1upX6K2wyULPZpLNXQAX/B8znISPzXkyUAAAAAElFTkSuQmCC","aspectRatio":1.5037593984962405,"src":"/static/80d58b3ab3dbdc1c5ab5556ab7b00251/bc8e0/Breaking-into-a-bank-Smokescreen-3.png","srcSet":"/static/80d58b3ab3dbdc1c5ab5556ab7b00251/8ac63/Breaking-into-a-bank-Smokescreen-3.png 200w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/3891b/Breaking-into-a-bank-Smokescreen-3.png 400w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/bc8e0/Breaking-into-a-bank-Smokescreen-3.png 800w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/6050d/Breaking-into-a-bank-Smokescreen-3.png 1200w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/00405/Breaking-into-a-bank-Smokescreen-3.png 1600w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/9b570/Breaking-into-a-bank-Smokescreen-3.png 3300w","srcWebp":"/static/80d58b3ab3dbdc1c5ab5556ab7b00251/ccdb5/Breaking-into-a-bank-Smokescreen-3.webp","srcSetWebp":"/static/80d58b3ab3dbdc1c5ab5556ab7b00251/6b183/Breaking-into-a-bank-Smokescreen-3.webp 200w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/fc32b/Breaking-into-a-bank-Smokescreen-3.webp 400w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/ccdb5/Breaking-into-a-bank-Smokescreen-3.webp 800w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/9000d/Breaking-into-a-bank-Smokescreen-3.webp 1200w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/e0075/Breaking-into-a-bank-Smokescreen-3.webp 1600w,\n/static/80d58b3ab3dbdc1c5ab5556ab7b00251/34742/Breaking-into-a-bank-Smokescreen-3.webp 3300w","sizes":"(max-width: 800px) 100vw, 800px"}}}},"author":{"name":"Sahir Hidayatullah"}}},{"node":{"id":"535367e8-f2f6-543a-ba9c-07ebdb0dea47","slug":"the-one-where-i-pulled-an-oceans-11","title":"The one where I pulled an Ocean’s 11, without a crew","content":"\n<p>As a red teamer, I have the distinct privilege of dealing with some of the most exciting security challenges. There&#8217;s never a dull moment. Every time I think it can&#8217;t get any better, I run into something that I&#8217;ve never encountered before.</p>\n\n\n\n<p>This is one of those stories – an experience that has had a profound impact on me. It is hacking the way I had never thought of before.</p>\n\n\n\n<p>It starts back in the day when I was a consultant hacker in the US of A and was relentlessly jumping from state to state. I had built somewhat of a reputation in a niche doing internal pen tests, which meant I was traveling a lot.</p>\n\n\n\n<p>After racking up nearly 230 days of travel that year, I was jaded and had asked my boss for some much-needed downtime. For a couple of days, I wanted to sleep somewhere that was not a hotel room.</p>\n\n\n\n<h4><strong>The day I didn&#8217;t know everything would change</strong></h4>\n\n\n\n<p>I was just hanging out at the office, catching up on the industry and pending reports, when the bossman walked up to me – he had this way, where he&#8217;d stroll up to your desk and say:</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Hey, you got a minute?&#8221;&nbsp;</p></blockquote>\n\n\n\n<p>Whenever I had been at the receiving end of this question, it had always been followed up with something interesting.&nbsp;</p>\n\n\n\n<p>&#8220;Sure, boss, what&#8217;s up?&#8221; I asked.</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;A client has just reached out to me. Interesting work. You up for it?&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;I&#8217;ll take that as a rhetorical question, boss.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Well, this company has an office in a business complex shared with many others. A couple of weeks ago, one of the other companies in the complex had an incident. They caught a random person walking around their office premise. They&#8217;ve asked if we can do something similar, as a test.&#8221;</p></blockquote>\n\n\n\n<p>It couldn&#8217;t be that easy, so I asked, &#8220;You mean, I go to their office and just stroll around?&#8221;&nbsp;</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Well, it&#8217;s not that simple. We&#8217;ve worked out a scenario and a goal. The client has sanctioned a laptop and labeled it. They have a section in their office that&#8217;s only partially occupied. That&#8217;s where they&#8217;ll place it in one of the empty cubicles. &#8220;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Ok.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;You&#8217;ll have to break into the office and steal the laptop.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Ok.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;You also have to get into the laptop, connect to their network, and get domain admin access. Once you get the access, take the laptop and walk out of the premises.&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;&#8230;&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;That&#8217;s it.&#8221;</p></blockquote>\n\n\n\n<p>After an awkwardly long but understandable pause, I attempted to sum up the ask to make sure I had got it right.</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;So let me get this straight. You need me to get into the business complex, get on an elevator, find the floor where the company is located, get through their access-controlled doors, find a labeled laptop in a partially occupied section, plug it into a power source, break into it, spend hours hunting for domain admin, do all of this without getting caught, and then just walk out of there with the laptop?&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Yep.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;That sounds crazy, boss.&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;It is.&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Really crazy.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;I know.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Who&#8217;s working with me on this?&#8221; I asked, looking at the empty seats of my on-the-road colleagues.&nbsp;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;You&#8217;re it.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;How much time do I have?&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Well, on paper, you&#8217;ve got two weeks. Based on my experience, however, you pretty much only have one shot to execute your plan, unless you are really, really lucky.&#8221;&nbsp;</p></blockquote>\n\n\n\n<h4><strong>Planning the job</strong></h4>\n\n\n\n<p>I spent the rest of that day talking to seniors on the team who had prior experience with similar assignments. The common thread in all of those conversations was to never underestimate the value of thorough reconnaissance. I would understand the real meaning of their advice later that week.&nbsp;</p>\n\n\n\n<p>The stuff that happens in movies makes it look so easy, but recon is a tedious job. Though I did motivate myself by thinking of this mission as breaking into the Ministry of Magic with Harry, Ron, and Hermione to steal a Horcrux.&nbsp;</p>\n\n\n\n<h4><strong>Internet recon</strong></h4>\n\n\n\n<p>I looked for anything and everything that could be interesting or valuable on the internet first. In fact, I spent 16 hours just doing internet recon.&nbsp;</p>\n\n\n\n<ul><li>I figured out that the office was on two consecutive floors, and I didn&#8217;t know which one the laptop would be on.&nbsp;</li><li>I pulled all information I could from social media about the employees. To this day, I remember the names of some of the people that worked there.&nbsp;</li><li>I looked through job postings, especially the security ones, to see if there were any clues about their security stack.</li><li>I looked for the building management website, fire safety plans – anything that could give me the layout of the building.</li><li>I scoped out web infrastructure to identify some targets beforehand just in case the regular stuff doesn&#8217;t work when it&#8217;s time to execute the hack.</li><li>I had BackTrack Linux on a pen drive so I could break into the laptop. Also, I was praying for no disk encryption.</li></ul>\n\n\n\n<p>I felt I had found everything I could, but ultimately I had to get out of the comfort of my chair and go out into the real world.&nbsp;</p>\n\n\n\n<h4><strong>Physical recon</strong></h4>\n\n\n\n<p>The building was located in a busy business district. It had about 23 floors. Lots of foot traffic in the morning, lunchtime, and the end of the day. There was a coffee shop a block away, where people would walk to in groups to grab a cup of joe.&nbsp;</p>\n\n\n\n<p>I had learned to recognize the logo of the company, and ever so often, I&#8217;d see people from the company walking along with their entry badges attached to their belts or strung around their neck. I also noticed a few people wearing visitor badges (&#8220;V&#8221;).&nbsp;</p>\n\n\n\n<p>I considered cloning one of the badges, which would mean I would have to get real close to a target. Somehow, the thought of doing that made me want to run away and lock myself in a house somewhere in the icy isolation of Nova Scotia. So, I decided to designate that Plan B.&nbsp;</p>\n\n\n\n<p>It was a creepy experience, but I managed to get a picture of both those badges by zooming in with the phone cam. I went back to the office and got replicas created.&nbsp;</p>\n\n\n\n<p>I scoped out the lobby of the building. There were lots of people sitting on couches and chairs laid out, so I fit right in. One thing that made me really happy –&nbsp;No turnstiles.&nbsp;</p>\n\n\n\n<p>I confirmed from the directory that I had the right floors for the company. I eavesdropped on conversations at the information desk, and thankfully, it seemed like just that, an information desk. There was no one checking the badges, but there was a security guard.&nbsp;</p>\n\n\n\n<p>I didn&#8217;t want to hang around for too long and get on the guard&#8217;s radar. I managed to sit there for about 30 minutes, taking in as much information as I could.&nbsp;</p>\n\n\n\n<p>And then I left – Big mistake. You see, I&#8217;d missed scoping out the elevator itself. I just didn&#8217;t think it was important enough, and that was poor judgment. I didn&#8217;t even consider going up to the floor, fearing that the receptionist will notice me. I would later pay dearly for this mistake.&nbsp;</p>\n\n\n\n<h4><strong>The Plan</strong></h4>\n\n\n\n<p>I put all the information I had gathered together. Finally, after running several scenarios in my head, one which included applying for a job at the company, I decided to keep it simple. I would just walk into the building at around 9:30 am when the traffic was just about dwindling and tailgate someone. I had seen the fire escape plan, but that didn&#8217;t tell me where the cubicles were.  I would have to just wing it from that point on until I got hold of the laptop.  Then I&#8217;d find myself an empty conference room, get connected, and blitz through the network. I was the most confident about this part. If someone was to ask me questions, I&#8217;d just say I am waiting for a meeting to start.&nbsp;</p>\n\n\n\n<p>The night before, I couldn&#8217;t sleep. The following day would be one of only 4 times in my life that I got into the office at 6:30 am off my own accord. I just wanted to be in a comfort zone, have a chat with the bossman, and grab my favorite coffee from the cafeteria.&nbsp;</p>\n\n\n\n<p>At around 8:45 am, I walked into his office.&nbsp;</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Boss, it&#8217;s time.&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Nice. Good luck. Do you have a copy of the letter?&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;What letter?&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;The letter that says this is an authorized activity in case you get caught. Unless you want to be rugby tackled.&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;No, I don&#8217;t have the letter.&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Just shared it with you. Take a print out. Keep it with you in your pocket. Not in your bag.&#8221;</p></blockquote>\n\n\n\n<p>That letter. The best way I can describe that letter is that it was not one you should read if you need confidence. It had the details of the assignment, who authorized it, phone numbers, blah blah. But I was fixated on one sentence – &#8216;Do not attempt to detain or physically subdue the person in possession of this letter.&#8217;</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Physically subdue? Boss, is this a possibility?&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;No. Because you won&#8217;t get caught.&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Thanks, Boss.&#8221;</p></blockquote>\n\n\n\n<p>It was showtime.</p>\n\n\n\n<h4><strong>Phase 1: Access</strong></h4>\n\n\n\n<p>Everyone has a plan until they get punched in the face. And I got punched pretty early.&nbsp;</p>\n\n\n\n<p>Remember the elevator? The one I hadn&#8217;t scoped out? Turns out, the floors I needed access to were restricted. The employee badges were configured to give access to the floor. My fake badge was as good as paper.</p>\n\n\n\n<p>I rode the elevator back to the lobby and calmed my nerves by grabbing a cup of coffee. I ended up buying 4 of them. I decided to go with the old &#8220;Hands full, can you help me with the floor, please?&#8221; trick.&nbsp;</p>\n\n\n\n<p>I got back into the elevator carrying the 4 coffees when the second problem I hadn&#8217;t anticipated unfolded – no one riding the elevator with me was going to the floor I wanted.&nbsp;</p>\n\n\n\n<p>I think I was in the elevator for at least 15 minutes, but it felt like years. Writing this reminds me of the nervousness, uncertainty, and fear I was feeling. And I was really, really nervous. I suddenly became very, very aware of the camera in the elevator. Imagine being a security guard monitoring the camera, watching a dude with 4 coffees ride up and down in the elevator multiple times. I was running a risk, but I couldn&#8217;t get myself to think of another plan. Tailgating was still the best option.&nbsp;</p>\n\n\n\n<p>And finally, on probably the 8th iteration, someone walked in and hit the floor that I had to get off on. The dude walked out, and I almost spilled the coffee while sticking my feet between the closing doors to get out.</p>\n\n\n\n<p>Almost immediately, I noticed that there was no receptionist on the floor. The dude had opened the access-controlled door, turned into the hallway, and was out of sight. I sprinted towards the closing door, propped it open again with my leg, and got in.&nbsp;</p>\n\n\n\n<p>I had made it.&nbsp;</p>\n\n\n\n<h4><strong>Phase 2: The Hunt&nbsp;</strong></h4>\n\n\n\n<p>I was now the random dude walking around the office. Once in, I had to take photos to prove that I was actually on the premises. I had ditched the coffee because my hands were shaking. I was relieved and also mortified that I had made it this far. I took a bunch of photos, but thanks to the fact that I was so full of adrenaline, nearly all of them were grainy. I would later present those photos in the report I shared with the customer where I told them: &#8220;You now have a record of the exact time and location I almost wet myself.&#8221;&nbsp;</p>\n\n\n\n<p>A few minutes later, I ran into a lady in the hallway.&nbsp;</p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Can I help you with something?&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Could you point me in the direction of the restroom?&#8221;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Down the hall, to the right.&#8221;&nbsp;</p></blockquote>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>&#8220;Thanks! &#8220;</p></blockquote>\n\n\n\n<p>I scoped out the floor and found the space with the mostly empty cubicles. It was easy to spot the labeled laptop. For a moment there, I felt relieved&nbsp;– finally, a situation that wasn&#8217;t a curveball.&nbsp;</p>\n\n\n\n<h4><strong>Phase 3: Persist</strong></h4>\n\n\n\n<p>I couldn&#8217;t find an empty conference room, but I did find the coffee room with a printer and two ports. I would later connect the laptop and also get an IP. It was still only 10:55 am. I had gotten this far in under 90 minutes.&nbsp;</p>\n\n\n\n<p>I had decided I&#8217;d pretend to be the guy troubleshooting the printer if anyone asked.&nbsp;</p>\n\n\n\n<p>For the duration I was there, I built up tremendous amounts of confidence. I even had a chat with a couple of folks, exchanging niceties about the weather and what a pain printer technology was.&nbsp;</p>\n\n\n\n<p>My friends, the rest of the story is about how I owned a domain while standing in a coffee room pretending to troubleshoot a printer.&nbsp;</p>\n\n\n\n<h4><strong>Phase 4: Escalate and exfiltrate</strong></h4>\n\n\n\n<p>Listen, in those days, it wasn&#8217;t that difficult.&nbsp;</p>\n\n\n\n<p>There was no MITRE ATT&amp;CK, security awareness was just building up, and stopping threats at the perimeter (or at least trying to) was where the money was being made. No one cared about internal detection. In most cases, you could do a Nmap scan with 1000 ports and aggressive OS guessing, and you would still not be detected. There was minimal awareness about Active Directory attacks and how shared local admin passwords were a bad thing. You could even authenticate using null sessions and didn&#8217;t need domain credentials to enumerate the network.&nbsp;</p>\n\n\n\n<p>But there was also no Mimikatz, no BloodHound, and no PowerShell. Windows XP and 7 were the most prevalent systems. I don&#8217;t even think there was Kali. It used to be BackTrack.&nbsp;</p>\n\n\n\n<p>The laptop wasn&#8217;t encrypted. That was normal in 2011-12. It was also the days of LM hashes, the less secure version of current-day NTLM. If you got an LM hash, you could crack 8 character passwords of any complexity thanks to rainbow tables.&nbsp;</p>\n\n\n\n<p>I booted BackTrack to the laptop, obtained and cracked the local admin password, and was able to log in. I could have zeroed out the password too, but this was cooler. Another objective was achieved.&nbsp;</p>\n\n\n\n<p>I loaded my favorite tool of the time, SQLPing. It would look for SQL servers and could even be used for password guessing. It searched the master browser for SQL servers.&nbsp;</p>\n\n\n\n<p>I popped about 5 SQL 2003 servers with sa/{blank} combinations.&nbsp;</p>\n\n\n\n<p>I used xp_cmdshell and gsecdump to get hashes from memory, SAM, and LSA secrets.&nbsp;</p>\n\n\n\n<p>LSA secrets had a clear-text password for a sqladmin account.&nbsp;</p>\n\n\n\n<p>I verified the group membership of sqladmin account. It was a domain admin.&nbsp;</p>\n\n\n\n<p>A quick &#8220;net use&#8221; to the admin$ share of the domain controller confirmed my access as did the secondary verification using &#8220;runas&#8221;.&nbsp;</p>\n\n\n\n<p>Screenshots. Closed the laptop. Shoved it into my bag. And walked right out without getting caught.&nbsp;</p>\n\n\n\n<h4>Learnings</h4>\n\n\n\n<ul><li>Recon is everything.</li><li>Internal visibility is critical for both physical and network security.&nbsp;</li><li>Real-life hacking is scary AF.</li><li>Persistence, confidence, and a healthy fear of failure can make for really solid red teamers.&nbsp;</li></ul>\n","excerpt":"As a red teamer, I have the distinct privilege of dealing with some of the most exciting security challenges. There’s never a dull moment. Every time I think it can’t get any better, I run into something that I’ve never encountered before. This is one of those stories – an experience that has had a […]\n","status":"publish","wordpress_id":18441,"featured_media":{"id":"c76815e2-fd60-5c60-8e24-44aabf811a6a","source_url":"https://ss-website-content-prod.s3.ap-south-1.amazonaws.com/wp-content/uploads/2020/08/Smokescreen-Oceans-11.png","alt_text":"Smokescreen red teaming physical cybersecurity","large":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAABcSAAAXEgFnn9JSAAAC80lEQVQozw2SWVNaBwCF70v70LQ1AqImjkAqMa5RCigIsgRkucAFQRZZZAdBUBaxtNo0iXFi2pm+NJNMm850kulMpz+gfetf+3p/wPlmvnOOcPH8G8bXLa5etRmMDjFtLqHSzDClnUWtn8O58Yi3ZZH/3pzz1zjHvutrJqc+RzU7gUI9iUV8QKg0x5ZrmoWHEwgXl316wwzj5w2ubuqUC35OahHqtRi1owCnaQ/fx3b5+2mVj40wYesan935FPX0XRmoZMunx5u4j8Gs4iv9lwgnZ03SESODrki+6KGcstKv+fnptsvNKE0z4aYR3KEn7pAwLdHJhfB5tpidUaCYnMDkekggo8XmnWFzV4FwPmzRHybpl62cXaRoNEMkgyZ6WQfjqo9eUeS2LtFwbDCUrPz6rMnHt9/JBnGkfQ8+cZU9SUm0OE+qvoAw7lUZdqOUQ8t0ajKgd0C3GqDkXeOHUYbXVzWuMh7yZj2/tCRuT+Jcd+O08kGkkBWLy4AzuM5+chmzWYlw2cnTzlnIR81U8x4qWVkx45DLX2FQE+nVoqT2LIjWdWo+A6N8iD9v21w2Jfy7G/hjPpLHOeLZIE7fDsJVI0W34CIdMlE9cuKzrZBxrVKStukUPJzlfeSkJ0ScRpLbixSCNv55/y1/vKxy/bRFqX1Ion5AUB4uXYkijFI+6jEjo26E1rHIqnaavU0t1VKETivGeTPJOO0ma14gsHgP1+oC3YSDH3spfn7R5HRwRDwTxus24XEbEZ4VwuxbdOQCy1ge3UOr06F7vI5/+wGdSoBczIVtSUd010D0yTYOhxPL4xX+fT/mw+s6/fYBxXocv2hnXnMf4UUuzPFhmL6sbpGDWvUUSrMTezJBNCiH1/Ro7nxC8bjEzYffSFUqqO5OkQ7YkOwGDrwmAhvTaLVqhBkZeOrfwWXcYNAqED0QWdZq+EI5jzEi4c5mWNTMY1hTEJVv8vL3d8RyGVQTStSqaeb06xRKBc6O7LjtS0y5PPwP3bKjtybbmEUAAAAASUVORK5CYII=","aspectRatio":1.9047619047619047,"src":"/static/5694f9ae5539f50d1654be23cff10744/bc8e0/Smokescreen-Oceans-11.png","srcSet":"/static/5694f9ae5539f50d1654be23cff10744/8ac63/Smokescreen-Oceans-11.png 200w,\n/static/5694f9ae5539f50d1654be23cff10744/3891b/Smokescreen-Oceans-11.png 400w,\n/static/5694f9ae5539f50d1654be23cff10744/bc8e0/Smokescreen-Oceans-11.png 800w,\n/static/5694f9ae5539f50d1654be23cff10744/6050d/Smokescreen-Oceans-11.png 1200w,\n/static/5694f9ae5539f50d1654be23cff10744/ab814/Smokescreen-Oceans-11.png 1550w","srcWebp":"/static/5694f9ae5539f50d1654be23cff10744/ccdb5/Smokescreen-Oceans-11.webp","srcSetWebp":"/static/5694f9ae5539f50d1654be23cff10744/6b183/Smokescreen-Oceans-11.webp 200w,\n/static/5694f9ae5539f50d1654be23cff10744/fc32b/Smokescreen-Oceans-11.webp 400w,\n/static/5694f9ae5539f50d1654be23cff10744/ccdb5/Smokescreen-Oceans-11.webp 800w,\n/static/5694f9ae5539f50d1654be23cff10744/9000d/Smokescreen-Oceans-11.webp 1200w,\n/static/5694f9ae5539f50d1654be23cff10744/0c4b7/Smokescreen-Oceans-11.webp 1550w","sizes":"(max-width: 800px) 100vw, 800px"}}}},"author":{"name":"Sudarshan Pisupati"}}}]}},"pageContext":{}},"staticQueryHashes":["1478079672"]}