Discord as a C2 and the cached evidence left behind#1410
Merged
carlospolop merged 129 commits intomasterfrom Sep 30, 2025
Merged
Conversation
- Remove searchindex.js (auto-generated file)
…oading_20250824_182553 DLL ForwardSideLoading
… for Andr... - Remove searchindex.js (auto-generated file)
… for Andr... - Remove searchindex.js (auto-generated file)
- Remove searchindex.js (auto-generated file)
…ache Pois... - Remove searchindex.js (auto-generated file)
- Remove searchindex.js (auto-generated file)
…al captur... - Remove searchindex.js (auto-generated file)
…Improvements_and_Vulnerability_Dis_20250904_124648 ksmbd - Fuzzing Improvements and Vulnerability Discovery (2/...
…l and ATS - Remove searchindex.js (auto-generated file)
…Misuse an... - Remove searchindex.js (auto-generated file)
- Remove searchindex.js (auto-generated file)
- Remove searchindex.js (auto-generated file)
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://www.pentestpartners.com/security-blog/discord-as-a-c2-and-the-cached-evidence-left-behind/ Content Categories: Based on the analysis, this content was categorized under "Generic Hacking -> Exfiltration (add a subsection: Using Webhooks (Discord/Slack/Teams) for C2 & Data Exfiltration, including PoC and forensic artifacts)". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
…250827_141120 HTB TheFrizz
…to_remote_contr_20250909_125805
…n__From_NFC_heists_to_remote_contr_20250909_125805 The Rise of RatOn From NFC heists to remote control and ATS
…armful_Content__20250916_011545
…e_Assistant_LLMs__Harmful_Content__20250916_011545 The Risks of Code Assistant LLMs Harmful Content, Misuse and...
…anner_20250916_123725
…I_ML_pickle_file_scanner_20250916_123725 Fickling’s new AI/ML pickle file scanner
…ence_left_behin_20250916_125230
Collaborator
Author
|
merge |
88a07c5 to
73b307c
Compare
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
This post shows, end-to-end, how to weaponize Discord webhooks as a lightweight C2 for beaconing and data exfiltration, and how defenders can recover rich evidence from Discord’s Chromium Simple Cache on the compromised host. It ships a full PowerShell PoC and a purpose-built forensic suite (CLI and GUI) for parsing cache artifacts, carving files, and generating HTML/CSV timelines.
Why Discord webhooks work for C2
• Webhooks are write‑only HTTPS endpoints bound...
🔧 Technical Details
Using Discord webhooks as covert C2/exfil. Create a Discord webhook and POST JSON plus files via PowerShell (
HttpClient+MultipartFormDataContent). Implement a loop to: beacon host/user, list key user folders, exfil a known path, dump recon (whoami,ipconfig), and hunt/exfil specific filenames (e.g.,confidential.jpg), with a tunable sleep interval. Success is confirmed by HTTP statuses like NoContent/OK. This pattern generalizes to any environment that allows outbound HTTPS to discord.com.Recovering evidence from Chromium Simple Cache. On Windows, inspect
%AppData%\discord\Cache\Cache_Dataand parseindex,data_#, andf_######to recover attachments, thumbnails, emojis, and webhook/API artifacts. Use modification timestamps to build a timeline and compute SHA‑256 to correlate with threat intel. Deletion...🤖 Agent Actions
I analyzed the blog and repository, identified the right places to incorporate the new techniques, and implemented updates accordingly.
What I added and where:
Why these locations:
References added:
No other overlapping content was found in the repository, so no redundant pages were created or modified. The changes were implemented directly in the repository using the tools provided.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
🗑️ File Cleanup