BOFScale A CDN-Fronted Tailnet from a BOF-PE - #2725
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://netspi.com/blog/technical-blog/red-teaming/bofscale-a-cdn-fronted-tailnet-from-a-bof-pe Content Categories: Based on the analysis, this content was categorized under "Generic Hacking > Tunneling and Port Forwarding, with cross-references from Windows Hardening > Cobalt Strike and Active Directory Methodology > Force NTLM Privileged Authentication". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview and architecture
BOFScale is an open-source red-team toolset that runs a modified Tailscale network overlay entirely inside a Windows C2 implant. It avoids installing a TUN driver, Windows service, persistent state file, or child processes. Its control-plane and relay traffic is transported as RFC 6455 WebSockets over TCP/443, allowing the operator-controlled Headscale and DERP infrastructure to sit behind CloudFront or Fastly and resemble ordinary CDN-fronte...
🔧 Technical Details
Convert proprietary HTTP upgrades into CDN-compatible WebSockets: When a control or relay protocol uses a non-standard HTTP upgrade that a CDN rejects, encapsulate the same protocol stream in RFC 6455 WebSockets. Preserve the normal dialing path but retry through WebSockets on intermediary-specific responses, such as HTTP 500 for TS2021 and HTTP 426 for DERP. Set a protocol-specific WebSocket subprotocol, retain system-proxy support, and optionally force WebSocket mode when the standard path is known to be blocked.
Run a network overlay entirely inside an implant: Compile a network daemon as a CGo
c-sharedDLL/BOF-PE, execute it as an asynchronous job, select a pure userspace network stack, store state in memory, and expose the local control API through a randomized Windows named pipe. Redirect stdout and stderr through an operating-system pipe into the C2 output API. Host the Go runtime in a sacrificial process because unloading ...🤖 Agent Actions
Updated
src/generic-hacking/tunneling-and-port-forwarding.mdwith a BOFScale section covering:Validation passed for references, citations, internal links, source URLs, forbidden sources, and
git diff --check. Only the intended file changed.mdbookwas unavailable for a full build.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.