add get http custom header#1147
Merged
mike-hunhoff merged 3 commits intomandiant:masterfrom Mar 31, 2026
Merged
Conversation
mike-hunhoff
requested changes
Mar 27, 2026
Collaborator
mike-hunhoff
left a comment
There was a problem hiding this comment.
Thanks @msanchit-dev , I've left a quick comment for your review.
msanchit-dev
commented
Mar 28, 2026
Contributor
Author
msanchit-dev
left a comment
There was a problem hiding this comment.
Thanks @mike-hunhoff . I have incorporated your feedback.
0595008 to
0158196
Compare
mike-hunhoff
approved these changes
Mar 30, 2026
Collaborator
|
@msanchit-dev lints are failing - please ensure all lints pass locally before requesting another review. |
Contributor
Author
|
My apologies for not running lint again after renaming the rule. I had run it earlier but missed to run it after the rename. I have fixed the lint error: |
mike-hunhoff
approved these changes
Mar 31, 2026
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.
ref #3
Rationale
The Malware Case Study describes how Zeus Malware uses the HTTP_QUERY_CUSTOM flag within the HttpQueryInfo() API to validate its Command-and-Control (C2) communications. By querying for a non-standard "HALL" header in the server's response, the malware performs a stealthy handshake to confirm it has reached an authentic drop site.
BreadBear is a prototype malware based on Bleeding Bear. In the proposed attack chain, HTTP_QUERY_CUSTOM is used to programmatically retrieve the Content-Length of a stage 3 payload from a Discord CDN response. This allows the malware to allocate a precise amount of memory via malloc() for the incoming base64-encoded binary.
The ddabx.dll malware uses the HTTP_QUERY_CUSTOM flag with HttpQueryInfo() to extract command-and-control (C2) data hidden within non-standard HTTP headers like g_InstallPath and g_InstallDll. By searching for these custom headers instead of the standard response body, the malware effectively bypasses basic web filters and security tools that only inspect common traffic fields.
Attackers can use custom HTTP headers to perform OSINT reconnaissance by finding leaked source code or internal configurations on platforms like GitHub using Google dorking.