-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Discord as a C2 and the cached evidence left behind #1410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord as a C2 and the cached evidence left behind #1410
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)
🔗 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
|
merge |
88a07c5 to
73b307c
Compare
🤖 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