DataDog / stratus-red-team

:cloud: :zap: Granular, Actionable Adversary Emulation for the Cloud
https://stratus-red-team.cloud
Apache License 2.0
1.84k stars 216 forks source link

New Technique: Access Virtual Machine using Bastion shareable link #583

Closed siigil closed 1 month ago

siigil commented 1 month ago

What does this PR do?

New attack technique: Persistence via Azure Bastion shareable link.

Motivation

This technique has been documented as a method for maintaining VM access off-network:

Currently, I'm making the assumption that shareable links are enabled (as they may already be for a contractor or similar), to focus on the creation of a shareable link as the overall technique. Open to critique on this approach!

Checklist

siigil commented 1 month ago

@christophetd Added changes based on your feedback in, but as a heads up haven't retested just yet (will tomorrow AM). Feel free to change/comment anything tomorrow if you get to this first!

siigil commented 1 month ago

Updated technique to provide shareable link + credentials for direct bastion access.