Commit 39246f5
feat: security skills scanner and enhanced code reviewer
Add Python security_skills module (10 checks) and enhanced TS reviewer
(7 new rules) based on patterns from external security report findings.
New security skill checks (SKILL-001 through SKILL-010):
- Stub security functions (verify/validate always returning True)
- Unsafe pickle deserialization without HMAC
- Hardcoded security deny-lists discoverable by attackers
- Unbounded collections enabling memory DoS
- SSRF-vulnerable URL handling
- Missing circuit breakers on external calls
- ReDoS-susceptible regex patterns
- Hardcoded secrets/API keys in source
- Trust decisions without cryptographic verification
- Exception details leaking internals to callers
New TS reviewer rules (8-14):
- stub-security-implementation (CRITICAL)
- hardcoded-security-denylist (HIGH)
- unsafe-deserialization (CRITICAL)
- unbounded-collection (MEDIUM)
- missing-circuit-breaker (MEDIUM)
- ssrf-vulnerable-url (HIGH)
- no-behavior-monitoring (MEDIUM)
SDLC integration:
- scripts/security_scan.py — CLI for pre-commit and CI use
- .github/workflows/security-scan.yml — PR security scanning
- 41 tests covering all skill checks with positive/negative cases
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 48e43a3 commit 39246f5
File tree
5 files changed
+1379
-0
lines changed- .github/workflows
- packages
- agent-os
- src/agent_os
- tests
- agentmesh-integrations/copilot-governance/src
- scripts
5 files changed
+1379
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments