-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathROADMAP.scm
More file actions
261 lines (230 loc) · 8.99 KB
/
Copy pathROADMAP.scm
File metadata and controls
261 lines (230 loc) · 8.99 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
;;; ROADMAP.scm — sanctify-php Development Roadmap
;; SPDX-License-Identifier: AGPL-3.0-or-later
;; SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell
;;
;; This roadmap outlines the development phases for sanctify-php.
;; Updated: 2025-12-17
(define-module (sanctify-php roadmap)
#:export (roadmap current-milestone next-steps))
;;; ============================================================================
;;; PHASE 1: Foundation (v0.1.x) — Current Phase
;;; ============================================================================
(define phase-1
'((name . "Foundation")
(version . "0.1.x")
(status . "in-progress")
(completion . 30)
(milestones
(;; COMPLETED
(milestone "RSR Compliance"
(status . complete)
(items
("SPDX headers on all files" . done)
("SHA-pinned GitHub Actions" . done)
("Security workflows configured" . done)
("Guix SCM files" . done)
("Dual licensing (MIT/AGPL)" . done)))
(milestone "CI/CD Security"
(status . complete)
(items
("CodeQL analysis" . done)
("PHP security scanning" . done)
("Secret detection (TruffleHog)" . done)
("OpenSSF Scorecard" . done)
("Haskell extensions in security checks" . done)
("Upgraded to GHC 9.6" . done)))
;; IN PROGRESS
(milestone "PHP Parser"
(status . pending)
(priority . high)
(items
("Megaparsec-based lexer" . pending)
("PHP 7.4+ syntax support" . pending)
("PHP 8.x syntax support" . pending)
("AST representation" . pending)
("Source location tracking" . pending)
("Error recovery" . pending)))
(milestone "Test Infrastructure"
(status . pending)
(priority . medium)
(items
("HSpec test suite setup" . pending)
("Parser unit tests" . pending)
("Golden tests with PHP fixtures" . pending)
("Property-based tests (QuickCheck)" . pending)
("CI test coverage reporting" . pending)))))))
;;; ============================================================================
;;; PHASE 2: Core Analysis (v0.2.x)
;;; ============================================================================
(define phase-2
'((name . "Core Analysis")
(version . "0.2.x")
(status . "planned")
(milestones
((milestone "Security Analysis Engine"
(priority . critical)
(items
("SQL injection detection" . planned)
("XSS vulnerability detection" . planned)
("CSRF pattern identification" . planned)
("Command injection detection" . planned)
("Path traversal detection" . planned)
("Unsafe deserialization detection" . planned)))
(milestone "Taint Tracking"
(priority . high)
(items
("Source identification ($_GET, $_POST, etc.)" . planned)
("Sink identification (echo, query, etc.)" . planned)
("Data flow analysis" . planned)
("Sanitizer recognition" . planned)
("Cross-function taint propagation" . planned)))
(milestone "Type Inference"
(priority . medium)
(items
("Return type inference" . planned)
("Parameter type inference" . planned)
("Property type inference" . planned)
("PHPDoc annotation parsing" . planned)
("Type hint suggestions" . planned)))))))
;;; ============================================================================
;;; PHASE 3: Transformations (v0.3.x)
;;; ============================================================================
(define phase-3
'((name . "Transformations")
(version . "0.3.x")
(status . "planned")
(milestones
((milestone "Strict Types Transformation"
(priority . high)
(risk . "zero")
(items
("Add declare(strict_types=1)" . planned)
("Preserve existing declarations" . planned)
("Handle multiple files" . planned)))
(milestone "Type Hint Addition"
(priority . high)
(risk . "low-review-required")
(items
("Add inferred parameter types" . planned)
("Add inferred return types" . planned)
("Generate PHPStan annotations" . planned)
("Preserve formatting" . planned)))
(milestone "Sanitization Transforms"
(priority . critical)
(risk . "medium-review-required")
(items
("Auto-escape echo statements" . planned)
("wpdb::query to prepare conversion" . planned)
("Superglobal sanitization" . planned)
("rand() to random_int() upgrade" . planned)
("Nonce verification insertion" . planned)))
(milestone "Code Emission"
(priority . high)
(items
("Pretty-print transformed AST" . planned)
("Preserve comments" . planned)
("Maintain original formatting where possible" . planned)
("Diff-friendly output" . planned)))))))
;;; ============================================================================
;;; PHASE 4: WordPress Support (v0.4.x)
;;; ============================================================================
(define phase-4
'((name . "WordPress Support")
(version . "0.4.x")
(status . "planned")
(milestones
((milestone "WordPress Constraints"
(priority . high)
(items
("ABSPATH check enforcement" . planned)
("Capability escalation detection" . planned)
("Direct database access warnings" . planned)
("Proper escaping function usage" . planned)
("Text domain consistency" . planned)))
(milestone "WordPress Hooks Analysis"
(priority . medium)
(items
("Action hook analysis" . planned)
("Filter hook analysis" . planned)
("Priority conflict detection" . planned)
("Deprecated hook warnings" . planned)))
(milestone "WordPress Security Patterns"
(priority . critical)
(items
("Admin-ajax.php security" . planned)
("REST API endpoint security" . planned)
("File upload handling" . planned)
("Options API security" . planned)
("User meta security" . planned)))))))
;;; ============================================================================
;;; PHASE 5: Reporting & Integration (v0.5.x)
;;; ============================================================================
(define phase-5
'((name . "Reporting & Integration")
(version . "0.5.x")
(status . "planned")
(milestones
((milestone "Report Generation"
(priority . high)
(items
("JSON report format" . planned)
("SARIF format for IDE integration" . planned)
("HTML report with navigation" . planned)
("Markdown summary" . planned)
("Severity classification" . planned)))
(milestone "Infrastructure Export"
(priority . medium)
(items
("php.ini recommendations export" . planned)
("nginx security rules export" . planned)
("Guix container overrides export" . planned)
("Docker security configs" . planned)))
(milestone "IDE Integration"
(priority . medium)
(items
("VSCode extension" . planned)
("Language Server Protocol (LSP)" . planned)
("Real-time analysis" . planned)
("Quick-fix suggestions" . planned)))))))
;;; ============================================================================
;;; PHASE 6: Production Ready (v1.0.0)
;;; ============================================================================
(define phase-6
'((name . "Production Ready")
(version . "1.0.0")
(status . "planned")
(milestones
((milestone "Performance Optimization"
(items
("Parallel file processing" . planned)
("Incremental analysis" . planned)
("Memory optimization" . planned)
("Large codebase support" . planned)))
(milestone "Documentation"
(items
("User guide" . planned)
("API documentation" . planned)
("Integration examples" . planned)
("WordPress plugin guidelines" . planned)))
(milestone "Release"
(items
("Binary releases (Linux/macOS/Windows)" . planned)
("Guix package submission" . planned)
("Homebrew formula" . planned)
("Docker image" . planned)))))))
;;; ============================================================================
;;; Summary & Export
;;; ============================================================================
(define roadmap
(list phase-1 phase-2 phase-3 phase-4 phase-5 phase-6))
(define current-milestone
'((phase . 1)
(name . "Foundation")
(next-task . "Implement PHP parser with Megaparsec")
(blockers . ())))
(define next-steps
'(("Implement PHP lexer" . immediate)
("Add parser tests" . immediate)
("Implement AST pretty-printer" . this-week)
("Add strict_types transformation" . this-week)
("Implement basic SQL injection detection" . next-sprint)))