防护思路
点击放大





A reusable security-audit skillset that any coding agent can execute, from top-tier models
down to basic file-reading assistants. It audits source code and the Linux servers that
serve it, writes standardized finding reports with proof and fixes, and covers the loop
from detection through incident response.
It targets solo de and small teams protecting their own internet-facing services,
and scales to a shared team methodology. New to security terms? Start with
GUIDE.md; this file is the map and manual.
The project began in August 2026 as a distillation exercise with the ox-alpha model and is
now model-agnostic: any capable agent can run, audit, and extend it. There is nothing to
install and no accounts; you need bash, grep (ripgrep recommended), find, and
standard Unix tooling.
---
Three orchestrators divide the work. Each is an entry point you hand to an agent, and each
owns one folder under skills/.
| Orchestrator | Question it answers | Modules |
|---|---|---|
| SKILL-CODE.md | What bugs are in the software? | skills/code/ (24 modules) |
| SKILL-SERVER.md | How exposed are my machines? | skills/server/ (12 modules) |
| SKILL-OPERATIONS.md | Are we watching, responding, improving? | skills/operations/ (4 modules) |
Supporting files: templates/ (mandatory report formats), tools/ (13 read-only e
sweep scripts plus a runner), GUIDE.md (human-readable concept guide), and
CO.md (standards-to-modules completeness matrix).
Every module follows the open agentskills.io format
(<name>/SKILL.md), so the kit installs directly into Claude Code, OpenCode, Cursor,
Codex, Windsurf and 40+ compatible agents:
Claude Code users can alternatively install it as a plugin:
The three orchestrator files stay at the repository root as entry-point documents; read
them in the agent chat instead of installing.
skills/code/, owned by SKILL-CODE.md)Input handling and code execution
| Slug | Module | Catches |
|---|---|---|
| INJ | injection.md | SQLi, NoSQLi, command injection, SSTI, e, LDAP/XPath |
| FILE | file-handling.md | Path tra, unsafe uploads/downloads, zip-slip |
| DESER | deserialization.md | Pickle/Java/.NET/YAML deserialization, XXE, prototype pollution |
| MEM | memory-safety.md | O, UAF, integer bugs, format strings, Rust unsafe, leaks |
Identity and access
| Slug | Module | Catches |
|---|---|---|
| AUTHN | authn-session.md | Login flaws, session management, JWT/MFA/reset weaknesses |
| AUTHZ | authz-access-control.md | IDOR/BOLA, pri escalation, tenant isolation |
| SSO | oauth-sso.md | OAuth/OIDC/SAML flows, PKCE, redirect |
Web surface and protocols
| Slug | Module | Catches |
|---|---|---|
| WEB | web-client.md | XSS, CSRF, clickjacking, postMessage abuse |
| SSRF | ssrf-url-security.md | SSRF, open redirects, cloud metadata exposure |
| PROTO | http-protocol.md | Request smuggling, host-header attacks, cache poisoning |
| API | api-security.md | Mass assignment, missing rate limits, GraphQL/gRPC gaps |
Data, secrets and crypto
| Slug | Module | Catches |
|---|---|---|
| SECRETS | secrets-data-exposure.md | Hardcoded credentials, secret sprawl, PII/log exposure |
| CRYPTO | crypto.md | Weak algorithms, I misuse, insecure randomness |
| MAIL | email-sms.md | SPF/DKIM/DMARC gaps, header injection, OTP/SMS fraud |
Logic, a and platform
| Slug | Module | Catches |
|---|---|---|
| LOGIC | business-logic-races.md | Workflow bypass, price tampering, race conditions |
| DOS | denial-of-service.md | ReDoS, unbounded allocation, decompression bombs |
| CONFIG | configuration-hardening.md | Debug/prod confusion, CORS, headers, IaC misconfig |
Supply chain and integrity
| Slug | Module | Catches |
|---|---|---|
| SUPPLY | supply-chain.md | deps, CI/CD flaws, lockfile hygiene |
| MALCODE | malicious-code.md | Deliberate malice: obfuscation, beacons, backdoor routes, build.rs implants |
Specialized surfaces
| Slug | Module | Catches |
|---|---|---|
| IAM | cloud-iam.md | Cloud IAM misconfig from Terraform/IaC, trust policies, public buckets |
| LLM | llm-ai.md | Prompt injection, tool-use abuse, RAG leakage, model cost abuse |
| DNS | dns-takeover.md | Subdomain takeover, dangling records |
| GAME | gaming-security.md | Client-trust , economy dupes, receipt fraud, leaderboard forgery |
| BAAS | baas-platform.md | Supabase RLS gaps, Firebase rules, pre exposure, payment-webhook integrity, CMS hygiene |
skills/server/, owned by SKILL-SERVER.md)| Slug | Module | Covers |
|---|---|---|
| BASE | linux-baseline.md | Users/sudo/PAM, sshd hardening, sysctl, permissions |
| FW | firewall-edge.md | Default-deny firewall, egress filtering, fail2ban, docker bypass |
| TLS | tls-proxy.md | Reverse proxy hardening, modern TLS, admin-path shielding |
| TOK | api-token-security.md | API-token lifecycle from design to leak response |
| SANDBOX | ser.md | systemd sandboxing, seccomp/AppArmor, docker.sock risks |
| PATCH | updates-patching.md | Unattended upgrades, EOL detection, attack-surface pruning |
| LOGMON | logging-monitoring.md | journald/auditd/rsyslog integrity, alert wiring |
| HSECRET | host-secrets.md | Secrets on disk, key/cert permissions, history leaks |
| K8S | kubernetes-cluster.md | RBAC escalation, NetworkPolicy, pod security standards |
| DB | db-ser.md | PostgreSQL/MySQL/Redis/MongoDB hardening |
| TUNNEL | cloudflared-tunnel.md | Tunnel token protection, ingress precision, origin isolation |
| DR | backup-dr.md | Backup hygiene, encryption, restore drills, ransomware canaries |
owned by SKILL-OPERATIONS.md)| Slug | Module | Covers |
|---|---|---|
| DETECT | blue-team-detection.md | Detection co per class, alert thresholds, purple-team replay |
| IR | incident-response.md | Response playbooks, containment scenarios, tabletop kit |
| DFIR | dfir-triage.md | First-hours triage of a compromised host |
| VULN | .md | Prioritization, SLAs, exception register, metrics cadence |
Every module opens with a zero-background Prerequisites & primer, then follows
the same 12-section audit contract, from ripgrep-ready signatures through curl-based
reproduction steps to remediation diffs and fix- plans. See
SKILL-CODE.md §Registry for trigger conditions and priorities, and
GUIDE.md for plain-language explanations of each class.
Point your agent at this repository with a prompt like:
The agent runs recon, dispatches the applicable check modules, and writes findings plus a
summary under security-audit/<run-id>/.
Same idea, host-flavored: exposure map first, then hardening checks, ending in a
prioritized checklist.
The sweeps are shell scripts that pull the same set of facts from a host every time:
listeners, firewall state, config keys, secrets on disk. They write plain-text reports and
change nothing. Running them first means your agent only interprets results instead of
in commands, which matters most for weaker models.
Three steps. In every command below, replace user with your ser and/opt/aegis-skills with wherever you want the toolkit to live on that server.
Step 1: put this toolkit onto your server. Run from your workstation, inside your
local clone of this repository (./ means "this folder"). Pick whichever line fits:
Step 2: run every sweep on the server. This creates a folder of text reports on the
ser:
Step 3: copy those reports back to your workstation so you can hand them to your
agent. <timestamp> is the folder name step 2 printed, like sweep-e:
Give each report to the agent together with its matching skills/server/<name>/SKILL.md.
Each finding file contains location, root cause, affected surface, a working PoC, impact,
a before/after fix, and a plan to the fix actually closes the hole. Statuses moveNeeds-Review → Probable → Confirmed → Fixed → ; se come from
written rubrics with C.
file:line;Needs-Review.| Component | Needs |
|---|---|
| Code audits | Any agent with file-read and grep. Subagent support optional. |
| Ser | SSH/read access to the host; root gi fidelity, unpri still works. |
| Sweep scripts | bash and coreutils only; missing tools print [skip: X not installed]. |
Both orchestrators carry a : frontmatter field. Bump the minor when
adding or changing modules, the patch for copy edits, and tag the commit
(vX.Y.Z). Audit runs record the they executed, so posture can be diffed over
time. Current: v1.2.0.
New modules follow the 13-section skeleton and register in their orchestrator's registry;
see Appendix B in SKILL-CODE.md for the authoring spec. New sweeps must satisfytools/README.md. Design rule for additions: a basic agent following the letter of the
module must still produce a correct result, so prefer literal commands o and
downgrade uncertainty instead of guessing.
This covers the classes behind most real-world breaches of internet-facing
services. It does not replace dynamic penetration testing, network-layer DDoS mitigation,
social-engineering defense, or a 24/7 SOC. It makes all of them cheaper by telling you
exactly where your weaknesses are.
Project layout and some domain surfaces were inspired by browsing
mukul975/Anthropic-Cybersecurity-Skills.
Every module here was written natively for this playbook's format and accuracy contract.
Licensed Apache-2.0 (LICENSE). Security tooling: use only against systems you own
or are authorized to test.
开发语言:Shell
Star 数:13
该项目属于防护思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A Collection of Defensive Cyber Security skills designed to harden your Software, Infrastructure and even Game. 展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | aegis-skills - A Collection of Defensive Cyber Security skills de |
| 所属分类 | 防护思路 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 00:11:31 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 269 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |