@agent-ix/quoin 0.1.3

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 (215) hide show
  1. package/.agents/plugins/marketplace.json +14 -0
  2. package/.claude-plugin/marketplace.json +16 -0
  3. package/.claude-plugin/plugin.json +8 -0
  4. package/.codex-plugin/plugin.json +27 -0
  5. package/.github/plugin/marketplace.json +16 -0
  6. package/LICENSE +21 -0
  7. package/README.md +266 -0
  8. package/bin/quoin.js +14 -0
  9. package/default-modules.yaml +82 -0
  10. package/dist/base-DrUMkAh1.js +137 -0
  11. package/dist/base.d.ts +23 -0
  12. package/dist/base.d.ts.map +1 -0
  13. package/dist/catalog.d.ts +32 -0
  14. package/dist/catalog.d.ts.map +1 -0
  15. package/dist/cli.d.ts +18 -0
  16. package/dist/cli.d.ts.map +1 -0
  17. package/dist/cli.js +20 -0
  18. package/dist/commands/catalog/index.d.ts +2 -0
  19. package/dist/commands/catalog/index.d.ts.map +1 -0
  20. package/dist/commands/catalog/index.js +2 -0
  21. package/dist/commands/catalog/list.d.ts +11 -0
  22. package/dist/commands/catalog/list.d.ts.map +1 -0
  23. package/dist/commands/catalog/list.js +22 -0
  24. package/dist/commands/catalog/show.d.ts +13 -0
  25. package/dist/commands/catalog/show.d.ts.map +1 -0
  26. package/dist/commands/catalog/show.js +25 -0
  27. package/dist/commands/catalog/validate.d.ts +10 -0
  28. package/dist/commands/catalog/validate.d.ts.map +1 -0
  29. package/dist/commands/catalog/validate.js +27 -0
  30. package/dist/commands/config/doctor.d.ts +7 -0
  31. package/dist/commands/config/doctor.d.ts.map +1 -0
  32. package/dist/commands/config/doctor.js +15 -0
  33. package/dist/commands/config/edit.d.ts +7 -0
  34. package/dist/commands/config/edit.d.ts.map +1 -0
  35. package/dist/commands/config/edit.js +13 -0
  36. package/dist/commands/config/get.d.ts +11 -0
  37. package/dist/commands/config/get.d.ts.map +1 -0
  38. package/dist/commands/config/get.js +20 -0
  39. package/dist/commands/config/index.d.ts +2 -0
  40. package/dist/commands/config/index.d.ts.map +1 -0
  41. package/dist/commands/config/index.js +2 -0
  42. package/dist/commands/config/set.d.ts +12 -0
  43. package/dist/commands/config/set.d.ts.map +1 -0
  44. package/dist/commands/config/set.js +26 -0
  45. package/dist/commands/matrix.d.ts +14 -0
  46. package/dist/commands/matrix.d.ts.map +1 -0
  47. package/dist/commands/matrix.js +15 -0
  48. package/dist/commands/module/ensure-defaults.d.ts +8 -0
  49. package/dist/commands/module/ensure-defaults.d.ts.map +1 -0
  50. package/dist/commands/module/ensure-defaults.js +17 -0
  51. package/dist/commands/module/index.d.ts +2 -0
  52. package/dist/commands/module/index.d.ts.map +1 -0
  53. package/dist/commands/module/index.js +2 -0
  54. package/dist/commands/module/install.d.ts +11 -0
  55. package/dist/commands/module/install.d.ts.map +1 -0
  56. package/dist/commands/module/install.js +22 -0
  57. package/dist/commands/module/list.d.ts +8 -0
  58. package/dist/commands/module/list.d.ts.map +1 -0
  59. package/dist/commands/module/list.js +13 -0
  60. package/dist/commands/module/remove.d.ts +10 -0
  61. package/dist/commands/module/remove.d.ts.map +1 -0
  62. package/dist/commands/module/remove.js +16 -0
  63. package/dist/commands/plugin/deprecation.d.ts +10 -0
  64. package/dist/commands/plugin/deprecation.d.ts.map +1 -0
  65. package/dist/commands/plugin/ensure-defaults.d.ts +8 -0
  66. package/dist/commands/plugin/ensure-defaults.d.ts.map +1 -0
  67. package/dist/commands/plugin/ensure-defaults.js +12 -0
  68. package/dist/commands/plugin/index.d.ts +2 -0
  69. package/dist/commands/plugin/index.d.ts.map +1 -0
  70. package/dist/commands/plugin/index.js +2 -0
  71. package/dist/commands/plugin/install.d.ts +8 -0
  72. package/dist/commands/plugin/install.d.ts.map +1 -0
  73. package/dist/commands/plugin/install.js +12 -0
  74. package/dist/commands/plugin/list.d.ts +8 -0
  75. package/dist/commands/plugin/list.d.ts.map +1 -0
  76. package/dist/commands/plugin/list.js +12 -0
  77. package/dist/commands/plugin/remove.d.ts +8 -0
  78. package/dist/commands/plugin/remove.d.ts.map +1 -0
  79. package/dist/commands/plugin/remove.js +12 -0
  80. package/dist/commands/review.d.ts +14 -0
  81. package/dist/commands/review.d.ts.map +1 -0
  82. package/dist/commands/review.js +15 -0
  83. package/dist/commands/to-plan.d.ts +14 -0
  84. package/dist/commands/to-plan.d.ts.map +1 -0
  85. package/dist/commands/to-plan.js +15 -0
  86. package/dist/commands/update.d.ts +13 -0
  87. package/dist/commands/update.d.ts.map +1 -0
  88. package/dist/commands/update.js +34 -0
  89. package/dist/commands/write.d.ts +16 -0
  90. package/dist/commands/write.d.ts.map +1 -0
  91. package/dist/commands/write.js +33 -0
  92. package/dist/config-schema-Dp-vlxuR.js +13 -0
  93. package/dist/config-schema.d.ts +52 -0
  94. package/dist/config-schema.d.ts.map +1 -0
  95. package/dist/deprecation-fRxUHoxv.js +4 -0
  96. package/dist/flow-command-SMjCSOFg.js +88 -0
  97. package/dist/flow-command.d.ts +25 -0
  98. package/dist/flow-command.d.ts.map +1 -0
  99. package/dist/flows.d.ts +7 -0
  100. package/dist/flows.d.ts.map +1 -0
  101. package/dist/index.d.ts +11 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +9 -0
  104. package/dist/modules-CW8pBK41.js +22 -0
  105. package/dist/modules.d.ts +10 -0
  106. package/dist/modules.d.ts.map +1 -0
  107. package/dist/org.d.ts +61 -0
  108. package/dist/org.d.ts.map +1 -0
  109. package/dist/plugins-GSxafyD3.js +77 -0
  110. package/dist/plugins.d.ts +13 -0
  111. package/dist/plugins.d.ts.map +1 -0
  112. package/dist/version-_1nY4KyJ.js +17 -0
  113. package/dist/version.d.ts +3 -0
  114. package/dist/version.d.ts.map +1 -0
  115. package/dist/write-CQAitcI5.js +156 -0
  116. package/dist/write.d.ts +28 -0
  117. package/dist/write.d.ts.map +1 -0
  118. package/package.json +119 -0
  119. package/skills/gap-analysis/SKILL.md +97 -0
  120. package/skills/gap-analysis/references/step-1-target-selection.md +53 -0
  121. package/skills/gap-analysis/references/step-2-plan-completion.md +49 -0
  122. package/skills/gap-analysis/references/step-3-matrix-verification.md +54 -0
  123. package/skills/gap-analysis/references/step-4-underspecified-code.md +63 -0
  124. package/skills/gap-analysis/references/step-5-semantic-review.md +51 -0
  125. package/skills/gap-analysis/references/step-6-specreview-artifact.md +95 -0
  126. package/skills/spec-app-review/SKILL.md +51 -0
  127. package/skills/spec-app-review/references/checklist.md +197 -0
  128. package/skills/spec-dependency-analysis/SKILL.md +75 -0
  129. package/skills/spec-ears-analysis/SKILL.md +89 -0
  130. package/skills/spec-evidence-analysis/SKILL.md +78 -0
  131. package/skills/spec-failure-domain-analysis/SKILL.md +44 -0
  132. package/skills/spec-ideation/SKILL.md +46 -0
  133. package/skills/spec-integrity-analysis/SKILL.md +47 -0
  134. package/skills/spec-matrix/SKILL.md +168 -0
  135. package/skills/spec-matrix/assets/test-cases/TC-001.md +35 -0
  136. package/skills/spec-matrix/assets/test-cases/TC-002.md +37 -0
  137. package/skills/spec-matrix/assets/test-cases/TC-006.md +50 -0
  138. package/skills/spec-matrix/assets/test-matrix-example.md +104 -0
  139. package/skills/spec-matrix/assets/test-matrix-template.md +123 -0
  140. package/skills/spec-matrix/workflow-assets/skills/matrix/SKILL.md +35 -0
  141. package/skills/spec-matrix/workflow-assets/skills/matrix/scripts/invariants.js +1 -0
  142. package/skills/spec-matrix/workflow-assets/skills/matrix/templates/report/default.md +30 -0
  143. package/skills/spec-matrix/workflow-assets/skills/matrix/workflows/matrix/def.yaml +82 -0
  144. package/skills/spec-object-review/SKILL.md +125 -0
  145. package/skills/spec-object-review/references/object-type-guide.md +118 -0
  146. package/skills/spec-review/SKILL.md +71 -0
  147. package/skills/spec-review/references/checklist.md +50 -0
  148. package/skills/spec-review/workflow-assets/skills/review/SKILL.md +96 -0
  149. package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +60 -0
  150. package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +68 -0
  151. package/skills/spec-risk-complexity-analysis/SKILL.md +77 -0
  152. package/skills/spec-scope-boundary-analysis/SKILL.md +86 -0
  153. package/skills/spec-security-analysis/SKILL.md +84 -0
  154. package/skills/spec-security-analysis/assets/security-analysis-example.md +89 -0
  155. package/skills/spec-security-analysis/assets/security-analysis-template.md +73 -0
  156. package/skills/spec-security-analysis/references/component-type-mapping.md +161 -0
  157. package/skills/spec-security-analysis/references/gdpr/ChII-Principles.md +58 -0
  158. package/skills/spec-security-analysis/references/gdpr/ChIII-DataSubjectRights.md +84 -0
  159. package/skills/spec-security-analysis/references/gdpr/ChIV-ControllerProcessor.md +83 -0
  160. package/skills/spec-security-analysis/references/gdpr/ChV-DataTransfers.md +62 -0
  161. package/skills/spec-security-analysis/references/gdpr/index.md +54 -0
  162. package/skills/spec-security-analysis/references/iso27001/A5-OrganizationalControls.md +64 -0
  163. package/skills/spec-security-analysis/references/iso27001/A6-PeopleControls.md +30 -0
  164. package/skills/spec-security-analysis/references/iso27001/A7-PhysicalControls.md +35 -0
  165. package/skills/spec-security-analysis/references/iso27001/A8-TechnologicalControls.md +66 -0
  166. package/skills/spec-security-analysis/references/iso27001/index.md +43 -0
  167. package/skills/spec-security-analysis/references/nist-800-53/AC-AccessControl.md +57 -0
  168. package/skills/spec-security-analysis/references/nist-800-53/AU-AuditAccountability.md +49 -0
  169. package/skills/spec-security-analysis/references/nist-800-53/CM-ConfigurationManagement.md +36 -0
  170. package/skills/spec-security-analysis/references/nist-800-53/IA-IdentificationAuthentication.md +44 -0
  171. package/skills/spec-security-analysis/references/nist-800-53/SA-SystemServicesAcquisition.md +50 -0
  172. package/skills/spec-security-analysis/references/nist-800-53/SC-SystemCommunications.md +53 -0
  173. package/skills/spec-security-analysis/references/nist-800-53/SI-SystemInformationIntegrity.md +52 -0
  174. package/skills/spec-security-analysis/references/nist-800-53/index.md +58 -0
  175. package/skills/spec-security-analysis/references/owasp-asvs/V1-Architecture.md +33 -0
  176. package/skills/spec-security-analysis/references/owasp-asvs/V10-MaliciousCode.md +33 -0
  177. package/skills/spec-security-analysis/references/owasp-asvs/V11-BusinessLogic.md +32 -0
  178. package/skills/spec-security-analysis/references/owasp-asvs/V12-Files.md +34 -0
  179. package/skills/spec-security-analysis/references/owasp-asvs/V13-API.md +34 -0
  180. package/skills/spec-security-analysis/references/owasp-asvs/V14-Configuration.md +35 -0
  181. package/skills/spec-security-analysis/references/owasp-asvs/V2-Authentication.md +36 -0
  182. package/skills/spec-security-analysis/references/owasp-asvs/V3-SessionManagement.md +35 -0
  183. package/skills/spec-security-analysis/references/owasp-asvs/V4-AccessControl.md +39 -0
  184. package/skills/spec-security-analysis/references/owasp-asvs/V5-Validation.md +37 -0
  185. package/skills/spec-security-analysis/references/owasp-asvs/V6-Cryptography.md +34 -0
  186. package/skills/spec-security-analysis/references/owasp-asvs/V7-ErrorLogging.md +37 -0
  187. package/skills/spec-security-analysis/references/owasp-asvs/V8-DataProtection.md +34 -0
  188. package/skills/spec-security-analysis/references/owasp-asvs/V9-Communication.md +32 -0
  189. package/skills/spec-security-analysis/references/owasp-asvs/index.md +59 -0
  190. package/skills/spec-security-analysis/references/soc2/CC1-ControlEnvironment.md +31 -0
  191. package/skills/spec-security-analysis/references/soc2/CC2-CommunicationInformation.md +27 -0
  192. package/skills/spec-security-analysis/references/soc2/CC3-RiskAssessment.md +29 -0
  193. package/skills/spec-security-analysis/references/soc2/CC4-MonitoringActivities.md +27 -0
  194. package/skills/spec-security-analysis/references/soc2/CC5-ControlActivities.md +28 -0
  195. package/skills/spec-security-analysis/references/soc2/CC6-LogicalPhysicalAccess.md +45 -0
  196. package/skills/spec-security-analysis/references/soc2/CC7-SystemOperations.md +42 -0
  197. package/skills/spec-security-analysis/references/soc2/CC8-ChangeManagement.md +32 -0
  198. package/skills/spec-security-analysis/references/soc2/CC9-RiskMitigation.md +34 -0
  199. package/skills/spec-security-analysis/references/soc2/index.md +46 -0
  200. package/skills/spec-security-analysis/references/standards-index.md +46 -0
  201. package/skills/spec-to-plan/SKILL.md +75 -0
  202. package/skills/spec-to-plan/references/step-0-plan-selection.md +121 -0
  203. package/skills/spec-to-plan/references/step-1-analysis.md +88 -0
  204. package/skills/spec-to-plan/references/step-2-test-plan.md +43 -0
  205. package/skills/spec-to-plan/references/step-3-execution-plan.md +218 -0
  206. package/skills/spec-to-plan/workflow-assets/skills/to-plan/SKILL.md +35 -0
  207. package/skills/spec-to-plan/workflow-assets/skills/to-plan/scripts/invariants.js +1 -0
  208. package/skills/spec-to-plan/workflow-assets/skills/to-plan/templates/implementation-plan/default.md +44 -0
  209. package/skills/spec-to-plan/workflow-assets/skills/to-plan/workflows/to-plan/def.yaml +85 -0
  210. package/skills/specify/SKILL.md +154 -0
  211. package/skills/specify/assets/app-spec-template.md +143 -0
  212. package/skills/specify/assets/spec-template.md +299 -0
  213. package/skills/specify/references/integration-tests.md +72 -0
  214. package/skills/specify/references/us-to-fr.md +40 -0
  215. package/skills/specify/references/writing-good-requirements.md +61 -0
@@ -0,0 +1,66 @@
1
+ # A.8 - Technological Controls
2
+
3
+ **Theme**: Technological
4
+ **Controls**: 34
5
+ **Focus**: Technical security controls for systems and development
6
+
7
+ ## When to Apply
8
+
9
+ **A.8 is the PRIMARY theme for software components.** Most software FRs and NFRs map here.
10
+
11
+ ## Controls
12
+
13
+ | Control | Name | Description | Software Relevance |
14
+ |---------|------|-------------|-------------------|
15
+ | A.8.1 | User Endpoint Devices | Endpoint security | MEDIUM - Client SDKs |
16
+ | A.8.2 | Privileged Access Rights | Privileged access management | **HIGH** - Admin roles |
17
+ | A.8.3 | Information Access Restriction | Access restriction | **HIGH** - Authorization |
18
+ | A.8.4 | Access to Source Code | Source code access | MEDIUM - SCM policy |
19
+ | A.8.5 | Secure Authentication | Authentication mechanisms | **HIGH** - Auth |
20
+ | A.8.6 | Capacity Management | Capacity monitoring | MEDIUM - Scaling |
21
+ | A.8.7 | Protection Against Malware | Malware protection | MEDIUM - Input validation |
22
+ | A.8.8 | Management of Technical Vulnerabilities | Vulnerability management | **HIGH** - Patching, deps |
23
+ | A.8.9 | Configuration Management | Secure configuration | **HIGH** - Config mgmt |
24
+ | A.8.10 | Information Deletion | Secure deletion | **HIGH** - Data lifecycle |
25
+ | A.8.11 | Data Masking | Data masking | **HIGH** - PII masking |
26
+ | A.8.12 | Data Leakage Prevention | DLP | **HIGH** - Output filtering |
27
+ | A.8.13 | Information Backup | Backup procedures | MEDIUM - Recovery |
28
+ | A.8.14 | Redundancy of Information Processing Facilities | Redundancy | MEDIUM - HA |
29
+ | A.8.15 | Logging | Security logging | **HIGH** - Audit logs |
30
+ | A.8.16 | Monitoring Activities | Security monitoring | **HIGH** - Observability |
31
+ | A.8.17 | Clock Synchronization | Time sync | MEDIUM - NTP |
32
+ | A.8.18 | Use of Privileged Utility Programs | Privileged utilities | LOW - Admin tools |
33
+ | A.8.19 | Installation of Software on Operational Systems | Software installation | LOW - Deployment |
34
+ | A.8.20 | Networks Security | Network security | MEDIUM - Network config |
35
+ | A.8.21 | Security of Network Services | Network service security | MEDIUM - Service mesh |
36
+ | A.8.22 | Segregation of Networks | Network segregation | MEDIUM - Network policy |
37
+ | A.8.23 | Web Filtering | Web access control | LOW - Proxy |
38
+ | A.8.24 | Use of Cryptography | Cryptographic controls | **HIGH** - Encryption |
39
+ | A.8.25 | Secure Development Life Cycle | Secure SDLC | **HIGH** - Dev process |
40
+ | A.8.26 | Application Security Requirements | Security requirements | **HIGH** - FR/NFR |
41
+ | A.8.27 | Secure System Architecture and Engineering Principles | Secure architecture | **HIGH** - Design |
42
+ | A.8.28 | Secure Coding | Secure coding practices | **HIGH** - Code quality |
43
+ | A.8.29 | Security Testing in Development and Acceptance | Security testing | **HIGH** - Testing |
44
+ | A.8.30 | Outsourced Development | Vendor development | MEDIUM - Third-party |
45
+ | A.8.31 | Separation of Development, Test and Production Environments | Environment separation | **HIGH** - Env isolation |
46
+ | A.8.32 | Change Management | Change control | **HIGH** - Version control |
47
+ | A.8.33 | Test Information | Test data protection | MEDIUM - Test data |
48
+ | A.8.34 | Protection of Information Systems During Audit Testing | Audit protection | LOW - Audit |
49
+
50
+ ## Mapping Guidance
51
+
52
+ ### Access Control Cluster (A.8.2-5)
53
+ - Map to: FR for authentication, authorization, role management
54
+ - Example: FR-001 (Permission Check) → A.8.3, A.8.5
55
+
56
+ ### Data Protection Cluster (A.8.10-12, A.8.24)
57
+ - Map to: FR/NFR for data handling, encryption, masking
58
+ - Example: NFR-002 (Encryption) → A.8.24
59
+
60
+ ### Logging/Monitoring Cluster (A.8.15-16)
61
+ - Map to: FR for audit logging, NFR for observability
62
+ - Example: FR-013 (Audit Logging) → A.8.15, A.8.16
63
+
64
+ ### Development Cluster (A.8.25-32)
65
+ - Map to: NFR for SDLC, testing, deployment
66
+ - Example: NFR-001 (Verification) → A.8.29
@@ -0,0 +1,43 @@
1
+ # ISO/IEC 27001:2022 Annex A Controls
2
+
3
+ **Version**: 2022
4
+ **Scope**: Information Security Management System
5
+ **Region**: Global (international standard)
6
+
7
+ ## When to Apply
8
+
9
+ Apply ISO 27001 when your component:
10
+ - Is part of an organization seeking/maintaining ISO 27001 certification
11
+ - Serves enterprise customers requiring certified security
12
+ - Operates internationally
13
+ - Needs a comprehensive, auditable security framework
14
+
15
+ ## Theme Selection Guide
16
+
17
+ **Use this to decide which theme to investigate:**
18
+
19
+ | If your component... | Read Theme |
20
+ |---------------------|------------|
21
+ | Implements authentication | [A8-TechnologicalControls](A8-TechnologicalControls.md) |
22
+ | Implements authorization/RBAC | [A8-TechnologicalControls](A8-TechnologicalControls.md) |
23
+ | Produces audit logs | [A8-TechnologicalControls](A8-TechnologicalControls.md) |
24
+ | Uses encryption | [A8-TechnologicalControls](A8-TechnologicalControls.md) |
25
+ | Has development practices | [A8-TechnologicalControls](A8-TechnologicalControls.md) |
26
+ | Uses third-party dependencies | [A5-OrganizationalControls](A5-OrganizationalControls.md) |
27
+ | Handles classified data | [A5-OrganizationalControls](A5-OrganizationalControls.md) |
28
+
29
+ ## Control Themes
30
+
31
+ | Theme | Controls | Primary For | Skip If |
32
+ |-------|----------|-------------|---------|
33
+ | [A5-OrganizationalControls](A5-OrganizationalControls.md) | 37 | Policies, suppliers, data classification | Pure technical component |
34
+ | [A6-PeopleControls](A6-PeopleControls.md) | 8 | Personnel security | Assign to HR |
35
+ | [A7-PhysicalControls](A7-PhysicalControls.md) | 14 | Physical security | Assign to Infrastructure |
36
+ | [A8-TechnologicalControls](A8-TechnologicalControls.md) | 34 | **ALL software** | Never skip |
37
+
38
+ ## Quick Reference
39
+
40
+ **Most software components**: Focus on A8 (Technological)
41
+ **Supply chain concerns**: Also check A5.19-A5.23
42
+ **Physical security (A7)**: Assign to Infrastructure
43
+ **Personnel security (A6)**: Assign to HR
@@ -0,0 +1,57 @@
1
+ # AC - Access Control
2
+
3
+ **Family**: Access Control
4
+ **Controls**: 25
5
+ **Focus**: Authorization and access enforcement
6
+
7
+ ## When to Apply
8
+
9
+ **AC is PRIMARY for authorization components.** Apply when your component:
10
+ - Controls access to resources
11
+ - Enforces permissions
12
+ - Manages user sessions
13
+ - Implements RBAC/ABAC
14
+
15
+ ## Controls
16
+
17
+ | Control | Name | Description | Software Relevance |
18
+ |---------|------|-------------|-------------------|
19
+ | AC-1 | Policy and Procedures | Document access policies | LOW - Docs |
20
+ | AC-2 | Account Management | Manage system accounts | **HIGH** - User mgmt |
21
+ | AC-3 | Access Enforcement | Enforce authorizations | **HIGH** - Authz core |
22
+ | AC-4 | Information Flow Enforcement | Control info flow | **HIGH** - Data flow |
23
+ | AC-5 | Separation of Duties | Enforce duty separation | **HIGH** - RBAC |
24
+ | AC-6 | Least Privilege | Employ least privilege | **HIGH** - Min access |
25
+ | AC-7 | Unsuccessful Logon Attempts | Limit failed attempts | **HIGH** - Brute force |
26
+ | AC-8 | System Use Notification | Display use warning | MEDIUM - UI |
27
+ | AC-9 | Previous Logon Notification | Notify of last logon | LOW - UX |
28
+ | AC-10 | Concurrent Session Control | Limit concurrent sessions | MEDIUM - Sessions |
29
+ | AC-11 | Device Lock | Lock after inactivity | MEDIUM - Client |
30
+ | AC-12 | Session Termination | Auto-terminate sessions | **HIGH** - Sessions |
31
+ | AC-14 | Permitted Actions Without Identification | Allow anonymous actions | MEDIUM - Public API |
32
+ | AC-16 | Security and Privacy Attributes | Support attributes | **HIGH** - ABAC |
33
+ | AC-17 | Remote Access | Control remote access | MEDIUM - Network |
34
+ | AC-18 | Wireless Access | Control wireless | LOW - Infrastructure |
35
+ | AC-19 | Access Control for Mobile Devices | Mobile access | MEDIUM - Mobile |
36
+ | AC-20 | Use of External Systems | External system access | MEDIUM - Integration |
37
+ | AC-21 | Information Sharing | Enable authorized sharing | **HIGH** - Data sharing |
38
+ | AC-22 | Publicly Accessible Content | Control public content | MEDIUM - Public API |
39
+ | AC-23 | Data Mining Protection | Prevent data mining | MEDIUM - Query limits |
40
+ | AC-24 | Access Control Decisions | Establish decision points | **HIGH** - PEP/PDP |
41
+ | AC-25 | Reference Monitor | Implement reference monitor | **HIGH** - Core authz |
42
+
43
+ ## Mapping Guidance
44
+
45
+ ### Core Authorization (AC-2, AC-3, AC-5, AC-6)
46
+ ```
47
+ FR-001 (Permission Check) → AC-3, AC-25
48
+ FR-002 (Enforcement) → AC-3
49
+ FR-008 (RBAC) → AC-5, AC-6
50
+ FR-009 (ABAC) → AC-16
51
+ ```
52
+
53
+ ### Session Management (AC-7, AC-10, AC-12)
54
+ ```
55
+ FR-XXX (Session) → AC-10, AC-12
56
+ NFR-XXX (Lockout) → AC-7
57
+ ```
@@ -0,0 +1,49 @@
1
+ # AU - Audit and Accountability
2
+
3
+ **Family**: Audit and Accountability
4
+ **Controls**: 16
5
+ **Focus**: Logging, audit trails, accountability
6
+
7
+ ## When to Apply
8
+
9
+ **AU is PRIMARY for audit logging.** Apply when your component:
10
+ - Generates security-relevant events
11
+ - Makes access control decisions
12
+ - Processes sensitive data
13
+ - Runs in production
14
+
15
+ ## Controls
16
+
17
+ | Control | Name | Description | Software Relevance |
18
+ |---------|------|-------------|-------------------|
19
+ | AU-1 | Policy and Procedures | Document audit policies | LOW - Docs |
20
+ | AU-2 | Audit Events | Define auditable events | **HIGH** - Event list |
21
+ | AU-3 | Content of Audit Records | Required log content | **HIGH** - Log format |
22
+ | AU-4 | Audit Storage Capacity | Storage allocation | MEDIUM - Retention |
23
+ | AU-5 | Response to Audit Processing Failures | Handle failures | **HIGH** - Fail-safe |
24
+ | AU-6 | Audit Review, Analysis, and Reporting | Review/analyze logs | MEDIUM - Analysis |
25
+ | AU-7 | Audit Reduction and Report Generation | Log aggregation | MEDIUM - Tooling |
26
+ | AU-8 | Time Stamps | Reliable timestamps | **HIGH** - NTP |
27
+ | AU-9 | Protection of Audit Information | Protect logs | **HIGH** - Integrity |
28
+ | AU-10 | Non-repudiation | Prove actions occurred | **HIGH** - Evidence |
29
+ | AU-11 | Audit Record Retention | Retain logs | **HIGH** - Retention |
30
+ | AU-12 | Audit Generation | Generate audit records | **HIGH** - Logging |
31
+ | AU-13 | Monitoring for Information Disclosure | Monitor disclosure | MEDIUM - DLP |
32
+ | AU-14 | Session Audit | Audit sessions | MEDIUM - Session logs |
33
+ | AU-16 | Cross-Organizational Auditing | Cross-org audit | LOW - Federation |
34
+
35
+ ## Mapping Guidance
36
+
37
+ ### Core Audit (AU-2, AU-3, AU-12)
38
+ ```
39
+ FR-013 (Audit Logging) → AU-2, AU-3, AU-12
40
+ FR-013-AC-1 (Log Content) → AU-3
41
+ FR-013-AC-2 (Log Generation) → AU-12
42
+ ```
43
+
44
+ ### Log Protection (AU-5, AU-9, AU-11)
45
+ ```
46
+ NFR-XXX (Log Integrity) → AU-9
47
+ NFR-XXX (Retention) → AU-11
48
+ NFR-XXX (Fail-Safe Logging) → AU-5
49
+ ```
@@ -0,0 +1,36 @@
1
+ # CM - Configuration Management
2
+
3
+ **Family**: Configuration Management
4
+ **Controls**: 14
5
+ **Focus**: Configuration control and baseline management
6
+
7
+ ## When to Apply
8
+
9
+ **CM is PRIMARY for configuration.**
10
+
11
+ ## Controls
12
+
13
+ | Control | Name | Description | Software Relevance |
14
+ |---------|------|-------------|-------------------|
15
+ | CM-1 | Policy and Procedures | Document CM policies | LOW |
16
+ | CM-2 | Baseline Configuration | Establish baselines | **HIGH** |
17
+ | CM-3 | Configuration Change Control | Control changes | **HIGH** |
18
+ | CM-4 | Impact Analysis | Analyze impact | **HIGH** |
19
+ | CM-5 | Access Restrictions for Change | Restrict change access | **HIGH** |
20
+ | CM-6 | Configuration Settings | Security settings | **HIGH** |
21
+ | CM-7 | Least Functionality | Minimal functionality | **HIGH** |
22
+ | CM-8 | System Component Inventory | Component inventory | **HIGH** |
23
+ | CM-9 | Configuration Management Plan | CM plan | MEDIUM |
24
+ | CM-10 | Software Usage Restrictions | License compliance | MEDIUM |
25
+ | CM-11 | User-Installed Software | Control user software | LOW |
26
+ | CM-12 | Information System Component Location | Track locations | MEDIUM |
27
+ | CM-14 | Signed Components | Verify signatures | **HIGH** |
28
+
29
+ ## Mapping Guidance
30
+
31
+ ```
32
+ NFR-XXX (Config Management) → CM-2, CM-3, CM-6
33
+ NFR-XXX (Change Control) → CM-3, CM-4, CM-5
34
+ NFR-XXX (SBOM) → CM-8
35
+ NFR-XXX (Signed Artifacts) → CM-14
36
+ ```
@@ -0,0 +1,44 @@
1
+ # IA - Identification and Authentication
2
+
3
+ **Family**: Identification and Authentication
4
+ **Controls**: 12
5
+ **Focus**: Identity management and authentication
6
+
7
+ ## When to Apply
8
+
9
+ **IA is PRIMARY for auth components.** Apply when your component:
10
+ - Authenticates users or services
11
+ - Manages identities
12
+ - Issues or validates credentials
13
+
14
+ ## Controls
15
+
16
+ | Control | Name | Description | Software Relevance |
17
+ |---------|------|-------------|-------------------|
18
+ | IA-1 | Policy and Procedures | Document IA policies | LOW - Docs |
19
+ | IA-2 | Identification and Authentication (Org Users) | Authenticate users | **HIGH** - Auth |
20
+ | IA-3 | Device Identification and Authentication | Authenticate devices | MEDIUM - Device auth |
21
+ | IA-4 | Identifier Management | Manage identifiers | **HIGH** - Identity |
22
+ | IA-5 | Authenticator Management | Manage authenticators | **HIGH** - Credentials |
23
+ | IA-6 | Authentication Feedback | Obscure feedback | **HIGH** - UX security |
24
+ | IA-7 | Cryptographic Module Authentication | Crypto auth | MEDIUM - HSM |
25
+ | IA-8 | Identification and Authentication (Non-Org Users) | External users | **HIGH** - External auth |
26
+ | IA-9 | Service Identification and Authentication | Service-to-service | **HIGH** - mTLS |
27
+ | IA-10 | Adaptive Authentication | Risk-based auth | MEDIUM - MFA |
28
+ | IA-11 | Re-authentication | Force re-auth | **HIGH** - Sensitive ops |
29
+ | IA-12 | Identity Proofing | Verify identity | MEDIUM - Onboarding |
30
+
31
+ ## Mapping Guidance
32
+
33
+ ### Core Auth (IA-2, IA-4, IA-5, IA-8)
34
+ ```
35
+ FR-XXX (Authentication) → IA-2, IA-8
36
+ FR-XXX (Identity Management) → IA-4
37
+ FR-XXX (Credential Management) → IA-5
38
+ ```
39
+
40
+ ### Service Auth (IA-9)
41
+ ```
42
+ FR-XXX (Service Auth) → IA-9
43
+ NFR-XXX (mTLS) → IA-9
44
+ ```
@@ -0,0 +1,50 @@
1
+ # SA - System and Services Acquisition
2
+
3
+ **Family**: System and Services Acquisition
4
+ **Controls**: 22
5
+ **Focus**: SDLC, supply chain, development security
6
+
7
+ ## When to Apply
8
+
9
+ **SA is PRIMARY for development practices.** Apply when your component:
10
+ - Is under active development
11
+ - Uses third-party dependencies
12
+ - Requires security in SDLC
13
+ - Has supply chain concerns
14
+
15
+ ## Controls
16
+
17
+ | Control | Name | Description | Software Relevance |
18
+ |---------|------|-------------|-------------------|
19
+ | SA-1 | Policy and Procedures | Document SA policies | LOW - Docs |
20
+ | SA-2 | Allocation of Resources | Allocate security resources | LOW - Planning |
21
+ | SA-3 | System Development Life Cycle | Follow SDLC | **HIGH** - Dev process |
22
+ | SA-4 | Acquisition Process | Define acquisition | MEDIUM - Procurement |
23
+ | SA-5 | System Documentation | Obtain documentation | MEDIUM - Docs |
24
+ | SA-8 | Security and Privacy Engineering Principles | Apply principles | **HIGH** - Design |
25
+ | SA-9 | External System Services | Control external services | **HIGH** - Dependencies |
26
+ | SA-10 | Developer Configuration Management | Dev config mgmt | **HIGH** - SCM |
27
+ | SA-11 | Developer Testing and Evaluation | Dev testing | **HIGH** - Testing |
28
+ | SA-15 | Development Process, Standards, and Tools | Dev standards | **HIGH** - Standards |
29
+ | SA-15(13) | Vulnerability Disclosure | Disclosure program | MEDIUM - Security.txt |
30
+ | SA-16 | Developer-Provided Training | Dev training | LOW - Training |
31
+ | SA-17 | Developer Security and Privacy Architecture and Design | Secure design | **HIGH** - Architecture |
32
+ | SA-21 | Developer Screening | Screen developers | LOW - HR |
33
+ | SA-22 | Unsupported System Components | Address unsupported | **HIGH** - EOL tracking |
34
+ | SA-24 | Software Supply Chain | Supply chain security | **HIGH** - SBOM |
35
+
36
+ ## Mapping Guidance
37
+
38
+ ### Development (SA-3, SA-8, SA-11, SA-15)
39
+ ```
40
+ NFR-XXX (SDLC) → SA-3
41
+ NFR-XXX (Secure Design) → SA-8
42
+ NFR-XXX (Testing) → SA-11
43
+ NFR-XXX (Standards) → SA-15
44
+ ```
45
+
46
+ ### Supply Chain (SA-9, SA-22, SA-24)
47
+ ```
48
+ NFR-XXX (Dependencies) → SA-9, SA-24
49
+ NFR-XXX (EOL Tracking) → SA-22
50
+ ```
@@ -0,0 +1,53 @@
1
+ # SC - System and Communications Protection
2
+
3
+ **Family**: System and Communications Protection
4
+ **Controls**: 51
5
+ **Focus**: Network security, cryptography, boundaries
6
+
7
+ ## When to Apply
8
+
9
+ **SC is PRIMARY for crypto and network security.** Apply when your component:
10
+ - Uses encryption
11
+ - Communicates over networks
12
+ - Has security boundaries
13
+ - Processes data in transit
14
+
15
+ ## Controls (Key Selections)
16
+
17
+ | Control | Name | Description | Software Relevance |
18
+ |---------|------|-------------|-------------------|
19
+ | SC-1 | Policy and Procedures | Document SC policies | LOW - Docs |
20
+ | SC-2 | Separation of System and User Functionality | Separate functions | MEDIUM - Architecture |
21
+ | SC-3 | Security Function Isolation | Isolate security | **HIGH** - Isolation |
22
+ | SC-4 | Information in Shared System Resources | Protect shared resources | **HIGH** - Multi-tenant |
23
+ | SC-5 | Denial of Service Protection | DoS protection | **HIGH** - Availability |
24
+ | SC-7 | Boundary Protection | Protect boundaries | **HIGH** - Network |
25
+ | SC-8 | Transmission Confidentiality and Integrity | Protect transmission | **HIGH** - TLS |
26
+ | SC-10 | Network Disconnect | Terminate connections | MEDIUM - Sessions |
27
+ | SC-12 | Cryptographic Key Establishment and Management | Key management | **HIGH** - Keys |
28
+ | SC-13 | Cryptographic Protection | Use crypto | **HIGH** - Encryption |
29
+ | SC-17 | PKI Certificates | Manage certificates | **HIGH** - TLS/PKI |
30
+ | SC-23 | Session Authenticity | Protect session integrity | **HIGH** - Sessions |
31
+ | SC-24 | Fail in Known State | Fail securely | **HIGH** - Fail-close |
32
+ | SC-28 | Protection of Information at Rest | Protect stored data | **HIGH** - Encryption |
33
+ | SC-39 | Process Isolation | Isolate processes | **HIGH** - Containers |
34
+
35
+ ## Mapping Guidance
36
+
37
+ ### Crypto Controls (SC-8, SC-12, SC-13, SC-28)
38
+ ```
39
+ NFR-XXX (TLS) → SC-8
40
+ NFR-XXX (Encryption at Rest) → SC-28
41
+ NFR-XXX (Key Management) → SC-12
42
+ ```
43
+
44
+ ### Boundary Controls (SC-7, SC-24)
45
+ ```
46
+ FR-XXX (API Boundary) → SC-7
47
+ NFR-XXX (Fail-Safe Default) → SC-24
48
+ ```
49
+
50
+ ### Multi-tenant (SC-4)
51
+ ```
52
+ FR-007 (Org Tenancy) → SC-4
53
+ ```
@@ -0,0 +1,52 @@
1
+ # SI - System and Information Integrity
2
+
3
+ **Family**: System and Information Integrity
4
+ **Controls**: 23
5
+ **Focus**: Integrity, validation, patching
6
+
7
+ ## When to Apply
8
+
9
+ **SI is PRIMARY for input validation and patching.** Apply when your component:
10
+ - Accepts external input
11
+ - Requires patching/updates
12
+ - Validates data integrity
13
+ - Handles errors
14
+
15
+ ## Controls
16
+
17
+ | Control | Name | Description | Software Relevance |
18
+ |---------|------|-------------|-------------------|
19
+ | SI-1 | Policy and Procedures | Document SI policies | LOW - Docs |
20
+ | SI-2 | Flaw Remediation | Remediate flaws | **HIGH** - Patching |
21
+ | SI-2(7) | Automated Patch Verification | Verify patches | **HIGH** - CI/CD |
22
+ | SI-3 | Malicious Code Protection | Protect against malware | MEDIUM - Scanning |
23
+ | SI-4 | System Monitoring | Monitor systems | **HIGH** - Observability |
24
+ | SI-5 | Security Alerts, Advisories, and Directives | Receive alerts | MEDIUM - Security feeds |
25
+ | SI-6 | Security Function Verification | Verify security | **HIGH** - Testing |
26
+ | SI-7 | Software, Firmware, and Information Integrity | Detect tampering | **HIGH** - Integrity |
27
+ | SI-10 | Information Input Validation | Validate input | **HIGH** - Validation |
28
+ | SI-11 | Error Handling | Handle errors securely | **HIGH** - Errors |
29
+ | SI-12 | Information Management and Retention | Manage retention | MEDIUM - Retention |
30
+ | SI-16 | Memory Protection | Protect memory | MEDIUM - Memory safety |
31
+ | SI-17 | Fail-Safe Procedures | Fail safely | **HIGH** - Fail-safe |
32
+
33
+ ## Mapping Guidance
34
+
35
+ ### Input/Output (SI-10, SI-11)
36
+ ```
37
+ FR-XXX (Input Validation) → SI-10
38
+ NFR-XXX (Error Handling) → SI-11
39
+ ```
40
+
41
+ ### Integrity (SI-6, SI-7, SI-17)
42
+ ```
43
+ NFR-XXX (Testing) → SI-6
44
+ NFR-XXX (Integrity) → SI-7
45
+ NFR-XXX (Fail-Safe) → SI-17
46
+ ```
47
+
48
+ ### Patching (SI-2)
49
+ ```
50
+ NFR-XXX (Dependency Updates) → SI-2
51
+ NFR-XXX (Automated Patching) → SI-2(7)
52
+ ```
@@ -0,0 +1,58 @@
1
+ # NIST SP 800-53 Rev 5
2
+
3
+ **Version**: Revision 5.2.0
4
+ **Scope**: Security and privacy controls for information systems
5
+ **Region**: US Federal (widely adopted globally)
6
+
7
+ ## When to Apply
8
+
9
+ Apply NIST 800-53 when your component:
10
+ - Is part of a US federal system
11
+ - Supports federal contractors (FedRAMP)
12
+ - Needs a comprehensive, well-documented control baseline
13
+ - Requires defense-in-depth security
14
+
15
+ ## Family Selection Guide
16
+
17
+ **Use this to decide which family to investigate:**
18
+
19
+ | If your component... | Read Family |
20
+ |---------------------|-------------|
21
+ | Enforces authorization/RBAC/ABAC | [AC-AccessControl](AC-AccessControl.md) |
22
+ | Authenticates users or services | [IA-IdentificationAuthentication](IA-IdentificationAuthentication.md) |
23
+ | Produces audit logs | [AU-AuditAccountability](AU-AuditAccountability.md) |
24
+ | Uses encryption or TLS | [SC-SystemCommunications](SC-SystemCommunications.md) |
25
+ | Validates input or handles errors | [SI-SystemInformationIntegrity](SI-SystemInformationIntegrity.md) |
26
+ | Has configuration or dependencies | [CM-ConfigurationManagement](CM-ConfigurationManagement.md) |
27
+ | Is under active development | [SA-SystemServicesAcquisition](SA-SystemServicesAcquisition.md) |
28
+
29
+ ## Control Families
30
+
31
+ 20 control families organized by function:
32
+
33
+ | Family | Code | Primary For | Skip If |
34
+ |--------|------|-------------|---------|
35
+ | [AC-AccessControl](AC-AccessControl.md) | AC | Authorization components | No access control logic |
36
+ | [AU-AuditAccountability](AU-AuditAccountability.md) | AU | Logging/observability | No security events |
37
+ | [CM-ConfigurationManagement](CM-ConfigurationManagement.md) | CM | Config, SBOM | Stateless utility |
38
+ | [IA-IdentificationAuthentication](IA-IdentificationAuthentication.md) | IA | Auth services | No auth handling |
39
+ | [SA-SystemServicesAcquisition](SA-SystemServicesAcquisition.md) | SA | SDLC, supply chain | All software |
40
+ | [SC-SystemCommunications](SC-SystemCommunications.md) | SC | Crypto, network | No network/crypto |
41
+ | [SI-SystemInformationIntegrity](SI-SystemInformationIntegrity.md) | SI | Validation, patching | No external input |
42
+
43
+ ### Typically Infrastructure (Lower Priority for Software)
44
+
45
+ | Family | Code | Assign To |
46
+ |--------|------|-----------|
47
+ | AT (Awareness/Training) | AT | HR/Training |
48
+ | CA (Assessment) | CA | Compliance |
49
+ | CP (Contingency) | CP | Infrastructure |
50
+ | IR (Incident Response) | IR | Operations |
51
+ | MA (Maintenance) | MA | Infrastructure |
52
+ | MP (Media) | MP | Infrastructure |
53
+ | PE (Physical) | PE | Facilities |
54
+ | PL (Planning) | PL | Management |
55
+ | PM (Program) | PM | Management |
56
+ | PS (Personnel) | PS | HR |
57
+ | RA (Risk) | RA | Risk team |
58
+ | SR (Supply Chain) | SR | Covered by SA |
@@ -0,0 +1,33 @@
1
+ # V1 - Architecture
2
+
3
+ **Area**: Architecture Verification
4
+ **Focus**: Security architecture requirements
5
+
6
+ ## When to Apply
7
+
8
+ **V1 is foundational.** Apply when:
9
+ - Designing new components or systems
10
+ - Performing threat modeling
11
+ - Establishing security requirements
12
+ - Documenting trust boundaries
13
+
14
+ ## Requirements
15
+
16
+ | Req | Name | Description | L1 | L2 | L3 |
17
+ |-----|------|-------------|----|----|-----|
18
+ | 1.1.1 | Secure SDLC | Secure development lifecycle in place | | ✓ | ✓ |
19
+ | 1.1.2 | Threat Modeling | Threat modeling performed | | ✓ | ✓ |
20
+ | 1.1.3 | Component Security | Security of each component documented | | ✓ | ✓ |
21
+ | 1.2.1 | Trust Boundaries | Trust boundaries identified | | ✓ | ✓ |
22
+ | 1.2.2 | Input Validation | Centralized input validation approach | ✓ | ✓ | ✓ |
23
+ | 1.2.3 | Output Encoding | Centralized output encoding approach | ✓ | ✓ | ✓ |
24
+ | 1.4.1 | Cryptography | Cryptographic design documented | | ✓ | ✓ |
25
+
26
+ ## Mapping Guidance
27
+
28
+ ```
29
+ NFR-001 (Security Architecture) → 1.1.1, 1.1.3
30
+ NFR-002 (Threat Model) → 1.1.2
31
+ NFR-003 (Input Validation) → 1.2.2
32
+ NFR-004 (Output Encoding) → 1.2.3
33
+ ```
@@ -0,0 +1,33 @@
1
+ # V10 - Malicious Code
2
+
3
+ **Area**: Malicious Code Verification
4
+ **Focus**: Protection against malware and malicious logic
5
+
6
+ ## When to Apply
7
+
8
+ **V10 is a general requirement.** Apply when:
9
+ - Reviewing third-party code
10
+ - Auditing for backdoors
11
+ - Implementing integrity checks
12
+ - Managing software supply chain
13
+
14
+ ## Requirements
15
+
16
+ | Req | Name | Description | L1 | L2 | L3 |
17
+ |-----|------|-------------|----|----|-----|
18
+ | 10.1.1 | Code Integrity | Source code integrity verified | | ✓ | ✓ |
19
+ | 10.2.1 | Anti-Malware | No malicious functionality | ✓ | ✓ | ✓ |
20
+ | 10.2.2 | Time Bombs | No time-based malicious triggers | ✓ | ✓ | ✓ |
21
+ | 10.2.3 | Backdoors | No hidden backdoors | ✓ | ✓ | ✓ |
22
+ | 10.3.1 | Unverified Code | No loading of unverified code | ✓ | ✓ | ✓ |
23
+
24
+ ## Mapping Guidance
25
+
26
+ ```
27
+ NFR-001 (Supply Chain) → 10.1.1
28
+ NFR-002 (Code Review) → 10.2.1, 10.2.2, 10.2.3
29
+ NFR-003 (Dynamic Loading) → 10.3.1
30
+ ```
31
+
32
+ > [!NOTE]
33
+ > This area often maps to organizational controls rather than specific FRs.
@@ -0,0 +1,32 @@
1
+ # V11 - Business Logic
2
+
3
+ **Area**: Business Logic Verification
4
+ **Focus**: Application-specific security logic
5
+
6
+ ## When to Apply
7
+
8
+ **V11 is for complex workflows.** Apply when your component:
9
+ - Implements financial transactions
10
+ - Has multi-step workflows
11
+ - Enforces business rules
12
+ - Manages quotas or limits
13
+
14
+ ## Requirements
15
+
16
+ | Req | Name | Description | L1 | L2 | L3 |
17
+ |-----|------|-------------|----|----|-----|
18
+ | 11.1.1 | Sequential Processing | Multi-step processes in correct order | ✓ | ✓ | ✓ |
19
+ | 11.1.2 | Business Limits | Business logic limits enforced | ✓ | ✓ | ✓ |
20
+ | 11.1.3 | Anti-Automation | Business-critical functions protected | ✓ | ✓ | ✓ |
21
+ | 11.1.4 | Unusual Activity | Detection of unusual activity | | ✓ | ✓ |
22
+ | 11.1.5 | Race Conditions | Race conditions prevented | ✓ | ✓ | ✓ |
23
+
24
+ ## Mapping Guidance
25
+
26
+ ```
27
+ FR-001 (Workflow) → 11.1.1
28
+ FR-002 (Limits) → 11.1.2
29
+ FR-003 (Rate Limiting) → 11.1.3
30
+ NFR-001 (Concurrency) → 11.1.5
31
+ NFR-002 (Monitoring) → 11.1.4
32
+ ```
@@ -0,0 +1,34 @@
1
+ # V12 - Files
2
+
3
+ **Area**: File Handling Verification
4
+ **Focus**: File upload, download, and storage security
5
+
6
+ ## When to Apply
7
+
8
+ **V12 is PRIMARY for file handling.** Apply when your component:
9
+ - Accepts file uploads
10
+ - Serves file downloads
11
+ - Processes user-provided files
12
+ - Stores files on the filesystem
13
+
14
+ ## Requirements
15
+
16
+ | Req | Name | Description | L1 | L2 | L3 |
17
+ |-----|------|-------------|----|----|-----|
18
+ | 12.1.1 | File Size Limits | Maximum file size enforced | ✓ | ✓ | ✓ |
19
+ | 12.1.2 | File Type Validation | File types validated (not just extension) | ✓ | ✓ | ✓ |
20
+ | 12.1.3 | Path Traversal | Path traversal prevented | ✓ | ✓ | ✓ |
21
+ | 12.2.1 | Antivirus Scan | Uploaded files scanned for malware | | ✓ | ✓ |
22
+ | 12.3.1 | Secure Storage | Files stored outside web root | ✓ | ✓ | ✓ |
23
+ | 12.3.2 | Filename Sanitization | User filenames sanitized | ✓ | ✓ | ✓ |
24
+ | 12.4.1 | Content-Disposition | Proper Content-Disposition headers | ✓ | ✓ | ✓ |
25
+
26
+ ## Mapping Guidance
27
+
28
+ ```
29
+ FR-001 (Upload) → 12.1.1, 12.1.2
30
+ FR-002 (Storage) → 12.3.1
31
+ FR-003 (Download) → 12.4.1
32
+ NFR-001 (Path Security) → 12.1.3
33
+ NFR-002 (Malware) → 12.2.1
34
+ ```