@vesviet/agent-skills 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/INDEX.md +5 -5
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +12 -12
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/README.md +1 -1
  10. package/core/contracts/schemas/api-contract-spec.json +191 -191
  11. package/core/contracts/schemas/data-pipeline-spec.json +1 -1
  12. package/core/contracts/schemas/design-tokens-spec.json +19 -0
  13. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  14. package/core/contracts/schemas/pull-request-spec.json +338 -338
  15. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  16. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  17. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  18. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  19. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  20. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  21. package/core/contracts/schemas/security-audit.json +143 -12
  22. package/core/contracts/schemas/system-design-spec.json +9 -1
  23. package/core/contracts/schemas/test-report.json +530 -530
  24. package/core/contracts/schemas/ux-flow-spec.json +66 -0
  25. package/core/roles/ai-systems-engineer.md +31 -18
  26. package/core/roles/aws-engineer.md +33 -29
  27. package/core/roles/backend-developer.md +6 -4
  28. package/core/roles/content-manager.md +7 -7
  29. package/core/roles/data-engineer.md +39 -36
  30. package/core/roles/qa-engineer.md +18 -18
  31. package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
  32. package/core/roles/references/aws-engineer-review-checklist.md +29 -16
  33. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  34. package/core/roles/references/content-manager-governance-standards.md +2 -2
  35. package/core/roles/references/content-manager-review-checklist.md +7 -1
  36. package/core/roles/references/data-engineer-review-checklist.md +11 -3
  37. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  38. package/core/roles/references/qa-engineer-review-checklist.md +10 -5
  39. package/core/roles/references/security-engineer-review-checklist.md +8 -0
  40. package/core/roles/references/solution-architect-review-checklist.md +6 -1
  41. package/core/roles/references/system-engineer-review-checklist.md +11 -0
  42. package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
  43. package/core/roles/security-engineer.md +35 -5
  44. package/core/roles/solution-architect.md +7 -7
  45. package/core/roles/system-engineer.md +470 -465
  46. package/core/roles/ui-ux-designer.md +17 -3
  47. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  48. package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
  49. package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
  50. package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
  51. package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
  52. package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
  53. package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
  54. package/core/skills/backend/add-event-handler/SKILL.md +1 -0
  55. package/core/skills/backend/add-service-client/SKILL.md +1 -0
  56. package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
  57. package/core/skills/backend/implement-auth/SKILL.md +1 -0
  58. package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
  59. package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
  60. package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
  61. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  62. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  63. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  64. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  65. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  66. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  67. package/core/skills/content/audit-content/SKILL.md +3 -2
  68. package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
  69. package/core/skills/content/design-content-strategy/SKILL.md +6 -5
  70. package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
  71. package/core/skills/content/optimize-seo/SKILL.md +6 -5
  72. package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
  73. package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
  74. package/core/skills/content/repurpose-content/SKILL.md +4 -3
  75. package/core/skills/content/write-article/SKILL.md +6 -5
  76. package/core/skills/content/write-copy/SKILL.md +3 -2
  77. package/core/skills/document/pptx/SKILL.md +1 -0
  78. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  79. package/core/skills/document/pptx/scripts/clean.py +0 -0
  80. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  81. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  82. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  83. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  84. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  85. package/core/skills/foundation/design-review/SKILL.md +11 -1
  86. package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
  87. package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
  88. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  89. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  90. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  91. package/core/skills/foundation/write-tests/SKILL.md +11 -10
  92. package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
  93. package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
  94. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  95. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
  96. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
  97. package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
  98. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  99. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  100. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
  101. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  102. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  103. package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
  104. package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
  105. package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
  106. package/core/skills/platform/system-design/SKILL.md +7 -0
  107. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  108. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  109. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  110. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  111. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  112. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  113. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  114. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  115. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  116. package/core/skills/platform/web-perf/SKILL.md +151 -151
  117. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  118. package/core/skills/product/build-story-map/SKILL.md +104 -104
  119. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  120. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  121. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  122. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  123. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  124. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  125. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  126. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  127. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  128. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  129. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  130. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  131. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  132. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  133. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  134. package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
  135. package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
  136. package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
  137. package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
  138. package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
  139. package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
  140. package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
  141. package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
  142. package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
  143. package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
  144. package/core/skills/security-data/security-audit/SKILL.md +126 -119
  145. package/core/workflows/add-new-feature.md +212 -212
  146. package/core/workflows/agent-a2a-delegation.md +142 -142
  147. package/core/workflows/bug-fix.md +147 -147
  148. package/core/workflows/build-deploy.md +208 -208
  149. package/core/workflows/code-review.md +137 -137
  150. package/core/workflows/curriculum-delivery.md +1 -1
  151. package/core/workflows/dependency-upgrade.md +193 -193
  152. package/core/workflows/feature-delivery.md +149 -149
  153. package/core/workflows/hotfix-production.md +172 -172
  154. package/core/workflows/qa-validation.md +231 -231
  155. package/core/workflows/refactoring.md +154 -154
  156. package/core/workflows/revert-deployment.md +147 -147
  157. package/core/workflows/security-incident-response.md +191 -191
  158. package/core/workflows/seo-content-lifecycle.md +91 -91
  159. package/core/workflows/service-review-release.md +223 -223
  160. package/core/workflows/setup-new-service.md +214 -214
  161. package/core/workflows/tech-repo-review.md +245 -245
  162. package/core/workflows/troubleshooting.md +241 -241
  163. package/overlays/astro-cloudflare/README.md +93 -93
  164. package/overlays/data-analyst-stack/README.md +109 -109
  165. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  166. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  167. package/overlays/ecommerce-microservices/README.md +65 -65
  168. package/overlays/go-microservices/README.md +78 -78
  169. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  170. package/overlays/laravel-filament/README.md +90 -90
  171. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  172. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  173. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  174. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  175. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  176. package/overlays/r3f-stack/README.md +89 -89
  177. package/overlays/r3f-stack/rules/stub.md +43 -43
  178. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  179. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  180. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  181. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  182. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  183. package/package.json +2 -2
  184. package/core/README.md +0 -53
@@ -1,6 +1,6 @@
1
1
  # Analytical Query Engine & Cross-Source Federation Guide
2
2
 
3
- This reference provides technical architecture specifications, Python code patterns, and security guardrails for executing in-process analytical SQL (chDB, DuckDB v1.1+) and federating queries across disparate data sources without heavy ETL.
3
+ This reference provides technical architecture specifications, Python code patterns, and security guardrails for executing in-process analytical SQL (chDB, DuckDB v1.5+) and federating queries across disparate data sources without heavy ETL.
4
4
 
5
5
  ---
6
6
 
@@ -91,7 +91,7 @@ finally:
91
91
 
92
92
  ---
93
93
 
94
- ## 3. DuckDB v1.1+ Vectorized Engine & Out-of-Core Execution
94
+ ## 3. DuckDB v1.5+ Vectorized Engine & Out-of-Core Execution
95
95
 
96
96
  DuckDB is an embedded columnar OLAP engine designed for complex ANSI SQL, recursive CTEs, and deep integration with Apache Arrow and Parquet.
97
97
 
@@ -216,7 +216,7 @@ Unstructured documents (PDFs, Word documents, annual reports) contain valuable t
216
216
  ### 6.1 Extraction Mechanics
217
217
  - **Kreuzberg Rust Parser**: Extracts structural layout, tables, and bounding boxes at high throughput.
218
218
  - **Header & Merge Resolution**: Normalizes multi-level headers and merged cells into flat columnar schemas.
219
- - **Contract Enforcement**: Output is validated against Open Data Contract Standard (ODCS v3.1.0) definitions before storage.
219
+ - **Contract Enforcement**: Output is validated against Open Data Contract Standard (ODCS v3.2.0) definitions before storage.
220
220
 
221
221
  ### 6.2 Ingestion Pattern
222
222
  ```python
@@ -1,119 +1,126 @@
1
- ---
2
- name: security-audit
3
- description: Review code, configuration, and service behavior for security risks by checking trust boundaries, secret handling, auth, validation, and operational exposure. For AI/ML systems, apply OWASP ASI Top 10 2026 (ASI01–ASI10), NIST AI RMF Measure function, and ISO/IEC 42001:2023 controls assessment. Use for focused security review of changes or full-service risk assessment.
4
- allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
- ---
6
-
7
- # Security Audit
8
-
9
- Use this skill when reviewing a change, service, or deployment for security posture and obvious risk.
10
-
11
- ## When to Use
12
-
13
- - focused security review of a change
14
- - full-service risk assessment
15
- - checking trust boundaries, secrets, auth, validation
16
- - AI/ML review via OWASP ASI + NIST + ISO 42001
17
-
18
- ## Core Rules
19
-
20
- - focus on real trust boundaries and attack surfaces
21
- - prioritize exploitable risk over checklist theater
22
- - treat code, config, and runtime exposure together
23
- - call out unclear assumptions as risk, not as proof of safety
24
- - avoid exposing real secrets or exploit details unnecessarily in user-visible artifacts
25
- - **CVSS 4.0**: Score vulnerabilities using CVSS 4.0 with CVSS-BTE nomenclature distinguishing Vulnerable System (VC/VI/VA) from Subsequent Systems (SC/SI/SA); MSS (Supplemental) metrics include Automatable and Recovery. Translate to P0/P1/P2/P3 severity tiers.
26
- - **OWASP Top 10:2025 A10**: A10:2025 is "Mishandling of Exceptional Conditions" — audit error-handling paths and exception blocks; ensure fail-closed behavior (deny by default on uncaught exceptions, release DB connections, no stack trace leakage).
27
- - **OWASP ASI01–10**: For agentic AI systems apply all 10 ASI controls: ASI01 Prompt Injection, ASI02 Agent Impersonation, ASI03 Excessive Agency, ASI04 Supply Chain, ASI05 Unexpected Code Execution (verify sandbox boundary adherence against `core/policies/execution-sandbox.md`), ASI06 Data Leakage, ASI07 Cascading Delegation, ASI08 Missing HITL, ASI09 Insecure Retrieval, ASI10 Observability Gaps.
28
- - **ZTA-MTLS**: Zero Trust Architecture deployments MUST enforce mTLS between all internal services using SPIFFE/SPIRE for workload identity issuance; block any service-to-service communication without a valid SVID.
29
-
30
- ## Suggested Process
31
-
32
- ### 1. Identify The Security Boundary
33
-
34
- Clarify:
35
-
36
- - what data is sensitive
37
- - who the actors are
38
- - what external inputs are accepted
39
- - what systems or credentials are trusted
40
-
41
- ### 2. Review The Main Risk Areas
42
-
43
- Check:
44
-
45
- - authn and authz
46
- - input validation and output exposure
47
- - secret and credential handling
48
- - logging of sensitive data
49
- - dependency and downstream trust assumptions
50
- - unsafe default configuration or missing environment hardening
51
-
52
- ### 3. Check Change-Specific Risk
53
-
54
- For a concrete change, verify:
55
-
56
- - new endpoints or routes are protected appropriately
57
- - new background or event paths do not bypass controls
58
- - new config does not widen exposure unintentionally
59
- - new dependencies are bounded and authenticated as expected
60
-
61
- ### 4. Check Operational Exposure
62
-
63
- Review:
64
-
65
- - debug or admin surfaces
66
- - runtime permissions
67
- - public network reachability
68
- - auditability and rollback assumptions
69
-
70
- ### 5. Report Findings By Severity
71
-
72
- Use:
73
-
74
- - blocking risk for clear security flaws
75
- - high-severity risk for likely misuse or privilege widening
76
- - follow-up risk for hardening gaps that should be tracked
77
-
78
- ## Checklist
79
-
80
- - [ ] trust boundary identified
81
- - [ ] sensitive data paths reviewed
82
- - [ ] auth and validation checked
83
- - [ ] secret handling checked
84
- - [ ] runtime exposure checked
85
- - [ ] findings reported with clear severity using CVSS 4.0 BTE nomenclature
86
- - [ ] OWASP Top 10:2025 gaps reviewed (A03 Supply Chain, A10 Exceptional Conditions, Misconfiguration)
87
- - [ ] OWASP ASI01–10 checks applied for agentic AI systems (ASI05 execution sandbox verified per `core/policies/execution-sandbox.md`)
88
- - [ ] ZTA mTLS / SPIFFE/SPIRE verification for zero-trust deployments
89
- - [ ] SLSA Level 3 supply chain integrity checked for production builds
90
-
91
- ## Failure Modes
92
-
93
- - **Audit scope too narrow**: the audit covers only one layer (e.g., code) and misses infra or identity. Mitigation: enumerate the full trust boundary before scoping.
94
- - **Finding hidden in summary**: a high-severity finding is buried in the audit report. Mitigation: lead with severity-sorted findings; never present severity-3+ as appendix items.
95
- - **No repro path**: a finding has no reproducible evidence. Mitigation: every finding must include a path, a command, and the expected vs actual output.
96
- - **Remediation not validated**: a finding is closed without re-running the scan or test. Mitigation: re-run the audit after every remediation; record the before/after.
97
- - **OWASP ASI not applied**: a finding is reported without referencing the OWASP ASI item. Mitigation: tag every finding with the relevant ASI01-ASI10 item and the agentic threat surface.
98
- - **Credential in finding**: a finding includes a real secret or token. Mitigation: redact before publishing; never paste live credentials into audit reports.
99
-
100
- ## Security Guardrails (OWASP ASI)
101
-
102
- - **ASI01 Goal Hijack**: when auditing agentic systems, verify that untrusted content (tool outputs, retrieved data) cannot reframe the agent's operating objective; tag violations under the ASI01 check the Core Rules already mandate.
103
- - **ASI03 Identity & Privilege Abuse**: authn/authz and runtime-permission review is the privilege-abuse control — flag any chain (tool call, delegation, role assumption) that widens privileges beyond the declared task scope.
104
- - **ASI04 Supply Chain**: dependency and downstream trust assumptions are already in scope; the checklist requires SLSA Level 3 integrity for production builds — report unsigned or unpinned dependencies as findings.
105
- - **ASI05 RCE Guard**: already mandated — verify execution sandbox boundary adherence against `core/policies/execution-sandbox.md` for every agentic system audited.
106
- - **ASI06 Context & Memory Poisoning**: treat memory stores and retrieved context as untrusted surfaces in AI/ML reviews; check provenance validation and injection quarantine before trusting agent-internal context.
107
- - **ASI09 Human-Agent Trust Exploitation**: findings must never be softened to unblock shipping. Mitigation: lead with severity-sorted results (CVSS 4.0 BTE), keep blocking risk visible, and redact live credentials from every user-visible artifact.
108
-
109
- ## Related Skills
110
-
111
- - **review-code**: Review concrete code changes with broader quality checks
112
- - **review-service**: Expand into full release-readiness review
113
- - **manage-secrets**: Fix secret-handling issues safely
114
- - **meeting-review**: Run a broader multi-role risk review
115
- - **commit-code**: Prepare remediation changes for delivery
116
-
117
- ## Output Contracts
118
-
119
- - `contracts/schemas/security-audit.json`
1
+ ---
2
+ name: security-audit
3
+ description: Review code, configuration, and service behavior for security risks by checking trust boundaries, secret handling, auth, validation, and operational exposure. For AI/ML systems, apply OWASP ASI Top 10 2026 (ASI01–ASI10), NIST AI RMF Measure function, and ISO/IEC 42001:2023 controls assessment. Use for focused security review of changes or full-service risk assessment.
4
+ version: 2.0.0
5
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
6
+ ---
7
+
8
+ # Security Audit
9
+
10
+ Use this skill when reviewing a change, service, or deployment for security posture and obvious risk.
11
+
12
+ ## When to Use
13
+
14
+ - focused security review of a change
15
+ - full-service risk assessment
16
+ - checking trust boundaries, secrets, auth, validation
17
+ - AI/ML review via OWASP ASI + NIST + ISO 42001
18
+
19
+ ## Core Rules
20
+
21
+ - focus on real trust boundaries and attack surfaces
22
+ - prioritize exploitable risk over checklist theater
23
+ - treat code, config, and runtime exposure together
24
+ - call out unclear assumptions as risk, not as proof of safety
25
+ - avoid exposing real secrets or exploit details unnecessarily in user-visible artifacts
26
+ - **CVSS 4.0**: Score vulnerabilities using CVSS 4.0 with CVSS-BTE nomenclature distinguishing Vulnerable System (VC/VI/VA) from Subsequent Systems (SC/SI/SA); MSS (Supplemental) metrics include Automatable and Recovery. Translate to P0/P1/P2/P3 severity tiers.
27
+ - **OWASP Top 10:2025 A10**: A10:2025 is "Mishandling of Exceptional Conditions" — audit error-handling paths and exception blocks; ensure fail-closed behavior (deny by default on uncaught exceptions, release DB connections, no stack trace leakage).
28
+ - **OWASP ASI01–10 (official 2026 list)**: for agentic AI systems apply the OWASP Top 10 for Agentic Applications 2026 exactly as published — ASI01 Agent Goal Hijack, ASI02 Tool Misuse & Exploitation, ASI03 Identity & Privilege Abuse, ASI04 Agentic Supply Chain, ASI05 Unexpected Code Execution (verify sandbox boundary adherence against `core/policies/execution-sandbox.md`), ASI06 Memory & Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation, ASI10 Rogue Agents.
29
+ - **ZTA-MTLS**: Zero Trust Architecture deployments MUST enforce mTLS between all internal services using SPIFFE/SPIRE for workload identity issuance; block any service-to-service communication without a valid SVID.
30
+ - **EU-CRA-REPORTING**: EU Cyber Resilience Act reporting obligations have applied since 2026-09-11 — actively exploited vulnerabilities and severe incidents must reach ENISA/CSIRT within 24 hours; main product obligations (security-by-design, ≥5-year support period) land 2026-12-11 and machine-readable SBOM obligations by 2027-12-11. Flag any product in EU scope without a live, tested reporting runbook as a compliance finding.
31
+ - **PQC-TRANSITION**: audit cryptography against NIST IR 8547 (quantum-vulnerable RSA/ECDSA/ECDH/DH deprecated after 2030, disallowed after 2035): verify a CBOM crypto inventory (CycloneDX 1.6) exists and hybrid TLS (X25519MLKEM768 — client-side default since Chrome 131/Firefox 132) is enabled where TLS terminates server-side.
32
+ - **GenAI Red Teaming Manual**: structure adversarial testing of AI systems per OWASP GenAI Red Teaming Manual v1.0 (2026-10-20); record test coverage in the audit findings.
33
+
34
+ ## Suggested Process
35
+
36
+ ### 1. Identify The Security Boundary
37
+
38
+ Clarify:
39
+
40
+ - what data is sensitive
41
+ - who the actors are
42
+ - what external inputs are accepted
43
+ - what systems or credentials are trusted
44
+
45
+ ### 2. Review The Main Risk Areas
46
+
47
+ Check:
48
+
49
+ - authn and authz
50
+ - input validation and output exposure
51
+ - secret and credential handling
52
+ - logging of sensitive data
53
+ - dependency and downstream trust assumptions
54
+ - unsafe default configuration or missing environment hardening
55
+
56
+ ### 3. Check Change-Specific Risk
57
+
58
+ For a concrete change, verify:
59
+
60
+ - new endpoints or routes are protected appropriately
61
+ - new background or event paths do not bypass controls
62
+ - new config does not widen exposure unintentionally
63
+ - new dependencies are bounded and authenticated as expected
64
+
65
+ ### 4. Check Operational Exposure
66
+
67
+ Review:
68
+
69
+ - debug or admin surfaces
70
+ - runtime permissions
71
+ - public network reachability
72
+ - auditability and rollback assumptions
73
+
74
+ ### 5. Report Findings By Severity
75
+
76
+ Use:
77
+
78
+ - blocking risk for clear security flaws
79
+ - high-severity risk for likely misuse or privilege widening
80
+ - follow-up risk for hardening gaps that should be tracked
81
+
82
+ ## Checklist
83
+
84
+ - [ ] trust boundary identified
85
+ - [ ] sensitive data paths reviewed
86
+ - [ ] auth and validation checked
87
+ - [ ] secret handling checked
88
+ - [ ] runtime exposure checked
89
+ - [ ] findings reported with clear severity using CVSS 4.0 BTE nomenclature
90
+ - [ ] OWASP Top 10:2025 gaps reviewed (A03 Supply Chain, A10 Exceptional Conditions, Misconfiguration)
91
+ - [ ] OWASP ASI01–10 checks applied for agentic AI systems (ASI05 execution sandbox verified per `core/policies/execution-sandbox.md`)
92
+ - [ ] ZTA mTLS / SPIFFE/SPIRE verification for zero-trust deployments
93
+ - [ ] SLSA Level 3 supply chain integrity checked for production builds
94
+ - [ ] EU CRA readiness checked for products in EU scope: 24h reporting runbook live (since 2026-09-11), support period declared, SBOM pipeline building toward the 2027-12-11 gate
95
+ - [ ] PQC readiness checked: CBOM crypto inventory present, hybrid TLS (X25519MLKEM768) enabled server-side, no quantum-vulnerable-only crypto for long-lived data
96
+
97
+ ## Failure Modes
98
+
99
+ - **Audit scope too narrow**: the audit covers only one layer (e.g., code) and misses infra or identity. Mitigation: enumerate the full trust boundary before scoping.
100
+ - **Finding hidden in summary**: a high-severity finding is buried in the audit report. Mitigation: lead with severity-sorted findings; never present severity-3+ as appendix items.
101
+ - **No repro path**: a finding has no reproducible evidence. Mitigation: every finding must include a path, a command, and the expected vs actual output.
102
+ - **Remediation not validated**: a finding is closed without re-running the scan or test. Mitigation: re-run the audit after every remediation; record the before/after.
103
+ - **OWASP ASI not applied**: a finding is reported without referencing the OWASP ASI item. Mitigation: tag every finding with the relevant ASI01-ASI10 item and the agentic threat surface.
104
+ - **Credential in finding**: a finding includes a real secret or token. Mitigation: redact before publishing; never paste live credentials into audit reports.
105
+ - **Invented ASI titles**: findings tagged against non-existent ASI items (e.g. "ASI08 Missing HITL", "ASI02 Excessive Agency"). Mitigation: tag only against the official ASI01–ASI10 titles in Core Rules; treat any other label as an audit-quality defect.
106
+
107
+ ## Security Guardrails (OWASP ASI)
108
+
109
+ - **ASI01 Goal Hijack**: when auditing agentic systems, verify that untrusted content (tool outputs, retrieved data) cannot reframe the agent's operating objective; tag violations under the ASI01 check the Core Rules already mandate.
110
+ - **ASI03 Identity & Privilege Abuse**: authn/authz and runtime-permission review is the privilege-abuse control — flag any chain (tool call, delegation, role assumption) that widens privileges beyond the declared task scope.
111
+ - **ASI04 Supply Chain**: dependency and downstream trust assumptions are already in scope; the checklist requires SLSA Level 3 integrity for production builds — report unsigned or unpinned dependencies as findings.
112
+ - **ASI05 RCE Guard**: already mandated — verify execution sandbox boundary adherence against `core/policies/execution-sandbox.md` for every agentic system audited.
113
+ - **ASI06 Context & Memory Poisoning**: treat memory stores and retrieved context as untrusted surfaces in AI/ML reviews; check provenance validation and injection quarantine before trusting agent-internal context.
114
+ - **ASI09 Human-Agent Trust Exploitation**: findings must never be softened to unblock shipping. Mitigation: lead with severity-sorted results (CVSS 4.0 BTE), keep blocking risk visible, and redact live credentials from every user-visible artifact.
115
+
116
+ ## Related Skills
117
+
118
+ - **review-code**: Review concrete code changes with broader quality checks
119
+ - **review-service**: Expand into full release-readiness review
120
+ - **manage-secrets**: Fix secret-handling issues safely
121
+ - **meeting-review**: Run a broader multi-role risk review
122
+ - **commit-code**: Prepare remediation changes for delivery
123
+
124
+ ## Output Contracts
125
+
126
+ - `contracts/schemas/security-audit.json`