Dissecting Impacket (Impacket-IoCs)#2194
Open
carlospolop wants to merge 1 commit intomasterfrom
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://github.com/ThatTotallyRealMyth/Impacket-IoCs Content Categories: Based on the analysis, this content was categorized under "Basic Forensic Methodology -> Baseline Monitoring (or a new subsection under Windows/AD such as 'Active Directory Methodology -> Detection & Fingerprinting Offensive Tooling (Impacket quirks)'; cross-link from NTLM and Kerberos sections)". 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
Title/Type
“Dissecting Impacket” is a public detection-engineering reference (GitHub repo) that documents protocol-level and implementation-level Indicators of Compromise (IoCs) that fingerprint Impacket-driven activity beyond easy-to-change surface artifacts (filenames, service names, temp paths, command strings). The content is derived from the author’s notes during an internal rewrite/fork of Impacket, focusing on signals that often remain even if...
🔧 Technical Details
Protocol/implementation fingerprinting of offensive tooling: Instead of relying on operator-controlled artifacts (service names, file paths, script names), detect tools like Impacket by measuring how their library implementations construct/authenticate protocol traffic differently than Windows (Kerberos/NTLMSSP/SPNEGO/SMB/LDAP/DCE-RPC/WMI/DCOM). Practical examples of high-signal quirks include DCE/RPC
auth_context_id = 79231 + ctx_id, DCE/RPC auth padding0xff, SPNEGO wrapping differences (raw KerberosAP-REQplaced inmechToken), SMB2/3 negotiate with ASCII-letterClientGuid, non-compliant WMI namespace//./root/cimv2, and a hardcoded Kerberos nonce.Cluster-based correlation to raise confidence: Treat weaker single features as scoring inputs and alert when multiple Impacket-like traits co-occur in the same host/user/session/time window (e.g., sparse AS-REQ etypes, unusual/missing Kerb...
🤖 Agent Actions
I’m mapping the repository first and checking existing Windows/forensics coverage so the Impacket fingerprinting content lands in the right page without duplicating what HackTricks already has.
I have the top-level layout. Next I’m narrowing candidate pages by searching for existing Impacket, Kerberos, NTLM, SMB, WMI, and baseline-monitoring coverage before picking a single file.
I’ve read the broad AD, Kerberos, NTLM, MSRPC, and PCAP pages. I’m checking the likely landing zones for any existing baseline-monitoring or fingerprinting language so I can avoid forcing this into the wrong section.
I’ve narrowed this to two realistic landing zones: the generic PCAP/Zeek page or the broad AD methodology page. I’m checking which one can absorb cross-protocol Impacket fingerprinting cleanly with the least duplication.
The best fit is src/windows-hardening/active-directory-methodology/README.md. The content is AD-centric, spans Kerberos/NTLM/SMB/LDAP/DCE-RPC/WMI, and the existing README already has a defensive section where a compact Impacket fingerprinting subsection can live without fragmenting the same idea across multiple files.
Plan:
## Some General Defenses.## Referencessection with the Impacket-IoCs source.I’m editing the AD methodology README now. The change will stay in a single file and add one defensive subsection plus the new source reference, without touching NTLM/Kerberos pages separately.
The section is in place. I’m doing a quick cleanup pass and then I’ll run diff/sanity checks so the single-file change stays clean.
Updated README.md under
## Some General Defenseswith a newProtocol-level fingerprinting of Impacket activitysubsection. It adds concise, non-duplicative guidance on detecting Impacket via stable protocol quirks, separates high-confidence signals from cluster/scoring features and enrichment-only artifacts, and includes the baseline/telemetry caveats needed to operationalize it in AD environments.I kept the change to this single file and appended the source repo to the existing
## Referencessection. Validation is clean: the internal PCAP link target exists, the file still ends with the training banner, andgit diff --checkreturned no issues.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.