<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Duane Michael on Medium]]></title>
        <description><![CDATA[Stories by Duane Michael on Medium]]></description>
        <link>https://medium.com/@subat0mik?source=rss-8ae4966ea2d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RPGIBHzqRXlCNx73vf41Hw.jpeg</url>
            <title>Stories by Duane Michael on Medium</title>
            <link>https://medium.com/@subat0mik?source=rss-8ae4966ea2d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:19:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@subat0mik/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Life at SpecterOps Part II: From Dream to Reality]]></title>
            <link>https://medium.com/specter-ops-posts/life-at-specterops-part-ii-from-dream-to-reality-99e10df0ba73?source=rss-8ae4966ea2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/99e10df0ba73</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Duane Michael]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 16:56:13 GMT</pubDate>
            <atom:updated>2025-01-21T16:56:13.490Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL;DR</h3><p>We are hiring consultants at various levels. The job posting can be found under the Consultant opening here: <a href="https://specterops.io/careers/#careers">https://specterops.io/careers/#careers</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/0*BrIJS09bigH6vtZY" /></figure><h3>Introduction</h3><p>Hey, it’s me again! The last time we spoke back in August 2024, <a href="https://posts.specterops.io/life-at-specterops-the-red-team-dream-0713b1c59ae1">I told you all about life and some of the intangible benefits of working as a consultant at SpecterOps</a>. In that blog post, I also promised a follow-up that outlines the interview process. So, here we are…</p><p>My goal for this blog is to provide a high level overview of our recruiting process for consultants. I’ll explain what each step entails but I will not provide specific technical details or hints for any challenges. I want to demystify our recruiting process and make it less intimidating and hopefully encourage those of you who have considered taking that next step but haven’t yet.</p><h3>Process Overview</h3><h4>Step 1: Application Review</h4><p>This step may seem obvious. The first thing we do after receiving your application is review your resume and the questions you answered on the submission form. Our recruiters are excellent and will determine if an application meets the requisite criteria to advance (depending on the position and level). Everyone has a unique story, background, and experience; therefore, we give the application a holistic review. Thoughtful responses to the application questions will receive extra attention compared to applications that ignore them.</p><p>The requisite criteria for each level is outlined in the respective job postings. On a broader level, we’re looking for prior technical (offensive or defensive, depending on the role) security and consulting experience. Do you have security experience but no consulting experience? That’s OK, but it may affect the level at which we interview you (e.g., Associate, Consultant, or Senior). Sometimes we target specific levels, such as Consultant or Senior Consultant. During such periods, we may reject Associate-level applications or hold onto them until we hire Associates again in the future.</p><p>We like to see community involvement and sharing. We’re looking for candidates that share our <a href="https://posts.specterops.io/a-push-toward-transparency-c385a0dd1e34">commitment to transparency</a>. Do you publish blogs, research, and/or tools? What has your learning and development journey been like through your career? That does not mean you have to write the next Rubeus or BloodHound. Any level of contribution goes a long way. Contributions can be blog posts, walkthroughs, notes from a course, PoC or helper scripts from a training, experimental tools, or contributions to other people’s repos. Make sure to include links to your contributions and accomplishments on your resume!</p><p>Note: Be prepared to discuss your resume content and community contributions.</p><h4>Step 2: Scripting Challenge</h4><p>We liked your resume and application and want to get to know you better.</p><p>The next step is a scripting challenge, where you will enter a challenge on a coding platform and solve a solution in a language of your choice. The environment is recorded but we do not set a strict time limit (e.g., one hour). We encourage you to take your time, pay attention to detail, and consult appropriate references. It is pass/fail and the solution must be exactly correct.</p><p>The challenge should be doable for anyone with fundamental scripting skills. If you’ve written automation, PoC scripts, or open-source contributions, you should be able to pass this challenge. If you are a clear senior-level candidate and have extensive open-source software contributions, we may waive the scripting challenge.</p><p>Basic scripting/programming ability is a requirement to be a successful red team operator. Therefore, this challenge identifies those that meet that minimum requirement.</p><h4>Step 3: Preliminary Interview</h4><p>Great! You passed the scripting challenge and made it through to the next phase. Now our recruiters will get to know you better on a video conference where they will talk about your background, experience, career aspirations, salary expectations, etc. This is also an opportunity for you to ask the recruiters questions about the position and company. This step is fairly straightforward and where the real interview process begins.</p><p>All of our interviews will be conducted virtually via video conference and we expect you to be on camera.</p><h4>Step 4: Technical Challenge</h4><p>After the preliminary interview, you’ll receive the prompt for a technical challenge that varies based on the role. The primary goal of the challenge is to gauge your technical depth, writing ability, and creativity. Rather than taking a pass/fail approach to assessing your response, we gauge where your submission is on a capability spectrum. We’re looking to see how deep you can go and how well you convey technical information in a clear and concise manner.</p><p>Disclaimer: Of course, there is a minimum bar. Not all submissions will advance past this round, especially when we’re seeking only more senior candidates.</p><p>The technical challenge will inform us on where your technical capabilities are in preparation for the technical interview. If your submission reads like Senior-level work, then your technical interview will be anchored at that level. There is no hard timeline on the technical challenge but you should submit it within approximately one week.</p><h4>Step 5: Technical Interview</h4><p>If we like your technical challenge submission, we’ll advance to the technical interview. This interview is 60 minutes and will be conducted by three senior members of our consulting staff. Similar to the previous round, we’re not looking to stump you. We will ask you about experiences and seed some topics with questions and see how deep you can go.</p><p>It is absolutely okay to say you don’t know something. It is also encouraged to talk through your thought process so the interviewers get a glimpse of how you think. Please don’t try to cover up a knowledge gap. It will be obvious. No one knows everything, and we understand that. It’s OK. Be humble and keep it real!</p><p>We’ll leave some time at the end of the interview for you to ask us questions. After all, a job interview is as much about you interviewing us as it is the converse.</p><h4>Step 6: Peer Interview</h4><p>Congratulations! You’ve survived the technical portions of the process. Now, you’ll meet with three of your potential Specter peers. At this stage, we want to get to know you as a person. Do you match our core values? Will you get along with the team? Will the team enjoy traveling with you for several weeks at a time? There’s no script here and not much to prepare for. Bring your genuine self, have a conversation, and have fun!</p><h4>Step 7: Management Interview</h4><p>At this point, you’ve almost made it. You would not have made it this far if you weren’t a good fit. Now, management will meet with you for 60 minutes to discuss your experience, professional development, career growth, etc. This is not a technical interview. If we ask how you did something or how you handled a situation, we’re not looking for technical depth. As always, we’re gauging your alignment with our core values and at what level you should be hired.</p><p>As with every previous step, bring your genuine self. Dishonesty and resume discrepancies are commonly identified at this stage.</p><h3>Why So Many Steps?</h3><p>The interview process may seem like a lot, and it is, but we pride ourselves on building the right teams with the right people. As much as we want to welcome you into our ranks, we also want to focus on candidates that want to be here. Those candidates will understand the seven steps and work through them to earn their spot on the team.</p><p>We’re not looking to stump you or fail you out of the process. We take a holistic view of you as a person, red team operator, and consultant. Inherently, this requires more steps.</p><p>You’re interviewing us too. Choosing a company to work with is not a decision to be taken lightly. You spend eight hours per day, five days per week with your colleagues. Through our process, you’ll directly interface with at least 10 Specters, which should help you gain a solid understanding of who we are and what we’re all about.</p><p>We strive to complete the entire process in less than four weeks and we’ve completed it in as little as two weeks. However, we understand life happens and we are flexible with scheduling.</p><h3>Still Unsure?</h3><p>Don’t think you’re “ready” to join the SpecterOps team? To be honest, a lot of us felt the same way before applying. We all suffer from imposter syndrome and we empathize with you. We will keep this in mind throughout the interviews and will do our best to alleviate those concerns. As you progress through the process, just remember: you’ve made it that far for a reason. To quote an excellent <a href="https://www.youtube.com/watch?v=uIhQhAu7EYk">talk</a> from <a href="https://x.com/fuzzy_l0gic">Billy Boatright</a> (and Babe Ruth) at the Social Engineering Village several years ago, “If you’re good enough to have a bat in your hands, you’re good enough to swing it.” So, swing for the fences!</p><p>We will help you reach your technical goals. What’s most important to us is aptitude, attitude, and alignment with our core values. Don’t wait for the “right time.” We want to talk to you now!</p><h3>Next Steps</h3><p>We will grow steadily throughout 2025 and we’d love to have you apply!</p><p>We are hiring consultants at various levels. The job posting (including salary bands) can be found under the Consultant openings here: <a href="https://specterops.io/careers/#careers">https://specterops.io/careers/#careers</a></p><p>Please feel free to reach out to me on <a href="https://bsky.app/profile/subat0mik.bsky.social">Bluesky</a>, <a href="https://x.com/subat0mik">X</a>, <a href="https://www.linkedin.com/in/dmichaeljr/">LinkedIn</a>, or <a href="https://ghst.ly/BHSlack">BloodHound Slack</a> if you have any questions about SpecterOps or the role, or directly to careers@specterops.io.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99e10df0ba73" width="1" height="1" alt=""><hr><p><a href="https://medium.com/specter-ops-posts/life-at-specterops-part-ii-from-dream-to-reality-99e10df0ba73">Life at SpecterOps Part II: From Dream to Reality</a> was originally published in <a href="https://medium.com/specter-ops-posts">Posts By SpecterOps Team Members</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Life at SpecterOps: The Red Team Dream]]></title>
            <link>https://medium.com/specter-ops-posts/life-at-specterops-the-red-team-dream-0713b1c59ae1?source=rss-8ae4966ea2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0713b1c59ae1</guid>
            <category><![CDATA[consulting]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Duane Michael]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 16:26:44 GMT</pubDate>
            <atom:updated>2024-08-21T16:26:44.785Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL;DR</h3><p>We are hiring consultants at various levels. The job posting can be found under the Consultant opening here: <a href="https://specterops.io/careers/#careers">https://specterops.io/careers/#careers</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*NIMNY2JhkR7wULtIdtaLFg.png" /></figure><h3>Introduction</h3><p>Hey there! I’m Duane Michael, a Managing Consultant and red teamer at SpecterOps. Over the past four years, I’ve had a front-row seat to the company’s incredible journey. In that time, we’ve grown by almost 100 employees, built a product, created new teams and capabilities, trained thousands of students, and performed countless unique and challenging penetration tests and red team exercises.</p><p>I’m always chatting with applicants, friends, and fellow security geeks about SpecterOps and the unique blend of challenges and opportunities we offer. There’s a certain SpecterOps “sparkle” that’s hard to define but easy to recognize — a passion for pushing the boundaries of security, a collaborative spirit, and a commitment to growth. I find myself wishing I could bottle this essence and share it with a wider audience, hoping to attract more individuals who can contribute to and benefit from this special culture. This blog aims to illuminate some facets of the SpecterOps sparkle that red teamers will find particularly appealing.</p><p>The list is not comprehensive and there are many additional benefits and perks to working here that I won’t cover in this blog.</p><h3>Focus on Personal Sustainability</h3><p>Burnout is real in this industry. Most of our leadership, all the way to the top, including our CEO and COO, are former operators and understand the importance of sustainability. We know how easy it is to get sucked down the rabbit hole researching the latest technique or Windows bug (feature). We have a flexible time off policy and we will <em>strongly encourage</em> you to take at least four weeks off during the year.</p><p>We also recognize that “utilization” is not the consultant’s responsibility; it’s a function of the sales pipeline and scheduling. While we track time to ensure projects are scoped and effectively resourced, you won’t be stressed about meeting arbitrary utilization targets. Your job is to do your best work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*FPYtP0QxovDUBf7m" /></figure><p>Consultancies are known for their high travel cadence. That was certainly true before 2020, but on-site assessment requirements have significantly decreased post-COVID. An unfortunate side effect of reduced client travel is reduced face-to-face interactions and collaboration. Do you like to travel occasionally to meet up with your team? We offer a “discretionary travel” benefit, where you can optionally fly out to one of our offices for one week per quarter to collaborate with your project team face-to-face. We also coordinate larger department events, where we run hackathons and play mini-golf. Regardless of your travel appetite, we have something for everyone.</p><p><strong>Pro-tip</strong>: Instructing our training courses is a great way to travel, especially internationally. I’ve had the privilege to take four trips to Europe in two years to teach <a href="https://specterops.io/training/red-team-operations/"><em>Adversary Tactics: Red Team Operations</em></a><em>.</em></p><h3>Professional Development</h3><p>Our people are what makes us unique, so we invest in you! The most obvious way we invest in our people is through monetary budget benefits, such as our $5000/year professional development (PD) budget and our $5250/year higher education budget. Still, there’s so much more. Money is only half of the equation. PD requires time and a lot of it. We provide all Specters three weeks of PD time to spend in flexible ways, including (but not limited to) training courses, research, tool development, and blog or conference talk creation.</p><p><em>Most recently, I used some of my PD time to develop the </em><a href="https://github.com/subat0mik/Misconfiguration-Manager"><em>Misconfiguration Manager</em></a><em> project, </em><a href="https://posts.specterops.io/misconfiguration-manager-overlooked-and-overprivileged-70983b8f350d"><em>blog</em></a><em>, and </em><a href="https://www.youtube.com/watch?v=nvaOszFzXCQ"><em>SO-CON</em></a><em> and </em><a href="https://troopers.de/troopers24/talks/nvp3zs/"><em>Troopers</em></a><em> conference talks. Other Specters commonly use this time for training or progress toward their professional goals.</em></p><h3>Details</h3><p>In addition to personal PD time, we offer various opportunities for consultants to get hands-on experience for one to six months in other areas of the company outside of consulting. We refer to these temporary assignments as “details.” Some teams you may be assigned or request a detail on include:</p><p><strong>Internal and Community Products (ICP):</strong> The development team responsible for many of the open-source projects SpecterOps is known for, such as <a href="https://github.com/its-a-feature/Mythic">Mythic</a> and <a href="https://github.com/GhostManager/Ghostwriter">Ghostwriter</a>. A detail to this team entails development on one of the projects and serves as a great way to flex and build your development muscles.</p><p><em>Earlier this year, </em><a href="https://x.com/DragoQcc"><em>Jonathan Owens</em></a><em>, one of our Consultants, spent two months detailed to the ICP team to work on the C# Mythic agent, </em><a href="https://github.com/MythicAgents/Apollo"><em>Apollo</em></a><em>.</em></p><p><strong>Research and Development (R&amp;D):</strong> Our R&amp;D team focuses on large-scale, open-ended research problems and they’re always looking for more. If you have a research idea, you can submit a proposal and you may earn a detail to the team to research and flesh out your idea!</p><p><em>In 2023, </em><a href="https://x.com/mcbroom_evan"><em>Evan McBroom</em></a><em> spent three months with the R&amp;D team to research Windows authentication packages and develop the </em><a href="https://posts.specterops.io/lsa-whisperer-20874277ea3b"><em>LSA Whisperer</em></a><em> tool. </em><a href="https://x.com/0xdab0"><em>Max Harley</em></a><em> also spent three months with the R&amp;D team to help build </em><a href="https://medium.com/specter-ops-posts/shadow-wizard-registry-gang-structured-registry-querying-9a2fab62a26f"><em>Nemesis</em></a><em>.</em></p><p><strong>Internal Product Discovery:</strong> Think R&amp;D but specifically working on creating and proving new attack paths in <a href="https://github.com/SpecterOps/BloodHound">BloodHound</a>!</p><p><em>Our offensive Principal Consultant, </em><a href="https://x.com/Icemoonhsv"><em>Hope Walker</em></a><em>, is working with the Product Discovery team to build additional Azure attack paths into </em><a href="https://github.com/SpecterOps/BloodHound"><em>BloodHound</em></a><em>.</em></p><p>While not officially a “detail,” we also have ample opportunity to make short-form improvements for Consulting Services, which we call “service improvement.” These assignments may include updates to tradecraft, improvements to our <a href="https://www.youtube.com/watch?v=XaICChBJMck">offensive CI/CD pipeline</a>, or new tool features.</p><p>Lastly, we offer an awesome program called “<a href="https://github.com/specterops#fire-featured-projects">ICP Sponsorship</a>” where you can submit a project, tool, or idea for sponsorship under the ICP department. This is official backing of your project by SpecterOps and warrants four weeks of development time and a budget for marketing material or development costs. You retain all intellectual property (see below).</p><p><em>Some recent highlights of our ICP Sponsorship program are </em><a href="https://github.com/SpecterOps/Nemesis"><em>Nemesis</em></a><em>, </em><a href="https://github.com/DragoQCC/HardHatC2"><em>HardHatC2</em></a><em>, </em><a href="https://github.com/garrettfoster13/sccmhunter"><em>SCCMHunter</em></a><em>, </em><a href="https://github.com/Mayyhem/Maestro"><em>Maestro</em></a><em>, </em><a href="https://github.com/subat0mik/Misconfiguration-Manager"><em>Misconfiguration Manager</em></a><em>, and </em><a href="https://github.com/Mayyhem/SharpSCCM"><em>SharpSCCM</em></a><em>.</em></p><h3>Operations</h3><p>At SpecterOps, we like challenges and every assessment is different. Our clients are extremely mature and you may find yourself attacking or evading new technology that you’ve never encountered before. That’s OK because we don’t hire for specific skill sets; we hire for aptitude, ability to adapt, and passionate curiosity. We welcome and encourage failure, as that helps us grow. We require humility in the form of requesting help when you need it. We have a culture of supporting one another where everyone is a resource to everyone else. This approach puts the collective knowledge of SpecterOps behind every operation.</p><p>Our project managers handle much of the administrative heavy lifting so you can focus on the technical work. Our projects typically span two weeks or more, giving you time to dive deep. And when it’s time to document your findings, we’ll give you an entire week dedicated solely to reporting. Our awesome Technical Editor will ensure your report has that “SpecterOps Sparkle” so you’re not bogged down by style guide rules.</p><p>Our infrastructure deployment automation and offensive CI/CD pipeline streamline operations so you can focus on operating, not setup and deployment. Our Technical Services team serves as our “special operations,” providing support on engagements when you get stuck or need advice. You’ll always have a teammate to collaborate with, as we have a two-person integrity requirement for all operations.</p><h3>Career Progression</h3><p>At SpecterOps, your technical skills should continue to grow, regardless of your role. Unlike traditional paths that often lead consultants away from hands-on work, we foster a culture where technical expertise is valued at every level. Whether you’re drawn to management, consulting, tool development, or deep technical specialization, your passion for hacking will always have a home here. Our Managers have experience operating in the trenches and understand the importance of career progression. They serve as advocates for Consultants, attempting to align the individual with the projects or focus areas they’re interested in.</p><p>Our <strong>Associate Consultant</strong> position is focused on learning and growth. The manager’s responsibility is to help you develop and evolve into a <strong>Consultant</strong> and<strong> Senior Consultant</strong>.</p><p>Our <strong>Consultant</strong> position focuses on being a strong individual contributor. A Consultant can be assigned to any project while developing into a project lead for some service lines.</p><p>The <strong>Senior Consultant</strong> position is meant to be terminal, meaning you don’t have to progress beyond that level if you don’t want to while still earning annual merit salary increases. However, if you do want to progress beyond <strong>Senior Consultant</strong>, we have three paths available: <strong>Principal</strong> <strong>Consultant</strong>, <strong>Service Architect</strong>, and <strong>Managing Consultant</strong>.</p><ul><li><strong>Principal Consultants</strong> continue consulting while managing client partnerships and performing scoping. They are the people we rely on to solve nebulous consulting-related problems.</li><li><strong>Service Architects</strong> are the special operators I mentioned above. In addition to providing technical support on operations, they architect new services and improve existing ones.</li><li><strong>Managing Consultants</strong> are the first level of leadership. They manage other consultants of all levels while still performing operations and client projects.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*3McSYvJVCJVa-xbz" /></figure><h3>Build Your Brand</h3><p>Ok, you’re sold, but let me drive the point home…</p><p>Remember how I said we invest in you? Much of our marketing material and value comes from our open-source tools, blog posts, research, etc., but we want you to build your own personal brand. SpecterOps will pay the travel costs associated with conference presentations. Want to submit to a CFP in Switzerland? We got you.</p><p>We want our Specters to do these things, but we want them to remain yours. SpecterOps has a highly unique open intellectual property (IP) policy. If you perform research or develop an open-source tool, it remains yours. You will publish tools on your personal code repository and blogs on your personal blog of choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NXC9YsRhp2VYDMBv" /></figure><h3>Take the Next Step</h3><p>In closing, SpecterOps truly takes a unique approach to employee growth and development. We focus on balance, support, and interesting work.</p><p>We are hiring consultants at various levels and would love to hear from you. The job posting (including salary bands) can be found under the Consultant openings here: <a href="https://specterops.io/careers/#careers">https://specterops.io/careers/#careers</a></p><p>As a follow-up to this blog, I will publish another short blog about our interview process, what we look for, and the keys to success!</p><p>Please feel free to reach out to me on <a href="https://x.com/subat0mik">X</a> or <a href="https://www.linkedin.com/in/dmichaeljr/">LinkedIn</a> if you have any questions about SpecterOps or the role, or directly to careers@specterops.io.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0713b1c59ae1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/specter-ops-posts/life-at-specterops-the-red-team-dream-0713b1c59ae1">Life at SpecterOps: The Red Team Dream</a> was originally published in <a href="https://medium.com/specter-ops-posts">Posts By SpecterOps Team Members</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Misconfiguration Manager: Overlooked and Overprivileged]]></title>
            <link>https://medium.com/specter-ops-posts/misconfiguration-manager-overlooked-and-overprivileged-70983b8f350d?source=rss-8ae4966ea2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/70983b8f350d</guid>
            <category><![CDATA[sccm]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[attack-path-management]]></category>
            <dc:creator><![CDATA[Duane Michael]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 18:43:51 GMT</pubDate>
            <atom:updated>2024-03-05T18:43:51.930Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>TL;DR:</strong> <a href="https://github.com/subat0mik/Misconfiguration-Manager"><em>Misconfiguration Manager</em></a><em> is a central knowledge base for all known Microsoft Configuration Manager tradecraft and associated defensive and hardening guidance. We’re also presenting this material at SO-CON 2024 on March 11, 2024. We’ll update this post with a link to the recording when it becomes available.</em></p><h3>Background</h3><p>Suppose you’ve been following offensive security research over the past two years. In that case, we’re hopeful that you’ve stumbled across some of our research targeting Microsoft’s Configuration Manager, formerly known as System Center Configuration Manager or SCCM.</p><p>Configuration Manager was first released in 1994. Thirty years later, it’s still going strong and widely deployed in almost every Windows and Active Directory environment we encounter. Like Active Directory, Configuration Manager installations are victims of 30 years of technical debt and compounding misconfigurations.</p><p>Configuration Manager has been a known tool for attackers for at least 12 years when Dave Kennedy and Dave DeSimone <a href="https://vimeo.com/47978442">presented </a>about attacking it at DEF CON 20.</p><p>Fast forward a few years, and Matt Nelson released a few blog posts and PowerSCCM with Will Schroeder. There were a few other blog posts during this time, but after early 2016, Configuration Manager research largely fell dormant…</p><p>Fast forward again to 2021… Chris Thompson and I were on a red team operation together where we found ourselves with domain admin, but that wasn’t enough for our objective. We had to find a specific user’s workstation, and the typical approaches weren’t an option. Chris had the idea to use the customer’s Configuration Manager server to find where the user’s workstation was via user device affinity. Long story short, Chris ported PowerSCCM to C#, resulting in the creatively named SharpSCCM. Much more research stemmed from this, leading to (at least) eight more blog posts from myself, Chris, and our fellow Specters, Garrett Foster and Diego Lomellini. Additionally, other members of the community have contributed excellent Configuration Manager research and tooling: Evan McBroom, Benjamin Delpy, Christopher Panayi, Phil Keeble, Carsten Sandker, Matt Creel, Adam Chester, Tomas Rzepka, Brandon Colley, and Sanjiv Kawa.</p><p>So here we are, ~2 years after we kicked off this SCCM research marathon, and there’s <em>so much to know</em> that it’s easy to feel lost or overwhelmed with so many different blogs, tools, and resources. We’re here to help!</p><h3>The Current Landscape</h3><p>Microsoft Configuration Manager is a software platform first released in 1994, designed for the wide-scale deployment of applications, software updates, operating systems, and compliance settings. It enables the real-time management of servers and workstations.</p><p>As with most 30-year-old technologies, Configuration Manager was not designed with modern security considerations. Many of its default configurations enable various components of its attack surface. Couple that with the inherent challenges of Active Directory environments and you have a massive attack surface suffering from a combined 55 years of technical debt.</p><p>The responsibility of SCCM typically belongs to desktop or server admins and may be overlooked by information security teams.</p><p>We encounter Configuration Manager installations in almost every Active Directory environment. The adoption rate is significant, and with good reason. The utility of the platform speaks for itself. Unfortunately, without deliberate attack path management, the attack surface of Configuration Manager inherently decreases an environment’s security posture.</p><p>To emphasize our point, we’d like to share a few stories from our own experiences, of our colleagues, and of the community.</p><h4>The Most Common Misconfiguration</h4><p>The most common and arguably the worst misconfiguration we see is overprivileged network access accounts (NAA). Now, Configuration Manager uses many different accounts for many other things. It’s overwhelming to configure, and a novice or unknowing administrator may choose to use the same privileged account for all of the things.</p><ul><li>After gaining access to a standard user’s SharePoint, we found we had read access to Configuration Manager PXE boot media, which was not password protected. We extracted the certificate to request the network access account, which was a local administrator on every Configuration Manager client.</li><li>We (very) commonly find the network access account to be configured as the client push installation account (local admin on all clients), SCCM Administrator, or even domain administrator.</li><li><a href="https://twitter.com/rustla">Russ</a> shared that they dumped the NAA from a client and found not one but two domain admin accounts for two disparate domains. That’s because a common deployment scenario for Configuration Manager is <a href="https://www.1e.com/blogs/mvp-questions-answered/">cross-forest</a> management.</li></ul><h4>A Domain Controller’s Unexpected Journey</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*jyuKYNFRYGJo2CeG8myKgg.png" /></figure><p>A prominent feature of Configuration Manager is its operating system deployment (OSD) feature, which makes use of PXE booting and task sequences.</p><p>When a computer PXE boots from Configuration Manager, a task sequence executes to join that computer to the domain. The account that takes this action is called the task sequence domain join account. The credentials for this account are accessible by any PXE client. Now, when an account joins a computer to the domain, it creates a corresponding computer object in Active Directory. That account becomes the owner of the newly-created computer object.</p><p>Therefore, if OSD is used to join many computers (workstations or servers) to the domain, the domain join account will have <a href="https://bloodhound.readthedocs.io/en/latest/data-analysis/edges.html#owns">ownership</a> over all of them. If a server is promoted to domain controller, or granted other Tier Zero roles, the domain join account serves as a direct path to those assets.</p><h4>Domain Controller or SCCM Client?</h4><p>Configuration Manager sites can be configured to enroll domain controllers as clients. You may be thinking, “that sounds like a bad idea!” and you’d be correct. If a standard site manages Tier Zero assets without itself being treated as Tier Zero, we violate the tiering principle.</p><p>Therefore, if we can take over the site (much more of this coming later in this blog!), we can achieve remote code execution via Configuration Manager’s various features: application, script, and package deployment.</p><h4>Crawling Through the Darkness</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*mcl-PdxxZ87_QFDR1l9xtg.png" /></figure><p>This is my favorite Configuration Manager tale. While triaging task sequence logs, we found an interesting script in a readable network location. We downloaded the script, which contained credentials for an MSSQL database. We authenticated to the MSSQL database and discovered a SQL link to another instance. Rinse and repeat two more times. After crawling three SQL links, we landed in the Configuration Manager CAS site database. Then, we cracked the DBA credentials to log into the database directly. We got code execution on the server via xp_cmdshell. Also, we granted ourselves the “Full Administrator” role in the RBAC_Admins table. Finally, we hosted a payload on a network share and used Configuration Manager to execute the payload on a domain controller client.</p><h3>Introducing Misconfiguration Manager</h3><p>You’re probably thinking: “OK, Duane. We get it. Configuration Manager is bad. This is overwhelming and scary, and you’ve only shown us the tip of the iceberg.” You’re right in that it is only the tip of the iceberg, but there is hope!</p><p>We (Chris Thompson, Garrett Foster, and myself) would like to introduce “<a href="https://misconfigurationmanager.com/">Misconfiguration Manager</a>.” Misconfiguration Manager is a central knowledge base for all known Microsoft Configuration Manager tradecraft and associated defensive and hardening guidance. We aim to help demystify SCCM tradecraft and simplify SCCM attack path management for defenders while educating offensive professionals on this nebulous attack surface. Designed to go beyond the static nature of whitepapers, this living repository not only documents SpecterOps’ real-world application of misconfigurations but also encourages ongoing contributions from the community to enhance its relevance and utility.</p><p>At SpecterOps, we’ve leveraged many misconfigurations highlighted in this repository in real-world environments, while some represent experimental and exploratory research projects proved out in a lab environment.</p><p>We’ve curated this repository to raise awareness of the rapidly evolving SCCM threat landscape, drawing inspiration from the MITRE ATT&amp;CK framework, with a few deviations. We were also strongly influenced by Push Security’s <a href="https://github.com/pushsecurity/saas-attacks/tree/main">SaaS attack techniques matrix</a>.</p><p>Our colleagues, <a href="https://twitter.com/tifkin_">Lee Chagolla-Christensen</a> and <a href="https://twitter.com/harmj0y">Will Schroeder</a>, also provided feedback and guidance on lessons learned from their Certified Pre-Owned research, resulting in strongly influencing the format of this project.</p><p>Our approach extends beyond cataloging the tactics of known adversaries to include contributions from the realms of penetration testing, red team operations, and security research. We openly invite and value the submission of both proven and exploratory SCCM-focused attack techniques and defensive strategies.</p><p>You’ll find a rendering of the matrix in its current state in the figure below. You may notice some tactics were removed from the table as we felt they were not directly applicable or valuable.</p><p>The project currently contains 22 techniques for attacking Configuration Manager or using it for post-exploitation. This is only an early release version, and we have several additional techniques that have not yet been added. There is much more work to do!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eNhJex1PHoMHDJ7yR7I_g.png" /><figcaption>Misconfiguration Manager Attack Matrix Overview</figcaption></figure><ul><li><a href="https://misconfigurationmanager.com/">https://misconfigurationmanager.com</a></li><li><a href="https://github.com/subat0mik/Misconfiguration-Manager">https://github.com/subat0mik/Misconfiguration-Manager</a></li></ul><h3>Highlighting the Techniques</h3><p>While Misconfiguration Manager contains many attack techniques, this blog is simply not the avenue to introduce all of them. However, we will highlight our taxonomy with a basic description of the various techniques. In addition to the technique IDs listed here, we’ve assigned some techniques with sub-techniques, as slight variations exist that did not warrant their own ID. There is MUCH more detail, resources, examples, citations, and defensive guidance on the repo. Please reference that for more information!</p><p>First up are the credential access-related techniques, which we’ve named <strong>CRED</strong>. The project currently catalogs five CRED techniques:</p><ol><li><strong>CRED-1 </strong>— Retrieve credentials via PXE boot media</li><li><strong>CRED-2</strong> — Request a policy containing credentials, then deobfuscate</li><li><strong>CRED-3</strong> — Extract currently deployed credentials stored as DPAPI blobs and decrypt</li><li><strong>CRED-4</strong> — Extract legacy credentials stored as DPAPI blobs and decrypt</li><li><strong>CRED-5</strong> — Extract and decrypt the SC_UserAccount table from the site database</li></ol><p>Next, we added two techniques for privilege escalation. These can be used for privilege escalation and lateral movement. We named this category “ELEVATE” because “ESCALATE” would be too confusing with the mega-popular ADCS ESC* techniques.</p><ol><li><strong>ELEVATE-1</strong> — Coerce NTLM authentication over SMB from the site server, then relay SMB on-site systems</li><li><strong>ELEVATE-2</strong> — Coerce NTLM authentication via automatic client push installation, then relay to other clients or site systems</li></ol><p>“EXEC” is the next category. Here, we curate the various methods that Configuration Manager offers to execute code on its clients. We currently have two documented but there are more to be added!</p><ol><li><strong>EXEC-1</strong> — Deploy an application to a device or collection</li><li><strong>EXEC-2</strong> — Execute a custom script on a device or collection</li></ol><p>Next up, RECON! This category encompasses methods for identifying SCCM systems, as well as using SCCM to perform recon and discovery.</p><ol><li><strong>RECON-1</strong> — Enumerate LDAP for SCCM-related assets</li><li><strong>RECON-2</strong> — Enumerate SMB for SCCM-related assets</li><li><strong>RECON-3 </strong>— Enumerate HTTP(S) for SCCM-related assets</li><li><strong>RECON-4</strong> — Leverage CMPivot to query information from clients</li><li><strong>RECON-5</strong> — User hunting via SMS Provider</li></ol><p>Lastly, we have the TAKEOVER category. TAKEOVER techniques are composed of various steps required to take over an SCCM hierarchy. Complete domain compromise will usually follow shortly after a hierarchy takeover. Note: many of these IDs have sub-techniques.</p><ol><li><strong>TAKEOVER-1 </strong>— Hierarchy takeover via NTLM coercion and relay to MSSQL on remote site database</li><li><strong>TAKEOVER-2</strong> — Hierarchy takeover via NTLM coercion and relay to SMB on remote site database</li><li><strong>TAKEOVER-3 </strong>— Hierarchy takeover via NTLM coercion and relay to HTTP on ADCS</li><li><strong>TAKEOVER-4</strong> — Hierarchy takeover via NTLM coercion and relay from CAS to origin primary site server</li><li><strong>TAKEOVER-5</strong> — Hierarchy takeover via NTLM coercion and relay to AdminService on remote SMS Provider</li><li><strong>TAKEOVER-6 </strong>— Hierarchy takeover via NTLM coercion and relay to SMB on remote SMS Provider</li><li><strong>TAKEOVER-7 </strong>— Hierarchy takeover via NTLM coercion and relay to SMB between primary and passive site servers</li><li><strong>TAKEOVER-8 </strong>— Hierarchy takeover via NTLM coercion and relay HTTP to LDAP on domain controller</li></ol><p>Here, we show what this looks like in the repo itself. The repo is organized by category (E.g., TAKEOVER) and then technique ID (E.g., TAKEOVER-1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*D3aX8qgX83TgTsLYT_lCwA.png" /></figure><p>Each ID has a description.mdfile containing the article. This file is structured with a high-level description of the technique in plain English, relevant MITRE ATT&amp;CK TTPs, and any requirements necessary to execute this technique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*PwBMFzqAX-_B6oSsEZ86Lg.png" /><figcaption>TAKEOVER-1 Description, TTPs, Requirements</figcaption></figure><p>Then, it includes a summary of the technique at a more in-depth level, followed by the potential impact of the technique. The defensive IDs section cross-references similar articles for defensive guidance for the technique. The sub techniques section references similar variations of the technique, usually varying only by the systems abused but largely the same procedure. The examples section contains step-by-step procedural walkthroughs for how to execute the technique. We’ve tried to include examples from both Windows and Linux workstations where feasible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*csCkqtvvrfg_lSdPDF6Hkg.png" /><figcaption>TAKEOVER-1 Summary, Impact, Defensive IDs, Subtechniques, Examples</figcaption></figure><p>The last section is references, where we’ve tried to capture relevant references and give credit where credit’s due. If you feel an article is missing information (let us know!), you can likely find the answer in the references.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*O7XnYJEU5m9-Z_u0DgUuhA.png" /><figcaption>TAKEOVER-1 References</figcaption></figure><h3>Protecting and Defending</h3><p>Finally, it is not enough to merely show you how to break Configuration Manager without telling you how to fix it! Each offensive ID has defensive IDs meant to prevent the components of the attack techniques discussed.</p><p>In the repo readme, you’ll also find a matrix that correlates the various defensive IDs to the offensive IDs, simplifying the search for the “most bang for your buck” remediations.</p><p>We introduce three defensive ID categories: PREVENT, DETECT, and CANARY.</p><p>PREVENT IDs (mostly) describe configuration changes that directly mitigate or affect an attack technique.</p><p>DETECT IDs offer detection guidance and strategies for detecting various attack techniques.</p><p>CANARY IDs offer deception-based detection strategies using features that attackers commonly abuse.</p><p>Here, we demonstrate a PREVENT article. These articles are shorter and more modular than offensive ones, as each covers a specific configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*ETnTu7Pic1MKeqnxN1UIQw.png" /><figcaption>PREVENT-4 Description, Summary</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*wNhafpjjcvl82-1wkm1IHw.png" /><figcaption>PREVENT-4 Linked Defensive IDs, Associated Offensive IDs, References</figcaption></figure><h3>In Closing</h3><p>This project has been a long time coming and a lot of work has gone into it but we have so much more to do. We greatly appreciate your feedback and contributions and sharing this project with your network.</p><p>The SCCM attack surface is vast. Consuming, understanding, and actioning all the released research and content is challenging. Through our <a href="https://posts.specterops.io/a-push-toward-transparency-c385a0dd1e34">commitment to transparency</a>, SpecterOps strives to demystify adversary tradecraft so that the community can better protect and defend their environments.</p><p>Please reach out to us on X or the #sccm channel <a href="https://ghst.ly/BHSlack">BloodHound Slack</a> with any feedback or questions!</p><p>This blog post accompanies our presentation at SO-CON 2024 on March 11. We will update the blog to include a link to the recording when it becomes available.</p><p>Duane Michael — <a href="https://twitter.com/subat0mik">X</a>, <a href="https://github.com/subat0mik">GitHub</a>, @ subat0mik on Slack<br>Chris Thompson — <a href="https://twitter.com/_Mayyhem">X</a>, <a href="https://github.com/Mayyhem">GitHub</a>, @ Mayyhem on Slack<br>Garrett Foster — <a href="https://twitter.com/garrfoster">X</a>, <a href="https://github.com/garrettfoster13">GitHub</a>, @ Garrett on Slack</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70983b8f350d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/specter-ops-posts/misconfiguration-manager-overlooked-and-overprivileged-70983b8f350d">Misconfiguration Manager: Overlooked and Overprivileged</a> was originally published in <a href="https://medium.com/specter-ops-posts">Posts By SpecterOps Team Members</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Phantom Credentials of SCCM: Why the NAA Won’t Die]]></title>
            <link>https://medium.com/specter-ops-posts/the-phantom-credentials-of-sccm-why-the-naa-wont-die-332ac7aa1ab9?source=rss-8ae4966ea2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/332ac7aa1ab9</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[sccm]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Duane Michael]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 16:02:53 GMT</pubDate>
            <atom:updated>2022-06-28T19:01:54.453Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL;DR — Stop Using Network Access Accounts!</h3><p>If a Windows machine has ever been an SCCM client, there may be credential blobs for the <a href="https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/accounts#network-access-account">network access account</a> (NAA) on disk.</p><p>If an Active Directory account has ever been configured as an NAA, there may be credential blobs for that account on Windows hosts in the environment.</p><p>Stop using NAAs and transition to <a href="https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/enhanced-http">Enhanced HTTP</a>. That’s not enough! The credentials may persist on former clients. The NAA accounts should be disabled/removed from Active Directory!</p><h3>Previous Work and Credit</h3><p>Matt Nelson (<a href="https://twitter.com/enigma0x3">@enigma0x3</a>) originally wrote about offensive SCCM back in 2016 and released his <a href="https://enigma0x3.net/2016/02/29/offensive-operations-with-powersccm/">PowerSCCM</a> project, along with Will Schroeder (<a href="https://twitter.com/harmj0y">@harmj0y</a>), Jared Atkinson (<a href="https://twitter.com/jaredcatkinson">@jaredcatkinson</a>), and Matt Graeber (<a href="https://twitter.com/mattifestation">@mattifestation</a>).</p><p>Chris Thompson (<a href="https://twitter.com/_Mayyhem">@_Mayyhem</a>) took inspiration from Matt et al. and ported PowerSCCM functionality to C#. He also did a ton of novel SCCM research with more on the way! Chris has continued to inspire and push me every day. He planted the seed for digging into network access accounts. Thanks, Chris!</p><p>Will Schroeder (<a href="https://twitter.com/harmj0y">@harmj0y</a>) was super helpful and patient while I nagged him with DPAPI and C# programming questions. Thanks, Will!</p><p>Others in the offensive security space are putting out great work as well, such as Phil Keeble and his <a href="https://labs.nettitude.com/blog/introducing-malsccm/">MalSCCM</a> project.</p><h3>What is the Network Access Account?</h3><p>Microsoft’s Configuration Manager, also known as System Center Configuration Manager (SCCM), uses various <a href="https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/accounts">accounts</a> in a deployment. One of the accounts it uses is called the “Network Access Account” or NAA. The NAA serves a simple role in SCCM: allow a non-domain-joined computer to retrieve software from the SCCM distribution point.</p><p>Typically a domain-joined client would simply use its machine account to achieve this. However, there may be a scenario where an additional account is needed, such as the client is not domain joined (yet?) or is in an untrusted domain.</p><p>The NAA does nothing on the host. It simply accesses resources over the network. Therefore, the account <a href="https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/accounts#network-access-account"><em>should</em></a> be configured with the least privilege necessary to access the content on the distribution point. It should also be configured such that it does not have interactive logon rights. But we know how things can be misconfigured…</p><p><strong>Is the NAA even necessary?</strong></p><p>Well, no. Microsoft recommends using <a href="https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/enhanced-http">Enhanced HTTP</a> which eliminates the need for an NAA completely.</p><h3>So how do we retrieve these credentials?</h3><p>The SCCM server sends the NAA policy which includes the credentials for the account to every SCCM client. <a href="https://rzander.azurewebsites.net/network-access-accounts-are-evil/">As Roger Zander alluded to </a>several years ago, the NAA policy gets stored on the client and protected by DPAPI. Specifically, the credentials are protected by the system’s DPAPI master key then stored as blobs in the “CCM_NetworkAccessAccount” class of the “root\ccm\policy\Machine\ActualConfig” WMI namespace. We can manually query these blobs from a high-integriy PowerShell process:</p><pre>Get-WmiObject -namespace “root\ccm\policy\Machine\ActualConfig” -class “CCM_NetworkAccessAccount”</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwjGfa-JFL73B4QxLO1Uxg.png" /><figcaption>Figure 1 — NAA WMI Query</figcaption></figure><p>or programmatically in C# (as is done in <a href="https://github.com/GhostPack/SharpDPAPI/blob/81e1fcdd44e04cf84ca0085cf5db2be4f7421903/SharpDPAPI/Commands/SCCM.cs#L208-L244">SharpDPAPI</a> and <a href="https://github.com/Mayyhem/SharpSCCM">SharpSCCM</a>).</p><p>We’ve automated the retrieval and decryption by adding the SCCM command to <a href="http://twitter.com/harmj0y">@harmj0y</a>’s SharpDPAPI project. This command will check if it’s running as high integrity, query the WMI class for the DPAPI blobs, parse the blobs, retrieve the system’s DPAPI masterkeys, and decrypt the blobs with the appropriate key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*DOLGV-U4cNChPNkHB2ELTw.png" /><figcaption>Figure 2 — SharpDPAPI Retrieval and Decryption of NAA Credentials</figcaption></figure><p><strong><em>TL;DR — If you can escalate on a host that is an SCCM client, you can retrieve plaintext domain credentials.</em></strong></p><h3>Who cares?</h3><p>As red teamers, we often seek cleartext credentials so we can do things like runas /netonly and proxy our Windows tooling into a target environment. With an NAA configured, we have a trivial path to plaintext credentials (as long as we can escalate locally!)</p><p>You’re probably thinking…</p><ul><li>this feature isn’t necessary</li><li>there’s a simple fix</li><li>companies will just remove their privileged NAA and replace it with something unprivileged</li><li>companies will just remove the NAA entirely…</li></ul><p>Great! They should. I hope they do. Unfortunately, we’re still seeing NAAs in most environments.</p><p>Remember earlier how I mentioned that you can query the DPAPI-protected blobs using PowerShell and WMI? Well, that’s not the only way you can recover the blobs…</p><p>WMI stores data in the CIM repository located at C:\Windows\System32\wbem\Repository\OBJECTS.DATA. This is a binary file that contains all CIM entities. This means that when the NAA policy is sent to the device and stored in a WMI class, the blobs are actually stored in this file on disk. I won’t cover the CIM repository in detail in this blog post, but for more information, please see the fantastic WMI research from Matt Graeber (<a href="https://twitter.com/mattifestation">@mattifestation</a>), William Ballenthin, and Claudiu Teodorescu (<a href="https://twitter.com/cteo13">@cteo13</a>)located <a href="https://www.mandiant.com/sites/default/files/2021-09/wp-windows-management-instrumentation.pdf">here</a>.</p><p>The DACL on the file makes it world-readable, so any unprivileged user can simply run strings (or open the file in notepad) to retrieve the DPAPI-protected blobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BwQtb9b9J4FVgDwsi69cPA.png" /><figcaption>Figure 3 — World-readable DACL on the WMI database file</figcaption></figure><p>So what? We still need to be an admin to retrieve the masterkey…. Yes, you are correct but this allows NAA credentials to be recovered even after SCCM has transitioned to Enhanced HTTP. The underlying issue of the CIM repository being world-readable may also expose additional sensitive data…</p><h3>Interesting Scenarios…</h3><p>NAAs have been a known issue for years and I <a href="https://twitter.com/subat0mik/status/1526653580563910656?s=20&amp;t=922d45ynNqj81_BXdh8_rQ">tweeted</a> about how to retrieve and decrypt them with a single keystroke several weeks ago.</p><p>However, while studying NAAs in my lab, we noticed a few interesting findings…</p><p><strong>Scenario 1: SCCM Client Uninstalled</strong></p><p>When the SCCM client is uninstalled on a host, the blobs can no longer be retrieved via WMI. But what happens to the data stored within the binary WMI database file? One would assume that SCCM cleans up this data when the client is uninstalled.</p><p>Wrong.</p><p>We discovered that the NAA blobs persisted in the CIM repository after the SCCM client was uninstalled.</p><p>In Figure 1, we can see that our Windows host is an SCCM client with an NAA policy deployed. We can query the blobs via WMI:</p><pre>NetworkAccessPassword :<br>&lt;PolicySecret Version=&quot;1&quot;&gt;&lt;![CDATA[0601000001000000D08C9DDF0115D1118C7A00C04FC297EB010000007A048A2301E4584CB69064BFEED26777000000000200000000001066000000010000200000002FB37C6CE939F27E3F437B16AEBC5B5223312CC6B180819BDAFB5DF24FAECB83000000000E8000000002000020000000EC7040E8246F2579D6D81C0375996EBC86DDC1BEAD1B16FBC9F46703A432096D30000000A94A1099899DDE0F8C7945D1B63F1B5BC63703782F8882CCF1E7C64DDF9E095C03E75F55517E4C97C37898275ED4B16340000000E65693B9C7E095360EC5A43AFDE02569F5EC2DFA1944CA64740B1C0C82F46F01CB4A6534B23FF6EFB4ADEF01F7B7B4B961C1DC0CEABF51D1A58F900A4695375A]]&gt;&lt;/PolicySecret&gt;<br>NetworkAccessUsername :<br>&lt;PolicySecret Version=&quot;1&quot;&gt;&lt;![CDATA[0601000001000000D08C9DDF0115D1118C7A00C04FC297EB010000007A048A2301E4584CB69064BFEED26777000000000200000000001066000000010000200000007233FEFB255EE03E9DCF10C34CC173A816813F5C6D7BE921E1C83B9732D1B7A3000000000E8000000002000020000000D1739D10CD4E841EB8257975C3C1683078DF742876DF5AEEB7EF91A58D40115530000000426DAFEC954A99406F8D3F966C8A2D41B07F3BC2AE5B9D2ED32B9F6A83E4944988AA99DA012BFB0B0C08300A3397DF1D4000000057DACB638E6519F0B0D26BDA600B9CFF32E5084FE99511582AB20D24819EB75A9499F9E50428DB9FE66171EC50DEEB7B1DF6A2C22E20C79C377DF18E166A642F]]&gt;&lt;/PolicySecret&gt;</pre><p>which decrypts to:</p><pre>THANGORODRIM\CM_NAA<br>NetworkAccessYeah!</pre><p>Now we’ll uninstall the SCCM client on the host and reattempt the query:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Xfb3NmmNVG1SiF-H9gl9g.png" /><figcaption>Figure 4 — SCCM Client Uninstalled and WMI Objects Removed</figcaption></figure><p>If we inspect the CIM repository in a text editor, we can see that the blobs persist client uninstallation, reboot, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7LV-_5ZQC2bxTFO1giErA.png" /><figcaption>Figure 5 — Credential Blobs Persist After Client Uninstallation</figcaption></figure><p><strong><em>TL;DR — If a client has ever been an SCCM client, there may be domain credentials on disk.</em></strong></p><p>This particular finding was impactful with a client who used SCCM to image laptops which were then removed from the domain and shipped off to personnel in the field.</p><p><strong>Scenario 2: Changes to the NAA</strong></p><p>Maybe a company accidentally configured its NAA to be a privileged account. With security researchers looking into SCCM and NAAs lately, maybe that company has changed the NAA from the privileged account to an unprivileged account. Surely SCCM must handle the cleanup and removal of the old NAA credential blobs from the WMI database…</p><p>Wrong.</p><p>Now we’ll change the NAA account on the SCCM server and update the policy on our Windows host. A simple way to prove that the NAA account has changed is to run SharpDPAPI.exe SCCM again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*czT62ZJpYBCsqdQxZjRXWg.png" /><figcaption>Figure 6 — Updated NAA</figcaption></figure><p>Now we can see that the configured NAA is THANGORODRIM\BACKUP_NAA. Let’s inspect the CIM repository in a text editor again…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCsxiJyJTAKTBV4eBsNRSA.png" /><figcaption>Figure 7 — Credential Blob in CIM Repository</figcaption></figure><p>Note that this blob is different from the one above because it was encrypted with a different DPAPI masterkey. No matter, SharpDPAPI will triage all system masterkeys for us. We’ll do some manual work to decrypt this blob, as we have not yet completed the code to automate this part:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V6LMn-Rv57xnN5KZEdpx7w.png" /><figcaption>Figure 8 — Credential Blob Decryption</figcaption></figure><p>Now we’ve verified that THANGORODRIM\CM_NAA, the original NAA account used, is still on disk in the CIM repository, despite the NAA account being changed in SCCM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*qdMyrcX69UCqGHIZVaZf3Q.png" /><figcaption>Figure 9 — Current SCCM Lab NAA Configuration</figcaption></figure><p><strong><em>TL;DR — If an account has ever been configured as an NAA, its credentials may be on disk.</em></strong></p><p>These scenarios effectively negate the transition away from NAAs to Enhanced HTTP <em>unless the NAA accounts are removed or disabled in Active Directory.</em></p><p>After these discoveries, we stumbled across the <a href="https://github.com/mandiant/flare-wmi/blob/master/python-cim/doc/data-recovery.md">Flare-WMI</a> repository from Mandiant’s FLARE team, also associated with the previously cited WMI research. They <a href="https://github.com/mandiant/flare-wmi/blob/master/python-cim/doc/data-recovery.md">discuss</a> the possibility of recovering a deleted WMI object’s data from the CIM repository, which is exactly what we’ve discovered here with the NAA.</p><h3>Mitigation Guidance</h3><p>First of all, determine if you’re using an NAA in your SCCM environment. Transition to <a href="https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/enhanced-http">Enhanced HTTP</a>, per Microsoft’s recommendations. As I outlined above, eHTTP won’t matter if the NAA credential blobs are still valid. After transitioning away from NAAs, disable or remove the NAA accounts in Active Directory.</p><h3>Disclosure</h3><p>We are disclosing this research in keeping with <a href="https://posts.specterops.io/a-push-toward-transparency-c385a0dd1e34">our commitment to transparency</a>.</p><p>We disclosed both the world-readable CIM repository file and the historic NAA artifacts to Microsoft on March 3, 2022. We followed up on the case on April 11, May 4, and May 17 but never received any response.</p><h3>Future Work</h3><p>It is clear that this is an access control issue with the WMI database itself so we think there’s more to look at there. What other applications store sensitive data in WMI? Additionally, we’re working on code to automate retrieval of these blobs from the file which will be implemented in SharpSCCM.</p><p>I’m sure there’s a lot more to be covered here. If I missed anything, made any errors, or if you’d like to collaborate, please reach out on Twitter (<a href="https://twitter.com/subat0mik">@subat0mik</a>) or <a href="https://bloodhoundgang.herokuapp.com/">BloodHound Gang Slack</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=332ac7aa1ab9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/specter-ops-posts/the-phantom-credentials-of-sccm-why-the-naa-wont-die-332ac7aa1ab9">The Phantom Credentials of SCCM: Why the NAA Won’t Die</a> was originally published in <a href="https://medium.com/specter-ops-posts">Posts By SpecterOps Team Members</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>